/* ============================================================
   T.B. Engineering Consultancy and Construction Pvt. Ltd.
   Design system - plain CSS, no build step.
   ============================================================ */

/* ---------- Fonts (downloaded to /assets/fonts) ---------- */
@font-face {
    font-family: "Noto Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/noto-sans-400.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+2000-206F, U+20A0-20BF;
}
@font-face {
    font-family: "Noto Sans";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/noto-sans-600.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+2000-206F, U+20A0-20BF;
}
@font-face {
    font-family: "Noto Sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/noto-sans-700.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+2000-206F, U+20A0-20BF;
}
@font-face {
    font-family: "Noto Sans Devanagari";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/noto-sans-devanagari-400.woff2") format("woff2");
    unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF;
}
@font-face {
    font-family: "Noto Sans Devanagari";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/noto-sans-devanagari-600.woff2") format("woff2");
    unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF;
}
@font-face {
    font-family: "Noto Sans Devanagari";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/noto-sans-devanagari-700.woff2") format("woff2");
    unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF;
}

/* ---------- Design tokens ---------- */
:root {
    /* Brand */
    --navy-900: #08192e;
    --navy-800: #0b2038;
    --navy-700: #102a47;
    --navy-600: #16395e;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-100: #fef3c7;

    /* Neutrals */
    --white: #ffffff;
    --surface: #f6f8fb;
    --surface-2: #eef2f7;
    --border: #dde4ec;
    --text: #172433;
    --text-muted: #5b6b7d;
    --text-invert: #ffffff;

    /* Status */
    --green-600: #15803d;
    --green-100: #dcfce7;
    --red-600: #b91c1c;
    --red-100: #fee2e2;
    --blue-600: #1d4ed8;
    --blue-100: #dbeafe;

    /* Typography */
    --font-sans: "Noto Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --text-xs: 0.78rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 1.1vw, 2rem);
    --text-3xl: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);

    /* Layout */
    --container: 1180px;
    --gutter: 1.15rem;
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 18px;

    /* Effects */
    --shadow-sm: 0 1px 2px rgba(8, 25, 46, 0.06), 0 1px 3px rgba(8, 25, 46, 0.08);
    --shadow: 0 6px 18px rgba(8, 25, 46, 0.08);
    --shadow-lg: 0 18px 44px rgba(8, 25, 46, 0.14);
    --focus: 0 0 0 3px rgba(245, 158, 11, 0.55);
    --transition: 160ms ease;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

img {
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.6em;
    line-height: 1.25;
    color: var(--navy-800);
    font-weight: 700;
    letter-spacing: -0.01em;
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }

p {
    margin: 0 0 1em;
}

a {
    color: var(--navy-600);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--amber-600);
}

ul, ol {
    margin: 0 0 1em;
    padding-left: 1.2em;
}

:focus-visible {
    outline: 3px solid var(--amber-500);
    outline-offset: 2px;
    border-radius: 3px;
}

::selection {
    background: var(--amber-100);
    color: var(--navy-900);
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    padding: clamp(2.6rem, 5vw, 4.5rem) 0;
}

.section--surface {
    background: var(--surface);
}

.section--tight {
    padding: clamp(1.8rem, 3vw, 2.6rem) 0;
}

.section__head {
    max-width: 760px;
    margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}

.section__head--space {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    max-width: none;
}

.section__head--space h2 {
    margin-bottom: 0;
}

.section__head--center {
    margin-inline: auto;
    text-align: center;
}

.section__eyebrow {
    display: inline-block;
    margin-bottom: 0.6rem;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--amber-600);
}

.section__lead {
    color: var(--text-muted);
    font-size: var(--text-lg);
    margin-bottom: 0;
}

.grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.72rem 1.3rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background: var(--amber-500);
    border-color: var(--amber-500);
    color: var(--navy-900);
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover,
.btn--primary:focus {
    background: var(--amber-600);
    border-color: var(--amber-600);
    color: var(--navy-900);
}

.btn--secondary {
    background: var(--navy-700);
    border-color: var(--navy-700);
    color: var(--white);
}

