/* ================================================
   GRUPO LEGAL RODRÍGUEZ & ASOCIADOS
   Main Stylesheet — v1.0
   ================================================ */

/* ---------- Custom Properties ---------- */
:root {
    --navy:       #1B2A4A;
    --navy-dark:  #111d33;
    --navy-mid:   #1e3259;
    --gold:       #C9A84C;
    --gold-light: #dbbe6f;
    --gold-dark:  #a88838;
    --white:      #ffffff;
    --off-white:  #f9f7f3;
    --light-gray: #f0ede8;
    --mid-gray:   #888888;
    --dark-text:  #1c1c1c;
    --body-text:  #4a4a4a;

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans:  'Lato', 'Helvetica Neue', Arial, sans-serif;

    --sp-xs:  0.5rem;
    --sp-sm:  1rem;
    --sp-md:  1.5rem;
    --sp-lg:  2.5rem;
    --sp-xl:  4rem;
    --sp-2xl: 6rem;

    --radius:     4px;
    --radius-md:  8px;
    --shadow-sm:  0 2px 10px rgba(27, 42, 74, 0.07);
    --shadow-md:  0 8px 32px rgba(27, 42, 74, 0.13);
    --shadow-lg:  0 20px 60px rgba(27, 42, 74, 0.20);
    --transition: 0.3s ease;
    --transition-slow: 0.6s ease;

    --max-width:     1200px;
    --header-height: 82px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-sans);
    color: var(--body-text);
    background-color: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button  { cursor: pointer; border: none; background: none; }
address { font-style: normal; }
input, textarea, select { font-family: var(--font-sans); font-size: 1rem; }

/* ---------- Utility ---------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.75rem;
}

.section { padding: var(--sp-2xl) 0; }

.section__header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--sp-xl);
}

.section__eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.section__title {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: var(--sp-sm);
}

.section__subtitle {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.8;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2.25rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn--gold {
    background-color: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}
.btn--gold:hover {
    background-color: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.38);
}

.btn--outline {
    background-color: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.45);
}
.btn--outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

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

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================
   HEADER / NAV
   ================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 900;
    background-color: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(27, 42, 74, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow var(--transition), background-color var(--transition);
}
.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- Logo --- */
.nav__logo { display: flex; align-items: center; }

.logo {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.logo__monogram {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
}

.logo__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.logo__firm {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.38em;
    color: var(--navy);
    line-height: 1;
}

.logo--inverted .logo__firm { color: var(--white); }

.logo__divider {
    display: flex;
    align-items: center;
    gap: 7px;
}

.logo__line {
    display: block;
    width: 16px;
    height: 1px;
    background-color: var(--gold);
    flex-shrink: 0;
}

.logo__name {
    font-family: var(--font-sans);
    font-size: 0.54rem;
    font-weight: 400;
    letter-spacing: 0.17em;
    color: var(--gold);
    white-space: nowrap;
    line-height: 1;
}

/* --- Nav Links --- */
.nav__menu {
    display: flex;
    align-items: center;
    gap: var(--sp-lg);
}

.nav__link {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy);
    transition: color var(--transition);
    position: relative;
    padding-bottom: 2px;
}
.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--gold);
    transition: width var(--transition);
}
.nav__link:hover        { color: var(--gold); }
.nav__link:hover::after { width: 100%; }
.nav__link.is-active    { color: var(--gold); }
.nav__link.is-active::after { width: 100%; }

.nav__link--cta {
    background-color: var(--navy);
    color: var(--white) !important;
    padding: 0.55rem 1.35rem 0.55rem;
    border-radius: var(--radius);
    transition: background-color var(--transition), transform var(--transition);
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover  {
    background-color: var(--gold);
    color: var(--navy) !important;
    transform: translateY(-1px);
}

/* --- Hamburger --- */
.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    z-index: 1001;
}
.nav__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--navy);
    transition: var(--transition);
    transform-origin: center;
}
.nav__hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ================================================
   HERO
   ================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--navy-dark);
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero__bg-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hero__bg-decor svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Subtle diagonal line texture */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            -45deg,
            transparent 0px,
            transparent 58px,
            rgba(201, 168, 76, 0.018) 58px,
            rgba(201, 168, 76, 0.018) 59px
        );
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    padding-top: var(--sp-2xl);
    padding-bottom: var(--sp-2xl);
    max-width: 780px;
}

.hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--sp-md);
}
.hero__eyebrow::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--gold);
    flex-shrink: 0;
}

.hero__title {
    font-family: var(--font-serif);
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    color: var(--white);
    line-height: 1.13;
    margin-bottom: var(--sp-md);
    font-weight: 600;
}
.hero__title em {
    color: var(--gold);
    font-style: italic;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.68);
    max-width: 560px;
    line-height: 1.85;
    margin-bottom: var(--sp-lg);
}

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

.hero__scroll {
    position: absolute;
    bottom: 2.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    animation: heroScroll 2.8s ease-in-out infinite;
    z-index: 2;
    transition: color var(--transition);
}
.hero__scroll:hover { color: var(--gold); }
.hero__scroll svg { width: 18px; height: 18px; }

@keyframes heroScroll {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    55%       { transform: translateX(-50%) translateY(9px); }
}


/* ================================================
   METRICS — Resultados Reales
   ================================================ */
.metrics {
    background-color: var(--navy);
    padding: var(--sp-xl) 0;
    position: relative;
    overflow: hidden;
}

/* Subtle top & bottom gold border */
.metrics::before,
.metrics::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,0.35), transparent);
}
.metrics::before { top: 0; }
.metrics::after  { bottom: 0; }

.metrics__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    text-align: center;
}

.metric {
    padding: var(--sp-lg) var(--sp-md);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
}

/* Vertical dividers between items */
.metric + .metric::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 55%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(201,168,76,0.25), transparent);
}

.metric__icon {
    width: 40px;
    height: 40px;
    color: var(--gold);
    opacity: 0.75;
}
.metric__icon svg { width: 100%; height: 100%; }

.metric__value {
    line-height: 1;
}

.metric__number,
.metric__suffix {
    font-family: var(--font-serif);
    font-size: clamp(2.6rem, 4vw, 3.6rem);
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    display: inline;
}

.metric__label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
}

/* Responsive metrics */
@media (max-width: 768px) {
    .metrics__grid { grid-template-columns: repeat(2, 1fr); }
    .metric + .metric::before { display: none; }
    .metric {
        padding: var(--sp-md) var(--sp-sm);
        border-bottom: 1px solid rgba(201,168,76,0.1);
    }
    .metric:nth-child(1),
    .metric:nth-child(2) { border-bottom: 1px solid rgba(201,168,76,0.1); }
    .metric:nth-child(3),
    .metric:nth-child(4) { border-bottom: none; }
}

@media (max-width: 480px) {
    .metrics__grid { grid-template-columns: repeat(2, 1fr); }
    .metric__number,
    .metric__suffix { font-size: 2.2rem; }
}


/* ================================================
   SERVICES
   ================================================ */
.services { background-color: var(--off-white); }

.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    background-color: var(--white);
    border: 1px solid rgba(27, 42, 74, 0.07);
    border-radius: var(--radius-md);
    padding: 2.25rem 1.875rem 2rem;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s ease;
}

.service-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-lg);
}
.service-card:hover::after { transform: scaleX(1); }

.service-card__icon {
    width: 50px;
    height: 50px;
    color: var(--gold);
    margin-bottom: 1.375rem;
}
.service-card__icon svg { width: 100%; height: 100%; }

