/* ============================================================
   Fredyna Abogados — main stylesheet
   ============================================================ */

:root {
    --navy:        #1a3560;
    --navy-dark:   #0f2240;
    --navy-mid:    #1e4070;
    --gold:        #b8913a;
    --gold-light:  #f5ead6;
    --text:        #1c2333;
    --text-muted:  #5c6578;
    --bg:          #ffffff;
    --bg-alt:      #f7f8fc;
    --border:      #e2e6ef;
    --radius:      6px;
    --shadow:      0 2px 12px rgba(26, 53, 96, 0.08);
    --shadow-lg:   0 8px 32px rgba(26, 53, 96, 0.13);
    --container:   1000px;
    --header-h:    68px;
}

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: var(--navy); }

/* ---- Container ---- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    height: var(--header-h);
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    transition: box-shadow 0.2s;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Logo */
.logo { display: flex; flex-direction: column; line-height: 1.1; gap: 1px; }
.logo-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
}
.logo-tag {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Nav */
.site-nav { display: flex; align-items: center; }

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-list > li > a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.18s;
    position: relative;
    padding-bottom: 2px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.nav-list > li > a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0; right: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s;
}
.nav-list > li > a:hover,
.nav-list > li > a.active { color: var(--navy); }
.nav-list > li > a:hover::after,
.nav-list > li > a.active::after { transform: scaleX(1); }

/* ---- Services dropdown ---- */
.nav-services { position: relative; }

.nav-caret {
    display: inline-block;
    width: 0; height: 0;
    border-left:  4px solid transparent;
    border-right: 4px solid transparent;
    border-top:   4px solid currentColor;
    transition: transform 0.18s;
    flex-shrink: 0;
    margin-top: 1px;
}
.nav-services:hover .nav-caret { transform: rotate(180deg); }

/* Gap-safe bridge: invisible area between trigger and panel */
.nav-dropdown::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0; right: 0;
    height: 14px;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 200px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 6px 0;
    /* Closed — 200ms delay before hiding (prevents flicker on cursor gap) */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity    0.15s ease 0.2s,
        visibility 0.15s ease 0.2s,
        transform  0.15s ease 0.2s;
}
.nav-services:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    /* Open instantly */
    transition:
        opacity    0.15s ease 0s,
        visibility 0.15s ease 0s,
        transform  0.15s ease 0s;
}

.nav-dropdown li a {
    display: block;
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    transition: background 0.14s, color 0.14s;
}
.nav-dropdown li a::after { display: none; }
.nav-dropdown li a:hover  { background: var(--bg-alt); color: var(--navy); }
.nav-dropdown li a.active { color: var(--gold); font-weight: 600; }

/* Language switcher pill */
.lang-switch {
    background: var(--navy) !important;
    color: #fff !important;
    padding: 0.3rem 0.7rem !important;
    border-radius: var(--radius) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
}
.lang-switch::after { display: none !important; }
.lang-switch:hover  { background: var(--navy-dark) !important; }

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 4px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all 0.25s;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.65rem 1.6rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.12s;
    border: 2px solid transparent;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

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

.btn-gold {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}
.btn-gold:hover {
    background: #9e7a2f;
    border-color: #9e7a2f;
    color: #fff;
}

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

/* ============================================================
   SECTIONS
   ============================================================ */
.section          { padding: 40px 0; }
.section.compact  { padding: 25px 0; }
.section.large    { padding: 60px 0; }
.section-alt      { background: var(--bg-alt); }
.section h2       { font-size: 1.9rem; margin-bottom: 1.25rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: var(--navy-dark);
    background-image: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-mid) 100%);
    padding: 72px 0 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 65% 50%, rgba(184,145,58,0.07) 0%, transparent 70%);
    pointer-events: none;
}
.hero h1 {
    font-size: 2.9rem;
    color: #fff;
    letter-spacing: -0.025em;
    margin-bottom: 1.1rem;
    position: relative;
}
.hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.72);
    max-width: 520px;
    margin: 0 auto 1.5rem;
    position: relative;
}
.hero-bullets {
    list-style: none;
    display: inline-flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0 auto 2.5rem;
    text-align: left;
    position: relative;
}
.hero-bullets li {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    padding-left: 1.4rem;
    position: relative;
}
.hero-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
}

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why { background: var(--bg-alt); }
.why h2 { margin-bottom: 0.75rem; }
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.why-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.1rem 1.1rem;
    line-height: 1.45;
}
.why-check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background: var(--gold-light);
    border-radius: 50%;
    position: relative;
    margin-top: 1px;
}
.why-check::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 3px;
    width: 5px;
    height: 8px;
    border: 2px solid var(--gold);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 14px;
}
.service-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.75rem 1.4rem;
    transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