.btn--secondary:hover,
.btn--secondary:focus {
    background: var(--navy-600);
    border-color: var(--navy-600);
    color: var(--white);
}

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

.btn--outline:hover,
.btn--outline:focus {
    border-color: var(--navy-700);
    color: var(--navy-800);
    background: var(--surface);
}

.btn--ghost-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: var(--white);
}

.btn--ghost-light:hover,
.btn--ghost-light:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--white);
    color: var(--white);
}

.btn--block {
    width: 100%;
}

.btn--sm {
    padding: 0.5rem 0.9rem;
    font-size: var(--text-xs);
}

.btn--lg {
    padding: 0.95rem 1.75rem;
    font-size: 1.02rem;
}

.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ---------- Badges ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.4;
    white-space: nowrap;
}

.badge--ongoing {
    background: var(--amber-100);
    color: #8a5200;
}

.badge--completed {
    background: var(--green-100);
    color: var(--green-600);
}

.badge--upcoming {
    background: var(--blue-100);
    color: var(--blue-600);
}

.badge--muted {
    background: var(--surface-2);
    color: var(--text-muted);
}

.badge--solid {
    background: var(--amber-500);
    color: var(--navy-900);
}

/* ---------- Cards ---------- */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.35rem;
    height: 100%;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.card--hover:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    border-color: #c9d6e4;
}

.card__title {
    font-size: var(--text-lg);
    margin-bottom: 0.45rem;
}

.card__text {
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-bottom: 0;
}

.service-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-card__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--navy-800);
    color: var(--amber-500);
}

.service-card__link {
    margin-top: auto;
    font-size: var(--text-sm);
    font-weight: 700;
    text-decoration: none;
}

.service-card__link::after {
    content: " →";
}

/* ---------- Forms ---------- */
.field {
    margin-bottom: 1.15rem;
}

.label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--navy-800);
}

.required {
    color: var(--red-600);
}

.input,
.textarea,
.select {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text);
    font-family: inherit;
    font-size: var(--text-base);
    line-height: 1.5;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.input:hover,
.textarea:hover,
.select:hover {
    border-color: #c3d0de;
}

.input:focus,
.textarea:focus,
.select:focus {
    outline: none;
    border-color: var(--amber-500);
    box-shadow: var(--focus);
}

.textarea {
    min-height: 150px;
    resize: vertical;
}

.hint {
    display: block;
    margin-top: 0.35rem;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.error-text {
    display: block;
    margin-top: 0.3rem;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--red-600);
}

/* ---------- Alerts ---------- */
.alert {
    padding: 0.85rem 1.1rem;
    border: 1px solid transparent;
    border-left-width: 4px;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    margin-bottom: 1rem;
}

.alert--success {
    background: var(--green-100);
    border-color: var(--green-600);
    color: #14532d;
}

.alert--error,
.alert--danger {
    background: var(--red-100);
    border-color: var(--red-600);
    color: #7f1d1d;
}

.alert--info {
    background: var(--blue-100);
    border-color: var(--blue-600);
    color: #1e3a8a;
}

.alert--warning {
    background: var(--amber-100);
    border-color: var(--amber-600);
    color: #7c4300;
}

.flash-stack {
    padding-top: 1rem;
}

/* ---------- Progress ---------- */
.progress {
    height: 8px;
    border-radius: 999px;
    background: var(--surface-2);
    overflow: hidden;
}

.progress__bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--amber-500), var(--amber-600));
}

/* ---------- Top bar ---------- */
.topbar {
    background: var(--navy-900);
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--text-xs);
}

.topbar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem 1rem;
    padding-block: 0.45rem;
}

.topbar__note {
    margin: 0;
}

.topbar__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.topbar a {
    color: inherit;
    text-decoration: none;
}