.service-card__title {
    font-family: var(--font-serif);
    font-size: 1.18rem;
    color: var(--navy);
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

.service-card__text {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.375rem;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    word-break: break-word;
    overflow-wrap: break-word;
}

.service-card__link {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    color: var(--gold-dark);
    transition: color var(--transition), letter-spacing var(--transition);
    display: inline-block;
}
.service-card__link:hover {
    color: var(--gold);
    letter-spacing: 0.1em;
}


/* ================================================
   ABOUT
   ================================================ */
.about { background-color: var(--white); }

.about__grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: var(--sp-2xl);
    align-items: center;
}

.about__visual { position: relative; }

.about__frame {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(201, 168, 76, 0.18);
    line-height: 0;
}
.about__seal svg { width: 100%; height: auto; display: block; }

.about__badge {
    position: absolute;
    bottom: -1.75rem;
    right: -1.75rem;
    background-color: var(--gold);
    color: var(--navy);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
    z-index: 2;
    min-width: 120px;
}

.about__badge-num,
.about__badge-suffix {
    font-family: var(--font-serif);
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1;
    display: inline;
}

.about__badge-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 5px;
    line-height: 1.3;
}

.about__content { padding-left: var(--sp-sm); }

.about__text {
    color: #565656;
    line-height: 1.85;
    margin-bottom: var(--sp-sm);
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.about__stats {
    display: flex;
    gap: var(--sp-lg);
    margin-top: var(--sp-lg);
    padding-top: var(--sp-lg);
    border-top: 1px solid rgba(27, 42, 74, 0.09);
    flex-wrap: wrap;
}

.stat { display: block; }

.stat__number,
.stat__suffix {
    font-family: var(--font-serif);
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    display: inline;
}

.stat__label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--navy);
    margin-top: 6px;
    line-height: 1.4;
}


/* ================================================
   WHY US
   ================================================ */
.why-us {
    background-color: var(--navy);
    background-image:
        repeating-linear-gradient(
            -45deg,
            transparent 0, transparent 70px,
            rgba(201, 168, 76, 0.022) 70px, rgba(201, 168, 76, 0.022) 71px
        );
}

.why-us .section__eyebrow { color: var(--gold); }
.why-us .section__title   { color: var(--white); }
.why-us .section__subtitle { color: rgba(255,255,255,0.58); }

.why-us__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.why-card {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.14);
    border-radius: var(--radius-md);
    padding: 2.25rem 1.875rem;
    transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}
.why-card:hover {
    background-color: rgba(255, 255, 255, 0.075);
    border-color: rgba(201, 168, 76, 0.42);
    transform: translateY(-5px);
}

.why-card__icon {
    width: 48px;
    height: 48px;
    color: var(--gold);
    background-color: rgba(201, 168, 76, 0.10);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px;
    margin-bottom: 1.375rem;
}
.why-card__icon svg { width: 100%; height: 100%; }

.why-card__title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

.why-card__text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.8;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}


/* ================================================
   CONTACT
   ================================================ */
.contact { background-color: var(--off-white); }

.contact__grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: var(--sp-2xl);
    align-items: start;
}

/* Contact info */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.125rem;
    margin-bottom: 1.875rem;
}

.contact-item__icon {
    width: 44px;
    height: 44px;
    background-color: var(--navy);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 10px;
}
.contact-item__icon svg { width: 100%; height: 100%; }

.contact-item h4 {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--navy);
    margin-bottom: 2px;
    font-weight: 600;
}
.contact-item p {
    font-size: 0.875rem;
    color: #666;
}

.contact__quote {
    margin-top: var(--sp-lg);
    padding: 1.375rem 1.5rem;
    border-left: 3px solid var(--gold);
    background-color: rgba(27, 42, 74, 0.04);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.contact__quote blockquote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.975rem;
    color: var(--navy);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}
.contact__quote cite {
    font-size: 0.75rem;
    color: var(--gold-dark);
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Form */
.contact__form {
    background-color: var(--white);
    border: 1px solid rgba(27, 42, 74, 0.08);
    border-radius: var(--radius-md);
    padding: 2.75rem 2.5rem;
    box-shadow: var(--shadow-sm);
}

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

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 7px;
}
.form-group label span { color: var(--gold); }

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid rgba(27, 42, 74, 0.14);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--dark-text);
    background-color: var(--off-white);
    transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--gold);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.14);
}

