@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

/* --- CSS Variables --- */
:root {
    --navy: #1a365d;
    --gold: #c5a880;
    --sage: #7a9a82;
    --light-bg: #f9f8f6;
    --white: #ffffff;
    --dark-text: #2d3748;
}

/* --- Global Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Base Styles --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.8;
}

/* --- Typography Scale --- */
h1 {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.15;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}

h3 {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

h4 {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
}

p {
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
}

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

ul {
    list-style: none;
}

/* --- Section Backgrounds --- */
.section-light  { background: var(--light-bg); }
.section-white  { background: var(--white); }
.section-navy   { background: var(--navy); color: white; }
.section-gold   { background: var(--gold); }

/* --- Section Padding --- */
.section-pad {
    padding: 90px 20px;
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Grid Layouts --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

/* --- Header --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    position: relative;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-area img {
    display: block;
    height: 90px;
    width: auto;
    mix-blend-mode: multiply;
    transition: height 0.3s ease;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 2px;
}

nav ul li a:hover {
    color: var(--gold);
}

.cta-btn {
    background-color: var(--navy);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 25px;
    transition: background 0.3s;
}

.cta-btn:hover {
    background-color: var(--gold) !important;
    color: var(--navy) !important;
}

/* --- Hero (index) --- */
.hero {
    background: linear-gradient(rgba(26,54,93,0.88), rgba(26,54,93,0.88)),
                url('https://images.unsplash.com/photo-1576765608535-5f04d1e3f289?auto=format&fit=crop&w=1400&q=80')
                no-repeat center center / cover;
    color: var(--white);
    padding: 130px 20px 110px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    color: white;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 36px;
    color: rgba(255,255,255,0.85);
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-gold {
    background-color: var(--gold);
    color: var(--navy);
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(197,168,128,0.4);
}

.btn-outline-white {
    background: transparent;
    color: white;
    padding: 15px 38px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
    border: 2px solid rgba(255,255,255,0.6);
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background: white;
    color: var(--navy);
    border-color: white;
}

/* --- Section Intro Text --- */
.section-intro {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px;
    font-size: 18px;
    color: #4a5568;
    line-height: 1.8;
}

/* --- Forms --- */
.contact-form {
    background-color: var(--white);
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.07);
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--navy);
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: var(--dark-text);
    background: white;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--navy);
}

.form-group input.valid,
.form-group textarea.valid,
.form-group select.valid {
    border-color: var(--sage);
}

.form-group input.invalid,
.form-group textarea.invalid,
.form-group select.invalid {
    border-color: #e53e3e;
}

.field-error {
    color: #e53e3e;
    font-size: 13px;
    margin-top: 4px;
    display: none;
}

.field-error.show {
    display: block;
}

.char-counter {
    text-align: right;
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
}

.submit-btn {
    background-color: var(--navy);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26,54,93,0.25);
}

.form-note {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: var(--sage);
    font-weight: 600;
}

/* --- Consent Checkbox --- */
.consent-group {
    margin-bottom: 22px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.consent-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.consent-box {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.consent-box::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease;
    margin-top: -2px;
}

.consent-label input:checked ~ .consent-box {
    background: var(--navy);
    border-color: var(--navy);
}

.consent-label input:checked ~ .consent-box::after {
    transform: rotate(45deg) scale(1);
}

.consent-label input:focus-visible ~ .consent-box {
    box-shadow: 0 0 0 3px rgba(26,54,93,0.2);
}

.consent-group .field-error.show ~ .consent-box,
.consent-box.invalid {
    border-color: #e53e3e;
}

.consent-text {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.6;
}

.consent-text a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.3s;
}

.consent-text a:hover {
    color: var(--gold);
}

.form-success {
    text-align: center;
    padding: 60px 30px;
    display: none;
}

.form-success h3 {
    color: var(--navy);
    margin-bottom: 12px;
}

/* --- Contact Info Block --- */
.contact-info-block {
    padding: 10px 0;
}

.contact-info-block h3 {
    color: var(--navy);
    margin-bottom: 24px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-method-icon {
    width: 44px;
    height: 44px;
    background: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gold);
}

.contact-method-icon svg {
    width: 20px;
    height: 20px;
}

.contact-method-text strong {
    display: block;
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-method-text span {
    color: #4a5568;
    font-size: 15px;
}

.map-wrapper {
    margin-top: 28px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* --- Privacy / Terms page --- */
.policy-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 90px 20px;
}

.policy-block {
    margin-bottom: 48px;
}

.policy-block h3 {
    color: var(--navy);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
}

.policy-block p {
    color: #4a5568;
    margin-bottom: 12px;
}

.policy-hipaa-notice {
    background: #fff8ee;
    border-left: 4px solid var(--gold);
    padding: 18px 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.3px;
    line-height: 1.7;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
}

.policy-list {
    list-style: none;
    padding: 0;
    margin: 14px 0 16px;
}

.policy-list li {
    padding: 10px 0 10px 24px;
    border-bottom: 1px solid #f0f0f0;
    color: #4a5568;
    font-size: 16px;
    line-height: 1.7;
    position: relative;
}

.policy-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.policy-list--labeled li::before {
    display: none;
}

.policy-list--labeled li {
    padding-left: 0;
    padding: 12px 0;
}

.policy-list--labeled li strong {
    color: var(--navy);
    display: block;
    margin-bottom: 4px;
}

.policy-contact-block {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 24px 28px;
    margin-top: 16px;
    border: 1px solid #e2e8f0;
}

.policy-contact-block p {
    margin-bottom: 6px;
    font-size: 15px;
}

.policy-contact-block a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.policy-contact-block a:hover {
    color: var(--gold);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    h1 { font-size: 44px; }
    h2 { font-size: 32px; }

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

/* ── MOBILE (≤768px) ── touch everything below this line only */
@media (max-width: 768px) {
    /* Typography scale — smaller & tighter */
    h1 { font-size: 26px; line-height: 1.25; }
    h2 { font-size: 21px; line-height: 1.3;  }
    h3 { font-size: 16px; }
    h4 { font-size: 14px; }
    p  { font-size: 14px; line-height: 1.65; }

    /* Section spacing — halved */
    .section-pad { padding: 44px 16px; }

    /* Grids */
    .grid-2 { grid-template-columns: 1fr; gap: 20px; }
    .grid-3 { grid-template-columns: 1fr; gap: 16px; }

    /* Hero */
    .hero { padding: 52px 16px 44px; }
    .hero h1 { font-size: 22px; text-wrap: balance; }
    .hero p  { font-size: 14px; margin-bottom: 20px; }
    .hero-buttons { flex-direction: column; align-items: center; gap: 8px; }
    .btn-gold, .btn-outline-white {
        width: auto;
        min-width: 220px;
        text-align: center;
        padding: 11px 28px;
        font-size: 13px;
    }

    /* Forms */
    .contact-form { padding: 20px 14px; }
    .contact-form h3 { font-size: 16px; }
    .form-group   { margin-bottom: 11px; }
    .form-group label { font-size: 12px; margin-bottom: 4px; }
    .form-group input,
    .form-group textarea,
    .form-group select { padding: 9px 11px; font-size: 13px; }
    .form-group textarea { rows: 4; }
    .char-counter { font-size: 11px; }
    .submit-btn { font-size: 14px; padding: 12px 24px; width: 100%; }
    .form-note { font-size: 12px; }
    .consent-text { font-size: 11px; line-height: 1.5; }

    /* Section intro */
    .section-intro { font-size: 14px; margin-bottom: 28px; }
}
