/**
 * style.css
 * Michel Girardin Website - Main Stylesheet
 * Project: michelgirardin.co.za
 * Version: 1.1.0
 * Created: 2026-04-04 01:50 SAST
 * Modified: 2026-04-04 03:00 SAST
 * Changes: v1.1.0 - Hero section now uses background image with dark gradient overlay, light text on hero
 */

/* ═══════════════════════════════════════ */
/* RESET & VARIABLES */
/* ═══════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --sand: #F5F0E8;
    --sand-light: #FAF8F3;
    --earth: #8B7355;
    --earth-dark: #6B5940;
    --bush: #4A5D3A;
    --bush-light: #5E7548;
    --charcoal: #2C2C2C;
    --warm-white: #FFFDF8;
    --gold: #C8A55C;
    --gold-light: #D4B87A;
    --text: #3A3630;
    --text-light: #6B6560;
    --divider: #E2DACF;
    --error: #c0392b;
    --success: #27ae60;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--text);
    background: var(--warm-white);
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 500; }
a { color: var(--bush); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ═══════════════════════════════════════ */
/* NAV */
/* ═══════════════════════════════════════ */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,253,248,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--divider);
    transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
nav .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
nav .logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem; font-weight: 600;
    color: var(--charcoal);
    letter-spacing: 0.02em;
}
nav .logo span { color: var(--gold); }
nav ul { list-style: none; display: flex; gap: 28px; }
nav ul li a {
    font-size: 0.85rem; font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.3s;
}
nav ul li a:hover { color: var(--gold); }
.nav-cta {
    background: var(--bush) !important;
    color: #fff !important;
    padding: 8px 20px !important;
    border-radius: 4px;
    font-size: 0.82rem !important;
    letter-spacing: 0.05em;
}
.nav-cta:hover { background: var(--bush-light) !important; }
.mobile-toggle {
    display: none; cursor: pointer; font-size: 1.5rem;
    color: var(--charcoal); background: none; border: none;
}

/* ═══════════════════════════════════════ */
/* HERO */
/* ═══════════════════════════════════════ */
.hero {
    min-height: 92vh;
    display: flex; align-items: center;
    padding-top: 64px;
    background: url('/uploads/michel-girardin-hero.jpg') center center / cover no-repeat;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        to right,
        rgba(42, 40, 35, 0.88) 0%,
        rgba(42, 40, 35, 0.78) 45%,
        rgba(42, 40, 35, 0.45) 75%,
        rgba(42, 40, 35, 0.2) 100%
    );
    z-index: 0;
}
.hero::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--warm-white) 0%, transparent 100%);
    z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 720px; }
.hero-eyebrow {
    font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 20px;
    display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before {
    content: ''; width: 40px; height: 1.5px; background: var(--gold); flex-shrink: 0;
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.15; color: #fff;
    margin-bottom: 24px; font-weight: 600;
}
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero-text {
    font-size: 1.05rem; color: rgba(255,255,255,0.8);
    line-height: 1.8; margin-bottom: 36px; max-width: 640px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ═══════════════════════════════════════ */
/* BUTTONS */
/* ═══════════════════════════════════════ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.9rem; font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 4px; cursor: pointer;
    transition: all 0.3s; border: none;
    text-decoration: none;
}
.btn-primary { background: var(--bush); color: #fff; }
.btn-primary:hover { background: var(--bush-light); color: #fff; }
.btn-outline { background: transparent; color: var(--earth-dark); border: 1.5px solid var(--earth); }
.btn-outline:hover { background: var(--earth); color: #fff; }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,0.5); }
.hero .btn-outline:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.7); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-light); color: #fff; }
.btn-sm { padding: 8px 20px; font-size: 0.82rem; }

/* ═══════════════════════════════════════ */
/* SECTIONS */
/* ═══════════════════════════════════════ */
section { padding: 96px 0; }
.section-label {
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    color: var(--charcoal); margin-bottom: 20px; line-height: 1.2;
}
.section-text {
    font-size: 1.05rem; color: var(--text-light);
    max-width: 640px; line-height: 1.8;
}

/* ═══════════════════════════════════════ */
/* IMAGE PLACEHOLDER */
/* ═══════════════════════════════════════ */
.img-placeholder {
    width: 100%; aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--sand) 0%, var(--divider) 100%);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-light); font-size: 0.85rem;
    font-style: italic; text-align: center; padding: 20px;
    border: 1px dashed var(--divider);
}

