/* ============================================
   Colleen Badrow — Personal Website
   Design: Organic Biophilic / Coffee-Inspired
   Fonts: Lora (headings) + Raleway (body)
   ============================================ */

/* --- CSS Custom Properties (Muted, Warm Palette) --- */
:root {
    --color-primary: #8B7355;
    --color-primary-dark: #5C4A3A;
    --color-secondary: #9C7B5C;
    --color-accent: #B8956A;
    --color-accent-light: #C9A87C;
    --color-bg-cream: #F5F0EB;
    --color-bg-warm: #FAF7F4;
    --color-bg-linen: #F0EBE6;
    --color-bg-white: #FDFCFA;
    --color-text: #5C4A3A;
    --color-text-light: #7A6652;
    --color-text-muted: #9A8876;
    --color-border: #E6DDD3;
    --color-border-dark: #C9B9A8;
    --color-footer-bg: #3D3028;
    --color-footer-text: #D4C4B0;
    --color-white: #FFFFFF;

    --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
    --font-body: 'Raleway', 'Segoe UI', system-ui, sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-soft: 0 2px 16px rgba(120, 53, 15, 0.06);
    --shadow-card: 0 4px 24px rgba(120, 53, 15, 0.08);
    --shadow-elevated: 0 8px 40px rgba(120, 53, 15, 0.12);

    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    --max-width: 1200px;
    --nav-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg-warm);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-primary-dark);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

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

/* --- Container --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 16px rgba(92, 74, 58, 0.2);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
    box-shadow: 0 6px 24px rgba(92, 74, 58, 0.28);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 16px;
}


/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background-color: rgba(245, 240, 235, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(230, 221, 211, 0.5);
    z-index: 1000;
    transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
    background-color: rgba(245, 240, 235, 0.95);
    box-shadow: var(--shadow-soft);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary-dark);
    letter-spacing: -0.01em;
}

.nav-logo:hover {
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.nav-links a:hover {
    color: var(--color-primary);
    background-color: rgba(92, 74, 58, 0.06);
}

/* Hamburger Menu */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary-dark);
    position: relative;
    transition: background-color var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary-dark);
    left: 0;
    transition: transform var(--transition-base);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 40px) 24px 60px;
    background: linear-gradient(160deg, var(--color-bg-cream) 0%, var(--color-bg-warm) 40%, var(--color-bg-linen) 100%);
    overflow: hidden;
}

.hero-bg-texture {
    position: absolute;
    inset: 0;
    background-image: url('generated_imgs/generated-2026-03-17T00-15-29-673Z-kad9ei.png');
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    pointer-events: none;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--color-primary);
    top: -150px;
    right: -100px;
}

.shape-2 {
    width: 350px;
    height: 350px;
    background: var(--color-accent);
    bottom: -80px;
    left: -80px;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--color-secondary);
    top: 40%;
    left: 15%;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 64px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
}

.hero-greeting {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero-name {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    color: var(--color-primary-dark);
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(15px, 2vw, 18px);
    font-weight: 400;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.hero-divider {
    margin: 0 4px;
    opacity: 0.4;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: clamp(17px, 2.2vw, 21px);
    font-weight: 400;
    font-style: italic;
    color: var(--color-text);
    max-width: 480px;
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-visual {
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* Hero photo avatar */
.hero-photo-frame {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--color-border);
    box-shadow: var(--shadow-elevated);
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Interactive coffee canvas */
.coffee-canvas-wrapper {
    width: 300px;
    height: 300px;
    position: relative;
}

.coffee-canvas-wrapper canvas {
    cursor: pointer;
}

/* Floating beans background */
.beans-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Mouse-following warm glow */
.warm-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    transition: background 0.3s ease;
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-text-muted);
    opacity: 0.4;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Section Common Styles --- */
section {
    padding: 96px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    color: var(--color-primary-dark);
}

/* --- About Section --- */
.about {
    background-color: var(--color-bg-white);
}

.about-layout {
    display: flex;
    align-items: center;
    gap: 48px;
    max-width: 960px;
    margin: 0 auto;
}

.about-photo-col {
    flex-shrink: 0;
}

.about-photo-wrapper {
    width: 280px;
    height: 340px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 3px solid var(--color-border);
    box-shadow: var(--shadow-card);
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.about-card {
    flex: 1;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-card);
}

.about-icon {
    color: var(--color-primary);
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.about-card p {
    margin-bottom: 16px;
    color: var(--color-text);
    line-height: 1.8;
}

.about-card p:last-child {
    margin-bottom: 0;
}

/* --- Expertise Section --- */
.expertise {
    background-color: var(--color-bg-cream);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.expertise-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-soft);
}

.expertise-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
    border-color: var(--color-border-dark);
}

.expertise-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-cream);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    margin-bottom: 20px;
}

.expertise-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.expertise-card p {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.7;
}

/* --- Quote Section --- */
.quote-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.quote-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.featured-quote {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.quote-mark {
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 16px;
}

.featured-quote p {
    font-family: var(--font-heading);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 500;
    font-style: italic;
    color: var(--color-white);
    line-height: 1.6;
    margin-bottom: 20px;
}

.featured-quote cite {
    font-family: var(--font-body);
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    color: var(--color-border);
    letter-spacing: 0.02em;
}

/* --- Interests Section --- */
.interests {
    background-color: var(--color-bg-white);
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.interest-card {
    text-align: center;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-soft);
}

.interest-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
    border-color: var(--color-border-dark);
}

.interest-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-bg-cream), var(--color-border));
    border-radius: 50%;
    color: var(--color-primary);
    margin: 0 auto 20px;
}

.interest-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.interest-card p {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.6;
}

/* --- Contact Section --- */
.contact {
    background-color: var(--color-bg-linen);
}

.contact-content {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.contact-text {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 32px;
}

/* --- Footer --- */
.footer {
    background-color: var(--color-footer-bg);
    padding: 48px 0;
}

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

.footer-brand {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-footer-text);
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 14px;
    color: rgba(212, 196, 176, 0.6);
    margin-bottom: 16px;
}

.footer-copy {
    font-size: 13px;
    color: rgba(212, 196, 176, 0.4);
}

/* --- Animations (respect reduced motion) --- */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
    }

    .scroll-indicator {
        animation: none;
    }
}

/* --- Responsive: Tablet --- */
@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }

    .coffee-canvas-wrapper {
        width: 280px;
        height: 280px;
    }
}

/* --- Responsive: Mobile --- */
@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background-color: var(--color-bg-cream);
        flex-direction: column;
        padding: 96px 32px 32px;
        gap: 4px;
        transform: translateX(100%);
        transition: transform var(--transition-base);
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 16px;
        padding: 12px 16px;
    }

    .hero {
        padding: calc(var(--nav-height) + 32px) 24px 48px;
        min-height: auto;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 32px;
    }

    .hero-tagline {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-photo-frame {
        width: 160px;
        height: 160px;
    }

    .coffee-canvas-wrapper {
        width: 240px;
        height: 240px;
    }

    .about-layout {
        flex-direction: column;
        gap: 28px;
    }

    .about-photo-wrapper {
        width: 200px;
        height: 240px;
    }

    .scroll-indicator {
        display: none;
    }

    section {
        padding: 64px 0;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .expertise-grid,
    .interests-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-card {
        padding: 32px 24px;
    }

    .quote-section {
        padding: 56px 0;
    }
}

/* --- Responsive: Small Mobile --- */
@media (max-width: 375px) {
    .container {
        padding: 0 16px;
    }

    .hero-name {
        font-size: 36px;
    }
}
