/* ==========================================================================
   mysa digital - Home Page Styles
   A comfortable place to be on the internet
   ========================================================================== */

/* ===== CSS Variables ===== */
:root {
    /* Core mysa palette */
    --mysa-orange: #E96C09;
    --mysa-cream: #F9F6EE;
    --mysa-navy: #1C2541;
    --mysa-sage: #82846D;
    --mysa-green: #60993E;

    /* Product accents */
    --buzzboard-accent: #E96C09;
    --scratchboard-accent: #60993E;
    --pondera-start: #8B5CF6;
    --pondera-end: #3B82F6;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Newsreader', Georgia, serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Transitions */
    --transition-smooth: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-gentle: all 0.4s ease-out;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-snap-type: y proximity;
    scroll-padding-top: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--mysa-cream);
    color: var(--mysa-navy);
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Scroll snap for sections */
section {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

/* Remove scroll snap from about section to keep footer accessible */
.about-section {
    scroll-snap-align: none;
}

/* Footer should never snap */
footer {
    scroll-snap-align: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
    color: var(--mysa-navy);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--space-sm);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: var(--space-md);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: var(--space-sm);
}

p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    margin-bottom: var(--space-sm);
    max-width: 70ch;
}

a {
    color: var(--mysa-orange);
    text-decoration: none;
    transition: var(--transition-gentle);
}

a:hover {
    opacity: 0.8;
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-lg) var(--space-md);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #F9F6EE 0%, #FFF8ED 50%, #F9F6EE 100%);
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Organic illustrative shapes */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.organic-shape {
    position: absolute;
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    animation: gentle-float-1 14s ease-in-out infinite;
}

/* Film grain texture overlay */
.organic-shape::after,
.organic-product-shape::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 600"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter><rect width="600" height="600" filter="url(%23noise)" opacity="0.15"/></svg>');
    background-repeat: repeat;
    background-size: 200px 200px;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.6;
    mix-blend-mode: overlay;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(233, 108, 9, 0.15), rgba(233, 108, 9, 0.05));
    top: 10%;
    left: 10%;
    animation: gentle-float-1 14s ease-in-out infinite;
    animation-delay: 0s;
    border-radius: 58% 42% 48% 52% / 62% 45% 55% 38%;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(96, 153, 62, 0.12), rgba(96, 153, 62, 0.04));
    bottom: 15%;
    right: 15%;
    animation: gentle-float-2 15s ease-in-out infinite;
    animation-delay: 5s;
    border-radius: 52% 48% 35% 65% / 48% 62% 38% 52%;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(130, 132, 109, 0.1), rgba(130, 132, 109, 0.03));
    top: 40%;
    right: 20%;
    animation: gentle-float-3 13s ease-in-out infinite;
    animation-delay: 10s;
    border-radius: 68% 32% 55% 45% / 42% 58% 42% 58%;
}

@keyframes gentle-float-1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(12px, -8px) rotate(4deg);
    }
    50% {
        transform: translate(-6px, 6px) rotate(-2deg);
    }
    75% {
        transform: translate(6px, 12px) rotate(3deg);
    }
}

@keyframes gentle-float-2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    30% {
        transform: translate(-10px, 10px) rotate(-5deg);
    }
    60% {
        transform: translate(8px, -8px) rotate(4deg);
    }
    85% {
        transform: translate(-5px, 5px) rotate(-2deg);
    }
}

@keyframes gentle-float-3 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    20% {
        transform: translate(8px, 12px) rotate(6deg);
    }
    55% {
        transform: translate(-12px, -6px) rotate(-4deg);
    }
    80% {
        transform: translate(10px, -10px) rotate(3deg);
    }
}

.hero-text {
    text-align: left;
}

.logo-lockup {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.hero-logo {
    height: 80px;
    width: auto;
}

.brand-name {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--mysa-orange);
    font-family: var(--font-display);
    font-style: italic;
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: center;
}

