/* ============================================================
   VEDAVASTU — Modern Spiritual Luxury Theme
   Palette: Deep Ink · Sacred Gold · Ivory Warmth
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500;600;700&family=Noto+Serif+Devanagari:wght@400;700&display=swap');

:root {
    /* ── Core Palette ── */
    --primary: #B8781A;
    --primary-light: #D4941E;
    --primary-dark: #8F5C0A;
    --secondary: #1A1A2E;
    --secondary-light: #252540;
    --accent-gold: #C9A84C;
    --accent-gold-light: #E4C97A;
    --accent-saffron: #D4813A;
    --accent-copper: #B07040;

    /* ── Surfaces ── */
    --bg-page: #FDFAF5;
    --bg-dark: #FDFAF5;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FFFCF7;
    --bg-input: #F7F3EC;
    --bg-warm: #F2EBE0;
    --bg-section-alt: #FAF6EF;
    --bg-section-dark: #1A1A2E;

    /* ── Typography ── */
    --text-primary: #1A1A2E;
    --text-secondary: #4A4460;
    --text-muted: #8A83A0;
    --text-on-dark: #E8E3F0;

    /* ── Borders ── */
    --border-color: #E8E0D0;
    --border-warm: #D9CEBC;
    --border-gold: rgba(201,168,76,0.30);

    /* ── Semantic ── */
    --success: #2E7D52;
    --warning: #C9A84C;
    --danger: #C0392B;
    --info: #2563EB;

    /* ── Elevation ── */
    --shadow-xs: 0 1px 4px rgba(26,26,46,0.06);
    --shadow: 0 4px 20px rgba(26,26,46,0.08);
    --shadow-lg: 0 12px 48px rgba(26,26,46,0.12);
    --shadow-gold: 0 8px 32px rgba(139,105,20,0.15);
    --shadow-card: 0 2px 12px rgba(26,26,46,0.05);

    /* ── Radii ── */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 100px;

    /* ── Motion ── */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.0, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);

    /* ── Fonts ── */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

    /* ── Layout ── */
    --container-width: 1200px;
    --header-height: 72px;
    --bottom-nav-height: 0px;

    /* ── Contextual (overridden by app.php) ── */
    --fg-on-primary: #FFFFFF;
    --fg-on-hero: #1A1A2E;
    --header-bg: rgba(253,250,245,0.94);
    --card-hover-border: rgba(139,105,20,0.25);
    --table-row-hover: rgba(139,105,20,0.03);
    --focus-ring: rgba(139,105,20,0.20);
}

/* ============ RESET ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--font-primary);
    background: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior-x: none;
    -webkit-overflow-scrolling: touch;
}

/* ── iOS safe area support ── */
.mobile-bottom-nav {
    padding-bottom: max(env(safe-area-inset-bottom, 0px), 4px);
}
.main-content {
    /* ensure content doesn't sit under notch */
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
}

/* ── Global tap target minimum ── */
button, a, [role="button"] {
    -webkit-tap-highlight-color: transparent;
}
.btn, .nav a, .mobile-nav-item {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
/* Social icon circles override — they use width/height directly */
.social-links a, .footer-social a { min-height: auto !important; }
.page-link { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }

img, video, iframe, table, pre { max-width: 100%; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 28px; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* ============ SCROLL REVEAL ============ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.18s; }
.reveal-delay-3 { transition-delay: 0.28s; }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
