:root {
    --white: #FFFFFF;
    --soft-sage: #A8C3A0;
    --forest-green: #2F4F39;
    --dusty-rose: #D9A5AA;
    --light-cream: #F7F4ED;
    --charcoal: #2A2A2A;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --shadow-sm: 0 2px 4px rgba(47, 79, 57, 0.1);
    --shadow-md: 0 4px 8px rgba(47, 79, 57, 0.15);
    --shadow-lg: 0 8px 16px rgba(47, 79, 57, 0.2);
    
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--charcoal);
    background: var(--light-cream);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--forest-green);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: clamp(1.75rem, 4vw, 3rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
    margin-bottom: var(--space-sm);
}

a {
    color: var(--forest-green);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--soft-sage);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.header-wrapper {
    position: relative;
    z-index: 1000;
}

.header {
    background: rgba(247, 244, 237, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--space-md) 0;
    position: relative;
    border-bottom: 1px solid rgba(168, 195, 160, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-family: var(--font-primary);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--forest-green);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.nav {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
    align-items: center;
}

.nav-link {
    font-size: 0.875rem;
    color: var(--charcoal);
    font-weight: 500;
    position: relative;
    padding: var(--space-xs) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--soft-sage);
    transition: width var(--transition-base);
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    color: var(--forest-green);
    font-size: 1.5rem;
    position: relative;
    z-index: 1001;
}

.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(168, 195, 160, 0.1), rgba(217, 165, 170, 0.1)), url('../photos/hero-bg.png') center/cover no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(47, 79, 57, 0.1) 100%);
    animation: drift 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(168, 195, 160, 0.1) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: liquidRipple 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(2%, 3%) scale(1.05); }
}

@keyframes liquidRipple {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    max-width: 800px;
}

.hero-title {
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(47, 79, 57, 0.5);
    margin-bottom: var(--space-md);
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text {
    color: var(--white);
    text-shadow: 1px 1px 4px rgba(47, 79, 57, 0.5);
    font-size: clamp(0.9375rem, 2vw, 1.125rem);
    margin-bottom: var(--space-lg);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background: var(--forest-green);
    color: var(--white);
    border: 2px solid var(--forest-green);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    font-family: var(--font-secondary);
    margin-top: var(--space-md);
}

.btn:hover {
    background: transparent;
    color: var(--forest-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 79, 57, 0.2);
}

.btn-secondary {
    background: var(--soft-sage);
    border-color: var(--soft-sage);
    color: var(--white);
}

.btn-secondary:hover {
    background: transparent;
    color: var(--soft-sage);
}

.section {
    padding: var(--space-xl) 0;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(168, 195, 160, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(217, 165, 170, 0.05) 0%, transparent 50%);
    animation: cosmicDrift 25s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.section > * {
    position: relative;
    z-index: 1;
}

@keyframes cosmicDrift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(1%, 1%) rotate(0.5deg); }
    66% { transform: translate(-1%, 1%) rotate(-0.5deg); }
}

.section-alt {
    background: var(--white);
    position: relative;
}

.section-alt::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(168, 195, 160, 0.02) 2px,
        rgba(168, 195, 160, 0.02) 4px
    );
    animation: organicWave 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes organicWave {
    0%, 100% { transform: translateY(0) scaleY(1); }
    50% { transform: translateY(-2%) scaleY(1.01); }
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-text {
    max-width: 700px;
    margin: 0 auto var(--space-lg);
    text-align: center;
    color: var(--charcoal);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 195, 160, 0.15), transparent);
    transition: left var(--transition-slow);
}

.card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(217, 165, 170, 0.1) 90deg, transparent 180deg);
    animation: holographicRotate 20s linear infinite;
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.card:hover::before {
    left: 100%;
}

.card:hover::after {
    opacity: 1;
}

@keyframes holographicRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--forest-green);
}

.card-text {
    font-size: 0.875rem;
    color: var(--charcoal);
    margin-bottom: var(--space-md);
}

.card-price {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dusty-rose);
    margin-top: var(--space-sm);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    color: var(--forest-green);
    font-weight: 500;
    font-size: 0.875rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-sm);
    border: 2px solid rgba(168, 195, 160, 0.3);
    border-radius: var(--radius-md);
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    color: var(--charcoal);
    background: var(--white);
    transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--soft-sage);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    margin-top: var(--space-md);
}

.form-checkbox input {
    margin-top: 0.25rem;
    cursor: pointer;
}

.form-checkbox label {
    font-size: 0.8125rem;
    color: var(--charcoal);
    cursor: pointer;
}

.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.contact-info {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-item {
    display: flex;
    align-items: start;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--soft-sage);
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
    color: var(--forest-green);
}

.contact-details p {
    font-size: 0.875rem;
    color: var(--charcoal);
    margin: 0;
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.footer {
    background: var(--forest-green);
    color: var(--light-cream);
    padding: var(--space-lg) 0;
    margin-top: var(--space-xl);
}

.footer-content {
    text-align: center;
    font-size: 0.8125rem;
}

.footer-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}

