/* ========================================
   Bangs Family Practice — Custom Styles
   Palette: Charcoal (#1a1d23) + Coral (#e8635a)
   Fonts: Playfair Display + Inter
======================================== */

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

:root {
    --charcoal: #1a1d23;
    --charcoal-light: #2a2d35;
    --charcoal-mid: #3a3d45;
    --coral: #e8635a;
    --coral-dark: #d14f47;
    --coral-light: #f08078;
    --white: #ffffff;
    --off-white: #f8f7f5;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e8e8e8;
    --gray-300: #d4d4d4;
    --gray-400: #a0a0a0;
    --gray-500: #6b6b6b;
    --gray-600: #4a4a4a;
    --gray-700: #333333;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(26,29,35,0.08);
    --shadow-md: 0 4px 20px rgba(26,29,35,0.10);
    --shadow-lg: 0 10px 40px rgba(26,29,35,0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--charcoal);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.2;
    font-weight: 700;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.938rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: var(--coral);
    color: var(--white);
    border-color: var(--coral);
}

.btn-primary:hover {
    background: var(--coral-dark);
    border-color: var(--coral-dark);
}

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

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

.btn-white {
    background: var(--white);
    color: var(--charcoal);
    border-color: var(--white);
}

.btn-white:hover {
    background: var(--gray-100);
    border-color: var(--gray-100);
}

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

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

.btn-lg {
    padding: 18px 36px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ---------- Badge / Tag ---------- */
.badge {
    display: inline-block;
    background: rgba(232, 99, 90, 0.1);
    color: var(--coral);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.813rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.section-tag {
    display: inline-block;
    color: var(--coral);
    font-size: 0.813rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* ---------- Section Header ---------- */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--charcoal);
    margin-bottom: 16px;
}

.section-header p {
    color: var(--gray-500);
    font-size: 1.063rem;
    line-height: 1.7;
}

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

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--charcoal);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--coral);
    border-radius: var(--radius-sm);
    color: var(--white);
}

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

.nav-links a:not(.btn) {
    font-size: 0.938rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: color var(--transition);
    position: relative;
}

.nav-links a:not(.btn):hover {
    color: var(--charcoal);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral);
    transition: width var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

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

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    transition: all var(--transition);
    border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== HERO ========== */
.hero {
    padding: 120px 0 80px;
    background: var(--off-white);
    overflow: hidden;
}

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

.hero-content {
    max-width: 540px;
}

.hero-content h1 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    color: var(--charcoal);
    margin-bottom: 24px;
    line-height: 1.15;
}

.hero-content h1 span {
    color: var(--coral);
}

.hero-content > p {
    font-size: 1.125rem;
    color: var(--gray-500);
    line-height: 1.75;
    margin-bottom: 36px;
}

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

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

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--charcoal);
}

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

.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 6/7;
}

.hero-stat {
    position: absolute;
    bottom: -24px;
    left: -24px;
    background: var(--charcoal);
    color: var(--white);
    padding: 20px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.hero-stat .stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--coral);
}

.hero-stat .stat-label {
    font-size: 0.813rem;
    color: var(--gray-300);
    line-height: 1.4;
}

/* ========== SERVICES ========== */
.services {
    padding: 100px 0;
    background: var(--white);
}

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

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: all var(--transition);
}

.service-card:hover {
    border-color: var(--coral);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 99, 90, 0.1);
    border-radius: var(--radius-sm);
    color: var(--coral);
    margin-bottom: 20px;
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: var(--coral);
    color: var(--white);
}

.service-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.938rem;
    color: var(--gray-500);
    line-height: 1.7;
}

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

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

.about-image {
    position: relative;
}

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

.about-accent {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 120px;
    height: 120px;
    background: var(--coral);
    border-radius: var(--radius-md);
    z-index: -1;
    opacity: 0.2;
}

.about-content h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--charcoal);
    margin-bottom: 24px;
}

.about-content > p {
    color: var(--gray-500);
    font-size: 1.063rem;
    line-height: 1.75;
    margin-bottom: 16px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.938rem;
    font-weight: 500;
    color: var(--charcoal);
}

.feature-check {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 99, 90, 0.1);
    border-radius: 50%;
    color: var(--coral);
    flex-shrink: 0;
}

/* ========== INSURANCE CTA ========== */
.insurance-cta {
    padding: 100px 0;
    background: var(--charcoal);
}

.cta-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: center;
}

.cta-content h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--white);
    margin-bottom: 20px;
}

.cta-content p {
    color: var(--gray-300);
    font-size: 1.063rem;
    line-height: 1.75;
    margin-bottom: 36px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.cta-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* ========== TESTIMONIALS ========== */
.testimonials {
    padding: 100px 0;
    background: var(--white);
}

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

.testimonial-card {
    background: var(--off-white);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}

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

.testimonial-stars {
    display: flex;
    gap: 4px;
    color: var(--coral);
    margin-bottom: 20px;
}

.testimonial-card > p {
    font-size: 0.938rem;
    color: var(--gray-600);
    line-height: 1.75;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--charcoal);
    border-radius: 50%;
    color: var(--white);
}

.testimonial-author span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--charcoal);
}

/* ========== CONTACT ========== */
.contact {
    padding: 100px 0;
    background: var(--off-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-info h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--charcoal);
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--gray-500);
    font-size: 1.063rem;
    line-height: 1.75;
    margin-bottom: 40px;
}

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

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

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 99, 90, 0.1);
    border-radius: var(--radius-sm);
    color: var(--coral);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 0.813rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 1rem;
    color: var(--charcoal);
    line-height: 1.5;
}

.contact-item a {
    color: var(--coral);
    font-weight: 500;
    transition: color var(--transition);
}

.contact-item a:hover {
    color: var(--coral-dark);
}

.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

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

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.contact-form-wrapper > p {
    color: var(--gray-500);
    font-size: 0.938rem;
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.938rem;
    color: var(--charcoal);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(232, 99, 90, 0.1);
}

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

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

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success.active {
    display: block;
}

.success-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 99, 90, 0.1);
    border-radius: 50%;
    color: var(--coral);
    margin: 0 auto 20px;
}

.form-success h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.form-success p {
    color: var(--gray-500);
    font-size: 0.938rem;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--charcoal);
    color: var(--gray-300);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--charcoal-light);
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.938rem;
    line-height: 1.7;
    color: var(--gray-400);
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.938rem;
    color: var(--gray-400);
    transition: color var(--transition);
}

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

.footer-contact p {
    font-size: 0.938rem;
    line-height: 1.8;
}

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

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

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

.footer-bottom p {
    font-size: 0.813rem;
    color: var(--gray-500);
}

.footer-bottom a {
    color: var(--gray-400);
    transition: color var(--transition);
}

.footer-bottom a:hover {
    color: var(--coral);
}

/* ========== MOBILE MENU ========== */
.nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    z-index: 999;
}

.nav-links.active {
    transform: translateY(0);
    opacity: 1;
}

.nav-links a:not(.btn) {
    font-size: 1rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: flex;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav-links .btn {
        display: none;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-trust {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 480px;
        margin: 0 auto;
    }
    
    .hero-stat {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: -1;
        max-width: 480px;
        margin: 0 auto;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cta-image {
        order: -1;
    }
    
    .cta-image img {
        height: 280px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
    
    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form-wrapper {
        padding: 28px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 90px 0 50px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stat {
        padding: 16px 20px;
    }
    
    .hero-stat .stat-number {
        font-size: 1.5rem;
    }
    
    .services,
    .about,
    .insurance-cta,
    .testimonials,
    .contact {
        padding: 70px 0;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
