/* ===================================================================
   Accra Driving School — stylesheet
   =================================================================== */

:root {
    --color-primary: #0b3d62;
    --color-primary-dark: #072a44;
    --color-accent: #f2a71b;
    --color-accent-dark: #d68f0e;
    --color-text: #1f2a33;
    --color-text-muted: #5b6b76;
    --color-bg: #ffffff;
    --color-bg-alt: #f4f7fa;
    --color-border: #e1e8ee;
    --color-success-bg: #e6f6ec;
    --color-success-text: #1e7b41;
    --color-error-bg: #fdecec;
    --color-error-text: #b3261e;
    --radius: 10px;
    --shadow: 0 4px 20px rgba(11, 61, 98, 0.08);
    --max-width: 1160px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent-dark); }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.6em; color: var(--color-primary-dark); }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--color-text-muted); }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--color-primary);
    color: #fff;
    padding: 10px 16px;
    z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 999px;
    background: var(--color-accent);
    color: var(--color-primary-dark);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--color-accent-dark); color: var(--color-primary-dark); transform: translateY(-1px); }
.btn--outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}
.btn--outline:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn--whatsapp { background: #25D366; color: #fff; }
.btn--whatsapp:hover { background: #1fb757; color: #fff; }
.btn--small { padding: 8px 18px; font-size: .9rem; }
.btn--full { width: 100%; text-align: center; }

/* ---------- Header / Nav ---------- */

.site-header {
    background: var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 500;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
}
.brand:hover { color: #fff; }
.brand__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: none;
}
.brand__mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* The logo art is black-on-transparent; invert it to white so it reads on the navy header. */
    filter: brightness(0) invert(1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
}
.nav-toggle__bar {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}
.primary-nav > ul {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
}
.primary-nav > ul > li { position: relative; }
.primary-nav a {
    display: block;
    color: rgba(255,255,255,.88);
    padding: 12px 12px;
    font-size: .95rem;
    font-weight: 500;
    border-radius: 6px;
}
.primary-nav a:hover,
.primary-nav a.active { color: #fff; background: rgba(255,255,255,.1); }

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

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 210px;
    padding: 8px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    list-style: none;
    margin: 0;
    /* Transparent bridge over the gap to the nav link above, so the mouse
       never leaves a hoverable area while moving down into the menu. */
    padding-top: 14px;
    margin-top: -6px;
}
.dropdown li a {
    color: var(--color-text);
    padding: 9px 12px;
    border-radius: 6px;
}
.dropdown li a:hover { background: var(--color-bg-alt); color: var(--color-text); }

.nav-cta { white-space: nowrap; }

/* ---------- Hero ---------- */

.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 60px 0;
    min-height: 50vh;
    display: flex;
    align-items: center;
}
.hero__inner { max-width: 760px; margin: 0 auto; text-align: center; }

.hero--home {
    background-image: linear-gradient(180deg, rgba(7,26,42,.25) 0%, rgba(7,26,42,.65) 100%), url('../images/hero/home.jpg');
}
.hero--about {
    background-image: linear-gradient(180deg, rgba(7,26,42,.35) 0%, rgba(7,26,42,.7) 100%), url('../images/hero/about.jpg');
}
.hero--services {
    background-image: linear-gradient(180deg, rgba(7,26,42,.35) 0%, rgba(7,26,42,.7) 100%), url('../images/hero/services.jpg');
}
.hero--contact {
    background-image: linear-gradient(180deg, rgba(7,26,42,.35) 0%, rgba(7,26,42,.7) 100%), url('../images/hero/contact.jpg');
}
.hero .badge {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-primary-dark);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .04em;
    margin-bottom: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.hero h1 { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero p.lead { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 60ch; margin-left: auto; margin-right: auto; text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; justify-content: center; }

.hero--sub { padding: 48px 0; min-height: 30vh; }
.hero--sub p.lead { margin-bottom: 0; }

/* ---------- Quicklinks bar (sits below the homepage hero photo) ---------- */

.quicklinks-bar {
    background: #fff;
    border-bottom: 4px solid var(--color-accent);
}
.quicklinks-bar-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.quicklinks-bar a {
    padding: 22px 12px;
    text-align: center;
    color: var(--color-primary);
    font-weight: 700;
}
.quicklinks-bar a:hover { color: var(--color-primary-dark); background: var(--color-bg-alt); }
.quicklinks-bar .icon { width: 30px; height: 30px; display: block; margin: 0 auto 8px; }

/* ---------- Sections ---------- */

.section { padding: 64px 0; }
.section--alt { background: var(--color-bg-alt); }
.section-head { max-width: 700px; margin: 0 auto 40px; text-align: center; }
.section-head p { font-size: 1.05rem; }

.intro-statement { padding: 54px 0 10px; text-align: center; }
.intro-statement .rule {
    width: 64px;
    height: 4px;
    background: var(--color-accent);
    margin: 0 auto 26px;
    border-radius: 2px;
}
.intro-statement p {
    max-width: 780px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.75;
    color: var(--color-text);
    font-weight: 500;
}

/* ---------- Cards / grids ---------- */

.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
}
.card .icon { width: 32px; height: 32px; display: block; margin-bottom: 10px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card ul { padding-left: 1.1em; color: var(--color-text-muted); }

.card--license {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.card--license .class-badge {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; margin: 24px 0; border-radius: var(--radius); box-shadow: var(--shadow); }
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 560px;
}
table caption { text-align: left; font-weight: 700; padding: 14px 18px 0; }
th, td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}
thead th {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--color-bg-alt); }
td.price, th.price { white-space: nowrap; font-weight: 700; color: var(--color-primary-dark); }

