/* ============================================================
   COFFEE NXT — Single-page website stylesheet
   ------------------------------------------------------------
   Brand colours are declared once as CSS variables at the top.
   Change them here and the whole site updates.
   Sections in this file are clearly labelled — search for
   the section headers (e.g. "1. BRAND VARIABLES") to jump.
   ============================================================ */


/* === 1. BRAND VARIABLES ==================================== */
:root {
  --brand-yellow:       #FDD35B;   /* primary brand yellow */
  --brand-yellow-deep:  #F2BE34;   /* deeper yellow for accents */
  --brand-charcoal:     #333333;   /* primary dark */
  --brand-dark:         #262626;   /* darker sections */
  --brand-cream:        #FEF6DC;   /* soft yellow tint */
  --brand-panel:        #F4F1EA;   /* warm neutral panels */
  --text-body:          #1F1F1F;
  --text-muted:         #6E6A62;
  --line:               #E4DFD4;
  --white:              #FFFFFF;

  --font-head: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Calibri', 'Segoe UI', Arial, sans-serif;

  --header-height: 88px;           /* height of floating top bar */
  --container:     1200px;         /* max content width */
}

/* === 2. RESET & BASE ======================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-yellow-deep);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* === 3. FLOATING HEADER ==================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  z-index: 100;
  transition: background 0.3s ease;
}
.site-header.scrolled {
  background: rgba(38, 38, 38, 0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.site-header.scrolled .nav-link { color: var(--white); }
.site-header.scrolled .nav-link:hover { color: var(--brand-yellow); }
.site-header.scrolled .brand-name { color: var(--white); }
.site-header.scrolled .brand-tag { color: var(--brand-yellow); }

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-logo {
  height: 54px;
  width: auto;
  display: block;
  transition: opacity 0.3s;
}
.brand-logo.logo-dark  { display: block; }
.brand-logo.logo-light { display: none; }
.site-header.scrolled .brand-logo.logo-dark  { display: none; }
.site-header.scrolled .brand-logo.logo-light { display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--brand-charcoal);
  transition: color 0.3s;
}
.brand-tag {
  font-size: 11px;
  font-style: italic;
  color: var(--text-muted);
  transition: color 0.3s;
}

.nav { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand-charcoal);
  transition: color 0.2s;
  position: relative;
  padding: 6px 0;
}
.nav-link:hover { color: var(--brand-yellow-deep); }
.nav-cta {
  background: var(--brand-yellow);
  color: var(--brand-charcoal) !important;
  padding: 10px 22px;
  border-radius: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(242,190,52,0.4); }

/* mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 26px; height: 3px;
  background: var(--brand-charcoal);
  margin: 5px 0;
  transition: 0.3s;
}
.site-header.scrolled .menu-toggle span { background: var(--white); }

/* === 4. HERO SLIDER ======================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  margin-top: var(--header-height);
  overflow: hidden;
}
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide.active { opacity: 1; }
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 60%);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}
.hero-eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--brand-yellow);
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 700;
  margin-bottom: 20px;
  max-width: 780px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.hero-title .accent { color: var(--brand-yellow); }
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  max-width: 620px;
  margin-bottom: 32px;
  opacity: 0.95;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand-yellow);
  color: var(--brand-charcoal);
  padding: 14px 32px;
  border-radius: 30px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s;
  width: fit-content;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.3); }

/* slider dots */
.slider-dots {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 3;
}
.slider-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.slider-dot.active { background: var(--brand-yellow); transform: scale(1.3); }