.footer-link {
    color: var(--light-cream);
    font-size: 0.8125rem;
}

.footer-link:hover {
    color: var(--soft-sage);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.pricing-table th,
.pricing-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid rgba(168, 195, 160, 0.2);
}

.pricing-table th {
    background: var(--soft-sage);
    color: var(--white);
    font-weight: 600;
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table tr:hover {
    background: var(--light-cream);
}

.error-page {
    text-align: center;
    padding: var(--space-xl) 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-code {
    font-size: clamp(4rem, 10vw, 8rem);
    color: var(--soft-sage);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.section .legal-page {
    margin-top: var(--space-lg);
}

.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .legal-page {
        padding: var(--space-lg) var(--space-md);
        margin: var(--space-md);
    }
    
    .legal-page h1 {
        font-size: clamp(1.25rem, 4vw, 1.75rem);
    }
    
    .legal-page h2 {
        margin-top: var(--space-lg);
    }
    
    .legal-page p {
        text-align: left;
    }
}

.legal-page h1 {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--soft-sage);
    color: var(--forest-green);
}

.legal-page h2 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    color: var(--forest-green);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(168, 195, 160, 0.2);
}

.legal-page h3 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--forest-green);
    font-size: clamp(1.125rem, 2vw, 1.5rem);
}

.legal-page p {
    margin-bottom: var(--space-md);
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--charcoal);
    text-align: justify;
}

.legal-page p:last-child {
    margin-bottom: 0;
}

.legal-page strong {
    color: var(--forest-green);
    font-weight: 600;
}

.legal-page ul,
.legal-page ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--charcoal);
}

.legal-page ul li,
.legal-page ol li {
    margin-bottom: var(--space-xs);
}

.legal-page ul li::marker {
    color: var(--soft-sage);
}

.legal-page ol li::marker {
    color: var(--soft-sage);
    font-weight: 600;
}

.legal-page a {
    color: var(--forest-green);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.legal-page a:hover {
    color: var(--soft-sage);
}

.legal-page table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
    font-size: 0.875rem;
}

.legal-page table th,
.legal-page table td {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid rgba(168, 195, 160, 0.2);
    text-align: left;
}

.legal-page table th {
    background: var(--soft-sage);
    color: var(--white);
    font-weight: 600;
}

.legal-page table tr:nth-child(even) {
    background: var(--light-cream);
}

.home-button {
    display: inline-block;
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-lg);
    background: var(--forest-green);
    color: var(--white) !important;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    text-decoration: none;
}

.home-button:hover {
    background: var(--soft-sage);
    color: var(--white) !important;
    text-decoration: none;
}

.home-button:visited {
    color: var(--white) !important;
}

.home-button:active {
    color: var(--white) !important;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(42, 42, 42, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.popup-overlay.active {
    display: flex;
}

.popup-content {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.popup-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--charcoal);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subscription-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.subscription-card {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 2px solid var(--soft-sage);
    text-align: center;
    transition: all var(--transition-base);
}

.subscription-card:hover {
    border-color: var(--forest-green);
    box-shadow: var(--shadow-md);
}

.subscription-card h3 {
    color: var(--forest-green);
    margin-bottom: var(--space-sm);
}

.subscription-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dusty-rose);
    margin: var(--space-md) 0;
}

@media (max-width: 768px) {
    .logo {
        font-size: clamp(1rem, 3vw, 1.25rem);
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: var(--space-xl) var(--space-lg);
        box-shadow: 0 2px 10px rgba(47, 79, 57, 0.1);
        transition: transform var(--transition-base);
        transform: translateY(-100%);
        z-index: 999;
        align-items: flex-start;
        justify-content: flex-start;
        gap: var(--space-lg);
    }

    .nav.active {
        transform: translateY(0);
    }

    body.menu-open .menu-toggle {
        z-index: 1001;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: var(--space-md);
    }

    .contact-section {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 60vh;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .pricing-table {
        font-size: 0.8125rem;
    }

    .pricing-table th,
    .pricing-table td {
        padding: var(--space-sm);
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 0% 0%, rgba(168, 195, 160, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(217, 165, 170, 0.03) 0%, transparent 50%);
    animation: ambientGlow 30s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes ambientGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--soft-sage), transparent);
    animation: glitchLine 4s ease-in-out infinite;
}

@keyframes glitchLine {
    0%, 100% { opacity: 0.3; transform: scaleX(1); }
    50% { opacity: 0.6; transform: scaleX(1.02); }
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    animation: depthParallax 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes depthParallax {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-1%); }
}

@media (max-width: 768px) {
    body::before,
    .section::before,
    .section-alt::after,
    .card::after {
        animation-duration: 40s;
    }
    
    .hero::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: clamp(0.875rem, 2.5vw, 1.125rem);
    }

    .container {
        padding: 0 var(--space-sm);
    }

    .section {
        padding: var(--space-lg) 0;
    }

    .card {
        padding: var(--space-md);
    }

    .btn {
        width: 100%;
        padding: var(--space-md);
    }

    body::before,
    .section::before,
    .section-alt::after {
        display: none;
    }
}