/* ---------- Schedule options ---------- */

.schedule-card h3 { color: var(--color-accent-dark); }

/* ---------- Why choose / features ---------- */

.feature-list { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px;
}
.feature .icon { width: 28px; height: 28px; flex-shrink: 0; }
.feature h3 { margin-bottom: .3em; font-size: 1.05rem; }
.feature p { margin: 0; }

/* ---------- Icons (replaces emoji; one consistent color everywhere) ---------- */

.icon { color: var(--color-primary); flex-shrink: 0; }
.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-bg-alt);
    border: 1.7px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1;
}
.contact-info-list .icon,
.contact-info-list .icon-badge { vertical-align: -6px; margin-right: 6px; }

/* ---------- Testimonials (styled like the Google reviews widget on the
   original site: avatar + name + time, star row, verified badge, quote) ---------- */

.testimonial-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.testimonial {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}
.testimonial .review-source {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    color: var(--color-text-muted);
    margin-bottom: 14px;
}
.testimonial .review-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.testimonial .avatar {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
}
.testimonial:nth-child(6n+1) .avatar { background: #8d6e63; }
.testimonial:nth-child(6n+2) .avatar { background: var(--color-primary); }
.testimonial:nth-child(6n+3) .avatar { background: #43a047; }
.testimonial:nth-child(6n+4) .avatar { background: #d68f0e; }
.testimonial:nth-child(6n+5) .avatar { background: #6d4fc2; }
.testimonial:nth-child(6n+6) .avatar { background: #00897b; }
.testimonial .review-name { font-weight: 700; color: var(--color-primary-dark); line-height: 1.3; }
.testimonial .review-time { font-size: .8rem; color: var(--color-text-muted); }
.testimonial .review-stars-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}
.testimonial .stars { color: var(--color-accent); letter-spacing: 2px; }
.testimonial .verified-badge { color: var(--color-primary); font-size: .95rem; }
.testimonial p { color: var(--color-text); font-style: normal; margin: 0; }

.reviews-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    margin-bottom: 30px;
}
.reviews-summary .rating-word { font-weight: 800; letter-spacing: .04em; color: var(--color-text); font-size: 1.1rem; }
.reviews-summary .stars { color: var(--color-accent); font-size: 1.4rem; letter-spacing: 2px; }
.reviews-summary .based-on { color: var(--color-text-muted); font-size: .92rem; }
.reviews-summary .based-on strong { color: var(--color-primary-dark); }
.reviews-summary .google-mark { display: flex; align-items: center; gap: 6px; margin-top: 4px; }

/* ---------- Testimonials slider (homepage teaser) ---------- */

.testimonials-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
}
.testimonials-summary {
    flex: none;
    margin-bottom: 0;
}
.testimonial-slider-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}
.testimonial-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 4px 8px;
    margin: -4px -4px -8px;
    scrollbar-width: none;
}
.testimonial-slider::-webkit-scrollbar { display: none; }
.testimonial-slider .testimonial {
    flex: 0 0 300px;
    scroll-snap-align: start;
}
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    color: var(--color-primary-dark);
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
}
.slider-arrow:hover { background: var(--color-bg-alt); }
.slider-arrow--prev { left: -20px; }
.slider-arrow--next { right: -20px; }