/* slider arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
  width: 52px; height: 52px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  z-index: 3;
  transition: background 0.2s;
}
.slider-arrow:hover { background: rgba(253,211,91,0.9); color: var(--brand-charcoal); border-color: var(--brand-yellow); }
.slider-arrow.prev { left: 30px; }
.slider-arrow.next { right: 30px; }

/* === 5. GENERAL SECTIONS =================================== */
.section {
  padding: 90px 0;
}
.section-dark {
  background: var(--brand-dark);
  color: var(--white);
}
.section-cream { background: var(--brand-cream); }
.section-panel { background: var(--brand-panel); }
.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 60px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--brand-charcoal);
  margin-bottom: 16px;
}
.section-dark .section-title { color: var(--white); }
.section-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-style: italic;
}
.section-dark .section-lead { color: #C7C2B6; }

/* === 6. THE PRODUCT (bottle showcase) ====================== */
.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.product-image-wrap {
  position: relative;
  padding: 40px;
  background: var(--brand-cream);
  border-radius: 20px;
  overflow: hidden;
}
.product-image-wrap::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: var(--brand-yellow);
  border-radius: 50%;
  opacity: 0.4;
}
.product-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
}
.product-text .eyebrow { justify-content: flex-start; text-align: left; }
.product-heading {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 20px;
  color: var(--brand-charcoal);
}
.product-desc { color: var(--text-body); margin-bottom: 24px; }
.product-specs {
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.product-specs li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.product-specs strong { color: var(--brand-charcoal); font-family: var(--font-head); }
.product-specs .value { color: var(--brand-yellow-deep); font-weight: 700; }

/* === 7. FEATURE GRID (4 cards) ============================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(0,0,0,0.18); }
.feature-card img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.feature-card .caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 22px;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  color: var(--white);
}
.feature-card h3 {
  font-size: 1.4rem;
  color: var(--brand-yellow);
  margin-bottom: 6px;
}
.feature-card p { font-size: 0.95rem; opacity: 0.92; }

/* === 8. VIDEO SECTION ====================================== */
.video-wrap {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* === 9. STORY (3 stacked panels: Maker / Actuator / Coorg) = */
.story-grid { display: grid; gap: 30px; }
.story-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  background: var(--white);
}
.story-card.reverse { direction: rtl; }
.story-card.reverse .story-body { direction: ltr; }
.story-image { min-height: 320px; background-size: cover; background-position: center; }
.story-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; direction: ltr; }
.story-body h3 {
  font-size: 1.7rem;
  color: var(--brand-charcoal);
  margin-bottom: 14px;
}
.story-body p { color: var(--text-body); margin-bottom: 10px; }
.story-body ul { padding-left: 20px; margin-top: 12px; color: var(--text-body); }
.story-body li { margin-bottom: 8px; }

/* === 10. NUMBERS BAND ====================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat .num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  color: var(--brand-yellow);
  line-height: 1;
  margin-bottom: 12px;
}
.stat .lbl {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.5px;
}

/* === 11. GALLERY ========================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.35s;
}
.gallery img:hover { transform: scale(1.03); }

/* === 12. CONTACT / CTA STRIP =============================== */
.cta-strip {
  background: var(--brand-yellow);
  padding: 70px 0;
  text-align: center;
}
.cta-strip h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--brand-charcoal);
  margin-bottom: 14px;
}
.cta-strip p { color: var(--brand-charcoal); margin-bottom: 26px; font-size: 1.1rem; }
.cta-strip .btn {
  background: var(--brand-charcoal);
  color: var(--brand-yellow);
  padding: 14px 34px;
  border-radius: 30px;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 14px;
  display: inline-block;
  transition: transform 0.2s;
}
.cta-strip .btn:hover { transform: translateY(-2px); }

/* === 13. FOOTER =========================================== */
.footer {
  background: var(--brand-dark);
  color: #C7C2B6;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h4 {
  color: var(--brand-yellow);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; font-size: 0.95rem; }
.footer li a { transition: color 0.2s; }
.footer li a:hover { color: var(--brand-yellow); }
.footer-brand p { font-size: 0.95rem; margin-top: 14px; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid #3A3A38;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* === 14. BACK-TO-TOP BUTTON =============================== */
.to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--brand-charcoal);
  color: var(--brand-yellow);
  border: 2px solid var(--brand-yellow);
  cursor: pointer;
  font-size: 22px;
  font-weight: 700;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s, background 0.2s;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--brand-yellow); color: var(--brand-charcoal); }

/* === 15. RESPONSIVE ======================================= */
@media (max-width: 960px) {
  :root { --header-height: 74px; }
  .brand-logo { height: 44px; }
  .brand-name { font-size: 17px; }
  .brand-tag { display: none; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--brand-dark);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.3s ease, visibility 0.3s ease, padding 0.3s ease;
  }
  .nav.open { max-height: 500px; padding: 20px 0; visibility: visible; }
  .nav-link { padding: 14px 24px; width: 100%; color: var(--white) !important; text-align: center; }
  .nav-cta { margin: 12px auto; }
  .product-showcase { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .story-card, .story-card.reverse { grid-template-columns: 1fr; direction: ltr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .slider-arrow { display: none; }
  .section { padding: 60px 0; }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .to-top { bottom: 20px; right: 20px; width: 46px; height: 46px; }
}
