/* ============================================
   CATALINA ISLAND WELLNESS CENTER
   Clean Minimalist — Burgundy + Blush
   ============================================ */

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

:root {
    --burgundy: #7B2D3B;
    --burgundy-dark: #5C1F2B;
    --burgundy-light: #9A3D4F;
    --blush: #F5E6E0;
    --blush-light: #FBF5F3;
    --blush-mid: #F0D5CC;
    --cream: #FDF8F6;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-mid: #4A4A4A;
    --text-light: #7A7A7A;
    --text-muted: #9A9A9A;
    --line: #E8DDD8;
    --line-light: #F0E8E4;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --easeInOut: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

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

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-dark);
}

.section-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.8;
    max-width: 560px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all 0.35s var(--ease-out);
}

.btn-primary {
    background-color: var(--burgundy);
    color: var(--white);
    border: 1.5px solid var(--burgundy);
}

.btn-primary:hover {
    background-color: var(--burgundy-dark);
    border-color: var(--burgundy-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(123, 45, 59, 0.25);
}

.btn-ghost {
    background-color: transparent;
    color: var(--burgundy);
    border: 1.5px solid var(--burgundy);
}

.btn-ghost:hover {
    background-color: var(--burgundy);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 248, 246, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line-light);
    transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.06);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
}

.nav-logo-icon {
    color: var(--burgundy);
    flex-shrink: 0;
}

.nav-logo-text {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.2;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-mid);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--burgundy);
    transition: width 0.3s var(--ease-out);
}

.nav-link:hover {
    color: var(--burgundy);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--burgundy);
    padding: 0.625rem 1.5rem;
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}

.nav-cta:hover {
    background: var(--burgundy-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(123, 45, 59, 0.3);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-dark);
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

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

.nav-toggle.active .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(253, 248, 246, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out);
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: var(--text-dark);
    padding: 8px;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.mobile-menu-link {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-dark);
    padding: 1rem 0;
    transition: color 0.3s ease;
    text-decoration: none;
}

.mobile-menu-link:hover {
    color: var(--burgundy);
}

.mobile-menu-divider {
    width: 48px;
    height: 1px;
    background: var(--line);
    margin: 1.5rem 0;
}

.mobile-menu-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--burgundy);
    letter-spacing: 0.05em;
    text-decoration: none;
    padding: 0.75rem 0;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--cream);
    padding-top: 72px;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(245, 230, 224, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(123, 45, 59, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.hero-greeting {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 400;
    color: var(--burgundy);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.hero-headline {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.hero-subtext {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 440px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-details {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.hero-detail {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 400;
}

.hero-detail svg {
    color: var(--burgundy);
    flex-shrink: 0;
}

.hero-image {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 600/750;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-accent {
    position: absolute;
    top: -16px;
    left: -16px;
    right: 16px;
    bottom: 16px;
    border: 1px solid var(--burgundy);
    border-radius: 4px;
    opacity: 0.25;
    pointer-events: none;
    z-index: -1;
}

/* --- Section Divider --- */
.section-divider {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-divider-line {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--line), transparent);
}

/* --- Services Section --- */
.services {
    padding: 7rem 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

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

.service-card {
    padding: 2.25rem;
    border: 1px solid var(--line-light);
    border-radius: 4px;
    transition: all 0.4s var(--ease-out);
    background: var(--white);
}

.service-card:hover {
    border-color: var(--blush-mid);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(123, 45, 59, 0.08);
}

.service-icon {
    color: var(--burgundy);
    margin-bottom: 1.5rem;
    opacity: 0.85;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.75;
}

/* --- About Section --- */
.about {
    padding: 7rem 0;
    background: var(--cream);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.about-image-side img {
    border-radius: 4px;
    width: 100%;
    height: 700px;
    object-fit: cover;
}

.about-image-caption {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-muted);
    margin-top: 1rem;
    text-align: center;
}

.about-content-side {
    padding: 1rem 0;
}

.about-text {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.about-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.about-stat-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--burgundy);
    line-height: 1;
}

.about-stat-label {
    font-size: 0.78rem;
    color: var(--text-light);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 400;
}

.about-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--line);
}

/* --- Philosophy Section --- */
.philosophy {
    padding: 7rem 0;
    background: var(--white);
}

.philosophy-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.philosophy-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    line-height: 1.2;
}

.philosophy-text {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.philosophy-image-side img {
    border-radius: 4px;
    width: 100%;
    height: 620px;
    object-fit: cover;
}

/* --- Contact Section --- */
.contact {
    padding: 7rem 0;
    background: var(--blush-light);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-text {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.85;
    margin-bottom: 2.5rem;
    max-width: 440px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-detail-icon {
    color: var(--burgundy);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-detail-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.contact-detail-value {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 400;
}

.contact-detail-value a {
    color: var(--burgundy);
    transition: color 0.3s ease;
}

.contact-detail-value a:hover {
    color: var(--burgundy-dark);
    text-decoration: underline;
}

/* --- Contact Form --- */
.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 4px;
    border: 1px solid var(--line-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-dark);
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 2px;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    border-color: var(--burgundy);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.08);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A7A7A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

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

.form-success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(123, 45, 59, 0.06);
    border-radius: 2px;
    color: var(--burgundy);
    font-size: 0.9rem;
    font-weight: 400;
}

.form-success svg {
    flex-shrink: 0;
}

/* --- Footer --- */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.25fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    color: var(--blush-mid);
}

.footer-logo span {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--white);
}

.footer-tagline {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    max-width: 280px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--white);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-phone, .footer-email {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.footer-phone:hover, .footer-email:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-inner {
        gap: 2.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-inner,
    .philosophy-inner,
    .contact-inner {
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 3rem;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2rem 1.5rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-headline {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .hero-image-wrapper {
        aspect-ratio: 4/3;
        max-height: 400px;
    }

    .hero-image-accent {
        top: -10px;
        left: -10px;
        right: 10px;
        bottom: 10px;
    }

    .services {
        padding: 4rem 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card {
        padding: 1.75rem;
    }

    .about,
    .philosophy,
    .contact {
        padding: 4rem 0;
    }

    .about-inner,
    .philosophy-inner,
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image-side img {
        height: 400px;
    }

    .philosophy-image-side img {
        height: 350px;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    .nav-inner {
        padding: 0 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .hero-details {
        gap: 0.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .about-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .about-stat-divider {
        display: none;
    }
}
