/*
Theme Name: CaniValais
Theme URI: https://canivalais.ch
Author: CaniValais
Author URI: https://canivalais.ch
Description: A refined, alpine-luxury WordPress theme for CaniValais, an école de dressage canin in Sion, Valais. Swiss heritage typography (Cormorant Garamond and Source Sans 3) paired with a charcoal, Valais red and alpine gold palette. Built for trust, the outdoors and generous whitespace.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: canivalais
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, business
*/

/* =========================================================================
   1.  Design tokens
   ========================================================================= */
:root {
    /* Brand palette */
    --c-charcoal:      #23262B;
    --c-charcoal-soft: #34383F;
    --c-red:           #B32025;
    --c-red-dark:      #8F191D;
    --c-gold:          #A89B88;
    --c-gold-light:    #C8BDAF;
    --c-bg:            #F8F7F4;
    --c-stone:         #D8D2C7;
    --c-white:         #FFFFFF;

    /* Semantic tokens */
    --c-text:          var(--c-charcoal);
    --c-text-muted:    #6B6E73;
    --c-line:          #E6E1D8;
    --c-surface:       var(--c-white);

    /* Type */
    --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
    --font-body:    "Source Sans 3", "Helvetica Neue", Arial, sans-serif;

    /* Rhythm */
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  2rem;
    --space-lg:  4rem;
    --space-xl:  6.5rem;
    --space-2xl: 9rem;

    --maxw:        1180px;
    --maxw-narrow: 760px;
    --radius:      2px;

    --shadow-soft:  0 1px 2px rgba(35, 38, 43, 0.04), 0 14px 40px rgba(35, 38, 43, 0.07);
    --shadow-lift:  0 6px 14px rgba(35, 38, 43, 0.08), 0 24px 60px rgba(35, 38, 43, 0.12);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================================
   2.  Reset and base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background-color: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Subtle paper texture behind everything */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(168, 155, 136, 0.06), transparent 45%),
        radial-gradient(circle at 85% 8%, rgba(168, 155, 136, 0.05), transparent 40%);
}

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

a {
    color: var(--c-red);
    text-decoration: none;
    transition: color 0.25s var(--ease);
}
a:hover { color: var(--c-red-dark); }

/* =========================================================================
   3.  Typography
   ========================================================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--c-charcoal);
    line-height: 1.08;
    margin: 0 0 0.6em;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
h4 { font-size: 1.25rem; }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }

blockquote {
    margin: var(--space-md) 0;
    padding: 0.4rem 0 0.4rem 1.6rem;
    border-left: 2px solid var(--c-red);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.4;
    color: var(--c-charcoal-soft);
}

code, pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    background: var(--c-stone);
    border-radius: var(--radius);
}
code { padding: 0.1em 0.4em; font-size: 0.9em; }
pre { padding: var(--space-sm); overflow-x: auto; }
pre code { background: none; padding: 0; }

/* Decorative eyebrow used above section titles, echoing the logo's centred caption */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-gold);
    margin-bottom: 1.1rem;
}
.eyebrow::before,
.eyebrow.is-centred::after {
    content: "";
    width: 34px;
    height: 1px;
    background: var(--c-gold);
}
.eyebrow.is-left::before { display: none; }
.eyebrow.is-left { gap: 0; }
.eyebrow.is-left::after {
    content: "";
    display: block;
    width: 46px;
    height: 1px;
    background: var(--c-gold);
    margin-left: 0.75rem;
}

/* Red dot separator, as in "SION  -  VALAIS" */
.dot-sep { color: var(--c-red); padding: 0 0.5em; }

/* =========================================================================
   4.  Layout helpers
   ========================================================================= */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}
.container--narrow { max-width: var(--maxw-narrow); }

