/* 
   Norah Jane's Light - Modern Redesign 
   Palette: Deep Purple, Soft Lavender, Gold, Dark Slate, Off-White
*/

:root {
    --primary-color: #4A148C;
    /* Deep Purple */
    --primary-light: #7c43bd;
    --primary-dark: #12005e;
    --secondary-color: #E1BEE7;
    /* Soft Lavender */
    --accent-color: #FFC107;
    /* Amber/Gold */
    --text-color: #263238;
    /* Dark Slate Blue */
    --text-light: #546E7A;
    --bg-color: #FAFAFA;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1200px;
    --radius: 8px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-top: 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
    padding: 0;
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

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

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

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

.section-padding {
    padding: 4rem 0;
}

.text-center {
    text-align: center;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo img {
    height: 40px;
    /* Adjust based on actual logo */
    border-radius: 50%;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    font-weight: 500;
    color: var(--text-color);
}

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

/* Mobile Nav Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(74, 20, 140, 0.8), rgba(124, 67, 189, 0.6)), url('../images/hero-abstract.png') center/cover no-repeat;
    color: var(--white);
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* Features / Mission */
.features {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: var(--white);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Content Sections */
.story-preview {
    background-color: var(--secondary-color);
    background: linear-gradient(to right, #f3e5f5, #fff);
    display: flex;
    align-items: center;
    gap: 4rem;
}

.story-content {
    flex: 1;
}

.story-image {
    flex: 1;
    position: relative;
}

.story-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* Timeline (for Story Page) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--white);
    border: 4px solid var(--accent-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

.right::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--white);
    position: relative;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

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

/* Media Queries */
/* Mobile Optimizations */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.hero-btn {
    border-color: var(--white);
    color: var(--white);
}

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

.hero-btn-accent {
    background-color: var(--accent-color);
    color: var(--primary-dark);
}

.hero-btn-accent:hover {
    background-color: #ffca2c;
    color: var(--primary-dark);
    transform: translateY(-2px);
}

@media (max-width: 768px) {

    /* Fix Navigation */
    .nav-container {
        flex-direction: row;
        /* Keep logo and menu side-by-side */
    }

    .menu-toggle {
        display: block;
        /* Show hamburger */
        margin-left: auto;
        /* Push to right */
    }

    nav ul {
        display: none;
        /* Hide default menu */
        /* JS handles the display:flex toggle */
    }

    /* Fix Hero Buttons */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        max-width: 300px;
        margin: 2rem auto;
    }

    .btn {
        width: 100%;
        /* Full width buttons on mobile */
        text-align: center;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .story-preview {
        flex-direction: column;
        text-align: center;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

    .left::after,
    .right::after {
        left: 21px;
    }

    .right {
        left: 0%;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}