/**
 * Hulegeb About Us Page - Static Styles
 * 
 * This CSS file mirrors the React version's design system exactly.
 * All colors use CSS custom properties (variables) for easy theming.
 * 
 * HOW TO EDIT:
 * - Colors: Modify the :root section to change the color palette
 * - Typography: Font families are imported from Google Fonts
 * - Spacing: Uses a consistent spacing scale (rem units)
 * - Animations: Defined in the @keyframes section
 */

/* ========================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ======================================== */
:root {
    /* Core palette - warm cream and terracotta inspired */
    --background: hsl(40, 33%, 96%);
    --foreground: hsl(25, 25%, 15%);

    --card: hsl(40, 40%, 98%);
    --card-foreground: hsl(25, 25%, 15%);

    /* Primary - Rich terracotta/rust */
   --primary: hsl(33, 100%, 50%);
  --primary-foreground: hsl(210, 100%, 98%);

    /* Secondary - Warm sand */
    --secondary: hsl(35, 30%, 88%);
    --secondary-foreground: hsl(25, 25%, 20%);

    /* Muted - Soft beige */
    --muted: hsl(35, 20%, 90%);
    --muted-foreground: hsl(25, 15%, 45%);

    /* Accent - Ethiopian gold */
    --accent: hsl(33, 100%, 50%)  hsl(210, 72%, 49%);
    --accent-foreground: hsl(33, 25%, 10%);

    /* Custom Hulegeb tokens - Re-aligned to new Base Colors */
    --hulegeb-terracotta:  hsl(33, 72%, 49%);        /* The core Blue */
--hulegeb-terracotta-light:  hsl(33, 60%, 65%);
    --hulegeb-cream: hsl(40, 33%, 96%);             /* Warm background */
    --hulegeb-sand: hsl(35, 30%, 88%);              /* Section background */
    
    /* Gold is now tied directly to your Orange (#f37a20) */
    --hulegeb-gold: hsl(210, 100%, 50%);
    --hulegeb-gold-muted:  hsl(210, 45%, 65%);
    
    --hulegeb-earth: hsl(25, 35%, 30%);             /* Deep brown for text/footer */
    --hulegeb-olive: hsl(85, 25%, 40%);             /* Nature accent */

    /* Timeline - Synchronized with Terracotta and Gold */
    --timeline-line: hsl(35, 25%, 80%);
    --timeline-dot: var(--hulegeb-terracotta);
    --timeline-dot-active: var(--hulegeb-gold);
    /* Borders */
    --border: hsl(35, 25%, 85%);

    /* Shadows */
    --shadow-soft: 0 4px 20px -4px hsla(25, 25%, 15%, 0.1);
    --shadow-card: 0 8px 30px -8px hsla(25, 25%, 15%, 0.12);
    --shadow-elevated: 0 20px 50px -15px hsla(25, 25%, 15%, 0.15);

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border radius */
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
}

/* ========================================
   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-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--foreground);
    background-color: var(--background);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
    color: var(--foreground);
}

p {
    margin-bottom: var(--spacing-md);
}

p:last-child {
    margin-bottom: 0;
}

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

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (min-width: 640px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--spacing-xl);
    }
}

.section {
    padding: var(--spacing-3xl) 0;
}

@media (min-width: 768px) {
    .section {
        padding: 6rem 0;
    }
}

.section--alt {
    background-color: hsla(35, 30%, 88%, 0.3);
}

.section--card {
    background-color: var(--card);
}

.grid-2 {
    display: grid;
    gap: var(--spacing-2xl);
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-3xl);
    }
}

/* ========================================
   TYPOGRAPHY UTILITIES
   ======================================== */
.text-muted {
    color: var(--muted-foreground);
}

.text-sm {
    font-size: 0.875rem;
}

.gold-underline {
    position: relative;
    display: inline-block;
}

.gold-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--hulegeb-gold);
    border-radius: 2px;
}

/* ========================================
   HERO SECTION
   ======================================== */
   
.hero2 {
    position: relative;
    
   background: url("../assets/hero-weaving.jpg") center/cover no-repeat, 
            linear-gradient(135deg, hsl(210, 72%, 49%) 0%, hsl(25, 55%, 35%) 100%);     
    color: var(--primary-foreground);
    padding: 6rem 0;
}