.section { padding-block: var(--space-xl); }
.section--tight { padding-block: var(--space-lg); }
.section--alt { background: var(--c-white); }
.section--dark { background: var(--c-charcoal); color: #DDDCDA; }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--c-white); }
.section--dark .eyebrow { color: var(--c-gold-light); }
.section--dark .eyebrow::before,
.section--dark .eyebrow.is-centred::after,
.section--dark .eyebrow.is-left::after { background: var(--c-gold-light); }

.section-head { max-width: 640px; }
.section-head.is-centred { margin-inline: auto; text-align: center; }
.section-head .lead { color: var(--c-text-muted); font-size: 1.15rem; }

.lead { font-size: 1.2rem; line-height: 1.65; }

/* =========================================================================
   5.  Buttons
   ========================================================================= */
.btn {
    --btn-bg: var(--c-red);
    --btn-fg: var(--c-white);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.9rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--btn-fg);
    background: var(--btn-bg);
    border: 1px solid var(--btn-bg);
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:hover {
    color: var(--btn-fg);
    background: var(--c-red-dark);
    border-color: var(--c-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(143, 25, 29, 0.28);
}
.btn--ghost {
    --btn-bg: transparent;
    --btn-fg: var(--c-charcoal);
    border-color: var(--c-gold);
}
.btn--ghost:hover {
    --btn-fg: var(--c-charcoal);
    background: var(--c-gold-light);
    border-color: var(--c-gold-light);
    box-shadow: none;
}
.section--dark .btn--ghost { --btn-fg: #fff; border-color: rgba(200, 189, 175, 0.55); }
.section--dark .btn--ghost:hover { --btn-fg: var(--c-charcoal); background: var(--c-gold-light); }

.btn--lg { padding: 1.1rem 2.4rem; }

.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-charcoal);
}
.arrow-link svg { transition: transform 0.3s var(--ease); }
.arrow-link:hover { color: var(--c-red); }
.arrow-link:hover svg { transform: translateX(5px); }

/* =========================================================================
   6.  Site header
   ========================================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 247, 244, 0.82);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
    border-bottom-color: var(--c-line);
    background: rgba(248, 247, 244, 0.94);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    min-height: 88px;
}
.site-branding { display: flex; align-items: center; }
.custom-logo-link img,
.site-branding img { max-height: 58px; width: auto; }
.site-title {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 1;
    margin: 0;
}
.site-title a { color: var(--c-charcoal); }
.site-title .accent { color: var(--c-red); }
.site-description {
    margin: 0.15rem 0 0;
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-gold);
}

/* Primary navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.1rem;
    margin: 0;
    padding: 0;
}
.main-nav a {
    position: relative;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-charcoal);
    padding-block: 0.4rem;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: var(--c-red);
    transition: width 0.3s var(--ease);
}
.main-nav a:hover::after,
.main-nav .current-menu-item > a::after { width: 100%; }
.main-nav .current-menu-item > a { color: var(--c-red); }

.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.header-actions .btn { padding: 0.7rem 1.4rem; }

/* Mobile toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    padding: 6px 0;
    background: none;
    border: 0;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--c-charcoal);
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================================
   7.  Hero
   ========================================================================= */
.hero {
    position: relative;
    padding-block: clamp(4rem, 11vw, 8.5rem);
    overflow: hidden;
}
.hero__inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}
.hero__title { margin-bottom: 1.4rem; }
.hero__title .accent { color: var(--c-red); font-style: italic; }
.hero__text { max-width: 30rem; }
.hero__text .lead { color: var(--c-text-muted); margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__media {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(160deg, var(--c-stone), var(--c-gold-light));
    box-shadow: var(--shadow-lift);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media .placeholder {
    position: absolute; inset: 0;
    display: grid; place-content: center; text-align: center;
    color: var(--c-charcoal); opacity: 0.5;
    font-family: var(--font-display); font-size: 1.3rem;
    padding: 2rem;
}
/* Heraldic frame accent on the hero image */
.hero__media::after {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius);
    pointer-events: none;
}
.hero__badge {
    position: absolute;
    bottom: -22px; left: -22px;
    background: var(--c-white);
    padding: 1.1rem 1.4rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    display: flex; align-items: center; gap: 0.85rem;
}
.hero__badge .num {
    font-family: var(--font-display);
    font-size: 2.4rem; font-weight: 600;
    color: var(--c-red); line-height: 1;
}
.hero__badge .lbl {
    font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--c-text-muted); max-width: 9rem;
}

/* Faint mountain ridge motif at the foot of the hero */
.hero__ridge {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 120px;
    z-index: -1;
    opacity: 0.5;
    color: var(--c-gold-light);
}
.hero__ridge svg { width: 100%; height: 100%; }

/* =========================================================================
   8.  Stats strip
   ========================================================================= */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    border-block: 1px solid var(--c-line);
    padding-block: var(--space-lg);
}
.stat { text-align: center; }
.stat .num {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 600;
    color: var(--c-charcoal);
    line-height: 1;
}
.stat .num .accent { color: var(--c-red); }
.stat .lbl {
    margin-top: 0.6rem;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-text-muted);
}

