/*
 * assets/css/style.css
 * Global Stylesheet for Yana Fumani's Personal Brand Website
 *
 * This file contains:
 * - CSS Variables for the brand color palette
 * - Basic CSS Reset
 * - Global Typography settings
 * - Layout and utility styles (e.g., .container)
 * - Styling for header, navigation, and footer
 * - Responsive design considerations (mobile-first)
 */

/* ---------------------------------------------------
 * 1. CSS Variables (Color Palette)
 * --------------------------------------------------- */
:root {
    --color-navy: #1A1A2E;
    --color-cream: #F5F1E6;
    --color-terracotta: #D97B66;
    --color-dusty-rose: #CE8FA9;
    --color-muted-sage: #9EB3A4;

    /* Text Colors */
    --color-text-dark: var(--color-navy);
    --color-text-light: var(--color-cream);
    --color-accent: var(--color-terracotta);

    /* Background Colors */
    --color-bg-primary: var(--color-cream);
    --color-bg-secondary: var(--color-muted-sage); /* For sections or accents */

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Cormorant Garamond', serif;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 96px;
    --spacing-xxl: 128px;
}

/* ---------------------------------------------------
 * 2. Basic CSS Reset
 * --------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Base text styles */
p {
    margin-bottom: 1em;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: var(--color-navy);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------------------------------------------------
 * 3. Typography
 * --------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5em; } /* Mobile first */
h2 { font-size: 2em; }
h3 { font-size: 1.75em; }
h4 { font-size: 1.5em; }
h5 { font-size: 1.25em; }
h6 { font-size: 1em; }

/* Accent Text / Quotes */
.accent-text, blockquote {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.2em;
    line-height: 1.5;
    color: var(--color-navy); /* Or a slightly different shade */
}

blockquote {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-sm);
    border-left: 4px solid var(--color-accent);
}

/* ---------------------------------------------------
 * 4. Layout & Utility Styles
 * --------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm); /* Mobile padding */
}

.section-padding {
    padding: var(--spacing-lg) 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.button {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--color-terracotta);
    color: var(--color-text-light);
    border: 2px solid var(--color-terracotta);
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.button:hover, .button:focus {
    background-color: var(--color-navy);
    border-color: var(--color-navy);
    color: var(--color-cream);
}

.button.secondary {
    background-color: transparent;
    color: var(--color-terracotta);
    border-color: var(--color-terracotta);
}

.button.secondary:hover, .button.secondary:focus {
    background-color: var(--color-terracotta);
    color: var(--color-cream);
}

/* ---------------------------------------------------
 * 5. Header & Navigation Styles
 * --------------------------------------------------- */
.site-header {
    background-color: var(--color-bg-primary);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-logo:hover {
    color: var(--color-terracotta);
}

.main-nav ul {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%; /* Position below header */
    left: 0;
    background-color: var(--color-bg-primary);
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: var(--spacing-sm) 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.main-nav.active ul {
    display: flex; /* Show when active */
}

.main-nav li {
    text-align: center;
    margin: var(--spacing-xs) 0;
}

.main-nav a {
    display: block;
    padding: var(--spacing-xs) var(--spacing-sm);
    color: var(--color-text-dark);
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-nav a:hover, .main-nav a:focus {
    background-color: var(--color-muted-sage);
    color: var(--color-text-light);
}

.menu-toggle {
    display: flex; /* Show on mobile */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001; /* Ensure it's above other content */
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--color-navy);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animation for menu toggle */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* ---------------------------------------------------
 * 6. Footer Styles
 * --------------------------------------------------- */
.site-footer {
    background-color: var(--color-navy);
    color: var(--color-text-light);
    padding: var(--spacing-lg) 0 var(--spacing-sm);
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: flex;
    flex-direction: column; /* Stack vertically on mobile */
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(245, 241, 230, 0.1); /* Light cream with opacity */
}

.footer-section {
    flex: 1;
    text-align: center; /* Center content on mobile */
}

.footer-section h4, .footer-section h3 {
    color: var(--color-cream);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-heading);
}

.footer-section ul {
    padding: 0;
}

.footer-section li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: var(--color-cream);
    transition: color 0.3s ease;
}

.footer-section a:hover, .footer-section a:focus {
    color: var(--color-terracotta);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-sm);
    font-size: 0.9em;
    color: rgba(245, 241, 230, 0.7);
}


/* ---------------------------------------------------
 * 7. Responsive Design (Media Queries)
 * --------------------------------------------------- */

/* Tablet and larger screens (e.g., min-width: 768px) */
@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    h1 { font-size: 3.5em; }
    h2 { font-size: 2.5em; }
    h3 { font-size: 2em; }

    .main-nav ul {
        display: flex; /* Show as row on larger screens */
        flex-direction: row;
        position: static; /* Remove absolute positioning */
        box-shadow: none;
        border-top: none;
        padding: 0;
    }

    .main-nav li {
        margin: 0 var(--spacing-xs);
    }

    .main-nav a {
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .menu-toggle {
        display: none; /* Hide hamburger menu on larger screens */
    }

    .footer-content {
        flex-direction: row; /* Layout horizontally on larger screens */
        text-align: left; /* Align text left */
    }

    .footer-section {
        text-align: left;
    }
}

/* Desktop and larger screens (e.g., min-width: 1024px) */
@media (min-width: 1024px) {
    .container {
        padding: 0 var(--spacing-lg);
    }

    h1 { font-size: 4.5em; }
    h2 { font-size: 3em; }
    h3 { font-size: 2.25em; }

    .section-padding {
        padding: var(--spacing-xl) 0;
    }
}
/*
 * Additional CSS for Home Page (index.php)
 */

/* Hero Section */
.hero-section {
    min-height: 70vh; /* Make hero section tall */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-primary); /* Ensure it uses cream background */
    text-align: center;
}

