/* ========================================
   Dr. Walter Jonathan Friedley - Medical Practice
   Color Palette: Deep Navy (#1B3A5C) + Warm Gold (#C9A84C)
   ======================================== */

/* CSS Custom Properties */
:root {
    --navy-900: #0d1f33;
    --navy-800: #1B3A5C;
    --navy-700: #234b73;
    --navy-600: #2c5c8a;
    --navy-500: #3a6fa0;
    --navy-100: #d4e2f0;
    --navy-50: #eaf2f9;
    
    --gold-600: #a88832;
    --gold-500: #C9A84C;
    --gold-400: #d4b85e;
    --gold-300: #e0c97a;
    --gold-200: #f0e0a8;
    --gold-100: #faf3d8;
    
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #868e96;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    --font-heading: 'Merriweather', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(27, 58, 92, 0.08);
    --shadow-md: 0 4px 12px rgba(27, 58, 92, 0.1);
    --shadow-lg: 0 8px 30px rgba(27, 58, 92, 0.12);
    --shadow-xl: 0 16px 50px rgba(27, 58, 92, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--navy-700);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--gold-500);
}

ul {
    list-style: none;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--navy-800);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 600;
}

.skip-link:focus {
    top: 16px;
    color: var(--white);
}

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

/* ========================================
   Navigation
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--navy-800);
    font-family: var(--font-heading);
    text-decoration: none;
}

.logo:hover {
    color: var(--navy-800);
}

.logo-icon {
    color: var(--gold-500);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-size: 15px;
    font-weight: 700;
}

.logo-tagline {
    font-size: 11px;
    font-family: var(--font-body);
    color: var(--gold-600);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--navy-800);
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-links a {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-links a:hover {
    color: var(--navy-800);
    background: var(--navy-50);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-body);
    line-height: 1.4;
}

.btn-primary {
    background: var(--gold-500);
    color: var(--navy-900);
    border-color: var(--gold-500);
}

.btn-primary:hover {
    background: var(--gold-400);
    border-color: var(--gold-400);
    color: var(--navy-900);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--navy-800);
    border-color: var(--navy-800);
}

.btn-outline:hover {
    background: var(--navy-800);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

/* ========================================
   Section Labels & Titles
   ======================================== */
.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-600);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.25;
    color: var(--navy-800);
    margin-bottom: 20px;
}

.section-description {
    font-size: 17px;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.gold-accent {
    color: var(--gold-500);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--navy-50) 0%, var(--white) 50%, var(--gold-100) 100%);
    overflow: hidden;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--navy-700);
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.hero-badge svg {
    color: var(--gold-500);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--navy-800);
    margin-bottom: 24px;
}

.hero-description {
    font-size: 17px;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--navy-700);
}

.trust-item svg {
    color: var(--gold-500);
    flex-shrink: 0;
}

/* Hero Image */
.hero-image {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.hero-image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--gold-500);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.stat-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--navy-800);
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--gray-600);
    margin-top: 4px;
}

/* ========================================
   About Section
   ======================================== */
.about {
    padding: 100px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image-inner {
    position: relative;
}

.about-image-inner img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image-accent {
    position: absolute;
    bottom: -16px;
    left: -16px;
    width: 120px;
    height: 120px;
    background: var(--gold-100);
    border-radius: var(--radius-md);
    z-index: -1;
}

.about-content .section-label {
    margin-bottom: 12px;
}

.about-text {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--navy-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-700);
    flex-shrink: 0;
}

.feature-text strong {
    display: block;
    color: var(--navy-800);
    font-size: 15px;
    margin-bottom: 2px;
}

.feature-text span {
    font-size: 14px;
    color: var(--gray-600);
}

/* ========================================
   Services Section
   ======================================== */
.services {
    padding: 100px 0;
    background: var(--gray-50);
}

.section-header {
    margin-bottom: 56px;
}

.section-header .section-description {
    margin-bottom: 0;
}

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

