/* ============================================================
   PUERO COFFEE — Pure Black Coffee Brand
   Palette: Espresso · Caramel · Cream · Warm White
   ============================================================ */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --espresso:      #1C0A07;
  --roast:         #3B1A0E;
  --mocha:         #5C2B1A;
  --caramel:       #C07840;
  --honey:         #D99A62;
  --cream:         #FAF6F0;
  --latte:         #F0E8DB;
  --parchment:     #D9CCBA;
  --charcoal:      #1A1210;
  --warm-gray:     #7A6760;
  --white:         #FFFFFF;
  --success:       #2D7A45;
  --roast-light:   #6B3D2A;

  --font-display:  'Cormorant Garamond', serif;
  --font-heading:  'Playfair Display', serif;
  --font-body:     'Lato', sans-serif;

  --max-width: 1200px;
  --gap:       1.5rem;

  --shadow-sm: 0 2px 8px rgba(28,10,7,0.08);
  --shadow-md: 0 4px 24px rgba(28,10,7,0.12);
  --shadow-lg: 0 8px 48px rgba(28,10,7,0.18);

  --radius:    6px;
  --radius-lg: 14px;
  --radius-xl: 24px;

  --transition: all 0.25s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a { color: var(--caramel); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--mocha); }

ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; color: var(--roast); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1.25rem; font-size: 1.0625rem; line-height: 1.85; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; color: var(--roast); }

.display-text {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.01em;
}

/* ===== LAYOUT ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.container--wide { max-width: 1400px; margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: 780px; margin: 0 auto; padding: 0 1.25rem; }

.section { padding: 5rem 0; }
.section--sm { padding: 3rem 0; }
.section--lg { padding: 7rem 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--caramel);
  color: var(--white);
  border-color: var(--caramel);
}
.btn--primary:hover {
  background: var(--mocha);
  border-color: var(--mocha);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192,120,64,0.35);
}

.btn--dark {
  background: var(--espresso);
  color: var(--white);
  border-color: var(--espresso);
}
.btn--dark:hover {
  background: var(--roast);
  border-color: var(--roast);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--caramel);
  border-color: var(--caramel);
}
.btn--outline:hover {
  background: var(--caramel);
  color: var(--white);
}

.btn--ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}

.btn--sm { padding: 0.55rem 1.25rem; font-size: 0.8rem; }
.btn--lg { padding: 1rem 2.5rem; font-size: 1rem; }

/* ===== BADGE / TAG ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.85rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge--caramel { background: rgba(192,120,64,0.12); color: var(--caramel); }
.badge--dark    { background: var(--roast); color: var(--cream); }
.badge--cream   { background: var(--cream); color: var(--roast); }

/* ===== GRID ===== */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--sidebar { grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }

/* ===== SECTION LABELS ===== */
.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--caramel);
}

/* ===== DIVIDER ===== */
.divider { width: 3rem; height: 3px; background: var(--caramel); margin: 1rem 0 2rem; border-radius: 2px; }
.divider--center { margin: 1rem auto 2rem; }

/* ===== TICKER ===== */
.ticker {
  background: var(--espresso);
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  height: 36px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 101;
}

.ticker__label {
  flex-shrink: 0;
  background: var(--caramel);
  color: var(--white);
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ticker__track {
  flex: 1;
  overflow: hidden;
}

.ticker__content {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  gap: 0;
}

.ticker__content span {
  padding: 0 2.5rem;
  opacity: 0.9;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== HEADER / NAV ===== */
.header {
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250,246,240,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--parchment);
  transition: top 0.25s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.header--scrolled {
  top: 0;
  background: rgba(250,246,240,0.98);
  box-shadow: var(--shadow-sm);
}

.header.at-top-dark {
  background: transparent;
  border-bottom-color: rgba(255,255,255,0.1);
}

.nav {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 2rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.nav__logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--roast);
  line-height: 1.1;
}

.nav__logo-text span {
  display: block;
  font-size: 0.65rem;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav__links a {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav__links a:hover,
.nav__links a.active { color: var(--caramel); background: rgba(192,120,64,0.08); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  margin-left: auto;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--roast);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 104px;
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--parchment);
  padding: 1.25rem;
  z-index: 99;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: var(--shadow-md);
  transition: top 0.25s ease;
}
.nav-drawer.scrolled { top: 68px; }
.nav-drawer.open { display: flex; }
.nav-drawer a {
  display: block;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--charcoal);
  border-radius: var(--radius);
  font-size: 1rem;
}
.nav-drawer a:hover { color: var(--caramel); background: var(--latte); }
.nav-drawer .btn { margin-top: 0.75rem; justify-content: center; }