.form-group input.is-error,
.form-group textarea.is-error {
    border-color: #c62828;
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.1);
}

.form-error {
    display: block;
    font-size: 0.73rem;
    color: #c62828;
    margin-top: 5px;
    min-height: 18px;
    line-height: 1.4;
}

.form-group textarea {
    resize: vertical;
    min-height: 135px;
    line-height: 1.7;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2A4A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 16px;
    padding-right: 2.75rem;
}

.form-privacy {
    font-size: 0.72rem;
    color: var(--mid-gray);
    text-align: center;
    margin-top: 1rem;
    line-height: 1.6;
}

/* Submit loading state */
.btn--loading {
    opacity: 0.75;
    pointer-events: none;
    cursor: default;
}

/* Success message */
.form-success {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background-color: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: var(--radius);
    padding: 1.125rem 1.25rem;
    margin-top: 1rem;
    color: #2e7d32;
    font-size: 0.875rem;
    line-height: 1.6;
    animation: fadeUp 0.4s ease forwards;
}
.form-success svg { flex-shrink: 0; margin-top: 1px; }
.form-success strong { display: block; margin-bottom: 2px; }


/* ================================================
   BLOG — Actualidad Jurídica
   ================================================ */
.blog { background-color: var(--off-white); }

.blog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.blog-card {
    background-color: var(--white);
    border: 1px solid rgba(27, 42, 74, 0.07);
    border-radius: var(--radius-md);
    padding: 2rem 1.875rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.blog-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--navy), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.blog-card:hover::after { transform: scaleX(1); }

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

.blog-card__category {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    background-color: var(--navy);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    white-space: nowrap;
}

.blog-card__date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--mid-gray);
    white-space: nowrap;
}
.blog-card__date svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.blog-card__title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--navy);
    line-height: 1.4;
    font-weight: 600;
    flex-grow: 1;
}

.blog-card__excerpt {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.75;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    color: var(--gold-dark);
    margin-top: auto;
    transition: color var(--transition), gap var(--transition);
}
.blog-card__link svg {
    width: 15px;
    height: 15px;
    transition: transform var(--transition);
}
.blog-card__link:hover { color: var(--gold); }
.blog-card__link:hover svg { transform: translateX(4px); }

/* Responsive blog */
@media (max-width: 900px) {
    .blog__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .blog__grid { grid-template-columns: 1fr; }
}


/* ================================================
   FOOTER
   ================================================ */
.footer {
    background-color: var(--navy-dark);
    color: rgba(255, 255, 255, 0.65);
    padding-top: var(--sp-2xl);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1.4fr;
    gap: var(--sp-lg);
    padding-bottom: var(--sp-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer__tagline {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 1.375rem;
    line-height: 1.75;
    max-width: 300px;
}

.footer__heading {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.25rem;
}

.footer__nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.footer__nav a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.52);
    transition: color var(--transition);
}
.footer__nav a:hover { color: var(--gold); }

.footer__contact-info p {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.52);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    flex-wrap: wrap;
}
.footer__bottom p,
.footer__bottom a {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    transition: color var(--transition);
}
.footer__bottom a:hover { color: var(--gold); }


/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}


/* ================================================
   RESPONSIVE — 1024px
   ================================================ */
@media (max-width: 1024px) {
    .services__grid,
    .why-us__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: var(--sp-xl);
    }
    .about__visual {
        max-width: 360px;
        margin: 0 auto;
    }
    .about__content { padding-left: 0; }
    .about__badge {
        bottom: -1.25rem;
        right: 1rem;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--sp-md);
    }
    .footer__brand { grid-column: 1 / -1; }
}

/* ================================================
   RESPONSIVE — 768px
   ================================================ */
