/* ========================================
   CSS CUSTOM PROPERTIES & DESIGN TOKENS
   ======================================== */

:root {
    /* Color Palette - Inspired by craft beer & traditional brewing */
    --color-amber-50: #fef9f3;
    --color-amber-100: #fef3e2;
    --color-amber-200: #fde4c0;
    --color-amber-300: #fccf8f;
    --color-amber-400: #fab05c;
    --color-amber-500: #f89635;
    --color-amber-600: #e97a1f;
    --color-amber-700: #c25e16;
    --color-amber-800: #9a4918;
    --color-amber-900: #7c3d17;

    --color-copper-50: #fdf8f6;
    --color-copper-100: #f8ede7;
    --color-copper-200: #eed8cd;
    --color-copper-300: #e2bca9;
    --color-copper-400: #d39b7e;
    --color-copper-500: #c77d59;
    --color-copper-600: #b86547;
    --color-copper-700: #99503c;
    --color-copper-800: #7b4437;
    --color-copper-900: #643a30;

    --color-malt-50: #faf8f5;
    --color-malt-100: #f0ece3;
    --color-malt-200: #e0d6c4;
    --color-malt-300: #cbb89f;
    --color-malt-400: #b5977a;
    --color-malt-500: #a37f5f;
    --color-malt-600: #8f6d4f;
    --color-malt-700: #755843;
    --color-malt-800: #5f483a;
    --color-malt-900: #4d3c31;

    --color-forest-50: #f5f7f5;
    --color-forest-100: #e6ebe6;
    --color-forest-200: #cdd8cd;
    --color-forest-300: #a8bba8;
    --color-forest-400: #7d997d;
    --color-forest-500: #5d7c5d;
    --color-forest-600: #496349;
    --color-forest-700: #3a4f3a;
    --color-forest-800: #2f402f;
    --color-forest-900: #283528;

    /* Neutrals */
    --color-neutral-50: #fafaf9;
    --color-neutral-100: #f5f5f4;
    --color-neutral-200: #e7e5e4;
    --color-neutral-300: #d6d3d1;
    --color-neutral-400: #a8a29e;
    --color-neutral-500: #78716c;
    --color-neutral-600: #57534e;
    --color-neutral-700: #44403c;
    --color-neutral-800: #292524;
    --color-neutral-900: #1c1917;

    /* Semantic Colors - Black, Dark Green, White */
    --color-primary: #1E7A3A;
    --color-primary-hover: #166129;
    --color-secondary: #2d5f3f;
    --color-accent: #2E8B57;
    --color-text-primary: #000000;
    --color-text-secondary: #1a4d2e;
    --color-text-tertiary: #3D7A4F;
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f8faf9;
    --color-bg-tertiary: #e8f5ed;
    --color-border: #d1e3d8;

    /* Typography Scale */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Cormorant Garamond', Georgia, serif;

    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */
    --text-6xl: 3.75rem;     /* 60px */
    --text-7xl: 4.5rem;      /* 72px */

    /* Spacing Scale (8px base) */
    --space-1: 0.25rem;      /* 4px */
    --space-2: 0.5rem;       /* 8px */
    --space-3: 0.75rem;      /* 12px */
    --space-4: 1rem;         /* 16px */
    --space-5: 1.25rem;      /* 20px */
    --space-6: 1.5rem;       /* 24px */
    --space-8: 2rem;         /* 32px */
    --space-10: 2.5rem;      /* 40px */
    --space-12: 3rem;        /* 48px */
    --space-16: 4rem;        /* 64px */
    --space-20: 5rem;        /* 80px */
    --space-24: 6rem;        /* 96px */
    --space-32: 8rem;        /* 128px */

    /* Border Radius */
    --radius-sm: 0.375rem;   /* 6px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-2xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --container-max: 1280px;
    --container-padding: var(--space-6);
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus {
    outline: none;
}

a:active {
    outline: none;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.98);
    border-bottom-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-brand {
    flex: 0 0 auto;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 700;
    font-size: var(--text-3xl);
    color: white;
    transition: color var(--transition-fast);
}

.nav-brand a:hover {
    color: var(--color-accent);
}

.brand-icon {
    font-size: var(--text-2xl);
}

.brand-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-text {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--color-accent);
    letter-spacing: 0.05em;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    position: relative;
    font-size: var(--text-sm);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: color var(--transition-fast);
    text-decoration: none;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-20) var(--container-padding);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
        radial-gradient(circle at 20% 30%, rgba(248, 150, 53, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(199, 125, 89, 0.08) 0%, transparent 50%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.02) 2px, rgba(0, 0, 0, 0.02) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 0, 0, 0.02) 2px, rgba(0, 0, 0, 0.02) 4px);
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: var(--container-max);
    margin: 0 auto;
    margin-top: var(--space-20);
    text-align: center;
}

.hero-label {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
    animation: fadeInUp 0.6s ease-out;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(var(--text-4xl), 8vw, var(--text-7xl));
    font-weight: 700;
    line-height: 1.15;
    color: white;
    margin-bottom: var(--space-10);
    animation: fadeInUp 0.6s ease-out 0.1s both;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
}

.highlight {
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: -0.1em;
    right: -0.1em;
    height: 0.3em;
    background: var(--color-accent);
    z-index: -1;
    transform: skewY(-1deg);
    opacity: 0.6;
}

.hero-description {
    font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto var(--space-16);
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-title a,
.hero-description a {
    color: inherit;
    text-decoration: none;
}

.hero-title a:hover,
.hero-description a:hover {
    text-decoration: underline;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-16);
    animation: fadeInUp 0.6s ease-out 0.3s both;
    flex-wrap: wrap;
}

.hero-cta .btn-primary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.hero-cta .btn-primary:hover {
    background: white;
    color: #1c1917;
    border-color: white;
}

.hero-cta .btn-secondary {
    background: white;
    color: #1c1917;
    border: 2px solid white;
}

.hero-cta .btn-secondary:hover {
    background: transparent;
    color: white;
    border-color: white;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    margin-top: var(--space-16);
    animation: fadeInUp 0.6s ease-out 0.4s both;
    flex-wrap: wrap;
}

.stat-card {
    padding: var(--space-6) var(--space-8);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-family: var(--font-serif);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    font-weight: 500;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: white;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: fadeIn 0.6s ease-out 0.5s both;
}

.scroll-arrow {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, white);
    animation: scrollBounce 2s infinite;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
    white-space: nowrap;
    border: none;
    outline: none;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 122, 58, 0.3);
}

.btn:active {
    outline: none;
}

.btn-primary {
    background: #1c1917;
    color: white;
    box-shadow: var(--shadow-md);
    border: none;
}

.btn-primary:hover {
    background: #0a0a0a;
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(28, 25, 23, 0.3);
}

.btn-green {
    background: var(--color-primary) !important;
    color: white;
}

.btn-green:hover {
    background: var(--color-primary-hover) !important;
}

.btn-green:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 122, 58, 0.3) !important;
}

.btn-secondary {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--color-text-primary);
    border: 2px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ========================================
   SECTION COMMON STYLES
   ======================================== */

section {
    padding: var(--space-20) 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-16);
}