/* =========================================================================
   9.  Services
   ========================================================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: var(--space-lg);
}
.service-card {
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 2.2rem 2rem;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--c-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
    border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
    width: 48px; height: 48px;
    color: var(--c-red);
    margin-bottom: 1.3rem;
}
.service-card__icon svg { width: 100%; height: 100%; }
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { color: var(--c-text-muted); font-size: 0.98rem; }

/* =========================================================================
   10. Split feature (image + text)
   ========================================================================= */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}
.split--flip .split__media { order: 2; }
.split__media {
    aspect-ratio: 5 / 4;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(160deg, var(--c-stone), var(--c-gold-light));
    box-shadow: var(--shadow-soft);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media .placeholder {
    height: 100%;
    display: grid; place-content: center;
    font-family: var(--font-display); font-size: 1.2rem;
    color: var(--c-charcoal); opacity: 0.45;
}
.feature-list { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.feature-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--c-charcoal-soft);
}
.feature-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.55em;
    width: 9px; height: 9px;
    border: 2px solid var(--c-red);
    border-radius: 50%;
}

/* =========================================================================
   11. Testimonials
   ========================================================================= */
.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: var(--space-lg);
}
.testimonial {
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 2rem;
}
.section--dark .testimonial {
    background: var(--c-charcoal-soft);
    border-color: rgba(168, 155, 136, 0.25);
}
.testimonial__quote {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.45;
    color: var(--c-charcoal);
    margin-bottom: 1.4rem;
}
.section--dark .testimonial__quote { color: #fff; }
.testimonial__author { display: flex; align-items: center; gap: 0.85rem; }
.testimonial__avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--c-gold-light);
    display: grid; place-content: center;
    font-family: var(--font-display); font-weight: 600; color: var(--c-charcoal);
}
.testimonial__name { font-weight: 600; font-size: 0.95rem; }
.testimonial__role { font-size: 0.82rem; color: var(--c-text-muted); }
.section--dark .testimonial__role { color: var(--c-gold-light); }
.stars { color: var(--c-red); letter-spacing: 0.1em; margin-bottom: 0.8rem; font-size: 0.9rem; }

/* =========================================================================
   12. Call to action band
   ========================================================================= */
.cta-band {
    text-align: center;
    background:
        linear-gradient(rgba(35,38,43,0.86), rgba(35,38,43,0.92)),
        linear-gradient(160deg, var(--c-gold), var(--c-charcoal));
    color: #fff;
    border-radius: var(--radius);
    padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 6vw, 4rem);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.78); max-width: 36rem; margin-inline: auto; }
.cta-band .hero__cta { justify-content: center; margin-top: 2rem; }

/* =========================================================================
   13. Contact
   ========================================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 4.5rem);
    margin-top: var(--space-lg);
}
.contact-card { display: flex; gap: 1rem; margin-bottom: 1.8rem; }
.contact-card__icon {
    flex: none;
    width: 44px; height: 44px;
    display: grid; place-content: center;
    border: 1px solid var(--c-gold);
    border-radius: 50%;
    color: var(--c-red);
}
.contact-card__icon svg { width: 20px; height: 20px; }
.contact-card h4 { margin: 0 0 0.2rem; font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-gold); }
.contact-card p, .contact-card a { margin: 0; color: var(--c-charcoal-soft); font-size: 1.05rem; }
.contact-card a:hover { color: var(--c-red); }
.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 320px;
    background: linear-gradient(160deg, var(--c-stone), var(--c-gold-light));
    box-shadow: var(--shadow-soft);
}
.contact-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.contact-map .placeholder {
    height: 100%; min-height: 320px;
    display: grid; place-content: center; text-align: center;
    font-family: var(--font-display); color: var(--c-charcoal); opacity: 0.5;
}

/* =========================================================================
   14. Content pages, blog and posts
   ========================================================================= */
.page-hero {
    text-align: center;
    padding-block: var(--space-xl) var(--space-lg);
    border-bottom: 1px solid var(--c-line);
}
.page-hero h1 { margin-bottom: 0.4rem; }
.page-hero .lead { color: var(--c-text-muted); max-width: 46rem; margin-inline: auto; }

