/* ======================================== */
/* GLOBAL STYLES & RESETS */
/* ======================================== */
:root {
    /* --- THEMATIC PALETTE: SURRENDER & PSYCHEDELIC FLOW --- */
    --color-primary: #6d28d9; /* Deep Indigo (Anchor, Spirituality) */
    --color-secondary: #34d399; /* Emerald Green/Teal (Life, Flow) */
    --color-accent: #f472b6; /* Soft Pink/Lavender Pop (Dreamy Accent) */
    --color-surface-light: #fcfcff; /* Off-white, creamy base */
    --color-text-dark: #2d3748; /* Deep Charcoal for readability */
}

/* Global body styling updated to use the new variables */
body {
    font-family: 'Georgia', serif; /* Switching to a more classic/spiritual font */
    line-height: 1.7;
    margin: 0;
    padding: 0;
    color: var(--color-text-dark);
}

/* Resetting utility colors and link defaults */
a {
    color: var(--color-primary);
    transition: all 0.3s ease;
    /* Adding subtle underlines on hover for visual flow */
    text-decoration: none;
}

a:hover {
    color: var(--color-accent); /* Pop color on interaction */
    text-decoration: underline;
}

/* General container background adjustment */
.container {
    max-width: 1300px; /* Slightly wider for grander feel */
    margin: 0 auto;
    padding: 0 20px;
}

/* Utility Classes (for new sections) */
.style-background-light {
    background-color: #f7f8fa;
    /* Light grey background for alternating sections */
    padding: 60px 0;
}

h2,
h3 {
    font-weight: 600;
    margin-top: 0;
}


/* ======================================== */
/* BUTTON STYLES & ACCESSIBILITY (A11y) */
/* ======================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    margin: 5px;
    border-radius: 6px;
    /* Slightly rounder for modern look */
    font-weight: bold;
    cursor: pointer;
    /* Indicates it's clickable */
    transition: background-color 0.3s ease, transform 0.1s ease;
    text-align: center;
}

/* ======================================== */
/* BUTTON STYLES & ACCESSIBILITY (Vibrant Glow) */
/* ======================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    margin: 5px;
    border-radius: 40px; /* More rounded, organic look */
    font-weight: 700; /* Bolder text for impact */
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    /* Starting glow effect */
    box-shadow: 0 4px 15px rgba(109, 40, 217, 0.2);
    background-clip: padding-box; /* Prep for gradient backgrounds */
}

/* Primary button (high contrast) */
.btn-primary {
    /* Using a subtle initial gradient/glow instead of solid color */
    background-image: linear-gradient(45deg, var(--color-primary), #8b5cf6);
    color: white !important;
    border: none;
}

.btn-primary:hover {
    /* Adding a strong hover effect - shift gradient and glow */
    background-image: linear-gradient(45deg, #7c3aed 0%, var(--color-accent) 100%);
    transform: translateY(-2px); /* Little lift on hover */
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.5);
}

/* Secondary button (outline/vibrant) */
.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary); /* Thicker border */
    box-shadow: none;
}

.btn-secondary:hover {
    /* Filling the outline with a soft accent on hover for depth */
    background-color: rgba(109, 40, 217, 0.15);
    transform: scale(1.03);
}

/* ======================================== */
/* HEADER & NAVIGATION STYLES (Aesthetic Polish) */
/* ======================================== */
header {
    background-color: white;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Ensure logo alt text is descriptive */
.logo img {
    height: 50px;
    width: auto;
}

header a {
    font-size: 1.8em;
    color: #333;
    letter-spacing: -1px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    padding: 0;
    margin: 0;
}

/* ======================================== */
/* HERO SECTION STYLING (Dream Bloom) */
/* ======================================== */
#hero {
    text-align: center;
    padding: 100px 20px; /* Increased vertical space for drama */
    background: radial-gradient(circle at top left, #f3e8ff 0%, rgba(251, 191, 36, 0.3) 40%, #dbeafe 100%);
    /* Bloom gradient: Lavender/Yellow/Blue overlap */
}

#hero h1 {
    font-size: 4em; /* Larger impact */
    margin-bottom: 20px;
    color: var(--color-text-dark);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); /* Slight shadow for depth */
}

/* Adjusting the Hero Tagline to complement the title's size */
.hero-tagline {
    font-size: 1.6em;
    color: var(--color-primary);
    margin-bottom: 40px;
    display: block; /* Ensures it can be centered nicely */
}

/* ======================================== */
/* GENERAL SECTION LAYOUTS (Flex/Grid) */
/* ======================================== */
/* General Section Backgrounds (Use soft gradients for fluidity) */
section {
    padding: 80px 0;
}

/* Example alternative background, use on certain sections if needed */
.alt-background {
    background-color: #fdfbf6; /* Creamy off-white */
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Adjusted minimum width */
    gap: 40px;
    margin-top: 30px;
    align-items: center;
    /* Vertically aligns items in the grid */
}

/* Feature Cards (Used in Services) */
.feature-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

/* ======================================== */
/* ORDER OF THE NARWHAL & CORE PRINCIPLES */
/* ======================================== */
#order-of-the-narwhal {
    padding: 80px 20px;
}

.lore-details {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.detail-card {
    flex: 1;
    max-width: 45%;
    /* Adjusted for better spacing */
    background: #f7e6d8;
    /* Soft beige/gold color - giving a "sacred" feel */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.principle-grid {
    display: flex;
    justify-content: space-around;
    gap: 25px;
    margin-top: 40px;
}

.principle-card {
    flex: 1;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    /* Adding a clear visual indicator for importance */
    border-left: 4px solid var(--color-accent, #63b3ed);
}

/* ======================================== */
/* FORM STYLING & ACCESSIBILITY POLISH (A11y) */
/* ======================================== */
#contact .form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    /* Makes labels take up their own line for better screen reader reading */
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

input[type="text"],
input[type="email"],
textarea,
input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    /* Ensures padding doesn't break width calculation */
    font-size: 1em;
}

textarea {
    resize: vertical;
    /* Allows users to resize vertically only (better UX) */
}


/* ======================================== */
/* FOOTER & UTILITY STYLING */
/* ======================================== */
footer {
    background-color: #2d3748;
    color: white;
    text-align: center;
    padding: 40px 20px 20px;
}

/* ======================================== */
/* MEDIA QUERIES (Responsiveness) */
/* ======================================== */
@media (max-width: 1024px) {
    .hero-tagline {
        font-size: 1.3em;
        /* Slight reduction for tablets */
    }
}

@media (max-width: 992px) {

    /* Stack columns more gracefully on mid-sized screens */
    .grid,
    .principle-grid,
    .lore-details {
        gap: 25px;
    }

    .detail-card {
        flex: 1 1 100%;
        /* Makes Narwhal cards stack vertically */
        max-width: none;
    }

    /* Keep logos from wrapping into the menu toggle button on smaller screens */
    .logo {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {

    /* Navigation adjustments for mobile */
    nav ul {
        position: absolute;
        top: 65px;
        /* Matches height of header content */
        left: 0;
        width: 100%;
        flex-direction: column;
        background: white;
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
        /* Initial state must be hidden */
        display: none;
    }

    nav ul.active {
        display: flex;
        /* Show when active class is present */
        padding: 15px 20px;
        text-align: center;
    }

    header .container {
        /* Adjust container for mobile layout */
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        /* Allow items to wrap if content is too wide */
    }

    /* Shrink large components on mobile view */
    .principle-card,
    .detail-card {
        border-left-width: 3px !important;
        text-align: center;
    }
}

/* End of Styles */