.section-label {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-3);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

.section-description {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.section-cta {
    text-align: center;
    margin-top: var(--space-12);
}

/* ========================================
   POSTS SECTION
   ======================================== */

.posts-section {
    background: var(--color-bg-secondary);
    padding: var(--space-10) 0 var(--space-6) 0;
}

.posts-section-archive {
    padding-top: calc(var(--space-20) + 80px);
}

.posts-section .section-header {
    margin-bottom: var(--space-8);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-8);
}

#articles-list {
    scroll-margin-top: 100px;
}

.post-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.post-card.featured {
    grid-column: 1 / -1;
    flex-direction: row;
}

.post-image {
    position: relative;
    overflow: hidden;
    background: var(--color-neutral-200);
    aspect-ratio: 4 / 3;
}

.post-card.featured .post-image {
    flex: 1;
    aspect-ratio: unset;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-badge {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    padding: var(--space-2) var(--space-4);
    background: #1c1917;
    color: white;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-md);
}

.post-content {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    flex: 1;
}

.post-card.featured .post-content {
    flex: 1;
    padding: var(--space-10);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.post-category {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-date {
    font-size: var(--text-xs);
    color: var(--color-text-tertiary);
}

.post-title {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.3;
    transition: color var(--transition-fast);
}

.post-card.featured .post-title {
    font-size: var(--text-4xl);
}

.post-card:hover .post-title {
    color: var(--color-primary);
}

.post-title a {
    color: inherit;
    text-decoration: none;
}

.post-title a:hover {
    color: var(--color-primary);
}

.post-excerpt {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.post-excerpt a {
    color: inherit;
    text-decoration: none;
}

.post-excerpt a:hover {
    color: var(--color-text-primary);
}

.post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
}

.post-comments {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.post-comments svg {
    color: var(--color-text-tertiary);
}

.post-link {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    transition: gap var(--transition-fast);
}

.post-link:hover {
    color: var(--color-primary-hover);
}

/* ========================================
   PROJECTS SECTION
   ======================================== */

.projects-section {
    background: linear-gradient(to bottom, white, var(--color-bg-tertiary));
    padding: var(--space-6) 0 var(--space-6) 0;
}

.project-showcase {
    margin: 0 auto;
}

.project-featured {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: var(--space-4);
    align-items: stretch;
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    overflow: hidden;
    background: var(--color-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    cursor: pointer;
}

.project-image:first-of-type {
    padding-left: 10px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-image:hover img {
    transform: scale(1.05);
}

.project-image:hover::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: 0.8;
    pointer-events: none;
}

.project-info {
    padding: var(--space-6);
}

.project-label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-2);
}

.project-title {
    font-family: var(--font-serif);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
    line-height: 1.2;
}

.project-description {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-5);
}

.project-features {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
}

.feature-tag {
    padding: var(--space-1) var(--space-3);
    background: var(--color-bg-tertiary);
    color: var(--color-primary);
    font-size: var(--text-xs);
    font-weight: 500;
    border-radius: var(--radius-md);
}

/* ========================================
   GALLERY SECTION
   ======================================== */

.gallery-section {
    background: var(--color-bg-secondary);
    padding: var(--space-6) 0 var(--space-20) 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-6);
    grid-auto-flow: dense;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item.tall {
    grid-row: span 2;
    aspect-ratio: 1 / 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-6);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: 600;
    color: white;
    margin-bottom: var(--space-2);
}

