/*
//  Created by Charlie Manning, Little Guy Dev, LLC on April 30, 2025.
//  Copyright © 2025 The Sacred Circle. All rights reserved.
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght,GRAD@8..144,400..700,0..150&family=Cinzel:wght@500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,300..700,0..1,-25..200');

:root {
    /* Material Design 3 — Core color tokens */
    --md-sys-color-primary: #5F2A7A; /* deep amethyst */
    --md-sys-color-on-primary: #FFFFFF;
    --md-sys-color-primary-container: #E8D6F2;
    --md-sys-color-on-primary-container: #271134;

    --md-sys-color-secondary: #BAA1CF; /* heather lilac */
    --md-sys-color-on-secondary: #201326;
    --md-sys-color-secondary-container: #EFE3F7;
    --md-sys-color-on-secondary-container: #23142E;

    --md-sys-color-tertiary: #3AA287; /* aurora green */
    --md-sys-color-on-tertiary: #0B231E;
    --md-sys-color-tertiary-container: #CFEDE5;
    --md-sys-color-on-tertiary-container: #08231E;

    --md-sys-color-background: #f9f4fc; /* moonlit parchment */
    --md-sys-color-on-background: #1C1623;
    --md-sys-color-surface: #FFFFFF;
    --md-sys-color-on-surface: #1C1623;
    --md-sys-color-surface-variant: #EFE5F6;
    --md-sys-color-on-surface-variant: #40384A;

    --md-sys-color-outline: #C8C6D8;
    --md-sys-color-outline-variant: #DFDCE9;

    /* Brand accent (candle-gold) */
    --md-custom-accent: #FFD76A;

    /* Material Design 3 — Shape tokens */
    --md-sys-shape-corner-extra-small: 8px;
    --md-sys-shape-corner-small: 12px;
    --md-sys-shape-corner-medium: 16px;
    --md-sys-shape-corner-large: 20px;
    --md-sys-shape-corner-extra-large: 28px;

    /* Material Design 3 — Elevation tokens */
    --md-sys-elevation-level1: 0 1px 2px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.10);
    --md-sys-elevation-level2: 0 2px 6px rgba(0,0,0,0.08), 0 6px 10px rgba(0,0,0,0.10);
    --md-sys-elevation-level3: 0 8px 12px rgba(0,0,0,0.10), 0 12px 18px rgba(0,0,0,0.10);

    /* Material Design 3 — Typography tokens */
    --md-ref-typeface-brand: 'Cinzel', serif;
    --md-ref-typeface-plain: 'Roboto Flex', system-ui, -apple-system, Segoe UI, Roboto, 'Open Sans', sans-serif;

    /* Legacy variables mapped to MD3 tokens for backward compatibility */
    --primary-color: var(--md-sys-color-primary);
    --secondary-color: var(--md-sys-color-secondary);
    --accent-color: var(--md-custom-accent);
    --text-color: var(--md-sys-color-on-surface);
    --light-text-color: #f7f7f7; /* off-white */
    --background-color: var(--md-sys-color-background);
}

/* CSS for The Sacred Circle website */

body {
    font-family: var(--md-ref-typeface-plain);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

header {
    background: linear-gradient(135deg, var(--primary-color), #4A1C6B);
    color: var(--light-text-color);
    padding: 1rem;
}

/* --- App Bar with brand and hamburger --- */
.app-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.5rem 0.25rem; position: relative; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--light-text-color); }
.brand-logo { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; box-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.brand-text { font-family: var(--md-ref-typeface-brand); font-size: 1.25rem; color: var(--light-text-color); letter-spacing: 0.02em; }

.menu-toggle { display: none; appearance: none; background: transparent; border: none; color: var(--light-text-color); padding: 8px; border-radius: 10px; cursor: pointer; }
.menu-toggle .material-symbols-rounded { font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 24; }

/* Primary nav inherits existing nav link styles */
nav.primary-nav { display: flex; align-items: center; gap: 0.25rem; }

/* Removed header img style */

nav { /* Style for nav element */
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping */
    background-color: rgba(0,0,0,0.1);
    padding: 0.5rem;
}

nav a { /* MD3 nav link */
    color: var(--light-text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0.25rem 0.5rem;
    border-radius: var(--md-sys-shape-corner-small);
    transition: background-color 0.2s ease, color 0.2s ease;
    font-weight: 600;
}

nav a:hover, nav a.active { /* Added .active class possibility */
    background-color: rgba(255,255,255,0.2);
}

/* Removed header nav ul style */

main section { /* Base section padding */
    padding: 2rem 1rem;
}

/* General h2 styling */
h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    font-family: var(--md-ref-typeface-brand);
    letter-spacing: 0.02em;
}

/* Removed button styles that are now in home.css (.cta-button) */
/* Removed features/testimonials/download styles now in home.css */

footer {
    background-color: #333;
    color: var(--light-text-color);
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 3rem;
}

.footer-links { /* Added from provided styles */
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem; /* Space below links */
}

.footer-links a {
    color: var(--light-text-color);
    text-decoration: none;
    margin: 0.25rem 1rem; /* Adjusted margin */
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

footer p {
    margin: 0; /* Reset default margin */
    font-size: 0.9rem;
}

/* Accessibility: high-visibility focus ring */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--md-custom-accent);
    outline-offset: 3px;
    border-radius: var(--md-sys-shape-corner-small);
}