.hero-intro {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--mysa-navy);
    margin-bottom: var(--space-md);
    font-weight: 500;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--mysa-sage);
    line-height: 1.8;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: var(--mysa-sage);
    font-size: 0.875rem;
    animation: bounce 2s ease-in-out infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ===== Product Sections ===== */
.product-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-md);
    position: relative;
    overflow: hidden;
    transition: background-color 1s ease;
}

/* BuzzBoard section */
.buzzboard-section {
    background: linear-gradient(135deg, #FFF8ED 0%, #FFF3E0 50%, #FFF8ED 100%);
}

/* ScratchBoard section */
.scratchboard-section {
    background: linear-gradient(135deg, #F5F8F2 0%, #EDF4E8 50%, #F5F8F2 100%);
}

/* Pondera section */
.pondera-section {
    background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 50%, #F5F3FF 100%);
}

.product-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

/* Product visual shapes */
.product-visual {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.organic-product-shape {
    position: absolute;
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    animation: gentle-float-1 13s ease-in-out infinite;
}

/* BuzzBoard shapes */
.buzzboard-shape-1 {
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, rgba(233, 108, 9, 0.25), rgba(233, 108, 9, 0.08));
    top: 15%;
    left: 15%;
    animation: gentle-float-1 13s ease-in-out infinite;
    animation-delay: 0s;
    border-radius: 55% 45% 60% 40% / 50% 55% 45% 50%;
}

.buzzboard-shape-2 {
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, rgba(233, 108, 9, 0.18), rgba(233, 108, 9, 0.05));
    bottom: 20%;
    right: 20%;
    animation: gentle-float-2 14s ease-in-out infinite;
    animation-delay: 4s;
    border-radius: 42% 58% 45% 55% / 58% 48% 52% 42%;
}

.buzzboard-shape-3 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, rgba(233, 108, 9, 0.12), rgba(233, 108, 9, 0.03));
    top: 45%;
    right: 25%;
    animation: gentle-float-3 12s ease-in-out infinite;
    animation-delay: 8s;
    border-radius: 65% 35% 50% 50% / 45% 62% 38% 55%;
}

/* ScratchBoard shapes */
.scratchboard-shape-1 {
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, rgba(96, 153, 62, 0.25), rgba(96, 153, 62, 0.08));
    top: 15%;
    left: 15%;
    animation: gentle-float-2 14s ease-in-out infinite;
    animation-delay: 1s;
    border-radius: 48% 52% 55% 45% / 62% 42% 58% 38%;
}

.scratchboard-shape-2 {
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, rgba(96, 153, 62, 0.18), rgba(96, 153, 62, 0.05));
    bottom: 20%;
    right: 20%;
    animation: gentle-float-3 13s ease-in-out infinite;
    animation-delay: 6s;
    border-radius: 58% 42% 38% 62% / 48% 65% 35% 52%;
}

.scratchboard-shape-3 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, rgba(96, 153, 62, 0.12), rgba(96, 153, 62, 0.03));
    top: 45%;
    right: 25%;
    animation: gentle-float-1 15s ease-in-out infinite;
    animation-delay: 10s;
    border-radius: 60% 40% 52% 48% / 55% 45% 55% 45%;
}

/* Pondera shapes */
.pondera-shape-1 {
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(59, 130, 246, 0.08));
    top: 15%;
    left: 15%;
    animation: gentle-float-3 12s ease-in-out infinite;
    animation-delay: 2s;
    border-radius: 52% 48% 45% 55% / 60% 50% 50% 40%;
}

.pondera-shape-2 {
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(59, 130, 246, 0.05));
    bottom: 20%;
    right: 20%;
    animation: gentle-float-1 14s ease-in-out infinite;
    animation-delay: 7s;
    border-radius: 45% 55% 62% 38% / 52% 58% 42% 48%;
}

.pondera-shape-3 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(59, 130, 246, 0.03));
    top: 45%;
    right: 25%;
    animation: gentle-float-2 13s ease-in-out infinite;
    animation-delay: 11s;
    border-radius: 70% 30% 48% 52% / 42% 55% 45% 58%;
}