/* ---------- Long-form SEO copy + "also searched as" line ---------- */

.longform p { margin-bottom: 1.1em; max-width: 74ch; }
.longform p:last-child { margin-bottom: 0; }

.also-searched {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    max-width: 74ch;
    margin: 18px auto 0;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

/* ---------- CTA band ---------- */

.cta-band {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: var(--color-primary-dark);
    text-align: center;
    padding: 56px 0;
}
.cta-band h2 { color: var(--color-primary-dark); }
.cta-band .btn { background: var(--color-primary); color: #fff; }
.cta-band .btn:hover { background: var(--color-primary-dark); }
.cta-band .btn.btn--whatsapp { background: #25D366; color: #fff; }
.cta-band .btn.btn--whatsapp:hover { background: #1fb757; }
.cta-band-actions { margin-top: 24px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Alerts / flash ---------- */

.alert { padding: 14px 18px; border-radius: var(--radius); margin: 20px 0; font-weight: 600; }
.alert--success { background: var(--color-success-bg); color: var(--color-success-text); }
.alert--error { background: var(--color-error-bg); color: var(--color-error-text); }

/* ---------- Forms ---------- */

.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
.field input, .field textarea, .field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font: inherit;
    background: #fff;
    color: var(--color-text);
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(11,61,98,.12);
}
.field .hint { font-size: .8rem; color: var(--color-text-muted); margin-top: 4px; }
.field .error-text { font-size: .82rem; color: var(--color-error-text); margin-top: 4px; }

.contact-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.contact-info-list { list-style: none; padding: 0; margin: 0 0 20px; }
.contact-info-list li { padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.contact-info-list li:last-child { border-bottom: none; }

.map-embed {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
    aspect-ratio: 4 / 3;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Location tag lists ---------- */

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list span {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .85rem;
    color: var(--color-text-muted);
}

/* ---------- Gallery: video and photo thumbnails side by side ---------- */

.gallery-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 28px;
    align-items: start;
}

.featured-video {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.featured-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-placeholder .play-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.photo-grid-small {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.photo-thumb {
    display: block;
    padding: 0;
    border: 0;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-bg-alt);
    box-shadow: var(--shadow);
    cursor: zoom-in;
}
.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform .2s ease;
}
.photo-thumb:hover img { transform: scale(1.08); }
.photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}
.photo-placeholder .photo-icon { font-size: 1.4rem; opacity: .5; }

/* ---------- Lightbox ---------- */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 20, .92);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 90vw;
    max-height: 82vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.lightbox-caption {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-weight: 600;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,.22); }
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-nav:hover { background: rgba(255,255,255,.22); }
.lightbox-nav--prev { left: 16px; }
.lightbox-nav--next { right: 16px; }

@media (max-width: 720px) {
    .photo-carousel-viewport { aspect-ratio: 1 / 1; }
    .lightbox { padding: 16px; }
    .lightbox-nav, .lightbox-close { width: 40px; height: 40px; }
}

/* ---------- Blog ---------- */

.blog-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.post-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.post-card .category {
    display: inline-block;
    align-self: flex-start;
    background: var(--color-bg-alt);
    color: var(--color-primary);
    font-size: .78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.post-card h3 a { color: var(--color-primary-dark); }
.post-card .date { font-size: .82rem; color: var(--color-text-muted); margin-top: auto; padding-top: 14px; }

.post-article { max-width: 760px; margin: 0 auto; }
.post-article .category { color: var(--color-accent-dark); font-weight: 700; font-size: .85rem; }
.post-article .date { color: var(--color-text-muted); font-size: .9rem; margin-bottom: 24px; }
.post-article .body { font-size: 1.05rem; }
.post-article .body h2, .post-article .body h3 { margin-top: 1.4em; }
.post-article .body ul, .post-article .body ol { color: var(--color-text-muted); }

/* ---------- Breadcrumb-ish page intro ---------- */

.page-intro {
    background: var(--color-bg-alt);
    padding: 46px 0;
    border-bottom: 1px solid var(--color-border);
}
.page-intro h1 { margin-bottom: .2em; }

/* ---------- WhatsApp floating button ---------- */

.whatsapp-fab {
    position: fixed;
    bottom: 22px;
    right: 22px;
    background: #25D366;
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    z-index: 400;
}
.whatsapp-fab:hover { color: #fff; transform: scale(1.05); }

/* ---------- Footer ---------- */

.site-footer {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,.75);
    padding: 56px 0 20px;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 30px;
}
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 5px 0; }
.footer-col a { color: rgba(255,255,255,.75); }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--color-accent);
    transition: transform .15s ease, background .15s ease;
}
.social-icon-btn:hover { color: #fff; background: var(--color-primary); transform: translateY(-2px); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 36px;
    padding-top: 20px;
    font-size: .85rem;
}
.footer-bottom p { margin: 0; color: rgba(255,255,255,.6); }

