/* ============================================================
   JoLondon Essential Site System — Shared CSS
   Version 1.0
   
   CUSTOMIZATION GUIDE:
   All brand-level overrides live in the :root block below.
   Change only the [CUSTOMIZE] values. Never change layout
   or spacing variables unless you intend to break the system.
   ============================================================ */

/* --- DESIGN TOKENS ---------------------------------------- */
:root {
    /* [CUSTOMIZE] Brand Colors */
    --brand-primary:    #7a3e2c;   /* Main accent (buttons, links, highlights) */
    --brand-secondary:  #5a2d1e;   /* Hover state / darker accent */
    --brand-light:      #f5ede9;   /* Soft tint of brand color */

    /* System Colors (do not customize) */
    --text-primary:     #1a1a1a;
    --text-secondary:   #666;
    --surface-color:    #ffffff;
    --bg-tint:          #f9f9fa;
    --border-color:     #e8e8e8;

    /* Typography */
    --font-body:        'Inter', system-ui, sans-serif;
    --font-heading:     'Inter', system-ui, sans-serif;

    /* Spacing Scale */
    --space-xs:   8px;
    --space-sm:   16px;
    --space-md:   32px;
    --space-lg:   60px;
    --space-xl:   90px;

    /* Radius */
    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  16px;
    --radius-xl:  20px;

    /* Shadows */
    --shadow-card: 0 4px 12px rgba(0,0,0,0.04);
    --shadow-card-hover: 0 12px 28px rgba(0,0,0,0.07);
}

/* --- RESET & BASE ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--surface-color);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-primary); text-decoration: none; }
a:hover { color: var(--brand-secondary); }
ul { list-style: none; }

/* --- TYPOGRAPHY ------------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--text-secondary); line-height: 1.65; }

/* --- LAYOUT ----------------------------------------------- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--space-lg) 0;
}

.section-sm {
    padding: 48px 0;
}

.bg-tint { background: var(--bg-tint); }

/* Content width constraint */
.content-narrow { max-width: 680px; }
.content-medium  { max-width: 820px; }

/* --- GRID UTILITIES --------------------------------------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* --- HEADER ----------------------------------------------- */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    border-bottom-color: var(--border-color);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

/* [CUSTOMIZE] Logo area */
.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--brand-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.logo-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.logo-img { height: 32px; width: auto; }

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active { color: var(--text-primary); }

/* Mobile toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.bar {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-toggle.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active .bar:nth-child(2) { opacity: 0; }
.mobile-toggle.active .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- BUTTONS ---------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: var(--font-body);
}

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

.btn-primary:hover {
    background: var(--brand-secondary);
    border-color: var(--brand-secondary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* --- CARDS ------------------------------------------------ */
.card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

.card-icon {
    width: 44px;
    height: 44px;
    background: var(--brand-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--brand-primary);
}

.card-featured {
    border: 2px solid var(--brand-primary);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

/* --- SERVICE LIST ----------------------------------------- */
.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    padding-left: 20px;
    margin-bottom: 10px;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.service-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--brand-primary);
    font-weight: 400;
}

/* --- STEP / PROCESS --------------------------------------- */
.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-primary);
    opacity: 0.8;
    display: block;
    margin-bottom: 10px;
}

/* --- CTA BAND --------------------------------------------- */
.cta-band {
    background: var(--brand-primary);
    color: #fff;
    padding: var(--space-lg) 0;
    text-align: center;
}

.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p  { color: rgba(255,255,255,0.82); margin-bottom: 36px; }

.btn-cta-light {
    background: #fff;
    color: var(--brand-primary);
    border-color: #fff;
}

.btn-cta-light:hover {
    background: rgba(255,255,255,0.9);
    color: var(--brand-secondary);
    border-color: rgba(255,255,255,0.9);
}

.btn-cta-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.btn-cta-ghost:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* --- DIVIDER --------------------------------------------- */
.section-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 0;
}

/* --- TRUST / PROOF --------------------------------------- */
.trust-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.trust-icon {
    width: 36px;
    height: 36px;
    background: var(--brand-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    flex-shrink: 0;
}

/* --- CONTACT FORM ---------------------------------------- */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--surface-color);
    transition: border-color 0.2s;
    outline: none;
    -webkit-appearance: none;
}

.form-control:focus { border-color: var(--brand-primary); }

textarea.form-control { min-height: 140px; resize: vertical; }

/* --- FOOTER ----------------------------------------------- */
footer {
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    margin-top: 0;
    padding: 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 0;
    text-align: center;
}

.footer-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.footer-email {
    font-size: 0.82rem;
    line-height: 1.4;
}

.footer-email a { color: var(--text-secondary); }

.footer-nav {
    display: flex;
    gap: 18px;
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.footer-nav a:hover { color: var(--text-primary); }

.footer-copy {
    margin-top: 10px;
    font-size: 0.78rem;
    color: #bbb;
    line-height: 1.4;
}

/* --- FADE IN ANIMATION ------------------------------------ */
.fade-in {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: none;
}

/* --- PHONE CTA (Local Service) ---------------------------- */
.phone-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand-primary);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.phone-cta:hover { color: var(--brand-secondary); }

/* --- HERO VARIANTS ---------------------------------------- */
.hero-text-only {
    padding: 80px 0 60px;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0 60px;
}

.hero-centered {
    padding: 100px 0 80px;
    text-align: center;
}

/* --- RESPONSIVE ------------------------------------------- */
@media (max-width: 900px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero-split { grid-template-columns: 1fr; gap: 40px; padding: 60px 0 40px; }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--surface-color);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 24px;
        gap: 16px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    }

    .nav-menu.active { display: flex; }
    .mobile-toggle { display: flex; }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .hero-centered { padding: 70px 0 50px; }
    .hero-text-only { padding: 60px 0 48px; }

    .cta-band { padding: 48px 0; }

    .section { padding: 48px 0; }
}

/* --- SHARED SCRIPT HELPERS ------------------------------- */
/* Applied via JS: .nav-menu.active, header.scrolled, .fade-in.visible */