.topbar a:hover {
    color: var(--amber-500);
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.site-header.is-scrolled {
    box-shadow: var(--shadow);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 72px;
    padding-block: 0.55rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
    margin-right: auto;
}

.brand__mark {
    width: auto;
    height: 52px;
    max-width: 150px;
    flex: 0 0 auto;
    object-fit: contain;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand__name {
    max-width: 17rem;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.25;
    color: var(--navy-800);
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.brand__legal {
    font-size: 0.75rem;
    line-height: 1.3;
    color: var(--text-muted);
}

@media (min-width: 900px) {
    .brand__name {
        font-size: 1rem;
    }
}

.site-nav {
    display: none;
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__link {
    display: inline-block;
    padding: 0.5rem 0.65rem;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    color: var(--navy-800);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.site-nav__link:hover {
    background: var(--surface);
    color: var(--navy-900);
}

.site-nav__link.is-active {
    color: var(--amber-600);
}

.site-nav__link.is-active::after {
    content: "";
    display: block;
    height: 2px;
    margin-top: 2px;
    background: var(--amber-500);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.header-cta {
    display: none;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: var(--text-xs);
    font-weight: 700;
}

.lang-switch__link {
    padding: 0.25rem 0.35rem;
    border-radius: 4px;
    color: var(--text-muted);
    text-decoration: none;
}

.lang-switch__link:hover {
    color: var(--navy-800);
    background: var(--surface);
}

.lang-switch__link.is-active {
    color: var(--navy-900);
    background: var(--amber-100);
}

.lang-switch__sep {
    color: var(--border);
}

.lang-switch--block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
    font-size: var(--text-sm);
}

.lang-switch--block .lang-switch__link {
    padding: 0.5rem;
    text-align: center;
    border: 1px solid var(--border);
}

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    padding: 0 9px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
}

.nav-toggle__bar {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--navy-800);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

@media (min-width: 1100px) {
    .site-nav {
        display: block;
    }

    .header-cta {
        display: inline-flex;
    }

    .nav-toggle {
        display: none;
    }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.mobile-menu__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0.75rem var(--gutter) 1.25rem;
}

.mobile-menu__list {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.mobile-menu__link {
    display: block;
    padding: 0.7rem 0.25rem;
    border-bottom: 1px solid var(--border);
    color: var(--navy-800);
    font-weight: 600;
    text-decoration: none;
}

.mobile-menu__link.is-active {
    color: var(--amber-600);
}

.mobile-menu__foot {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 1100px) {
    .mobile-menu {
        display: none;
    }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 480px at 6% -10%, rgba(245, 158, 11, 0.36), transparent 62%),
        radial-gradient(1200px 640px at 88% -14%, rgba(251, 191, 36, 0.34), transparent 66%),
        linear-gradient(150deg, var(--navy-800) 0%, var(--navy-600) 52%, #1c4c7c 100%);
    color: var(--text-invert);
    padding: clamp(2.8rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5.5rem);
}

.hero--image {
    background-color: var(--navy-700);
    background-image:
        linear-gradient(120deg, rgba(6, 16, 30, 0.88) 0%, rgba(6, 16, 30, 0.7) 45%, rgba(6, 16, 30, 0.46) 100%),
        var(--hero-image);
    background-position: center, center;
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
}

.hero--image::after {
    display: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent 80%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent 80%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: clamp(2rem, 4vw, 3.25rem);
    align-items: center;
}

@media (min-width: 1000px) {
    .hero__inner {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    }
}

.hero__copy {
    max-width: 680px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.15rem;
    padding: 0.38rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--amber-100);
}

.hero__eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
    flex: none;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 0.9rem;
    font-size: clamp(2.3rem, 1.55rem + 3.1vw, 3.85rem);
    line-height: 1.06;
    letter-spacing: -0.022em;
    text-wrap: balance;
    text-shadow: 0 2px 14px rgba(3, 10, 20, 0.45);
}

.hero__lead {
    font-size: clamp(1.02rem, 0.95rem + 0.45vw, 1.22rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    max-width: 56ch;
    margin-bottom: 1.9rem;
    text-shadow: 0 1px 8px rgba(3, 10, 20, 0.4);
}

.hero__location {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.75rem 0 0;
    padding: 0.5rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: var(--text-sm);
}

.hero__location svg {
    color: var(--amber-500);
    flex: none;
}

.hero__card {
    position: relative;
    overflow: hidden;
    padding: clamp(1.25rem, 2.4vw, 1.9rem);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.06));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 20px 48px rgba(3, 10, 20, 0.32);
}

.hero__card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--amber-500), rgba(245, 158, 11, 0));
}

