/*
 * DyStar Americas Holding Corporation
 * Industrial B2B Corporate Theme (HTML/CSS Only)
 * Palette & layout aligned with redesign specification v1.0 (2024-12-14)
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&family=Source+Sans+Pro:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
    --primary: #005A9C;       /* Industrial blue */
    --secondary: #00897B;     /* Sustainable green */
    --accent: #FF6F00;        /* Energy orange */
    --dark: #263238;
    --muted: #ECEFF1;
    --surface: #FFFFFF;
    --bg: #F5F7FA;
    --text-primary: #212121;
    --text-secondary: #546E63;
    --border: #DDE3EA;
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.14);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--text-primary);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    margin: 0 0 12px 0;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

p {
    margin: 0 0 16px 0;
    color: var(--text-secondary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--secondary);
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius-sm);
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

.section.tight {
    padding: 56px 0;
}

.section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 32px auto;
}

.section-header .eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: inline-block;
}

.section-header p {
    margin: 0;
}

.bg-surface { background: var(--surface); }
.bg-muted { background: var(--muted); }
.bg-primary { background: var(--primary); color: #fff; }
.bg-secondary { background: var(--secondary); color: #fff; }
.text-center { text-align: center; }
.text-light { color: #fff; }
.text-muted { color: var(--text-secondary); }

/* Accessibility */
.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    background: var(--accent);
    color: #fff;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    z-index: 30;
}

.skip-link:focus {
    left: 12px;
}

/* Navigation */
.site-header {
    position: sticky;
    top: 0;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    z-index: 20;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
}

.brand {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    padding: 10px 12px;
    color: var(--dark);
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.nav-link:hover,
.nav-link:focus {
    background: var(--muted);
}

.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-sm);
    min-width: 240px;
    list-style: none;
    padding: 8px 0;
    display: none;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
    display: block;
}

.dropdown a {
    display: block;
    padding: 10px 16px;
    color: var(--text-primary);
}

.dropdown a:hover {
    background: var(--muted);
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    font-size: 1.1rem;
    cursor: pointer;
}

.nav-cta .btn {
    margin-left: 4px;
}

@media (max-width: 1024px) {
    .nav-menu {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--surface);
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        border-bottom: 1px solid var(--border);
        display: none;
        gap: 0;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-link {
        width: 100%;
        padding: 12px;
    }
    .dropdown {
        position: relative;
        top: 0;
        box-shadow: none;
        border: 1px solid var(--border);
        width: 100%;
        margin-bottom: 8px;
    }
    .menu-toggle {
        display: inline-flex;
    }
}

main {
    padding-top: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
    box-shadow: var(--shadow-sm);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-light {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

.btn-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Hero */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(38, 50, 56, 0.72);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero .eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #B3E5FC;
    margin-bottom: 14px;
}

.hero h1 {
    color: #fff;
    margin-bottom: 14px;
}

.hero p {
    color: #E5EDF5;
    max-width: 760px;
    font-size: 1.1rem;
}

.hero .actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(0, 90, 156, 0.18);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #fff;
    font-weight: 600;
}

/* Layout helpers */
.grid {
    display: grid;
    gap: 24px;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Keep homepage card grids visually even */
.card-grid {
    grid-auto-rows: 1fr;
    align-items: stretch;
}

.card-grid > .card {
    height: 100%;
}

.card-grid > .card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.card-grid > .card p {
    margin-bottom: 0;
}

.card-grid > .card .btn {
    margin-top: auto;
}

@media (max-width: 720px) {
    .card-grid > .card img {
        aspect-ratio: 16 / 10;
    }
}

.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    align-items: center;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card.border-accent {
    border-top: 4px solid var(--primary);
}

.card h3, .card h4 {
    margin-bottom: 6px;
}

.card .meta {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
}

.metric {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.metric .number {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--muted);
    border-radius: 999px;
    font-weight: 600;
    color: var(--dark);
}

.list-check {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.list-check li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.list-check li::before {
    content: '✓';
    color: var(--secondary);
    font-weight: 700;
    margin-top: 1px;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    background: rgba(0, 90, 156, 0.12);
    color: var(--dark);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 137, 123, 0.1);
    border-radius: 999px;
    color: var(--dark);
}

.accent-bar {
    width: 56px;
    height: 4px;
    border-radius: 4px;
    background: var(--accent);
    margin-bottom: 16px;
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 12px 14px;
    border: 1px solid var(--border);
    text-align: left;
}

.table th {
    background: var(--muted);
    color: var(--dark);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #fff;
    font-size: 1rem;
}

textarea {
    min-height: 140px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--dark);
}

.cta-panel {
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 28px;
    display: grid;
    grid-template-columns: 2fr auto;
    gap: 16px;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.cta-panel h3 {
    color: #fff;
    margin: 0 0 8px 0;
}

.cta-panel p {
    color: #e2e8f0;
    margin: 0;
}

@media (max-width: 720px) {
    .hero {
        min-height: 60vh;
    }
    .cta-panel {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: #cfd8dc;
    padding: 64px 0 32px 0;
    margin-top: 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 26px;
    margin-bottom: 28px;
}

.footer-top h4 {
    color: #fff;
    margin-bottom: 12px;
}

.footer-top ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.footer-top a {
    color: #cfd8dc;
}

.footer-top a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
    text-align: center;
    font-size: 0.95rem;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
}

.contact-list strong {
    color: #fff;
}
