﻿/* =============================================
   HONEY DOULA - COMPREHENSIVE DESIGN SYSTEM
   A holistic, feminine, and earthy aesthetic
   ============================================= */

/* =============================================
   1. TYPOGRAPHY SYSTEM
   ============================================= */

/* Import beautiful, distinctive fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Lora:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600&display=swap');

/* Font families */
:root {
    /* Display & Headings: Elegant serif with personality */
    --font-display: 'Cormorant Garamond', serif;
    /* Body & Subheadings: Warm, readable serif */
    --font-body: 'Lora', serif;
    /* UI Elements: Clean sans-serif for buttons, nav */
    --font-ui: 'Montserrat', sans-serif;
}

/* =============================================
   2. COLOR SYSTEM - Enhanced Palette
   ============================================= */

:root {
    /* Core Brand Colors */
    --sage: #9CAF88; /* Primary sage green */
    --sage-dark: #7a8f6d; /* Darker sage for hover states */
    --sage-light: #b8c9a8; /* Lighter sage for backgrounds */
    --sage-pale: #e8ede4; /* Very light sage for subtle backgrounds */

    --sand: #E8DCC8; /* Warm sandy beige */
    --sand-dark: #d4c5ad; /* Darker sand */
    --sand-light: #f2ebe0; /* Lighter sand for backgrounds */
    /* Neutrals */
    --ink: #3A3A3A; /* Deep charcoal for text */
    --clay: #8B7D6B; /* Warm brown-grey for secondary text */
    --soft-white: #FAF8F5; /* Off-white with warmth */
    --pure-white: #FFFFFF; /* Pure white for cards/overlays */
    /* Accent & Spiritual */
    --terracotta: #C77C5A; /* Warm terracotta accent */
    --moss: #5A6F4D; /* Deeper forest green */
    --cream: #FFF9F0; /* Creamy warm white */
    /* Functional Colors */
    --success: #9CAF88;
    --warning: #D4A574;
    --error: #C77C5A;
    /* Opacity variations */
    --sage-10: rgba(156, 175, 136, 0.1);
    --sage-20: rgba(156, 175, 136, 0.2);
    --ink-50: rgba(58, 58, 58, 0.5);
    --ink-80: rgba(58, 58, 58, 0.8);
}

/* =============================================
   3. SPACING & LAYOUT SYSTEM
   ============================================= */

:root {
    /* Vertical Rhythm */
    --space-xs: 0.5rem; /* 8px */
    --space-sm: 1rem; /* 16px */
    --space-md: 1.5rem; /* 24px */
    --space-lg: 2.5rem; /* 40px */
    --space-xl: 4rem; /* 64px */
    --space-2xl: 6rem; /* 96px */
    --space-3xl: 8rem; /* 128px */
    /* Container widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 9999px;
    /* Shadows - Soft and natural */
    --shadow-sm: 0 2px 8px rgba(58, 58, 58, 0.08);
    --shadow-md: 0 4px 16px rgba(58, 58, 58, 0.12);
    --shadow-lg: 0 8px 32px rgba(58, 58, 58, 0.16);
    --shadow-xl: 0 16px 48px rgba(58, 58, 58, 0.2);
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 400ms ease-in-out;
}

/* =============================================
   4. BASE STYLES & RESETS
   ============================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--ink);
    background-color: var(--soft-white);
    font-weight: 400;
}

/* =============================================
   5. TYPOGRAPHY STYLES
   ============================================= */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 500;
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 500;
}

h5 {
    font-size: 1.25rem;
    font-weight: 500;
}

h6 {
    font-size: 1.125rem;
    font-weight: 500;
}

/* Display classes for special headings */
.display-1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.display-2 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
}

/* Body text variations */
.lead {
    font-size: 1.375rem;
    line-height: 1.7;
    color: var(--clay);
    font-weight: 400;
}

.text-lg {
    font-size: 1.25rem;
    line-height: 1.75;
}