/* --- Material 3 App Bar and Navigation --- */
.app-bar {
    padding: 0.5rem 1rem; /* keep spacing */
}

.app-bar .title {
    font-family: var(--md-ref-typeface-brand);
    font-size: 1.5rem;
    color: var(--light-text-color);
}

.bottom-nav {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: none; /* Shown on mobile */
    background-color: #1d1b20;
    color: #fff;
    border-top-left-radius: var(--md-sys-shape-corner-large);
    border-top-right-radius: var(--md-sys-shape-corner-large);
    box-shadow: 0 -6px 12px rgba(0,0,0,0.12);
}

.bottom-nav .nav-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 0;
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
}

.bottom-nav a .material-symbols-rounded {
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
    font-size: 22px;
}

.bottom-nav a.active,
.bottom-nav a:focus-visible {
    background: rgba(255, 215, 106, 0.12);
}

@media (max-width: 768px) {
    .bottom-nav { display: block; }
    /* Mobile nav behavior */
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    nav.primary-nav { 
        display: none;
        position: absolute; 
        top: 100%; left: 0; right: 0;
        background: linear-gradient(135deg, rgba(95,42,122,0.98), rgba(74,28,107,0.98));
        padding: 0.5rem;
        border-bottom-left-radius: var(--md-sys-shape-corner-large);
        border-bottom-right-radius: var(--md-sys-shape-corner-large);
        box-shadow: 0 6px 16px rgba(0,0,0,0.25);
        z-index: 60;
        flex-direction: column;
        gap: 0.25rem;
    }
    .app-bar.nav-open nav.primary-nav { display: flex; }
}

/* --- Chips --- */
.chip-set { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 0.5rem; 
    justify-content: center; 
    margin: 0 auto 1.5rem; 
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--md-sys-color-outline);
    background-color: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.chip:hover { box-shadow: var(--md-sys-elevation-level1); transform: translateY(-1px); }
.chip.selected { background-color: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); border-color: transparent; }

/* --- Toasts --- */
.toast {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1d1b20;
    color: #fff;
    padding: 12px 16px;
    border-radius: var(--md-sys-shape-corner-large);
    box-shadow: var(--md-sys-elevation-level2);
}

.toast.success { background: #123b22; color: #caf0d0; }
.toast.error { background: #3b121b; color: #f0cad1; }

/* Toast container */
.toast-container {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
    pointer-events: none;
}

.toast-container .toast { pointer-events: auto; }

/* --- Ripple (JS-assisted) --- */
.ripple-host { position: relative; overflow: hidden; }
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 600ms ease-out;
    background-color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h2 {
        font-size: 1.8rem; /* Slightly smaller headings */
    }

    /* Nav handled in home.css specific media query */
    /* No specific global responsive needed based on provided code */
}

/* Shared Page Header styles (if not already defined elsewhere) */
.page-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--light-text-color);
    padding: 4rem 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem; /* Adjust as needed */
    margin-bottom: 1rem;
    color: var(--light-text-color); 
    text-align: center; /* Explicitly center */
}

.page-header p {
    font-size: 1.2rem;
    color: var(--light-text-color);
    max-width: 600px; /* Limit width of subtitle */
    margin-left: auto;
    margin-right: auto;
} 