@media (min-width: 768px) {
    .hero2 {
        padding: 8rem 0;
    }
}

.hero2-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, hsla(25, 25%, 15%, 0.3) 0%, hsla(25, 25%, 15%, 0.5) 100%);
}

.hero2-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero2-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-foreground);
}

@media (min-width: 768px) {
    .hero2-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero2-title {
        font-size: 3.75rem;
    }
}

.hero2-title-accent {
    display: block;
    margin-top: var(--spacing-sm);
    color: var(--hulegeb-gold);
}

.hero2-subtitle {
    font-size: 1.25rem;
    max-width: 48rem;
    margin: 0 auto;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .hero2-subtitle {
        font-size: 1.5rem;
    }
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
    margin-bottom: var(--spacing-2xl);
}

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

.section-header--center .icon-container {
    margin: 0 auto var(--spacing-md);
}

.section-title {
    font-size: 1.875rem;
    margin-bottom: var(--spacing-lg);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-top: var(--spacing-md);
}

@media (min-width: 768px) {
    .section-subtitle {
        font-size: 1.25rem;
    }
}

/* ========================================
   ICON CONTAINER
   ======================================== */
.icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-xl);
    background: var(--secondary);
    color: var(--primary);
    transition: background 0.2s ease, transform 0.2s ease;
    margin-bottom: var(--spacing-md);
}

.icon-container:hover {
    background: var(--primary);
    color: var(--primary-foreground);
    transform: scale(1.05);
}

.icon-container--terracotta {
    background: hsla(18, 65%, 45%, 0.1);
    color: var(--hulegeb-terracotta);
}

.icon-container--gold {
    background: hsla(42, 75%, 50%, 0.1);
    color: var(--hulegeb-gold);
}

.icon-container--olive {
    background: hsla(85, 25%, 40%, 0.1);
    color: var(--hulegeb-olive);
}

/* ========================================
   CONTENT CARDS
   ======================================== */
.content-card {
    background: var(--card);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 768px) {
    .content-card {
        padding: var(--spacing-xl);
    }
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
}

.card-title {
    font-size: 1.25rem;
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.card-title--sm {
    font-size: 1rem;
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

/* ========================================
   METRICS / COUNTERS
   ======================================== */
.metrics-grid {
    display: grid;
    gap: var(--spacing-xl);
}

@media (min-width: 768px) {
    .metrics-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-2xl);
    }
}

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

.counter-value {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: hsl(210, 72%, 49%);
    line-height: 1;
}

@media (min-width: 768px) {
    .counter-value {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .counter-value {
        font-size: 4.5rem;
    }
}

.counter-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    margin-top: var(--spacing-sm);
    font-weight: 500;
}

.metrics-highlight {
    text-align: center;
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: var(--spacing-xl) auto 0;
}

/* ========================================
   TIMELINE
   ======================================== */
.timeline {
    position: relative;
    padding-left: var(--spacing-xl);
}

@media (min-width: 768px) {
    .timeline {
        padding-left: 0;
    }
}

.timeline-line {
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--timeline-line);
}

@media (min-width: 768px) {
    .timeline-line {
        left: 50%;
        transform: translateX(-50%);
    }
}

.timeline-item {
    position: relative;
    padding-bottom: var(--spacing-2xl);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

@media (min-width: 768px) {
    .timeline-item {
        display: flex;
        gap: var(--spacing-xl);
    }

    .timeline-item:nth-child(odd) {
        justify-content: flex-start;
    }

    .timeline-item:nth-child(odd) .timeline-content {
        width: calc(50% - 2rem);
        text-align: right;
    }

    .timeline-item:nth-child(even) {
        justify-content: flex-end;
    }

    .timeline-item:nth-child(even) .timeline-content {
        width: calc(50% - 2rem);
    }
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--timeline-dot);
    border: 4px solid var(--background);
    transform: translateX(-50%);
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

@media (min-width: 768px) {
    .timeline-dot {
        left: 50%;
    }
}

.timeline-item.visible .timeline-dot {
    background: var(--timeline-dot-active);
    transform: translateX(-50%) scale(1.2);
}

.timeline-content {
    margin-left: var(--spacing-lg);
}

@media (min-width: 768px) {
    .timeline-content {
        margin-left: 0;
    }
}

.timeline-period {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    background: hsla(18, 65%, 45%, 0.1);
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.timeline-title {
    font-size: 1.25rem;
    font-family: var(--font-display);
    margin-bottom: var(--spacing-sm);
}

.timeline-description {
    color: var(--muted-foreground);
    margin-bottom: 0;
}

/* ========================================
   PILLS
   ======================================== */
.pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    background: var(--secondary);
    color: var(--secondary-foreground);
}

/* ========================================
   DATE HIGHLIGHT
   ======================================== */
.date-highlight {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius);
    background: hsla(42, 75%, 50%, 0.15);
    color: var(--hulegeb-earth);
    font-weight: 600;
}