.hero__card-label {
    display: block;
    margin-bottom: 1.05rem;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber-500);
}

.hero__facts {
    display: grid;
    gap: 0.9rem;
    margin: 0;
}

.hero__fact {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__fact:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.hero__fact dt {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
}

.hero__fact dd {
    margin: 0;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--white);
    text-align: right;
}

.hero__card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.15rem;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--amber-500);
    text-decoration: none;
}

.hero__card-link:hover {
    color: var(--amber-100);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.4rem;
    margin: 1.8rem 0 0;
    padding: 0;
    list-style: none;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.86);
}

.hero__meta li::before {
    content: "✓";
    color: var(--amber-500);
    margin-right: 0.4rem;
    font-weight: 700;
}

/* ---------- Home about ---------- */
.home-about {
    display: grid;
    gap: clamp(1.75rem, 4vw, 3.5rem);
    align-items: start;
}

@media (min-width: 980px) {
    .home-about {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    }
}

.home-about__copy {
    max-width: 640px;
}

.home-about h2 {
    margin-bottom: 0.85rem;
}

.home-about .section__lead {
    margin-bottom: 1.6rem;
}

.home-about__panel {
    display: grid;
    gap: 1rem;
}

.home-note {
    display: flex;
    gap: 1rem;
    padding: clamp(1.1rem, 2vw, 1.5rem);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.home-note__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--amber-100);
    color: var(--amber-600);
}

.home-note h3 {
    margin: 0 0 0.35rem;
    font-size: var(--text-base);
}

.home-note p {
    margin: 0;
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--text-muted);
}

/* ---------- Offices ---------- */
.offices {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 760px) {
    .offices {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.office-card {
    display: flex;
    gap: 1rem;
    padding: clamp(1.1rem, 2vw, 1.5rem);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.office-card__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--navy-900);
    color: var(--amber-500);
}

.office-card h3 {
    margin: 0 0 0.35rem;
    font-size: var(--text-base);
}

.office-card p {
    margin: 0;
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--text-muted);
}

.office-card p + p {
    margin-top: 0.5rem;
}

.office-card__contact span {
    font-weight: 600;
    color: var(--navy-800);
}

/* ---------- Stats ---------- */
.stats {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

@media (min-width: 800px) {
    .stats__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.stat {
    background: var(--white);
    padding: 1.35rem 1.15rem;
    text-align: center;
}

.stat__value {
    display: block;
    font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--navy-800);
}

.stat__label {
    display: block;
    margin-top: 0.35rem;
    font-size: var(--text-xs);
    color: var(--text-muted);
    line-height: 1.45;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-900);
    color: rgba(255, 255, 255, 0.76);
    font-size: var(--text-sm);
    padding-top: clamp(2.2rem, 4vw, 3.5rem);
}

.footer__grid {
    display: grid;
    gap: 2rem;
    padding-bottom: 2.2rem;
}

@media (min-width: 640px) {
    .footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1000px) {
    .footer__grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
        gap: 2.5rem;
    }
}

.brand--footer .brand__name {
    color: var(--white);
}

.brand--footer .brand__legal {
    color: rgba(255, 255, 255, 0.65);
}

.footer__text {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer__meta {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.62);
}

.footer__heading {
    margin-bottom: 0.9rem;
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
}

