/* ============================================================
   Design system. Primary/accent colors come from CSS variables
   set in includes/header.php, driven by the admin Settings page.
   ============================================================ */

body {
    font-family: 'Inter', Arial, sans-serif;
    color: #262626;
    background-color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, .display-serif {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    letter-spacing: -0.01em;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color .2s ease;
}
a:hover {
    color: var(--primary-color);
}

/* ---------- Nav ---------- */
.site-nav {
    transition: box-shadow .25s ease, padding .25s ease;
    padding-top: 14px;
    padding-bottom: 14px;
}
.site-nav.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    padding-top: 8px;
    padding-bottom: 8px;
}
.navbar-brand {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #fff !important;
}
.site-nav .nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    font-size: 0.95rem;
    margin-left: 4px;
    padding: 8px 16px !important;
    position: relative;
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active {
    color: #fff !important;
}
.site-nav .nav-link:after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 4px;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.site-nav .nav-link:hover:after,
.site-nav .nav-link.active:after {
    transform: scaleX(1);
}
.site-nav .nav-cta {
    background: var(--accent-color);
    color: #1a1a1a !important;
    border-radius: 999px;
    padding: 8px 20px !important;
    margin-left: 12px;
}
.site-nav .nav-cta:after { display: none; }
.site-nav .nav-cta:hover { filter: brightness(0.92); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 86vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    background-color: var(--primary-color);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.hero-bg.hero-bg-gradient {
    background:
        radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--accent-color) 35%, transparent), transparent 45%),
        radial-gradient(circle at 85% 75%, color-mix(in srgb, var(--accent-color) 25%, transparent), transparent 50%),
        linear-gradient(135deg, var(--primary-color) 0%, #10131a 100%);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 60px;
    padding-bottom: 40px;
}
.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 18px;
    display: inline-block;
}
.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: 1.08;
    font-weight: 500;
    margin-bottom: 26px;
}
.hero-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--accent-color);
    display: block;
}
.hero-sub {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    max-width: 560px;
    margin-bottom: 34px;
    line-height: 1.6;
}
.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-color);
    color: #1a1a1a;
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 999px;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.btn-hero:hover {
    transform: translateY(-3px);
    color: #1a1a1a;
    box-shadow: 0 16px 36px rgba(0,0,0,0.32);
}
.btn-hero .arrow {
    transition: transform .25s ease;
}
.btn-hero:hover .arrow {
    transform: translateX(4px);
}

.hero-cta-row {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-cta-card {
    flex: 1 1 220px;
    padding: 26px clamp(20px, 4vw, 60px);
    color: #fff !important;
    background: rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-right: 1px solid rgba(255,255,255,0.12);
    transition: background .25s ease;
    font-size: 1.05rem;
    font-weight: 500;
}
.hero-cta-card:last-child { border-right: none; }
.hero-cta-card:hover {
    background: rgba(0,0,0,0.42);
    color: #fff !important;
}
.circle-arrow {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.hero-cta-card:hover .circle-arrow {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #1a1a1a;
    transform: translateX(3px);
}

/* ---------- Stats bar ---------- */
.stats-bar {
    background: #f2efe9;
    padding: 56px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}
.stat-value {
    display: block;
    font-family: 'Fraunces', serif;
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}
.stat-label {
    display: block;
    color: #6b6b6b;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ---------- Sections ---------- */
.section {
    padding: 90px 0;
}
.section-alt {
    background-color: #f7f6f3;
}
.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 12px;
    display: block;
    text-align: center;
}
.section-title {
    font-weight: 500;
    color: var(--primary-color);
    text-align: center;
    margin: 0 auto 50px;
    max-width: 620px;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

/* ---------- Service / feature cards ---------- */
.card-service {
    border: none;
    border-radius: 14px;
    padding: 38px 32px;
    height: 100%;
    background: #fff;
    box-shadow: 0 2px 18px rgba(20,20,20,0.06);
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative;
    overflow: hidden;
}
.card-service:before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}
.card-service:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(20,20,20,0.14);
}
.card-service:hover:before {
    transform: scaleX(1);
}
.card-service .service-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--accent-color) 16%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.card-service h5 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: 12px;
}
.card-service p { color: #666; margin-bottom: 0; }

/* ---------- Team cards ---------- */
.card-team {
    border: none;
    text-align: center;
    padding: 36px 28px;
    height: 100%;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 18px rgba(20,20,20,0.06);
    transition: transform .3s ease, box-shadow .3s ease;
}
.card-team:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(20,20,20,0.12);
}
.card-team img,
.card-team .avatar-placeholder {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: block;
    border: 3px solid color-mix(in srgb, var(--accent-color) 60%, transparent);
    transition: border-color .3s ease;
}
.card-team:hover img,
.card-team:hover .avatar-placeholder {
    border-color: var(--accent-color);
}
.avatar-placeholder {
    background: #eee;
}
.card-team h5 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    margin-bottom: 4px;
}
.card-team .role {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
    display: block;
}
.card-team p.bio {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ---------- CTA band ---------- */
.cta-band {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 90px 0;
    position: relative;
}
.cta-band h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    margin-bottom: 14px;
}
.cta-band p {
    color: rgba(255,255,255,0.75);
    margin-bottom: 32px;
}
.btn-outline-light-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid rgba(255,255,255,0.5);
    color: #fff;
    padding: 13px 30px;
    border-radius: 999px;
    font-weight: 600;
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.btn-outline-light-pill:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #1a1a1a;
    transform: translateY(-3px);
}
.btn-outline-light-pill .arrow { transition: transform .25s ease; }
.btn-outline-light-pill:hover .arrow { transform: translateX(4px); }

/* ---------- Footer ---------- */
.site-footer {
    color: rgba(255,255,255,0.85);
    padding-top: 60px;
}
.footer-brand {
    font-family: 'Fraunces', serif;
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.footer-tagline {
    color: rgba(255,255,255,0.6);
}
.footer-tagline .accent { color: var(--accent-color); font-style: italic; }
.footer-heading {
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 10px;
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
}
.footer-links a {
    color: rgba(255,255,255,0.65);
}
.footer-links a:hover {
    color: var(--accent-color);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.5);
}

/* ---------- Generic page sections (about/contact) ---------- */
.page-hero {
    background: var(--primary-color);
    color: #fff;
    padding: 90px 0 70px;
    text-align: center;
}
.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}
.page-hero p {
    color: rgba(255,255,255,0.75);
    max-width: 560px;
    margin: 14px auto 0;
}

.prose {
    color: #444;
    line-height: 1.85;
    font-size: 1.05rem;
}

.license-note {
    display: inline-block;
    margin-top: 40px;
    padding: 10px 18px;
    background: #f2efe9;
    border-radius: 999px;
    font-size: 0.85rem;
    color: #6b6b6b;
}

/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}
.reveal.delay-1.in-view { transition-delay: .12s; }
.reveal.delay-2.in-view { transition-delay: .24s; }
.reveal.delay-3.in-view { transition-delay: .36s; }
.reveal.delay-4.in-view { transition-delay: .48s; }
.reveal.delay-5.in-view { transition-delay: .6s; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    .hero { min-height: 78vh; }
    .stats-grid { grid-template-columns: 1fr; gap: 26px; }
    .hero-cta-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
}