/* ═══════════════════════════════════════ */
/* ABOUT */
/* ═══════════════════════════════════════ */
.about { background: var(--warm-white); }
.about-grid {
    display: grid; grid-template-columns: 1.2fr 0.8fr;
    gap: 64px; align-items: start;
}
.about-stats {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 20px; margin-top: 36px;
}
.stat {
    padding: 20px; background: var(--sand-light);
    border-radius: 6px; border-left: 3px solid var(--gold);
}
.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem; font-weight: 600; color: var(--bush);
}
.stat-label { font-size: 0.82rem; color: var(--text-light); margin-top: 4px; }

/* ═══════════════════════════════════════ */
/* TIMELINE */
/* ═══════════════════════════════════════ */
.timeline-section { background: var(--sand-light); }
.timeline { margin-top: 48px; position: relative; }
.timeline::before {
    content: ''; position: absolute;
    left: 20px; top: 0; bottom: 0;
    width: 2px; background: var(--divider);
}
.timeline-item { position: relative; padding-left: 56px; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
    position: absolute; left: 12px; top: 4px;
    width: 18px; height: 18px;
    background: var(--gold);
    border: 3px solid var(--sand-light);
    border-radius: 50%;
}
.timeline-period {
    font-size: 0.78rem; font-weight: 600;
    color: var(--gold); letter-spacing: 0.08em;
    text-transform: uppercase;
}
.timeline-role {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem; font-weight: 600;
    color: var(--charcoal); margin: 4px 0 2px;
}
.timeline-org { font-size: 0.95rem; color: var(--text-light); }
.timeline-detail {
    font-size: 0.88rem; color: var(--text-light);
    margin-top: 6px; line-height: 1.6;
}

/* ═══════════════════════════════════════ */
/* EXPERTISE */
/* ═══════════════════════════════════════ */
.expertise { background: var(--warm-white); }
.expertise-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 28px; margin-top: 48px;
}
.expertise-card {
    padding: 32px 28px; background: var(--sand-light);
    border-radius: 8px; border: 1px solid var(--divider);
    transition: all 0.3s;
}
.expertise-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
    border-color: var(--gold);
}
.expertise-icon {
    width: 48px; height: 48px; background: var(--bush);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; color: #fff; font-size: 1.3rem;
}
.expertise-card h3 { font-size: 1.1rem; color: var(--charcoal); margin-bottom: 10px; }
.expertise-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; }

/* ═══════════════════════════════════════ */
/* CREDENTIALS */
/* ═══════════════════════════════════════ */
.credentials { background: var(--charcoal); color: #fff; padding: 56px 0; }
.cred-grid { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.cred-item { text-align: center; }
.cred-badge {
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 6px;
}
.cred-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem; color: #fff;
}

/* ═══════════════════════════════════════ */
/* MEDIA */
/* ═══════════════════════════════════════ */
.media-section { background: var(--sand-light); }
.media-logos {
    display: flex; flex-wrap: wrap; gap: 20px;
    align-items: center; justify-content: center; margin-top: 32px;
}
.media-logo {
    padding: 14px 24px; background: var(--warm-white);
    border-radius: 6px;
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem; font-weight: 600;
    color: var(--text-light);
    border: 1px solid var(--divider);
    transition: border-color 0.3s;
}
.media-logo:hover { border-color: var(--gold); }

/* ═══════════════════════════════════════ */
/* SERVICES */
/* ═══════════════════════════════════════ */
.services { background: var(--warm-white); }
.services-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 24px; margin-top: 48px;
}
.service-card {
    padding: 32px; background: var(--sand-light);
    border-radius: 8px; border: 1px solid var(--divider);
    display: flex; gap: 20px;
    transition: border-color 0.3s;
}
.service-card:hover { border-color: var(--gold); }
.service-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem; font-weight: 600;
    color: var(--gold-light); flex-shrink: 0; line-height: 1;
}
.service-card h3 { font-size: 1.05rem; color: var(--charcoal); margin-bottom: 8px; }
.service-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.7; }