.service-icon {
    width: 46px;
    height: 46px;
    background: var(--gold-light);
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}
.service-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.about-text h2 { margin-bottom: 1rem; }
.about-text p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.about-photo {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center top;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: block;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    padding: 44px 0 48px;
}
.page-hero h1 {
    color: #fff;
    font-size: 2.4rem;
    margin-bottom: 0.6rem;
}
.page-hero p {
    color: rgba(255,255,255,0.68);
    font-size: 0.975rem;
    max-width: 520px;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
}
.contact-form .form-group { margin-bottom: 1.2rem; }
.contact-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.4rem;
}
.req { color: var(--gold); }
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(26,53,96,0.08);
}
.contact-form textarea { resize: vertical; min-height: 130px; }

/* Honeypot */
.hp-field {
    position: absolute;
    left: -9999px;
    visibility: hidden;
    pointer-events: none;
}

/* Alerts */
.alert {
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius);
    margin-bottom: 1.4rem;
    font-size: 0.9rem;
    font-weight: 500;
}
.alert-success { background: #edfaf3; color: #0f5132; border: 1px solid #c3e6cb; }
.alert-error   { background: #fdf3f3; color: #842029; border: 1px solid #f5c6cb; }

/* Contact info sidebar */
.contact-info {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.75rem;
}
.contact-info h3 { font-size: 1rem; margin-bottom: 1.25rem; }

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1.4rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--border);
}
.contact-detail:last-of-type { border-bottom: none; margin-bottom: 0; }

.contact-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.contact-value,
.contact-address-link {
    font-size: 0.9rem;
    color: var(--navy);
    font-weight: 500;
    line-height: 1.5;
    transition: color 0.15s;
}
.contact-value:hover,
.contact-address-link:hover { color: var(--gold); }

/* Buttons — small variant */
.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    margin-top: 0.4rem;
    align-self: flex-start;
}

/* WhatsApp button */
.btn-whatsapp {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
}
.btn-whatsapp:hover {
    background: #1ebe5d;
    border-color: #1ebe5d;
    color: #fff;
}

.contact-maps-btn { align-self: flex-start; }

/* Map iframe */
.contact-map {
    margin-top: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.contact-map iframe { display: block; }

/* Footer contact links */
.footer-contact a {
    color: rgba(255,255,255,0.55);
    transition: color 0.15s;
}
.footer-contact a:hover { color: var(--gold); }
.footer-address { line-height: 1.6; }

/* ============================================================
   BLOG LIST
   ============================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 8px;
}
.blog-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.75rem;
    transition: box-shadow 0.2s, transform 0.15s;
}
.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.blog-card-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}
.blog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    line-height: 1.35;
}
.blog-card-title a { color: var(--navy); transition: color 0.18s; }
.blog-card-title a:hover { color: var(--gold); }
.blog-card-excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}
.read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    transition: color 0.18s;
}
.read-more:hover { color: var(--gold); }
.empty-state { color: var(--text-muted); }

/* ============================================================
   BLOG POST
   ============================================================ */
.blog-post-inner { max-width: 760px; }
.post-header { margin-bottom: 2rem; }
.post-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}
.post-header h1 { font-size: 2.2rem; }
.post-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #2a3040;
}
.post-content h2 {
    font-size: 1.45rem;
    margin: 2.5rem 0 0.9rem;
    color: var(--navy);
}
.post-content p { margin-bottom: 1.2rem; }
.post-footer {
    margin-top: 3rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border);
}
.back-link { font-size: 0.875rem; font-weight: 600; color: var(--navy); transition: color 0.18s; }
.back-link:hover { color: var(--gold); }

/* ============================================================
   SERVICES listing
   ============================================================ */
.services-full-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.service-full-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.75rem;
    transition: box-shadow 0.2s, transform 0.15s;
    color: inherit;
}
.service-full-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.service-full-card .service-icon { flex-shrink: 0; margin-bottom: 0; }
.service-full-body h2 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.service-full-body p  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 0.9rem; }

/* SERVICE single page */
.service-page-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 48px;
    align-items: start;
}
.service-intro {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.service-list {
    list-style: none;
    margin-bottom: 1.5rem;
}
.service-list li {
    padding: 0.6rem 0 0.6rem 1.4rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--text);
    position: relative;
}
.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
}
.service-list li:first-child { border-top: 1px solid var(--border); }
.service-page-cta { margin-top: 1.75rem; }

/* Sidebar */
.service-page-sidebar {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.75rem;
    position: sticky;
    top: calc(var(--header-h) + 24px);
}
.service-page-sidebar h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 1rem; }
.service-sidenav { display: flex; flex-direction: column; gap: 0; margin-bottom: 1.5rem; }
.service-sidenav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.18s;
}
.service-sidenav a:last-child { border-bottom: none; }
.service-sidenav a:hover, .service-sidenav a.active { color: var(--navy); font-weight: 600; }
.service-sidenav a.active { color: var(--gold); }
.sidebar-cta { width: 100%; justify-content: center; }