.footer__links,
.footer__contact {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.footer__links a,
.footer__contact a {
    color: rgba(255, 255, 255, 0.76);
    text-decoration: none;
}

.footer__links a:hover,
.footer__contact a:hover {
    color: var(--amber-500);
    text-decoration: underline;
}

.footer__contact-label {
    display: block;
    font-size: var(--text-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.footer__social {
    margin-top: 1.1rem;
}

.footer__social-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: var(--text-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.social-list {
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.social-list__link {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.85);
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.social-list__link:hover {
    background: var(--amber-500);
    border-color: var(--amber-500);
    color: var(--navy-900);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-block: 1rem;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.55);
}

.footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.35rem 1.5rem;
}

.footer__bottom p {
    margin: 0;
}

/* ---------- Floating actions ---------- */
.float-actions {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    display: grid;
    gap: 0.6rem;
}

.float-btn {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition), box-shadow var(--transition);
}

.float-btn:hover {
    transform: translateY(-2px) scale(1.03);
    color: var(--white);
}

.float-btn--whatsapp {
    background: #1f9d55;
    border: 1px solid #17864a;
}

.float-btn--call {
    background: var(--navy-700);
    border: 1px solid var(--navy-600);
}

@media (min-width: 900px) {
    .float-actions {
        right: 1.5rem;
        bottom: 1.5rem;
    }
}

/* ---------- Misc ---------- */
.page-hero {
    background: var(--navy-800);
    color: var(--white);
    padding: clamp(2rem, 4vw, 3.2rem) 0;
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: 0.4rem;
}

.page-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    max-width: 65ch;
}

.prose :last-child {
    margin-bottom: 0;
}

/* Rich text is stored as paragraphs, so reset the outer paragraph spacing. */
.hero__lead p,
.section__lead p,
.card__text p,
.footer__text p {
    margin: 0;
}

.hero__lead p + p,
.section__lead p + p,
.card__text p + p,
.footer__text p + p {
    margin-top: 0.6rem;
}

.rich-body ul,
.rich-body ol,
.prose ul,
.prose ol {
    margin: 0 0 1rem;
    padding-left: 1.4rem;
}

.rich-body li,
.prose li {
    margin-bottom: 0.35rem;
}

.empty-state {
    padding: 2.5rem 1.5rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    text-align: center;
    color: var(--text-muted);
}

.skip-link {
    position: absolute;
    left: 0.75rem;
    top: -100px;
    z-index: 100;
    padding: 0.65rem 1rem;
    background: var(--amber-500);
    color: var(--navy-900);
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: top var(--transition);
}

.skip-link:focus {
    top: 0.75rem;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.text-muted {
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }

.setup-notice {
    border: 1px solid var(--amber-600);
    border-left-width: 5px;
    border-radius: var(--radius-sm);
    background: var(--amber-100);
    padding: 1rem 1.15rem;
    margin-top: 1.5rem;
    font-size: var(--text-sm);
    color: #6b3d00;
}

.setup-notice strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #543000;
}

/* ---------- Inner pages (Phase 2) ---------- */
.link-back {
    display: inline-block;
    margin-bottom: 0.85rem;
    font-size: var(--text-sm);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.link-back:hover {
    color: var(--amber-500);
}

.page-hero .section__eyebrow {
    color: var(--amber-500);
}

.page-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 0.9rem;
    margin-top: 1rem;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.72);
}

.split {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: 1fr;
    align-items: start;
}

@media (min-width: 900px) {
    .split {
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
        gap: 2.5rem;
    }
}

.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem;
}

.info-card__title {
    font-size: var(--text-lg);
    margin-bottom: 0.9rem;
}

.info-card .btn {
    margin-top: 1.25rem;
}

.meta-list {
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

.meta-list__row {
    display: grid;
    gap: 0.15rem;
}

.meta-list dt {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.meta-list dd {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text);
}

.meta-list__percent {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--navy-700);
}

.meta-list .progress {
    margin-top: 0.3rem;
}

.cta-band {
    display: grid;
    gap: 1.25rem;
    align-items: center;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
    box-shadow: var(--shadow);
    color: rgba(255, 255, 255, 0.82);
}

.cta-band h2 {
    color: var(--white);
    margin-bottom: 0.35rem;
}

.cta-band p {
    margin: 0;
}

@media (min-width: 820px) {
    .cta-band {
        grid-template-columns: minmax(0, 1.6fr) auto;
        padding-inline: clamp(1.75rem, 3vw, 2.5rem);
    }

    .cta-band .btn {
        justify-self: end;
    }
}

/* ---------- Project filters ---------- */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.filters__link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--white);
    color: var(--navy-700);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.filters__link:hover {
    border-color: var(--amber-500);
    color: var(--navy-900);
}