/* Product text content */
.product-text {
    text-align: left;
}

.product-name {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-xs);
}

.buzzboard-section .product-name {
    color: var(--buzzboard-accent);
}

.scratchboard-section .product-name {
    color: var(--scratchboard-accent);
}

.pondera-section .product-name {
    background: linear-gradient(135deg, var(--pondera-start), var(--pondera-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-purpose {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--mysa-sage);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
    font-weight: 500;
}

.product-description {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--mysa-navy);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.product-meta {
    margin-bottom: var(--space-md);
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
}

.product-meta p {
    font-size: 0.95rem;
    color: var(--mysa-sage);
    margin-bottom: var(--space-xs);
}

.product-meta p:last-child {
    margin-bottom: 0;
}

.product-pricing {
    font-weight: 500;
}

.product-account {
    font-style: italic;
}

.product-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-gentle);
    text-decoration: none;
    color: white;
}

.buzzboard-section .product-cta {
    background: var(--buzzboard-accent);
    box-shadow: 0 4px 20px rgba(233, 108, 9, 0.3);
}

.buzzboard-section .product-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(233, 108, 9, 0.4);
}

.scratchboard-section .product-cta {
    background: var(--scratchboard-accent);
    box-shadow: 0 4px 20px rgba(96, 153, 62, 0.3);
}

.scratchboard-section .product-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(96, 153, 62, 0.4);
}

.pondera-section .product-cta {
    background: linear-gradient(135deg, var(--pondera-start), var(--pondera-end));
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.pondera-section .product-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(139, 92, 246, 0.4);
}

.product-info {
    font-size: 0.95rem;
    color: var(--mysa-sage);
    margin-top: var(--space-sm);
    font-style: italic;
}

/* ===== About Section ===== */
.about-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-md);
    background: linear-gradient(135deg, #F9F6EE 0%, #FFF8ED 50%, #F9F6EE 100%);
}

.about-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.about-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.organic-about-shape {
    position: absolute;
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    animation: gentle-float-1 15s ease-in-out infinite;
}

/* Film grain for about shapes */
.organic-about-shape::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 600"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter><rect width="600" height="600" filter="url(%23noise)" opacity="0.15"/></svg>');
    background-repeat: repeat;
    background-size: 200px 200px;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.6;
    mix-blend-mode: overlay;
}

.about-shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(233, 108, 9, 0.12), rgba(233, 108, 9, 0.04));
    top: 5%;
    right: 10%;
    animation: gentle-float-2 16s ease-in-out infinite;
    animation-delay: 2s;
    border-radius: 56% 44% 58% 42% / 48% 62% 38% 52%;
}

.about-shape-2 {
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, rgba(96, 153, 62, 0.1), rgba(96, 153, 62, 0.03));
    bottom: 10%;
    left: 15%;
    animation: gentle-float-3 14s ease-in-out infinite;
    animation-delay: 8s;
    border-radius: 62% 38% 45% 55% / 55% 48% 52% 45%;
}

.about-image-frame {
    position: relative;
    z-index: 2;
    width: 350px;
    height: 350px;
    border-radius: 58% 42% 55% 45% / 52% 48% 52% 48%;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    border: 8px solid rgba(255, 255, 255, 0.8);
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
}

.about-text-content {
    text-align: left;
}

.about-text-content h2 {
    margin-bottom: var(--space-md);
}

.about-text {
    margin-top: 0;
}

.about-text p {
    margin-bottom: var(--space-md);
    max-width: 100%;
}

/* ===== Footer ===== */
.footer {
    background: var(--mysa-navy);
    color: var(--mysa-cream);
    padding: var(--space-lg) var(--space-md) var(--space-md);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-column h3 {
    font-size: 0.875rem;
    color: var(--mysa-cream);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    font-family: var(--font-body);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--space-xs);
}

