/* ============================================
   SAVAYAS YOGA - Global Styles
   Professional UI/UX Design
   ============================================ */

/* ===== Google Fonts Import ===== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ===== Material Symbols ===== */
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* ===== CSS Variables ===== */
:root {
    /* Primary Colors - Sage & Blush Theme */
    --primary: #4a7c7d;
    --primary-hover: #3d6667;
    --primary-light: #5a8c8d;

    /* Secondary Colors */
    --sage: #AEC4B2;
    --sage-light: #c4d5c8;
    --sage-dark: #92a896;

    --blush: #E6CDC8;
    --blush-light: #f0ddd8;
    --blush-dark: #d9bdb8;

    /* Neutrals */
    --off-black: #131515;
    --text-primary: #131515;
    --text-secondary: #6f7b7b;
    --text-muted: #a0a8a8;

    /* Backgrounds */
    --bg-light: #fafafa;
    --bg-white: #ffffff;
    --bg-sage-subtle: rgba(174, 196, 178, 0.1);
    --bg-blush-subtle: rgba(230, 205, 200, 0.15);

    /* Surfaces */
    --surface-light: #ffffff;
    --surface-elevated: #ffffff;

    /* Borders */
    --border-light: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.1);
    --border-sage: rgba(174, 196, 178, 0.3);

    /* Shadows - Soft & Professional */
    --shadow-soft: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 40px -10px rgba(74, 124, 125, 0.3);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Typography */
    --font-primary: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

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

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* Use a more robust image reset */
img,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.015em;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
}

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

h3 {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 600;
}

h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 600;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 400;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

/* ===== Material Icons Styling ===== */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'liga';
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-wide {
    max-width: 1400px;
}

.container-narrow {
    max-width: 900px;
}

/* ===== Navigation Bar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
    z-index: 1000;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo {
    font-family: var(--font-primary);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.01em;
}

.nav-logo .material-symbols-outlined {
    font-size: 28px;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-menu li a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-base);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary);
}

.nav-cta {
    background: var(--primary) !important;
    color: var(--bg-white) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: var(--radius-full);
    font-weight: 600;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
}

.nav-cta:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--bg-white) !important;
}

.nav-cta::after {
    display: none;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
    text-align: center;
    font-family: var(--font-primary);
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-white);
    box-shadow: var(--shadow-glow);
}

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

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

.btn-secondary {
    background: var(--sage);
    color: var(--text-primary);
    box-shadow: var(--shadow-card);
}

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.btn-ghost {
    background: var(--bg-sage-subtle);
    color: var(--primary);
}

.btn-ghost:hover {
    background: var(--sage);
    color: var(--bg-white);
}

/* ===== Cards ===== */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
    border: 1px solid var(--border-light);
}

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

.card-gradient {
    background: linear-gradient(135deg, var(--bg-sage-subtle), var(--bg-white));
}

/* ===== Sections ===== */
section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-subtitle {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    margin-bottom: var(--spacing-xs);
}

.section-title {
    margin-bottom: var(--spacing-sm);
    font-weight: 300;
}

.section-description {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
    background: #2e5052;
    color: var(--bg-light);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    color: var(--bg-white);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-section p,
.footer-section a {
    color: rgba(250, 250, 250, 0.7);
    margin-bottom: var(--spacing-xs);
    display: block;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--sage);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    color: rgba(250, 250, 250, 0.5);
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-sm);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--sage);
    transform: translateY(-3px);
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--sage));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mt-1 {
    margin-top: var(--spacing-xs);
}

.mt-2 {
    margin-top: var(--spacing-sm);
}

.mt-3 {
    margin-top: var(--spacing-md);
}

.mt-4 {
    margin-top: var(--spacing-lg);
}

.mt-5 {
    margin-top: var(--spacing-xl);
}

.mb-1 {
    margin-bottom: var(--spacing-xs);
}

.mb-2 {
    margin-bottom: var(--spacing-sm);
}

.mb-3 {
    margin-bottom: var(--spacing-md);
}

.mb-4 {
    margin-bottom: var(--spacing-lg);
}

.mb-5 {
    margin-bottom: var(--spacing-xl);
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-hover);
        transition: left var(--transition-base);
        gap: var(--spacing-sm);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

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

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

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

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(74, 124, 125, 0.2);
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(74, 124, 125, 0.4);
}