.gallery-overlay p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
}

.gallery-section-page {
    padding: var(--space-20) 0;
    background: white;
    min-height: 60vh;
}

.article-hero.gallery-hero,
.article-hero.page-hero {
    min-height: 52.5vh !important;
}

.gallery-intro {
    margin: 0 0 var(--space-12);
    text-align: left;
    color: var(--color-text-secondary);
    font-size: var(--text-lg);
}

.gallery-pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-16);
}

.gallery-pagination .btn {
    min-width: 120px;
}

.gallery-pagination .btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-secondary {
    background: var(--color-bg-tertiary);
    color: var(--color-text-secondary);
    border: none;
}

.btn-secondary:hover {
    background: var(--color-border);
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-section {
    background: white;
    padding: calc(var(--space-6) + 10px) 0 var(--space-20) 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-16);
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.image-frame img {
    width: 100%;
    height: auto;
}

.image-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid var(--color-primary);
    border-radius: var(--radius-2xl);
    z-index: -1;
}

.about-text {
    padding-top: 0;
}

.about-body {
    margin-top: var(--space-6);
    margin-bottom: var(--space-10);
}

.about-body p {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-5);
}

.about-specialties {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.specialty {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-primary);
}

.specialty-icon {
    color: var(--color-primary);
    flex-shrink: 0;
}

.specialty h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-1);
}

.specialty p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-section {
    background: linear-gradient(to bottom, var(--color-bg-secondary), white);
}

.contact-section.contact-page {
    padding-top: var(--space-10);
    min-height: 80vh;
}

.contact-info p {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-16);
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info {
    padding-top: var(--space-8);
}

.contact-description {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-top: var(--space-6);
    margin-bottom: var(--space-10);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.contact-method {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.contact-method:hover {
    background: var(--color-bg-tertiary);
    transform: translateX(4px);
}

.contact-method svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.contact-method h4 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-1);
}

.contact-method p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.contact-form {
    background: white;
    padding: var(--space-10);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

.form-group {
    margin-bottom: var(--space-6);
}

.form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-4);
    font-family: inherit;
    font-size: var(--text-base);
    color: var(--color-text-primary);
    background: var(--color-bg-secondary);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(248, 150, 53, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--color-neutral-900);
    color: var(--color-neutral-300);
    padding: var(--space-12) 0;
}

.footer-simple {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--color-neutral-400);
}

.footer-simple p {
    margin: var(--space-2) 0;
}

.footer-simple a {
    color: var(--color-neutral-300);
    transition: color var(--transition-fast);
}