.back-row { padding: 20px 0 36px; }

/* ============================================================
   404
   ============================================================ */
.error-page {
    padding: 80px 0;
    text-align: center;
}
.error-code {
    font-size: 7rem;
    font-weight: 700;
    color: var(--border);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.04em;
}
.error-page h1 { font-size: 1.9rem; margin-bottom: 0.75rem; }
.error-page p  { color: var(--text-muted); margin-bottom: 2rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.75);
    padding-top: 44px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-brand strong {
    display: block;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.45rem;
}
.footer-brand p    { font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.footer-contact li { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-bottom: 0.4rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    transition: color 0.18s;
}
.footer-nav a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 18px 0;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Service card as link — keep text colour */
a.service-card { display: block; color: inherit; }
a.service-card h3 { color: var(--navy); }

.service-link {
    display: inline-block;
    margin-top: 0.9rem;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--navy);
    transition: color 0.15s;
}
a.service-card:hover .service-link { color: var(--gold); }

/* About clients */
.about-text p + p { margin-top: 0; }
.about-clients {
    margin-top: 1.25rem;
    margin-bottom: 1.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: var(--bg-alt);
    border-left: 3px solid var(--gold);
    padding: 0.75rem 1rem;
    border-radius: 0 6px 6px 0;
}
.about-clients strong { color: var(--navy); }

/* Service sections */
.service-section-title {
    font-size: 1.15rem;
    margin: 1.25rem 0 0.6rem;
}

/* Service "Who this is for" list */
.service-who-list {
    list-style: none;
    margin-bottom: 1.5rem;
}
.service-who-list li {
    padding: 0.5rem 0 0.5rem 1.4rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    position: relative;
}
.service-who-list li:first-child { border-top: 1px solid var(--border); }
.service-who-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border: 2px solid var(--gold);
    border-radius: 50%;
}

/* Service CTA block */
.service-cta-block {
    background: var(--navy-dark);
    border-radius: 10px;
    padding: 1.75rem;
    margin-top: 2rem;
}
.service-cta-block h3 {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}
.service-cta-block p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}
.service-cta-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.service-cta-block .btn-outline {
    border-color: rgba(255,255,255,0.4);
    color: rgba(255,255,255,0.85);
}
.service-cta-block .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
    color: #fff;
}

/* Footer bottom */
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-response { color: rgba(255,255,255,0.45); font-size: 0.78rem; }

@media (max-width: 960px) {
    .why-grid      { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-image { order: -1; }
    .about-photo { height: 280px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .services-full-grid  { grid-template-columns: 1fr; }
    .service-page-layout { grid-template-columns: 1fr; }
    .service-page-sidebar { position: static; }
}

@media (max-width: 700px) {
    .hero h1              { font-size: 1.9rem; }
    .hero                 { padding: 44px 0 48px; }
    .section              { padding: 32px 0; }
    .section.compact      { padding: 20px 0; }
    .section.large        { padding: 48px 0; }
    .page-hero            { padding: 28px 0 32px; }
    .page-hero h1  { font-size: 1.75rem; }
    .post-header h1{ font-size: 1.65rem; }
    .error-code    { font-size: 5rem; }

    .why-grid            { grid-template-columns: 1fr; }
    .services-grid       { grid-template-columns: 1fr; }
    .services-full-grid  { grid-template-columns: 1fr; }
    .blog-grid           { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 0.25rem; }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-inner { grid-template-columns: 1fr; gap: 32px; }

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

    /* Slide the whole nav down as a vertical panel */
    .site-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        padding: 1.25rem 24px 1.5rem;
    }
    .site-nav.open { display: block; }

    /* Nav list goes vertical */
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .nav-list > li { width: 100%; }
    .nav-list > li > a {
        display: block;
        padding: 0.6rem 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
    }
    .nav-list > li > a::after { display: none; }
    .nav-list > li:last-child > a { border-bottom: none; }

    /* Kill hover dropdown on mobile, show sub-links always */
    .nav-caret   { display: none; }
    .nav-dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: transparent;
        padding: 0;
        min-width: 0;
        /* override ::before bridge */
        transition: none;
    }
    .nav-dropdown::before { display: none; }
    .nav-dropdown li a {
        padding: 0.4rem 0 0.4rem 14px;
        font-size: 0.825rem;
        border-bottom: 1px solid var(--border);
        border-left: 2px solid var(--border);
    }
    .nav-dropdown li:last-child a { border-bottom: none; }
    .nav-dropdown li a:hover { background: transparent; color: var(--navy); }
}