.hero-headline {
    font-size: 2.8em; /* Adjusted for impact */
    margin-bottom: var(--spacing-sm);
    color: var(--color-navy);
}

.hero-intro {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto var(--spacing-md);
    color: var(--color-navy);
}

.hero-ctas .button {
    margin: var(--spacing-xs);
}

/* Intro Section */
.intro-section {
    background-color: var(--color-bg-primary);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr; /* Stack on mobile */
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.intro-item {
    background-color: var(--color-muted-sage);
    color: var(--color-text-light);
    padding: var(--spacing-md);
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.intro-item h3 {
    color: var(--color-cream);
    margin-bottom: var(--spacing-xs);
}

.intro-item p {
    color: rgba(245, 241, 230, 0.9);
}


/* Blog Posts Grid */
.recent-blog-section {
    background-color: var(--color-muted-sage);
    color: var(--color-text-light);
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: 1fr; /* Stack on mobile */
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.blog-card {
    background-color: var(--color-cream);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.blog-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
}

.blog-card-content {
    padding: var(--spacing-md);
}

.blog-card-content h3 {
    margin-bottom: var(--spacing-xs);
}

.blog-card-content .blog-card-title {
    color: var(--color-navy);
    font-family: var(--font-heading);
    font-size: 1.5em;
    transition: color 0.3s ease;
}

.blog-card-content .blog-card-title:hover {
    color: var(--color-terracotta);
}

.blog-card-meta {
    font-size: 0.9em;
    color: var(--color-muted-sage);
    margin-bottom: var(--spacing-sm);
}

.blog-card-excerpt {
    font-size: 0.95em;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-sm);
}

.blog-card .read-more {
    color: var(--color-terracotta);
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.blog-card .read-more:hover {
    color: var(--color-navy);
}


/* Instagram Section */
.instagram-grid-placeholder {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    max-width: 500px; /* Constrain grid width */
    margin-left: auto;
    margin-right: auto;
}

.instagram-grid-placeholder img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    aspect-ratio: 1 / 1; /* Ensure square images */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.rounded-image {
    border-radius: 8px; /* Apply to all images in the grid */
}

/* Newsletter Section */
.newsletter-section {
    background-color: var(--color-dusty-rose);
    color: var(--color-text-light);
    text-align: center;
}

.newsletter-form {
    display: flex;
    flex-direction: column; /* Stack on mobile */
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid rgba(245, 241, 230, 0.5);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text-light);
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(245, 241, 230, 0.7);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-cream);
}

.newsletter-form .button {
    width: 100%; /* Full width button on mobile */
}

.form-message {
    margin-top: var(--spacing-sm);
    font-size: 0.9em;
    color: var(--color-cream);
}


/* Media Queries for index.php specific elements */
@media (min-width: 768px) {
    .hero-headline {
        font-size: 3.8em;
    }

    .hero-intro {
        font-size: 1.5em;
    }

    .intro-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on tablet/desktop */
    }

    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }

    .instagram-grid-placeholder {
        grid-template-columns: repeat(4, 1fr); /* 4 columns on tablet/desktop */
        max-width: 800px; /* Expand grid width */
    }

    .newsletter-form {
        flex-direction: row; /* Row layout on larger screens */
        justify-content: center;
    }

    .newsletter-form input[type="email"] {
        width: auto; /* Auto width for input */
        flex-grow: 1; /* Allow input to grow */
        max-width: 300px;
    }

    .newsletter-form .button {
        width: auto; /* Auto width for button */
    }
}

@media (min-width: 1024px) {
    .hero-headline {
        font-size: 4.5em;
    }

    .blog-posts-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
    }
}