.footer-simple a:hover {
    color: var(--color-primary);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .project-featured,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .post-card.featured {
        flex-direction: column;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media (max-width: 768px) {
    :root {
        --container-padding: var(--space-4);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-left: 0;
        padding: var(--space-6) var(--container-padding);
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all var(--transition-base);
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-link {
        padding: var(--space-4);
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .hero {
        min-height: 63vh;
        padding: var(--space-16) var(--container-padding);
    }

    .hero-cta {
        flex-direction: column;
        gap: var(--space-3);
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-4);
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .post-card.featured {
        grid-column: 1;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item.wide,
    .gallery-item.tall {
        grid-column: auto;
        grid-row: auto;
        aspect-ratio: 1;
    }


    section {
        padding: var(--space-16) 0;
    }

    .section-header {
        margin-bottom: var(--space-10);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--text-3xl);
    }

    .hero-description {
        font-size: var(--text-base);
    }

    .stat-number {
        font-size: var(--text-3xl);
    }
}

/* ========================================
   PAGINATION STYLES
   ======================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-item {
    display: inline-block;
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-primary);
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.page-link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-bg-secondary);
}

.page-item.active .page-link {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* ========================================
   ARTICLE-SPECIFIC STYLES
   ======================================== */

.article-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-20) var(--container-padding);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.article-hero-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

.article-hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    margin-top: var(--space-20);
    text-align: center;
}

.article-meta {
    display: flex;
    gap: var(--space-4);
    align-items: center;
    justify-content: center;
    margin-top: var(--space-4);
    margin-bottom: var(--space-8);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.article-title {
    font-family: var(--font-serif);
    font-size: clamp(var(--text-4xl), 8vw, var(--text-7xl));
    font-weight: 700;
    line-height: 1.2;
    color: white;
    margin-bottom: var(--space-6);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
}

.article-excerpt {
    font-size: var(--text-xl);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.article-content {
    max-width: 960px;
    margin: 0 auto;
    padding: var(--space-16) var(--container-padding) var(--space-3) var(--container-padding);
}

.article-body {
    font-size: var(--text-lg);
    line-height: 1.6;
    color: var(--color-text-primary);
}

.article-body h2 {
    font-family: var(--font-serif);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-top: var(--space-16);
    margin-bottom: var(--space-6);
}

.article-body h3 {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-top: var(--space-12);
    margin-bottom: var(--space-4);
}

.article-body p {
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

.article-body blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: var(--space-6);
    margin: var(--space-10) 0;
    font-style: italic;
    color: var(--color-text-secondary);
    font-size: var(--text-xl);
}

.article-body ul,
.article-body ol {
    margin: var(--space-6) 0;
    padding-left: var(--space-8);
    list-style-position: outside;
}

.article-body ul {
    list-style-type: disc;
}

.article-body ol {
    list-style-type: decimal;
}

.article-body li {
    margin-bottom: 2px;
    display: list-item;
}

.article-body .gallery-grid {
    margin: var(--space-3) 0;
}

.article-comments {
    max-width: 960px;
    margin: 0 auto;
}

.article-image {
    width: 100%;
    margin: var(--space-10) 0;
    border-radius: var(--radius-lg);
}

.article-image-wrapper {
    margin: var(--space-8) 0;
}

.article-image-wrapper + br,
.article-image + br,
.article-body br:has(+ em) {
    display: none;
}

.article-body img + br + em,
.article-image-wrapper + br + em {
    display: block;
    margin-top: 0.5rem;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

div.right-side-image {
    float: right;
    margin-left: 15px;
}

div.left-side-image {
    float: left;
    margin-right: 15px;
}

.article-body .gallery-block-wrapper {
    margin: var(--space-3) calc(-1 * var(--container-padding));
    overflow: hidden;
    width: calc(100% + 2 * var(--container-padding));
}

.article-body .gallery-block {
    max-width: none;
    width: 100%;
}

.article-body .gallery-block .carousel-inner {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.article-body .gallery-block .carousel-item img {
    border-radius: 0;
    width: 100%;
    height: auto;
    display: block;
}

.carousel-indicators li {
    text-indent: -9999px;
    overflow: hidden;
}

.carousel-indicators {
    font-size: 0;
}

.beer-rating {
    background: var(--color-bg-tertiary);
    border-left: 4px solid var(--color-primary);
    padding: var(--space-6);
    margin: var(--space-10) 0;
    border-radius: var(--radius-lg);
}

.beer-rating h4 {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}

.beer-rating .rating {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    font-weight: 600;
    margin-top: var(--space-3);
}

.article-back {
    text-align: center;
    padding: var(--space-10) 0;
}

@media (max-width: 768px) {
    .article-title {
        font-size: var(--text-2xl);
    }

    .article-excerpt {
        font-size: var(--text-lg);
    }

    .article-body {
        font-size: var(--text-base);
    }
}