.text-sm {
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Text utilities */
.text-serif {
    font-family: var(--font-body);
}

.text-display {
    font-family: var(--font-display);
}

.text-ui {
    font-family: var(--font-ui);
}

/* =============================================
   6. NAVIGATION STYLES
   ============================================= */

.navbar-custom {
    background-color: var(--sand);
    padding: var(--space-md) 0; /* Changed from padding-top: 0; padding-bottom: 0; */
    box-shadow: 0 2px 12px rgba(58, 58, 58, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding var(--transition-base), box-shadow var(--transition-base); /* Restored padding transition */
}

    .navbar-custom.scrolled {
        padding: var(--space-sm) 0; /* Restored scrolled padding */
        box-shadow: var(--shadow-md);
    }

/* Brand Styling */
.brand-styling {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    transition: transform var(--transition-base);
}

    .brand-styling:hover {
        transform: scale(1.02);
    }

.brand-icon {
    font-size: 2rem;
    line-height: 1;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-honey {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.brand-doula {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--sage);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Navigation Links */
.navbar-custom .nav-link {
    font-family: var(--font-ui);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink);
    padding: var(--space-xs) var(--space-md);
    margin: 0 var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    transition: color var(--transition-base);
}

    .navbar-custom .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background-color: var(--sage);
        transform: translateX(-50%);
        transition: width var(--transition-base);
    }

    .navbar-custom .nav-link:hover {
        color: var(--sage-dark);
    }

        .navbar-custom .nav-link:hover::after {
            width: 60%;
        }

    .navbar-custom .nav-link.active {
        color: var(--sage);
    }

        .navbar-custom .nav-link.active::after {
            width: 60%;
        }

/* Mobile Navigation */
.navbar-toggler {
    border: 2px solid var(--sage);
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
}

    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px var(--sage-20);
    }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%239CAF88' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =============================================
   7. BUTTON SYSTEM
   ============================================= */

.btn {
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.2);
        transform: translate(-50%, -50%);
        transition: width var(--transition-slow), height var(--transition-slow);
    }

    .btn:hover::before {
        width: 300px;
        height: 300px;
    }

/* Primary Button */
.btn-primary {
    background-color: var(--sage);
    color: var(--pure-white);
    box-shadow: var(--shadow-sm);
}

    .btn-primary:hover {
        background-color: var(--sage-dark);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
        color: var(--pure-white);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

/* Light Button */
.btn-light {
    background-color: var(--pure-white);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

    .btn-light:hover {
        background-color: var(--sand-light);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
        color: var(--ink);
    }

/* Outline Button */
.btn-outline-secondary {
    background-color: transparent;
    color: var(--ink);
    border: 2px solid var(--sage);
    box-shadow: none;
}

    .btn-outline-secondary:hover {
        background-color: var(--sage);
        color: var(--pure-white);
        transform: translateY(-2px);
        box-shadow: var(--shadow-sm);
    }

/* Button Sizes */
.btn-sm {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* =============================================
   8. CARD SYSTEM
   ============================================= */

.card {
    background-color: var(--pure-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(156, 175, 136, 0.1);
    transition: all var(--transition-base);
}

    .card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

.card-elevated {
    box-shadow: var(--shadow-lg);
}

.card-subtle {
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--sand);
}

/* =============================================
   9. FORM ELEMENTS
   ============================================= */

.form-label {
    font-family: var(--font-ui);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--space-xs);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.form-control,
.form-select {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.875rem 1rem;
    border: 2px solid var(--sand);
    border-radius: var(--radius-md);
    background-color: var(--pure-white);
    color: var(--ink);
    transition: all var(--transition-base);
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--sage);
        box-shadow: 0 0 0 4px var(--sage-20);
        outline: none;
    }

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

.form-control::placeholder {
    color: var(--clay);
    opacity: 0.6;
}

/* Custom Checkbox/Radio */
.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--sage);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

    .form-check-input:checked {
        background-color: var(--sage);
        border-color: var(--sage);
    }

    .form-check-input:focus {
        box-shadow: 0 0 0 4px var(--sage-20);
    }

.form-check-label {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    margin-left: var(--space-xs);
    cursor: pointer;
}

/* =============================================
   10. SECTION BACKGROUNDS
   ============================================= */

section {
    padding: var(--space-2xl) 0;
    position: relative;
}

.section-white {
    background-color: var(--pure-white);
}

.section-soft {
    background-color: var(--soft-white);
}

.section-sand {
    background-color: var(--sand-light);
}

.section-sage {
    background-color: var(--sage-pale);
}

.section-sage-dark {
    background-color: var(--sage);
    color: var(--pure-white);
}

    .section-sage-dark h1,
    .section-sage-dark h2,
    .section-sage-dark h3,
    .section-sage-dark h4,
    .section-sage-dark h5,
    .section-sage-dark h6 {
        color: var(--pure-white);
    }

    .section-sage-dark .lead {
        color: var(--soft-white);
    }

/* Decorative Section Elements */
.section-decorated::before {
    content: '🌿';
    position: absolute;
    top: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    opacity: 0.3;
}

/* =============================================
   11. UTILITY CLASSES
   ============================================= */

/* Spacing utilities - complementing Bootstrap */
.pt-section {
    padding-top: var(--space-2xl);
}

.pb-section {
    padding-bottom: var(--space-2xl);
}

.py-section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}

