/* Citrio Coffee – Premium Specialty Coffee Website */
:root {
  --brown-900: #2c1810;
  --brown-800: #3d2317;
  --brown-700: #5c3a2a;
  --brown-600: #7a4f38;
  --terracotta: #c45c26;
  --terracotta-light: #e07a45;
  --cream: #faf6f1;
  --cream-dark: #f0e9e0;
  --charcoal: #2a2a2a;
  --charcoal-light: #4a4a4a;
  --green: #4a6b4a;
  --green-light: #6b8f6b;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(44, 24, 16, 0.08);
  --shadow-hover: 0 8px 30px rgba(44, 24, 16, 0.12);
  --radius: 12px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--brown-900);
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== TOP BAR ========== */
.top-bar {
  background: var(--brown-900);
  color: var(--cream);
  font-size: 0.85rem;
  padding: 8px 0;
  text-align: center;
}

.top-bar a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.top-bar a:hover {
  color: var(--terracotta-light);
}

/* ========== HEADER ========== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--brown-900);
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--terracotta), var(--brown-700));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal-light);
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--brown-900);
}

.nav a.active::after,
.nav a:hover::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--terracotta);
  border-radius: 1px;
}

.header-utils {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-utils button,
.header-utils a {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--charcoal);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-utils .cart-count {
  background: var(--terracotta);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--brown-900);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--brown-900) 0%, var(--brown-800) 50%, var(--brown-700) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?w=1600&q=80') center/cover no-repeat;
  opacity: 0.35;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--cream);
  max-width: 640px;
  padding: 80px 0;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--terracotta);
  color: white;
}

.btn-primary:hover {
  background: var(--terracotta-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 92, 38, 0.35);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

.btn-outline {
  background: transparent;
  color: var(--brown-900);
  border: 2px solid var(--brown-700);
}

.btn-outline:hover {
  background: var(--brown-900);
  color: white;
}

.btn-dark {
  background: var(--brown-900);
  color: white;
}

.btn-dark:hover {
  background: var(--brown-800);
  transform: translateY(-2px);
}

/* ========== SECTIONS ========== */
.section {
  padding: 80px 0;
}

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

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--charcoal-light);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

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

/* ========== BRAND INTRO ========== */
.brand-intro {
  background: var(--white);
  text-align: center;
}

.brand-intro p {
  font-size: 1.25rem;
  max-width: 720px;
  margin: 0 auto;
  color: var(--charcoal-light);
  line-height: 1.8;
}

/* ========== PRODUCT CARDS ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.product-card-img {
  aspect-ratio: 1;
  background: var(--cream-dark);
  overflow: hidden;
  position: relative;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-img img {
  transform: scale(1.05);
}

.product-card-body {
  padding: 20px;
}

.product-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.product-origin {
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 8px;
}

.product-notes {
  font-size: 0.9rem;
  color: var(--charcoal-light);
  margin-bottom: 16px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brown-900);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* ========== CATEGORY CARDS ========== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid transparent;
}

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

.category-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.category-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.category-card p {
  font-size: 0.85rem;
  color: var(--charcoal-light);
}

/* ========== WHOLESALE TEASER ========== */
.wholesale-teaser {
  background: linear-gradient(135deg, var(--brown-900), var(--brown-800));
  color: var(--cream);
  border-radius: var(--radius);
  padding: 60px 48px;
  text-align: center;
  margin: 0 24px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.wholesale-teaser h2 {
  color: white;
  margin-bottom: 16px;
}

.wholesale-teaser p {
  opacity: 0.9;
  max-width: 520px;
  margin: 0 auto 28px;
  font-size: 1.1rem;
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px;
  border-left: 4px solid var(--terracotta);
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 16px;
  color: var(--charcoal);
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brown-700);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--brown-900);
  color: var(--cream);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 18px;
  letter-spacing: 0.03em;
}

.footer p,
.footer a {
  font-size: 0.9rem;
  color: rgba(250, 246, 241, 0.75);
  line-height: 1.8;
}

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

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 50px;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.1);
  color: white;
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.5);
}

.newsletter-form button {
  padding: 12px 20px;
  background: var(--terracotta);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: var(--terracotta-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(250, 246, 241, 0.5);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
  background: linear-gradient(135deg, var(--brown-900), var(--brown-700));
  color: white;
  padding: 80px 0 60px;
  text-align: center;
}

.page-hero h1 {
  color: white;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}

.page-hero p {
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* ========== FILTERS ========== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
  justify-content: center;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--cream-dark);
  background: white;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  color: var(--charcoal-light);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--brown-900);
  color: white;
  border-color: var(--brown-900);
}

/* ========== WHOLESALE PAGE ========== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.benefit-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  text-align: center;
}

.benefit-icon {
  width: 56px;
  height: 56px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 18px;
  color: var(--terracotta);
}

.benefit-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.benefit-card p {
  font-size: 0.95rem;
  color: var(--charcoal-light);
}

/* ========== FORMS ========== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--brown-900);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--cream-dark);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: white;
  transition: var(--transition);
  color: var(--charcoal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(196, 92, 38, 0.15);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-info-card h3 {
  margin-bottom: 20px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--terracotta);
}

/* ========== ABOUT PAGE ========== */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-story img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.value-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--terracotta);
}

.value-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.value-card p {
  font-size: 0.95rem;
  color: var(--charcoal-light);
}

/* ========== JOURNAL ========== */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.journal-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.journal-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.journal-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journal-card-body {
  padding: 24px;
}

.journal-date {
  font-size: 0.8rem;
  color: var(--terracotta);
  font-weight: 500;
  margin-bottom: 8px;
}

.journal-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.journal-card p {
  font-size: 0.95rem;
  color: var(--charcoal-light);
  margin-bottom: 16px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .about-story,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .header-utils span {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .wholesale-teaser {
    padding: 40px 24px;
    margin: 0 16px;
  }
  
  .hero-content {
    padding: 60px 0;
  }
  
  .section {
    padding: 56px 0;
  }
}

/* ========== UTILITY ========== */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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