/* ========================================
   RESPONSIBILITY CARDS
   ======================================== */
.responsibility-card {
    margin-bottom: var(--spacing-xl);
}

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

.responsibility-header {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.responsibility-header .icon-container {
    flex-shrink: 0;
    margin-bottom: 0;
}

.practice-list {
    display: grid;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.practice-item {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    background: hsla(35, 30%, 88%, 0.5);
    transition: background 0.2s ease;
}

.practice-item:hover {
    background: var(--secondary);
}

.practice-dot {
    flex-shrink: 0;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    margin-top: 0.5rem;
}

.practice-dot--terracotta {
    background: var(--hulegeb-terracotta);
}

.practice-dot--gold {
    background: var(--hulegeb-gold);
}

.practice-dot--olive {
    background: var(--hulegeb-olive);
}

.practice-title {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.practice-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0;
}

.economic-content p {
    margin-bottom: var(--spacing-md);
}

.economic-content p:last-child {
    margin-bottom: 0;
}

/* ========================================
   PRODUCTION GRID & ACCORDION
   ======================================== */
.production-grid {
    display: none;
}

@media (min-width: 768px) {
    .production-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

@media (min-width: 1024px) {
    .production-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.production-accordion {
    display: block;
}

@media (min-width: 768px) {
    .production-accordion {
        display: none;
    }
}

/* ========================================
   ACCORDION
   ======================================== */
.accordion {
    border-top: 1px solid var(--border);
}

.accordion-item {
    border-bottom: 1px solid var(--border);
}

.accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--spacing-md) 0;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    color: var(--foreground);
    transition: color 0.2s ease;
}

.accordion-trigger:hover {
    color: var(--primary);
}

.accordion-trigger span {
    flex: 1;
    padding-right: var(--spacing-md);
}

.accordion-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

.accordion-content.expanded {
    max-height: 500px;
    opacity: 1;
}

.accordion-content p {
    padding-bottom: var(--spacing-lg);
    color: var(--muted-foreground);
}

/* ========================================
   RECOGNITION GRID
   ======================================== */
.recognition-grid {
    display: grid;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .recognition-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.recognition-card .icon-container {
    margin: 0 auto var(--spacing-md);
}

.recognition-list {
    text-align: left;
    margin-top: var(--spacing-sm);
}

.recognition-list li {
    padding: var(--spacing-xs) 0;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    padding: var(--spacing-3xl) 0;
}

@media (min-width: 768px) {
    .cta-section {
        padding: 6rem 0;
    }
}

.cta-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.cta-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-foreground);
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 2.25rem;
    }
}

.cta-subtitle {
    font-size: 1.25rem;
    max-width: 42rem;
    margin: 0 auto var(--spacing-xl);
    opacity: 0.9;
    color: var(--primary-foreground);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-lg);
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn--gold {
    background: var(--hulegeb-gold);
    color: var(--hulegeb-earth);
}

.btn--gold:hover {
    background: var(--hulegeb-gold-muted);
    transform: translateY(-2px);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll animation states */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Timeline specific animations */
.timeline-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.timeline-item:nth-child(even) {
    transform: translateX(20px);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .hero2-overlay,
    .btn {
        display: none;
    }

    .hero2 {
        background: var(--secondary);
        color: var(--foreground);
    }

    .hero2-title,
    .hero2-subtitle {
        color: var(--foreground);
    }

    .content-card {
        box-shadow: none;
        border: 1px solid var(--border);
    }

    .scroll-animate {
        opacity: 1;
        transform: none;
    }
}