.mt-section {
    margin-top: var(--space-2xl);
}

.mb-section {
    margin-bottom: var(--space-2xl);
}

.my-section {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

/* Text colors */
.text-sage {
    color: var(--sage) !important;
}

.text-sage-dark {
    color: var(--sage-dark) !important;
}

.text-ink {
    color: var(--ink) !important;
}

.text-clay {
    color: var(--clay) !important;
}

.text-terracotta {
    color: var(--terracotta) !important;
}

/* Background colors */
.bg-sage {
    background-color: var(--sage) !important;
}

.bg-sage-light {
    background-color: var(--sage-light) !important;
}

.bg-sage-pale {
    background-color: var(--sage-pale) !important;
}

.bg-sand {
    background-color: var(--sand) !important;
}

.bg-sand-light {
    background-color: var(--sand-light) !important;
}

.bg-soft-white {
    background-color: var(--soft-white) !important;
}

.bg-cream {
    background-color: var(--cream) !important;
}

/* Image utilities */
.img-rounded {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.img-rounded-xl {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* Decorative dividers */
.divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--sage), transparent);
    margin: var(--space-lg) auto;
}

.divider-left {
    margin: var(--space-lg) 0;
}

/* Animate on scroll classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

/* =============================================
   12. RESPONSIVE DESIGN
   ============================================= */

/* Large tablets and small desktops */
@media (max-width: 991.98px) {
    :root {
        --space-xl: 3rem;
        --space-2xl: 4.5rem;
        --space-3xl: 6rem;
    }

    section {
        padding: var(--space-xl) 0;
    }

    h1 {
        font-size: clamp(2rem, 6vw, 3.5rem);
    }

    h2 {
        font-size: clamp(1.75rem, 4vw, 2.75rem);
    }

    .navbar-custom .nav-link {
        margin: var(--space-xs) 0;
        padding: var(--space-sm) var(--space-md);
    }
}

/* Tablets */
@media (max-width: 767.98px) {
    :root {
        --space-lg: 2rem;
        --space-xl: 2.5rem;
        --space-2xl: 3.5rem;
    }

    body {
        font-size: 1rem;
    }

    .lead {
        font-size: 1.25rem;
    }

    .btn {
        padding: 0.75rem 1.75rem;
        font-size: 0.9375rem;
    }

    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Mobile phones */
@media (max-width: 575.98px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 2rem;
        --space-2xl: 3rem;
    }

    section {
        padding: var(--space-xl) 0;
    }

    h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .card {
        padding: var(--space-md);
    }

    .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }

    .btn-lg {
        padding: 1rem 1.75rem;
    }
}

/* =============================================
   13. PRINT STYLES
   ============================================= */

@media print {
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .navbar-custom,
    .btn,
    footer {
        display: none;
    }

    section {
        page-break-inside: avoid;
    }
}

/* =============================================
   14. ACCESSIBILITY ENHANCEMENTS
   ============================================= */

/* Focus visible styles */
*:focus-visible {
    outline: 3px solid var(--sage);
    outline-offset: 3px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --sage: #7a8f6d;
        --ink: #000000;
    }

    .btn {
        border: 2px solid currentColor;
    }
}

/* =============================================
   15. LOADING & ANIMATION STATES
   ============================================= */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.animate-fade-in {
    animation: fadeIn var(--transition-slow) ease-in-out;
}

.animate-slide-up {
    animation: slideUp var(--transition-slow) ease-out;
}

/* Skeleton loading state */
.skeleton {
    background: linear-gradient( 90deg, var(--sand-light) 0%, var(--sand) 50%, var(--sand-light) 100% );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: var(--radius-md);
}