@media (max-width: 768px) {
    :root {
        --header-height: 66px;
        --sp-2xl: 4rem;
        --sp-xl:  2.75rem;
        --sp-lg:  2rem;
    }

    /* ---- Mobile nav ---- */
    .nav__hamburger { display: flex; }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(300px, 82vw);
        height: 100dvh;
        background-color: var(--navy);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 2.5rem;
        gap: 1.875rem;
        transition: right 0.42s cubic-bezier(0.25, 0.8, 0.25, 1);
        box-shadow: -12px 0 48px rgba(0, 0, 0, 0.35);
        z-index: 1000;
    }
    .nav__menu.is-open { right: 0; }

    .nav__link {
        color: rgba(255,255,255,0.85);
        font-size: 1rem;
        letter-spacing: 0.14em;
    }
    .nav__link::after { background-color: var(--gold); }
    .nav__link:hover  { color: var(--gold); }

    .nav__link--cta {
        background-color: var(--gold);
        color: var(--navy) !important;
        padding: 0.75rem 2rem;
        width: 100%;
        text-align: center;
        border-radius: var(--radius);
    }
    .nav__link--cta:hover {
        background-color: var(--gold-light);
        color: var(--navy) !important;
    }

    /* ---- Hero ---- */
    .hero__content { text-align: center; padding-top: var(--sp-xl); padding-bottom: var(--sp-xl); }
    .hero__eyebrow { justify-content: center; }
    .hero__subtitle { margin: 0 auto var(--sp-lg); font-size: 1rem; }
    .hero__actions  { justify-content: center; }
    .hero__actions .btn { width: 100%; max-width: 280px; }

    /* ---- Services ---- */
    .services__grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .service-card   { padding: 1.75rem 1.375rem 1.5rem; }

    /* ---- Why us ---- */
    .why-us__grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .why-card     { padding: 1.75rem 1.375rem; }

    /* ---- About ---- */
    .about__stats { gap: var(--sp-md); }
    .about__content { padding-left: 0; }

    /* ---- Contact ---- */
    .contact__grid { grid-template-columns: 1fr; gap: var(--sp-xl); }
    .form-row      { grid-template-columns: 1fr; }
    .contact__form { padding: 1.875rem 1.375rem; }

    /* ---- Footer ---- */
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--sp-md);
    }
    .footer__brand  { grid-column: 1 / -1; }
    .footer__bottom { flex-direction: column; text-align: center; gap: 0.5rem; }

    /* Show compact logo text on mobile header */
    .logo__text { display: none; }

    /* Sections padding */
    .section { padding: var(--sp-2xl) 0; }
    .container { padding: 0 1.25rem; }
}

/* ================================================
   RESPONSIVE — 520px
   ================================================ */
@media (max-width: 520px) {
    :root {
        --sp-2xl: 3.25rem;
        --sp-xl:  2.25rem;
    }

    .services__grid,
    .why-us__grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .why-card { padding: 1.5rem 1.25rem; }

    .about__badge {
        position: static;
        display: inline-flex;
        align-items: center;
        gap: 0.75rem;
        margin-top: 1.25rem;
        padding: 0.875rem 1.25rem;
    }
    .about__badge-num,
    .about__badge-suffix { font-size: 1.75rem; }
    .about__badge-label  { margin-top: 0; }

    .hero__title   { font-size: 2rem; }
    .section__title { font-size: 1.65rem; }

    .btn { padding: 0.875rem 1.5rem; font-size: 0.78rem; }

    .footer__grid { grid-template-columns: 1fr; }

    .contact__form { padding: 1.5rem 1.125rem; }

    .about__stats { flex-direction: column; gap: 1.25rem; padding-top: var(--sp-md); }
    .stat__number, .stat__suffix { font-size: 1.75rem; }
}


/* ================================================
   MOBILE NAV OVERLAY
   ================================================ */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.52);
    z-index: 999;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: fadeIn 0.25s ease forwards;
}
.nav-overlay.is-visible { display: block; }