/* ===== PAGE OFFSET (for fixed header + ticker) ===== */
.page-top { padding-top: 104px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--espresso);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: saturate(0.6);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(28,10,7,0.85) 0%,
    rgba(59,26,14,0.7) 50%,
    rgba(28,10,7,0.5) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 8rem 0 6rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(192,120,64,0.2);
  border: 1px solid rgba(192,120,64,0.4);
  color: var(--honey);
  padding: 0.4rem 1rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 600;
  color: var(--white);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero__title em {
  font-style: normal;
  color: var(--honey);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.8);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero__scroll span {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse { 0%,100%{opacity:0.4} 50%{opacity:1} }

/* Hero stat bar */
.hero__stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: rgba(59,26,14,0.7);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero__stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid rgba(255,255,255,0.1);
}
.hero__stat {
  padding: 1.5rem 2rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.hero__stat:last-child { border-right: none; }
.hero__stat-number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--honey);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.hero__stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--latte);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card__image {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--latte);
}
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card__image img { transform: scale(1.05); }

.product-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.product-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__weight {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: 0.5rem;
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--roast);
  margin-bottom: 0.5rem;
}

.product-card__desc {
  color: var(--warm-gray);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1rem;
  flex: 1;
}

.product-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: var(--cream);
  border-radius: var(--radius);
}

.product-card__meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}
.product-card__meta-row .label { color: var(--warm-gray); }
.product-card__meta-row .value { color: var(--roast); font-weight: 600; }

/* ===== FEATURE CARD ===== */
.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.feature-card__icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-xl);
  background: rgba(192,120,64,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
}

.feature-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--roast);
  margin-bottom: 0.6rem;
}

.feature-card__desc {
  font-size: 0.9rem;
  color: var(--warm-gray);
  line-height: 1.65;
  margin: 0;
}

/* ===== BLOG / ARTICLE CARD ===== */
.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--latte);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.article-card__image {
  height: 200px;
  overflow: hidden;
  background: var(--latte);
}
.article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.article-card:hover .article-card__image img { transform: scale(1.04); }

.article-card__body {
  padding: 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  color: var(--warm-gray);
}

.article-card__category {
  font-weight: 700;
  color: var(--caramel);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.article-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--roast);
  line-height: 1.35;
  margin-bottom: 0.6rem;
  flex: 1;
}
.article-card__title a { color: inherit; }
.article-card__title a:hover { color: var(--caramel); }

.article-card__excerpt {
  font-size: 0.875rem;
  color: var(--warm-gray);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--latte);
  margin-top: auto;
}

.article-card__read-time { font-size: 0.78rem; color: var(--warm-gray); }

/* ===== AD UNITS ===== */
.ad-unit {
  background: var(--latte);
  border: 1px dashed var(--parchment);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--warm-gray);
  font-size: 0.75rem;
  text-align: center;
}

.ad-unit--leaderboard { height: 90px; width: 100%; }
.ad-unit--rectangle { height: 250px; width: 300px; margin: 0 auto; }
.ad-unit--large-rectangle { height: 280px; width: 336px; margin: 0 auto; }
.ad-unit--sidebar { height: 250px; width: 100%; }
.ad-unit--in-article { height: 250px; width: 100%; }
.ad-wrapper { margin: 2rem 0; text-align: center; }
.ad-wrapper--sidebar { margin: 0 0 2rem; }
.ad-label {
  font-size: 0.65rem;
  color: var(--warm-gray);
  text-align: center;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== SIDEBAR ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--latte);
}

.sidebar-widget__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--roast);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--caramel);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Recent Posts in Sidebar */
.sidebar-post {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--latte);
}
.sidebar-post:last-child { border-bottom: none; }
.sidebar-post__img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}
.sidebar-post__info { flex: 1; }
.sidebar-post__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--roast);
  line-height: 1.35;
  margin-bottom: 0.25rem;
  display: block;
}
.sidebar-post__title:hover { color: var(--caramel); }
.sidebar-post__date { font-size: 0.75rem; color: var(--warm-gray); }

/* Tags cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-cloud a {
  padding: 0.3rem 0.85rem;
  background: var(--latte);
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--roast);
  transition: var(--transition);
}
.tag-cloud a:hover { background: var(--caramel); color: var(--white); }

/* ===== ORIGIN BANNER ===== */
.origin-section {
  background: var(--roast);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.origin-section::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(192,120,64,0.1);
}

.origin-map {
  font-size: 4rem;
  margin-bottom: 1rem;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--latte);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--caramel);
  opacity: 0.2;
  position: absolute;
  top: -0.5rem;
  left: 1.25rem;
  line-height: 1;
}

.testimonial-card__text {
  font-size: 0.95rem;
  color: var(--warm-gray);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--latte);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.testimonial-card__name { font-weight: 700; font-size: 0.9rem; color: var(--roast); }
.testimonial-card__role { font-size: 0.78rem; color: var(--warm-gray); }