/* ═══════════════════════════════════════ */
/* BLOG PREVIEW */
/* ═══════════════════════════════════════ */
.blog-preview { background: var(--sand-light); }
.blog-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 28px; margin-top: 48px;
}
.blog-card {
    background: var(--warm-white); border-radius: 8px;
    overflow: hidden; border: 1px solid var(--divider);
    transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.blog-thumb {
    height: 180px;
    background: linear-gradient(135deg, var(--sand) 0%, var(--divider) 100%);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-light); font-size: 0.8rem; font-style: italic;
}
.blog-thumb-img {
    width: 100%; height: 180px; object-fit: cover; display: block;
}
.blog-body { padding: 24px; }
.blog-cat {
    font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 8px;
}
.blog-card h3 { font-size: 1rem; color: var(--charcoal); margin-bottom: 8px; line-height: 1.4; }
.blog-card h3 a { color: var(--charcoal); }
.blog-card h3 a:hover { color: var(--bush); }
.blog-card p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }
.blog-meta { margin-top: 12px; font-size: 0.78rem; color: var(--text-light); }

/* ═══════════════════════════════════════ */
/* CONTACT */
/* ═══════════════════════════════════════ */
.contact { background: linear-gradient(135deg, var(--charcoal) 0%, #1E1E1E 100%); color: #fff; }
.contact .section-label { color: var(--gold); }
.contact .section-title { color: #fff; }
.contact .section-text { color: rgba(255,255,255,0.7); margin: 0 auto 40px; text-align: center; }

.contact-grid {
    display: grid; grid-template-columns: 1fr 1.2fr;
    gap: 48px; align-items: start;
}
.contact-info { padding-top: 12px; }
.contact-methods { display: flex; flex-direction: column; gap: 24px; }
.contact-method-label {
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 4px;
}
.contact-method a, .contact-method span {
    color: rgba(255,255,255,0.85); font-size: 1.02rem;
}
.contact-method a:hover { color: var(--gold); }

.social-links { display: flex; gap: 12px; margin-top: 28px; }
.social-link {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7); transition: all 0.3s;
}
.social-link:hover { border-color: var(--gold); color: var(--gold); }
.social-link svg { fill: currentColor; }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%; padding: 12px 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px; color: #fff;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.4); }
.contact-form select { color: rgba(255,255,255,0.6); }
.contact-form select option { background: var(--charcoal); color: #fff; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-feedback { font-size: 0.88rem; margin-top: 8px; }
.form-feedback.success { color: var(--success); }
.form-feedback.error { color: #e74c3c; }

/* ═══════════════════════════════════════ */
/* FOOTER */
/* ═══════════════════════════════════════ */
footer {
    background: #1A1A1A; color: rgba(255,255,255,0.4);
    text-align: center; padding: 32px 0; font-size: 0.82rem;
}
footer a { color: rgba(255,255,255,0.25); }
footer a:hover { color: var(--gold); }

/* ═══════════════════════════════════════ */
/* BLOG PAGES */
/* ═══════════════════════════════════════ */
.page-header {
    padding: 120px 0 48px; background: var(--sand-light);
    text-align: center;
}
.page-header .section-text { margin: 12px auto 0; }

.blog-listing { padding: 64px 0; background: var(--warm-white); }
.blog-listing .blog-grid { margin-top: 0; }

.post-single { padding: 120px 0 64px; background: var(--warm-white); }
.post-content {
    max-width: 720px; margin: 0 auto;
    font-size: 1.05rem; line-height: 1.85;
}
.post-content h2 { margin: 32px 0 16px; font-size: 1.5rem; }
.post-content h3 { margin: 24px 0 12px; font-size: 1.2rem; }
.post-content p { margin-bottom: 16px; }
.post-content ul, .post-content ol { margin: 16px 0 16px 24px; }
.post-content li { margin-bottom: 6px; }
.post-content blockquote {
    border-left: 3px solid var(--gold); margin: 24px 0;
    padding: 16px 24px; background: var(--sand-light);
    border-radius: 0 6px 6px 0; font-style: italic;
}
.post-meta {
    max-width: 720px; margin: 0 auto 32px;
    font-size: 0.85rem; color: var(--text-light);
    display: flex; gap: 24px; flex-wrap: wrap;
}
.post-featured-img {
    max-width: 720px; margin: 0 auto 32px;
    border-radius: 8px; overflow: hidden;
}
.post-featured-img img { width: 100%; display: block; }

/* ═══════════════════════════════════════ */
/* ADMIN STYLES */
/* ═══════════════════════════════════════ */
.admin-wrap {
    max-width: 900px; margin: 0 auto; padding: 32px 24px;
    font-family: 'Source Sans 3', sans-serif;
}
.admin-wrap h1 { font-size: 1.6rem; margin-bottom: 24px; }
.admin-wrap table { width: 100%; border-collapse: collapse; }
.admin-wrap th, .admin-wrap td {
    padding: 12px 16px; text-align: left;
    border-bottom: 1px solid var(--divider);
    font-size: 0.9rem;
}
.admin-wrap th {
    background: var(--sand-light); font-weight: 600;
    font-size: 0.78rem; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--text-light);
}
.admin-form label {
    display: block; font-weight: 600;
    margin: 16px 0 4px; font-size: 0.88rem;
}
.admin-form input[type="text"],
.admin-form input[type="url"],
.admin-form select,
.admin-form textarea {
    width: 100%; padding: 10px 12px;
    border: 1.5px solid var(--divider);
    border-radius: 4px; font-size: 0.95rem;
    font-family: 'Source Sans 3', sans-serif;
    background: #fff;
}
.admin-form textarea { min-height: 200px; resize: vertical; }
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus { outline: none; border-color: var(--gold); }

.badge {
    display: inline-block; padding: 3px 10px;
    border-radius: 12px; font-size: 0.72rem;
    font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.04em;
}
.badge-published { background: #D4EDDA; color: #155724; }
.badge-draft { background: #FFF3CD; color: #856404; }
.admin-actions { display: flex; gap: 8px; }
.admin-actions a { font-size: 0.85rem; }

.alert {
    padding: 12px 16px; border-radius: 6px;
    margin-bottom: 20px; font-size: 0.9rem;
}
.alert-success { background: #D4EDDA; color: #155724; border-left: 4px solid var(--success); }
.alert-error { background: #F8D7DA; color: #721c24; border-left: 4px solid var(--error); }

/* Login page */
.login-wrap {
    max-width: 400px; margin: 100px auto; padding: 40px;
    background: var(--warm-white); border-radius: 8px;
    border: 1px solid var(--divider);
}
.login-wrap h1 { text-align: center; margin-bottom: 24px; }

/* ═══════════════════════════════════════ */
/* RESPONSIVE */
/* ═══════════════════════════════════════ */
@media (max-width: 900px) {
    .expertise-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    nav ul { 
        display: none; flex-direction: column;
        position: absolute; top: 64px; left: 0; right: 0;
        background: var(--warm-white); padding: 24px;
        border-bottom: 1px solid var(--divider);
        gap: 16px;
    }
    nav ul.open { display: flex; }
    .mobile-toggle { display: block; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .expertise-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .cred-grid { gap: 24px; }
    .form-row { grid-template-columns: 1fr; }
    section { padding: 64px 0; }
    .hero { min-height: 80vh; }
    .hero-eyebrow { flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .about-stats { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.8rem; }
    .nav-cta { display: none; }
}