.footer-column a {
    color: var(--mysa-cream);
    opacity: 0.8;
    transition: var(--transition-gentle);
    font-size: 0.95rem;
}

.footer-column a:hover {
    opacity: 1;
    color: var(--mysa-cream);
}

.footer-bottom {
    border-top: 1px solid rgba(249, 246, 238, 0.2);
    padding-top: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-branding {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-logo {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-brand-name {
    font-size: 1.75rem;
    font-family: var(--font-display);
    font-style: italic;
    color: var(--mysa-cream);
    margin: 0;
    line-height: 1;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--mysa-cream);
    opacity: 0.7;
    margin: 0;
}

/* ===== Nav Login Button ===== */
.nav-login {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--mysa-navy);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border: 2px solid var(--mysa-navy);
    transition: var(--transition-gentle);
    cursor: pointer;
    font-family: var(--font-body);
}

.nav-login:hover {
    background: var(--mysa-navy);
    color: var(--mysa-cream);
    transform: translateY(-2px);
}

.nav-login svg {
    flex-shrink: 0;
}

/* ===== Floating Login Button ===== */
.floating-login {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--mysa-orange);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(233, 108, 9, 0.3);
    transition: var(--transition-gentle);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    outline: none;
    cursor: pointer;
}

.floating-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(233, 108, 9, 0.4);
    opacity: 1;
}

.floating-login svg {
    flex-shrink: 0;
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 4rem;
    }

    .hero-content,
    .product-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .hero-visual,
    .product-visual,
    .about-visual {
        height: 300px;
        order: -1;
    }

    .hero-text,
    .product-text,
    .about-text-content {
        text-align: center;
    }

    .about-text {
        text-align: left;
    }

    .about-image-frame {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }

    .logo-lockup {
        justify-content: center;
    }

    .product-cta {
        display: block;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

@media (max-width: 640px) {
    :root {
        --space-md: 1.5rem;
        --space-lg: 2rem;
        --space-xl: 3rem;
    }

    .hero-section,
    .product-section {
        padding: var(--space-lg) var(--space-sm);
    }

    .organic-shape,
    .organic-product-shape,
    .organic-about-shape {
        opacity: 0.6;
    }

    .shape-1, .buzzboard-shape-1, .scratchboard-shape-1, .pondera-shape-1, .about-shape-1 {
        width: 200px;
        height: 200px;
    }

    .shape-2, .buzzboard-shape-2, .scratchboard-shape-2, .pondera-shape-2, .about-shape-2 {
        width: 160px;
        height: 160px;
    }

    .shape-3, .buzzboard-shape-3, .scratchboard-shape-3, .pondera-shape-3 {
        width: 120px;
        height: 120px;
    }

    .about-image-frame {
        width: 240px;
        height: 240px;
        border-width: 6px;
    }

    .floating-login {
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .floating-login span {
        display: none;
    }

    .floating-login {
        padding: 0.875rem;
        border-radius: 50%;
        width: 48px;
        height: 48px;
        justify-content: center;
    }
}

/* ===== Login Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(28, 37, 65, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--mysa-cream);
    padding: 3rem;
    max-width: 480px;
    width: 100%;
    position: relative;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--mysa-sage);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-gentle);
    border-radius: 50%;
}

.modal-close:hover {
    background: rgba(28, 37, 65, 0.1);
    color: var(--mysa-navy);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 24px;
    height: 24px;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-logo {
    width: 60px;
    height: auto;
    margin-bottom: 1rem;
}

.modal-header h2 {
    font-size: 2rem;
    color: var(--mysa-navy);
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
}

.modal-header p {
    color: var(--mysa-sage);
    font-size: 1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--mysa-navy);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    padding: 0.875rem 1.25rem;
    border: 2px solid rgba(28, 37, 65, 0.15);
    border-radius: 50px;
    font-size: 1rem;
    font-family: var(--font-body);
    background: white;
    color: var(--mysa-navy);
    transition: var(--transition-gentle);
}

.form-group input:focus {
    outline: none;
    border-color: var(--mysa-orange);
    box-shadow: 0 0 0 3px rgba(233, 108, 9, 0.1);
}

.form-group input::placeholder {
    color: var(--mysa-sage);
    opacity: 0.6;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--mysa-navy);
    font-size: 0.875rem;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--mysa-orange);
}

.forgot-password {
    color: var(--mysa-orange);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition-gentle);
}

.forgot-password:hover {
    color: var(--mysa-navy);
}

.login-submit {
    background: var(--mysa-orange);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition-gentle);
    box-shadow: 0 4px 20px rgba(233, 108, 9, 0.3);
    width: 100%;
}

.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(233, 108, 9, 0.4);
}

.modal-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(28, 37, 65, 0.1);
}

.modal-footer p {
    color: var(--mysa-sage);
    font-size: 0.875rem;
}

.modal-footer a {
    color: var(--mysa-orange);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-gentle);
}

.modal-footer a:hover {
    color: var(--mysa-navy);
}

@media (max-width: 640px) {
    .modal-content {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== Contact Modal ===== */
.contact-modal-content {
    max-width: 640px;
}

.booking-modal-content {
    max-width: 800px;
    max-height: 90vh;
    padding: 2rem;
}

.booking-iframe-container {
    width: 100%;
    height: 600px;
    min-height: 500px;
    margin-top: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
}

.booking-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-direct {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border: 2px solid rgba(28, 37, 65, 0.1);
    border-radius: 16px;
    text-decoration: none;
    color: var(--mysa-navy);
    transition: var(--transition-gentle);
}

.contact-option:hover {
    border-color: var(--mysa-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 108, 9, 0.15);
}

.contact-option svg {
    width: 24px;
    height: 24px;
    color: var(--mysa-orange);
    flex-shrink: 0;
}

.contact-option div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-option strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mysa-navy);
}