.stars { color: var(--caramel); font-size: 0.875rem; margin-bottom: 0.75rem; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--espresso) 0%, var(--roast) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section h2 { color: var(--white); }
.cta-section p { color: rgba(255,255,255,0.75); }
.cta-section::before {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(192,120,64,0.08);
}

/* ===== CONTACT FORM ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--roast);
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--parchment);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--white);
  transition: var(--transition);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--caramel);
  box-shadow: 0 0 0 3px rgba(192,120,64,0.12);
}

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

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

.form-success {
  display: none;
  background: rgba(45,122,69,0.08);
  border: 1px solid rgba(45,122,69,0.25);
  color: var(--success);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ===== CONTACT INFO ===== */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--latte);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(192,120,64,0.12);
  color: var(--caramel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-item__label { font-size: 0.78rem; color: var(--warm-gray); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.2rem; }
.contact-info-item__value { font-weight: 600; color: var(--roast); font-size: 0.95rem; }

/* ===== NOTICE BANNER (Sri Lanka only) ===== */
.notice-banner {
  background: rgba(192,120,64,0.08);
  border: 1px solid rgba(192,120,64,0.25);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--roast);
}
.notice-banner i { color: var(--caramel); margin-top: 0.1rem; flex-shrink: 0; }

/* ===== ARTICLE CONTENT ===== */
.article-content {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--charcoal);
}

.article-content h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
  color: var(--roast);
}
.article-content h3 {
  font-size: 1.3rem;
  margin: 2rem 0 0.75rem;
  color: var(--roast);
}
.article-content p { margin-bottom: 1.4rem; }
.article-content ul, .article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}
.article-content li { margin-bottom: 0.5rem; }
.article-content ul li { list-style: disc; }
.article-content ol li { list-style: decimal; }

.article-content blockquote {
  border-left: 4px solid var(--caramel);
  background: var(--latte);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--roast);
}

.article-content img {
  border-radius: var(--radius-lg);
  margin: 2rem 0;
  width: 100%;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9rem;
}
.article-content th {
  background: var(--roast);
  color: var(--white);
  padding: 0.75rem 1rem;
  text-align: left;
}
.article-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--latte);
}
.article-content tr:nth-child(even) td { background: var(--cream); }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--latte);
}
.faq-item summary {
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 700;
  color: var(--roast);
  font-size: 1.0rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--caramel);
  flex-shrink: 0;
  transition: var(--transition);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item__answer {
  padding-bottom: 1.25rem;
  color: var(--warm-gray);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 104px;
  left: 0;
  height: 3px;
  background: var(--caramel);
  z-index: 200;
  transition: width 0.1s linear;
  width: 0%;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--espresso);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.footer__tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  margin-bottom: 0;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: 1rem;
}

.footer__links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer__links a:hover { color: var(--honey); }

.footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer__social a:hover { background: var(--caramel); color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.footer__bottom-links { display: flex; gap: 1.5rem; }
.footer__bottom-links a { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer__bottom-links a:hover { color: var(--honey); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--espresso) 0%, var(--roast) 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.75rem, 4vw, 3rem); }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 1rem auto 0; }
.page-hero .badge { margin: 0 auto 1rem; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--warm-gray);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--warm-gray); }
.breadcrumb a:hover { color: var(--caramel); }
.breadcrumb__sep { opacity: 0.4; }
.breadcrumb .current { color: var(--roast); font-weight: 600; }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: 0.5rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }
.mb-4  { margin-bottom: 2rem; }
.mb-6  { margin-bottom: 3rem; }
.mt-2  { margin-top: 1rem; }
.mt-4  { margin-top: 2rem; }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

.highlighted {
  background: linear-gradient(135deg, var(--latte) 0%, var(--cream) 100%);
}

.dark-section {
  background: var(--roast);
  color: var(--white);
}
.dark-section h2, .dark-section h3 { color: var(--white); }
.dark-section p { color: rgba(255,255,255,0.75); }

/* ===== BACK TO TOP ===== */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--caramel);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 90;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: var(--mocha); }

/* ===== COOKIE CONSENT ===== */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: var(--espresso);
  color: rgba(255,255,255,0.85);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.08);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-bar.visible { transform: translateY(0); }
.cookie-bar p { font-size: 0.85rem; margin: 0; }
.cookie-bar a { color: var(--honey); }
.cookie-bar__btns { display: flex; gap: 0.75rem; flex-shrink: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--sidebar { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media (max-width: 768px) {
  .nav__links, .nav__actions { display: none; }
  .hamburger { display: flex; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .hero__title { font-size: clamp(2.5rem, 12vw, 4rem); }
  .hero__stats-inner { grid-template-columns: repeat(2, 1fr); }
  .hero__stat { padding: 1rem; }

  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__bottom-links { justify-content: center; }

  .sidebar { grid-template-columns: 1fr; }

  .section, .section--lg { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .btn--lg { padding: 0.85rem 1.75rem; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .ad-unit--leaderboard { height: 60px; }
}