/* ---------- Homepage 3-Column Layout (keyword sidebars) ---------- */

.home-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    max-width: 1680px;
    margin: 0 auto;
    padding: 48px 20px;
}

.home-main   { order: 1; min-width: 0; }
.home-side   { order: 2; min-width: 0; }
.home-side--right { order: 3; }

.home-main > section { padding-left: 0; padding-right: 0; }
.home-main > section .container { padding: 0; max-width: none; }

@media (min-width: 1180px) {
    .home-columns {
        grid-template-columns: 240px minmax(0, 1fr) 240px;
        align-items: start;
    }
    .home-main, .home-side, .home-side--right { order: initial; }
}

.home-side__heading {
    font-size: 1.05rem;
    color: var(--color-primary);
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-accent);
}

.home-side__group { margin-bottom: 22px; }
.home-side__group:last-child { margin-bottom: 0; }

.home-side__group-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--color-text-muted);
    margin: 0 0 6px;
}

.home-side__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-side__links li + li { margin-top: 1px; }

.home-side__links a {
    display: block;
    padding: 5px 8px;
    margin: 0 -8px;
    border-radius: 6px;
    font-size: 0.82rem;
    line-height: 1.35;
    color: var(--color-text-muted);
    transition: background .15s ease, color .15s ease;
}

.home-side__links a:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */

@media (max-width: 960px) {
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .quicklinks-bar-inner { grid-template-columns: repeat(2, 1fr); }
    .feature-list { grid-template-columns: 1fr; }
    .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-layout { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .primary-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-primary-dark);
        flex-direction: column;
        align-items: stretch;
        padding: 10px 20px 20px;
        display: none;
        gap: 10px;
    }
    .primary-nav.open { display: flex; }
    .primary-nav ul { flex-direction: column; gap: 0; }
    .dropdown { position: static; display: block; box-shadow: none; background: rgba(255,255,255,.04); margin-top: 0; }
    .has-dropdown .dropdown { display: none; }
    .has-dropdown.open .dropdown { display: block; }
    .dropdown li a { color: rgba(255,255,255,.75); }
    .nav-cta { align-self: flex-start; margin-top: 10px; }

    .quicklinks-bar-inner { grid-template-columns: repeat(2, 1fr); }
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .photo-grid-small { grid-template-columns: repeat(3, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    table { min-width: 480px; }

    .testimonial-slider .testimonial { flex-basis: 82vw; }
    .slider-arrow { display: none; }
}