.contact-option span {
    font-size: 0.875rem;
    color: var(--mysa-sage);
}

.contact-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.contact-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(28, 37, 65, 0.1);
}

.contact-divider span {
    position: relative;
    background: var(--mysa-cream);
    padding: 0 1rem;
    color: var(--mysa-sage);
    font-size: 0.875rem;
}

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

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

.contact-form textarea {
    padding: 0.875rem 1.25rem;
    border: 2px solid rgba(28, 37, 65, 0.15);
    border-radius: 16px;
    font-size: 1rem;
    font-family: var(--font-body);
    background: white;
    color: var(--mysa-navy);
    transition: var(--transition-gentle);
    resize: vertical;
    min-height: 120px;
}

.contact-form textarea:focus {
    outline: none;
    border-color: var(--mysa-orange);
    box-shadow: 0 0 0 3px rgba(233, 108, 9, 0.1);
}

.contact-form textarea::placeholder {
    color: var(--mysa-sage);
    opacity: 0.6;
}

.recaptcha-container {
    display: flex;
    justify-content: center;
}

.form-status {
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    text-align: center;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(96, 153, 62, 0.1);
    color: var(--mysa-green);
    border: 1px solid var(--mysa-green);
}

.form-status.error {
    display: block;
    background: rgba(233, 108, 9, 0.1);
    color: var(--mysa-orange);
    border: 1px solid var(--mysa-orange);
}

.contact-submit {
    background: var(--mysa-orange);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition-gentle);
    box-shadow: 0 4px 20px rgba(233, 108, 9, 0.3);
    width: 100%;
}

.contact-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(233, 108, 9, 0.4);
}

.contact-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .contact-direct {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }

    .booking-modal-content {
        padding: 1.5rem;
        max-height: 95vh;
    }

    .booking-iframe-container {
        height: 500px;
        min-height: 400px;
    }
}

/* ===== Smooth Scroll Enhancements ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== Print Styles ===== */
@media print {
    .scroll-indicator {
        display: none;
    }

    .product-cta {
        border: 2px solid currentColor;
    }
}