.filters__link.is-active {
    background: var(--navy-800);
    border-color: var(--navy-800);
    color: var(--white);
}

.filters__count {
    font-size: var(--text-xs);
    opacity: 0.7;
}

/* ---------- Project cards ---------- */
.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.project-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    border-color: #c9d6e4;
}

.project-card__media {
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--surface-2);
    overflow: hidden;
}

.project-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1.1rem 1.2rem 1.3rem;
}

.project-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.project-card__cat {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--amber-600);
}

.project-card__title {
    font-size: var(--text-lg);
    margin: 0;
}

.project-card__title a {
    color: inherit;
    text-decoration: none;
}

.project-card__title a:hover {
    color: var(--amber-600);
}

.project-card__progress {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.25rem;
}

.project-card__progress .progress {
    flex: 1;
}

.project-card__percent {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--navy-700);
}

.project-card__footer {
    margin-top: auto;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.service-card--wide .card__text {
    font-size: var(--text-base);
}

/* ---------- Team page ---------- */
.team-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.team-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.team-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.team-card__media {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    background: linear-gradient(150deg, var(--navy-800), var(--navy-600));
}

.team-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card__initials {
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--amber-500);
}

.team-card__body {
    padding: 1rem 1.2rem 1.25rem;
}

.team-card__name {
    margin: 0 0 0.25rem;
    font-size: var(--text-lg);
    color: var(--navy-800);
}

