:root {
    /* Brand palette */
    --linen: #F3E0EC;
    --orange: #FFA630;
    --purple: #72008F;
    --walnut: #584D3D;
    --vandyke: #38302E;
    --white: #FFFFFF;
    --black: #191919;

    /* Semantic tokens */
    --bg: var(--linen);                /* light page background */
    --surface: #FFFFFF;                /* cards, panels */
    --surface-2: #FFF6EE;              /* subtle tinted surface (still readable with dark text) */
    --text: var(--black);            /* body text on light bg (12.88:1 vs white; 8.1+:1 vs linen) */
    --muted: #5a514d;                  /* slightly softer than main text, still passes */
    --heading: var(--vandyke);

    --primary: var(--purple);          /* buttons/links bg */
    --on-primary: var(--white);        /* text on primary (9.94:1) */

    --secondary: var(--orange);         /* secondary action bg */
    --on-secondary: var(--black);      /* text on secondary (7.06:1) */

    --accent: var(--walnut);           /* for dividers, badges */
    --on-accent: var(--white);         /* text on accent (8.25:1) */

    --border: #C7B8A9;                 /* accessible border on linen */
    --ring: #2B2533;                   /* high-contrast focus ring */

    --radius: 16px;
    --shadow: 0 8px 24px rgba(0,0,0,.08);
}

*{box-sizing:border-box}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,'Helvetica Neue',Arial,'Noto Sans',sans-serif;
}

h1 {
    font-family: "Bodoni Moda SC", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 800;
}

h2 {
    font-size: 1.75rem;
    margin: 0 0 1rem;
    color: var(--heading);
    font-weight: 800;
}

h3, h4, h5, h6, .heading {
    font-size: 1.25rem;
    margin: 0 0 .25rem;
    color: var(--heading);
    font-weight: 600;
}

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

/* Links use underlines for non-color cue; color chosen for 4.5:1 on linen */
a {
    color: var(--purple); 
    text-underline-offset: 3px; 
    text-decoration-thickness: 2px;
}

a:hover {
    text-decoration: none;
}

/* Accessibility: robust focus outline */
:focus-visible {
    outline: 3px solid var(--ring); 
    outline-offset: 2px;
}

/* Layout helpers */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}

.section:first-of-type {
    border-top: none;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(1.1) blur(8px);
    background: rgba(255,255,255,.75);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding:.75rem 0;
}

.brand {
    font-size: clamp(1.5rem, 1.5vw + 0.5rem, 2rem); 
    display: flex;
    gap: .75rem;
    align-items: center;
    font-weight:700;
    letter-spacing: .3px;
    color: var(--heading);
    margin-left: 1rem;
}

.brand-name {
    text-decoration: none;
    color: var(--vandyke);
}

header .logo {
    width: 36px;
    height: 36px;
    /*
    border-radius: 10px;
    background: linear-gradient(135deg,var(--walnut),var(--vandyke));
    box-shadow: var(--shadow);
    */
}

header .logo img {
    width: 36px;
    height: 18px;
    vertical-align: middle;
}

.nav {
    display: flex;
    gap: 1rem;
    align-items:center;
    margin-right: 1rem;
}

.nav a {
    text-decoration: none; 
    color: var(--black);
}

.nav a:hover {
    text-decoration: underline solid 2px var(--orange);
}

.nav a.btn {
    padding: .55rem .9rem;
    border-radius: .8rem;
    background: var(--surface-2); 
    color: var(--text); 
    border: 1px solid var(--border);
}

.nav a.btn--primary {
    background: var(--primary);
    color: var(--on-primary);
    border: none;
    font-weight: 700;
}

.nav a.btn--secondary {
    background: var(--secondary);
    color: var(--on-secondary);
    border: none;
    font-weight: 700;
}

.nav a.btn:hover, {
    filter: brightness(1.05);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
}

.skip-link{
    position: absolute;
    left: -9999px; 
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    background: var(--primary);
    color: var(--on-primary);
    padding: .5rem .75rem;
    border-radius: .5rem;
}

.btn:hover {
    scale: 1.03;
}