.service-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--gray-100);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-200);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-400);
    margin-bottom: 20px;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--navy-800);
    margin-bottom: 12px;
}

.service-description {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ========================================
   Approach Section
   ======================================== */
.approach {
    padding: 100px 0;
    background: var(--white);
}

.approach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.approach-content .section-label {
    margin-bottom: 12px;
}

.approach-text {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 40px;
}

.approach-steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.approach-step {
    display: flex;
    gap: 20px;
}

.step-number {
    width: 44px;
    height: 44px;
    background: var(--gold-500);
    color: var(--navy-900);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--navy-800);
    margin-bottom: 6px;
}

.step-text {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.7;
}

.approach-image {
    position: relative;
}

.approach-image-inner img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   Insurance Section
   ======================================== */
.insurance {
    padding: 80px 0;
    background: var(--navy-800);
}

.insurance-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.insurance .section-label {
    color: var(--gold-400);
}

.insurance .section-title {
    color: var(--white);
}

.insurance .section-title .gold-accent {
    color: var(--gold-400);
}

.insurance-text {
    font-size: 16px;
    color: var(--navy-100);
    line-height: 1.8;
    margin-bottom: 28px;
}

.insurance .btn-primary {
    background: var(--gold-500);
    color: var(--navy-900);
    border-color: var(--gold-500);
}

.insurance .btn-primary:hover {
    background: var(--gold-400);
    border-color: var(--gold-400);
}

.insurance-logos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.insurance-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px;
    border-radius: var(--radius-md);
    color: var(--white);
    font-weight: 500;
    font-size: 15px;
    transition: all var(--transition);
}

.insurance-badge:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
}

.insurance-badge svg {
    color: var(--gold-400);
    flex-shrink: 0;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    padding: 100px 0 60px;
    background: var(--gray-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 48px;
}

.contact-info .section-label {
    margin-bottom: 12px;
}

.contact-text {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--navy-800);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-400);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    color: var(--navy-800);
    font-size: 15px;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
}

.contact-item a {
    color: var(--navy-700);
}

.contact-item a:hover {
    color: var(--gold-500);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--navy-800);
    margin-bottom: 8px;
}

.form-note {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 28px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--gray-800);
    background: var(--white);
    transition: border-color var(--transition);
    outline: none;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-success {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #d4edda;
    color: #155724;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-top: 16px;
    font-size: 15px;
}

.form-success svg {
    color: #28a745;
    flex-shrink: 0;
}

/* Map */
.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-wrapper iframe {
    width: 100%;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--navy-900);
    color: var(--navy-100);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-logo-icon {
    color: var(--gold-400);
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
}

.footer-tagline {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
    max-width: 280px;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--gray-500);
    font-size: 14px;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--gold-400);
}

.footer-contact address {
    font-style: normal;
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.8;
}

.footer-contact a {
    color: var(--gold-400);
}

.footer-contact a:hover {
    color: var(--gold-300);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--gray-600);
}

.footer-disclaimer {
    font-size: 12px !important;
    color: var(--gray-600) !important;
}

/* ========================================
   Scroll Reveal Animations
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .hero-grid,
    .about-grid,
    .approach-grid,
    .insurance-wrapper,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        height: 500px;
    }
    
    .hero-image-accent {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .approach-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
        border-top: 1px solid var(--gray-200);
    }
    
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-links a {
        padding: 12px 16px;
        width: 100%;
    }
    
    .nav-cta {
        justify-content: center;
        width: 100%;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: clamp(28px, 6vw, 42px);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .insurance-wrapper {
        grid-template-columns: 1fr;
    }
    
    .insurance-logos {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 90px 0 50px;
    }
    
    .about,
    .services,
    .approach {
        padding: 60px 0;
    }
    
    .insurance {
        padding: 60px 0;
    }
    
    .contact {
        padding: 60px 0 40px;
    }
}