.entry-content { font-size: 1.0625rem; }
.entry-content > * { margin-bottom: 1.3em; }
.entry-content h2 { margin-top: 1.8em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li { margin-bottom: 0.5rem; }
.entry-content img { border-radius: var(--radius); }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: var(--space-lg);
}
.post-card {
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.post-card__thumb {
    aspect-ratio: 16 / 10;
    background: linear-gradient(160deg, var(--c-stone), var(--c-gold-light));
    overflow: hidden;
}
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 1.6rem; flex: 1; display: flex; flex-direction: column; }
.post-card__meta { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-gold); margin-bottom: 0.6rem; }
.post-card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.post-card h3 a { color: var(--c-charcoal); }
.post-card h3 a:hover { color: var(--c-red); }
.post-card__excerpt { color: var(--c-text-muted); font-size: 0.96rem; margin-bottom: 1.2rem; flex: 1; }

.single-article { max-width: var(--maxw-narrow); margin-inline: auto; }
.single-article .entry-meta { color: var(--c-gold); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1rem; }
.single-thumb { margin-block: var(--space-md); border-radius: var(--radius); overflow: hidden; }

/* Pagination */
.pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: var(--space-lg); }
.pagination .page-numbers {
    display: grid; place-content: center;
    min-width: 44px; height: 44px; padding-inline: 0.6rem;
    border: 1px solid var(--c-line); border-radius: var(--radius);
    color: var(--c-charcoal); font-weight: 600; font-size: 0.92rem;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--c-red); color: #fff; border-color: var(--c-red); }

/* =========================================================================
   15. Comments and forms
   ========================================================================= */
.comments-area { max-width: var(--maxw-narrow); margin: var(--space-lg) auto 0; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 1.4rem 0; border-bottom: 1px solid var(--c-line); }

input[type="text"], input[type="email"], input[type="url"], input[type="search"],
input[type="tel"], textarea, select {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--c-charcoal);
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--c-gold);
    box-shadow: 0 0 0 3px rgba(168, 155, 136, 0.2);
}
label { font-size: 0.85rem; font-weight: 600; display: block; margin-bottom: 0.4rem; }

/* =========================================================================
   16. Footer
   ========================================================================= */
.site-footer {
    background: var(--c-charcoal);
    color: rgba(255,255,255,0.7);
    padding-block: var(--space-xl) var(--space-md);
    font-size: 0.95rem;
}
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: var(--c-gold-light); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: var(--space-md);
}
.footer-brand .site-title { font-size: 1.7rem; }
.footer-brand .site-title a { color: #fff; }
.footer-brand p { margin-top: 0.8rem; max-width: 22rem; }
.footer-col h4 {
    color: var(--c-gold-light);
    font-family: var(--font-body);
    font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
    margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-bottom {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.12);
    display: flex; flex-wrap: wrap; gap: 1rem;
    justify-content: space-between; align-items: center;
    font-size: 0.84rem;
}
.footer-crest { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--c-gold-light); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; }

/* =========================================================================
   17. Reveal-on-scroll animation
   ========================================================================= */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* =========================================================================
   18. Accessibility helpers
   ========================================================================= */
.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px);
    clip-path: inset(50%); height: 1px; width: 1px;
    margin: -1px; overflow: hidden; padding: 0; position: absolute;
}
.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 999;
    background: var(--c-red); color: #fff; padding: 0.8rem 1.2rem;
}
.skip-link:focus { left: 1rem; top: 1rem; color: #fff; }
:focus-visible { outline: 2px solid var(--c-red); outline-offset: 3px; }

/* =========================================================================
   19. Responsive
   ========================================================================= */
@media (max-width: 980px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__media { max-width: 460px; margin-inline: auto; order: -1; }
    .services-grid,
    .testimonials,
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg) var(--space-md); }
    .split { grid-template-columns: 1fr; }
    .split--flip .split__media { order: -1; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg) var(--space-md); }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .main-nav {
        position: fixed;
        inset: 88px 0 auto 0;
        background: var(--c-bg);
        border-bottom: 1px solid var(--c-line);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s var(--ease);
    }
    .main-nav.is-open { max-height: 80vh; box-shadow: var(--shadow-soft); }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 1.5rem 1.5rem; }
    .main-nav li { border-bottom: 1px solid var(--c-line); }
    .main-nav li:last-child { border-bottom: 0; }
    .main-nav a { display: block; padding: 1rem 0; }
    .header-actions .btn { display: none; }
}

@media (max-width: 560px) {
    .services-grid,
    .testimonials,
    .posts-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .hero__badge { left: 0; }
}