.team-card__role {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ---------- Companies page ---------- */
.company-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.company-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.company-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.company-card__media {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    padding: 0.75rem;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.company-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.company-card__initials {
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--navy-800);
}

.company-card__body {
    padding: 1rem 1.2rem 1.25rem;
}

.company-card__name {
    margin: 0 0 0.35rem;
    font-size: var(--text-lg);
    color: var(--navy-800);
}

.company-card__phone {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.company-card__phone span {
    font-weight: 600;
    color: var(--navy-800);
}

.company-card__phone a {
    color: var(--navy-800);
}

/* ---------- Project facts strip ---------- */
.page-hero--facts {
    padding-bottom: clamp(3.4rem, 6vw, 4.6rem);
}

.project-facts-wrap {
    position: relative;
    z-index: 2;
    margin-top: -2.1rem;
}

.project-facts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

@media (min-width: 700px) {
    .project-facts {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

.project-fact {
    padding: 1.05rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.project-fact:last-child {
    border-bottom: 0;
}

@media (min-width: 700px) {
    .project-fact {
        border-bottom: 0;
        border-right: 1px solid var(--border);
    }

    .project-fact:last-child {
        border-right: 0;
    }
}

.project-fact dt {
    margin-bottom: 0.3rem;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.project-fact dd {
    margin: 0;
    font-weight: 600;
    font-size: var(--text-base);
    color: var(--navy-800);
}

.project-fact--progress dd {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.project-fact--progress .progress {
    flex: 1;
    min-width: 70px;
    margin: 0;
}

.project-fact__percent {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: 700;
}

/* ---------- Project detail ---------- */
.detail {
    display: block;
}

.detail__main {
    max-width: 900px;
    margin-inline: auto;
}

.detail__main > h2 {
    margin-top: 2rem;
}

.detail__main > h2:first-child {
    margin-top: 0;
}

.detail__cover {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 1.75rem;
}

.photo-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    margin-bottom: 1.5rem;
}

.photo-grid__item {
    margin: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.photo-grid__item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.photo-grid__item figcaption {
    padding: 0.55rem 0.75rem;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.photo-grid--small {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.photo-grid--small img {
    border-radius: var(--radius-sm);
}

/* ---------- Timeline ---------- */
.timeline {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.4rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0.3rem;
    top: 0.4rem;
    bottom: 0.4rem;
    width: 2px;
    background: var(--border);
}

.timeline__item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline__item:last-child {
    margin-bottom: 0;
}

.timeline__dot {
    position: absolute;
    left: -1.4rem;
    top: 0.45rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--amber-500);
    box-shadow: 0 0 0 3px var(--white), 0 0 0 4px var(--amber-500);
}

.timeline__body p {
    margin: 0.4rem 0 0;
}

.timeline__date {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ---------- Contact ---------- */
.contact-info {
    display: grid;
    gap: 1rem;
}

.contact-layout {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: 1fr;
    align-items: start;
}

@media (min-width: 920px) {
    .contact-layout {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        gap: 2.25rem;
    }
}

.contact-form-card {
    padding: clamp(1.35rem, 2.5vw, 1.9rem);
}

.contact-form-card h2 {
    font-size: var(--text-xl);
    margin-bottom: 1rem;
}

.form-grid {
    display: grid;
    gap: 0 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.map-embed {
    margin-top: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.map-embed iframe {
    display: block;
    width: 100%;
    height: 260px;
    border: 0;
}

/* ---------- Gallery ---------- */
.gallery-grid {
    display: grid;
    gap: 1.15rem;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.gallery-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.gallery-item__link {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--surface-2);
    overflow: hidden;
}

.gallery-item__link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 320ms ease;
}

.gallery-item__link:hover img {
    transform: scale(1.03);
}

.gallery-item__zoom {
    position: absolute;
    right: 0.6rem;
    bottom: 0.6rem;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(8, 25, 46, 0.78);
    color: var(--amber-500);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
}

.gallery-item__meta {
    padding: 0.75rem 0.9rem 0.9rem;
}

.gallery-item__cat {
    display: inline-block;
    margin-bottom: 0.2rem;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--amber-600);
}

.gallery-item__caption {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ---------- Lightbox ---------- */
.lightbox {
    position: relative;
    width: min(1100px, 94vw);
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--white);
}

.lightbox::backdrop {
    background: rgba(8, 25, 46, 0.9);
}

.lightbox__img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    background: var(--navy-800);
}

.lightbox__caption {
    margin: 0;
    padding: 0.85rem 0.25rem 0;
    font-size: var(--text-sm);
    text-align: center;
    color: rgba(255, 255, 255, 0.82);
}

.lightbox__close {
    position: absolute;
    top: -2.6rem;
    right: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: transparent;
    color: var(--white);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ---------- News list ---------- */
.news-list {
    display: grid;
    gap: 1rem;
}

.news-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 1.35rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--amber-500);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), border-color var(--transition);
}

.news-card:hover {
    box-shadow: var(--shadow);
}

.news-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.news-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.news-card__title {
    margin: 0;
    font-size: var(--text-lg);
}

.news-card__title a {
    color: inherit;
    text-decoration: none;
}

.news-card__title a:hover {
    color: var(--amber-600);
}

.news-card .card__text {
    margin: 0;
}

.news-card__link {
    margin-top: 0.15rem;
    font-size: var(--text-sm);
    font-weight: 700;
    text-decoration: none;
}

.news-card__link::after {
    content: " →";
}

/* ---------- News detail ---------- */
.post-wrap {
    max-width: 780px;
}

.post-body {
    font-size: var(--text-lg);
    line-height: 1.75;
    color: var(--text);
}

.post-body h2 {
    margin-top: 1.8em;
    font-size: var(--text-2xl);
}

.post-body h3 {
    margin-top: 1.6em;
    font-size: var(--text-xl);
}

.post-body p,
.post-body ul,
.post-body ol {
    margin-bottom: 1.1em;
}

.post-body ul,
.post-body ol {
    padding-left: 1.35em;
}

.post-body li {
    margin-bottom: 0.4em;
}

.post-body img {
    margin: 1.5rem 0;
    border-radius: var(--radius-sm);
}

.post-body blockquote {
    margin: 1.5rem 0;
    padding: 0.75rem 1.25rem;
    border-left: 4px solid var(--amber-500);
    background: var(--surface);
    color: var(--text-muted);
}

.post-body table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.post-body th,
.post-body td {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    text-align: left;
}

.post-body th {
    background: var(--surface);
}

/* ---------- Documents ---------- */
.doc-list {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.doc-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.doc-card__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--navy-700);
}

.doc-card__body {
    flex: 1;
    min-width: 0;
}

.doc-card__title {
    margin: 0 0 0.15rem;
    font-size: var(--text-base);
}

.doc-card__type {
    font-size: var(--text-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