/* Responsive nav */
@media (max-width: 820px) {
    .menu-toggle {
        font: 16px Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,'Helvetica Neue',Arial,'Noto Sans',sans-serif;
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        border-radius: .8rem;
        padding: .55rem .9rem;
        border: 1px solid var(--border);
        text-decoration: none;
        margin-right: 1rem;
        background: var(--primary);
        color: var(--on-primary);
        font-weight: 700;
    }

    .menu-toggle:hover {
        filter: brightness(1.05);
        scale: 1.03;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        padding: 1rem;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        margin-right: 0;
    }
  
    .nav.open {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        border-bottom: 4px solid #cccccc;
    }

    .nav > * {
        flex: 1 1 90px;
    }

    .nav .btn {
        flex: 1 1 300px;
        text-align: center;
    }
}

/* Hero */
.hero {
    padding: 5rem 0 4rem;
    background-color: var(--purple);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 2rem;
    align-items: center;
}

.hero h1, .hero h2 {
    font-size: clamp(1.5rem, 2.3vw + 0.5rem, 2.75rem);
    line-height: 1.1;
    margin: 0 0 1rem;
    color: var(--white);
}

.hero .card {
    min-height: 300px;
}

.lead {
    font-size: 1.125rem;
    color: var(--white);
}

/* Value */
.value {
    background-image: url(https://images.pexels.com/photos/5710740/pexels-photo-5710740.jpeg);
    background-repeat: no-repeat;
    background-position: 50% 30%;
    background-size: cover;
}

.value h4 {
    color: var(--white);
    line-height: 1.1;
    margin: 0 0 1rem;
}

/* Buttons: ensure >= 4.5:1 against their background */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border-radius: .8rem;
    padding: .55rem .9rem;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    text-decoration: none;
}

.btn:hover {
    filter: brightness(0.98);
}

.btn--primary {
    background: var(--primary);
    color: var(--on-primary);
    border: none;
}

.btn--primary:hover {
    filter:brightness(1.05);
}

.btn--secondary {
    background: var(--secondary);
    color: var(--on-secondary);
    border: 1px solid rgba(0,0,0,.2);
}

.btn--ghost {
    background: var(--surface); 
    color: var(--text);
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--vandyke);
    color: var(--vandyke);
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1rem;
}

.card {
    background: var(--surface);
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    color: var(--text);
}

.card h3, .card h4, .card h5, .card h6 {
    margin: .25rem 0 .5rem;
    color: var(--heading);
}

.card p {
    margin: 0;
    color: var(--text);
}

/* Icons maintain contrast (text color) */
.icon{
    width: 28px;
    height: 28px;
    border-radius: .5rem;
    background: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--on-secondary);
}

@media (max-width: 900px) { 
    .cards {
        grid-template-columns: 1fr;
    } 

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

/* Testimonials */
.testimonials {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2,1fr);
}

.testimonial {
    background: var(--surface);
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    color: var(--text);
}

.testimonial blockquote {
    margin: 0;
    font-weight: 600;
}

.testimonial footer {
    margin-top: .5rem;
    color: #6d625c;
}

@media (max-width: 900px) { 
    .testimonials {
        grid-template-columns: 1fr;
    } 
}

/* Services */
.service-list {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.service {
    background: var(--surface);
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    color: var(--text);
}

.service h3, .service h4 {
    margin:.25rem 0 .25rem;
    color: var(--heading);
}

.service p {
    margin: 0;
}

@media (max-width: 900px) { 
    .service-list {
        grid-template-columns: 1fr;
    } 
}

/* Accreditations */
.accreditations {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1rem;
}

.accreditations .tile {
    background: var(--surface);
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    color: var(--text);
}

@media (max-width: 900px) { 
    .accreditations {
        grid-template-columns: 1fr;
    } 
}

/* Footer */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    color: #4d4542;
    background: rgba(255,255,255,.6);
}

.footer strong {
    color: var(--heading);
}

.footer small {
    display: block;
    margin-top: .1rem;
    margin-bottom: .5rem;
}

/* Utilities */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--walnut);
    color: var(--on-accent);
    padding: .35rem .6rem;
    border-radius: .6rem;
    border: 1px solid rgba(0,0,0,.2);
    font-size: .9rem;
}

.kicker {
    border-bottom: solid .3rem var(--orange);
    color: var(--white);
    padding-left: .2rem;
    font-weight: 800;
    letter-spacing: .03em; 
    text-transform: uppercase;
    font-size: .85rem;
}

.address {
    white-space: pre-line;
}

/* High-contrast mode support */
@media (prefers-contrast: more) {
    :root { 
        --border: #6A5F55; 
    }
    
    a { 
        text-decoration: underline; 
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important; 
        transition: none !important;
    }
}

.section-secondary {
    background-color: var(--secondary);
}

.dark {
    background-color: var(--vandyke);
}