/* ═══════════════════════════════════════════════════════
   KORA COFFEE — css/home.css
   Non-critical homepage styles (loaded async after critical CSS).
   Moved from styles.css — zero changes to rules or selectors.
   Image paths use ../ prefix since this file lives in css/.
   ═══════════════════════════════════════════════════════ */

/* ── TYPOGRAPHY SYSTEM ──────────────────────────────────
   Heading font: Cormorant Garamond
   Fallback stack: Georgia, serif

   To change the heading font globally in the future,
   find/replace "Cormorant Garamond" in this file.
   Body/UI font remains Arial, Helvetica, sans-serif.
   Cart, buttons, forms, and small labels are NOT affected.
────────────────────────────────────────────────────────── */

/* =========================
   PROCESS SECTION
========================= */

.process-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("../farm.webp");
  background-size: cover;
  background-position: center center;
  will-change: transform;
  transform: scale(1.04);
  filter: blur(1px);
}

.process-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.65) 36%,
    rgba(0,0,0,0.55) 100%
  );
  z-index: 1;
}

.process-container {
  padding-top: 86px;
  padding-bottom: 86px;
}

.process-content {
  max-width: 760px;
  margin-left: 120px;
}

.process-content h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

.process-list {
  list-style: disc;
  padding-left: 36px;
}

.process-list li {
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.7;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.22);
}

.process-list li::marker {
  color: #d5a63d;
}

/* =========================
   COLLECTION SECTION
========================= */

.collection-section {
  background: #14171b;
  padding: 78px 0 96px;
}

.collection-title-wrap {
  margin-bottom: 48px;
  display: flex;
  justify-content: center;
}

.collection-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(40px, 4.2vw, 60px);
  line-height: 0.97;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg,#b8962e 0%,#e6c96a 25%,#f3dc8a 50%,#e6c96a 75%,#b8962e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.collection-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 84px;
  align-items: start;
}

.collection-image-col {
  display: flex;
  justify-content: flex-start;
  border-radius: 20px;
  overflow: hidden;
}

.collection-bag-mobile { display: none; }

.collection-bag {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  border-radius: 20px;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.28));
}

/* U-Drip video replaces the static bag image.
   Inherits .collection-bag sizing; object-fit:contain keeps
   the video aspect ratio intact inside the column. */
.collection-video {
  object-fit: contain;
  max-height: 560px;
}

/* Center Origen and Clásico bags inside their white image card */
.collection-grid--clasico .collection-bag,
.collection-grid--origen .collection-bag {
  object-fit: contain;
  object-position: center center;
}

.collection-info-col {
  display: flex;
  align-items: flex-start;
}

.collection-card {
  width: 100%;
  padding-top: 8px;
}

.collection-top-line {
  width: 100%;
  height: 1px;
  background: rgba(213,166,61,0.42);
  margin-bottom: 28px;
}

.collection-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(44px, 5.2vw, 70px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  padding-bottom: 8px;
  background: linear-gradient(90deg,#b8962e 0%,#e6c96a 25%,#f3dc8a 50%,#e6c96a 75%,#b8962e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.collection-description {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,0.86);
  margin-bottom: 28px;
}

.collection-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.22);
  margin-bottom: 28px;
}

.collection-detail {
  margin-bottom: 22px;
}

.collection-detail h4,
.detail-label {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: 0em;
  margin-bottom: 10px;
  background: linear-gradient(90deg,#b8962e 0%,#e6c96a 25%,#f3dc8a 50%,#e6c96a 75%,#b8962e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.collection-detail p {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,0.8);
}

.intensity-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.55);
}

.dot.active {
  background: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.92);
}

/* =========================
   CAAS SUBSCRIPTION SECTION
========================= */

.caas-section {
  background: #181b20;
  padding: 90px 0 100px;
}

.caas-title-wrap {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.caas-kicker {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d5a63d;
}

.caas-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(40px, 4.4vw, 62px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  background: linear-gradient(90deg,#b8962e 0%,#e6c96a 25%,#f3dc8a 50%,#e6c96a 75%,#b8962e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.caas-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
}

.caas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

.caas-plan-card {
  display: flex;
  flex-direction: column;
  background: #14171b;
  border: 1px solid rgba(213,166,61,0.28);
  border-radius: 14px;
  padding: 32px 28px 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.caas-plan-card:hover {
  border-color: rgba(213,166,61,0.6);
  transform: translateY(-2px);
}

.caas-plan-card--custom {
  opacity: 0.88;
}

.caas-plan-top-line {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg,#b8962e 0%,#e6c96a 100%);
  margin-bottom: 20px;
}

.caas-plan-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

.caas-plan-price {
  font-size: 28px;
  font-weight: 700;
  color: #d5a63d;
  margin-bottom: 22px;
}

.caas-plan-price-period {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  margin-left: 2px;
}

.caas-plan-items {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex-grow: 1;
}

.caas-plan-items li {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  padding-left: 18px;
  position: relative;
}

.caas-plan-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d5a63d;
}

.caas-plan-custom-desc {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.78);
  margin-bottom: 24px;
  flex-grow: 1;
}

.caas-plan-btn {
  display: block;
  width: 100%;
  padding: 14px 18px;
  min-height: 50px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg,#caa94a 0%,#e6c96a 100%);
  color: #000;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.caas-plan-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.caas-plan-btn:active { opacity: 0.85; transform: translateY(0); }

.caas-plan-soon-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(213,166,61,0.5);
  background: rgba(213,166,61,0.1);
  color: #d5a63d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

/* ── CAAS subscription form ── */

.caas-form-wrap {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.caas-form-card {
  width: 100%;
  max-width: 480px;
  background: #14171b;
  border: 1px solid rgba(213,166,61,0.4);
  border-radius: 16px;
  padding: 36px 32px;
}

.caas-form-top-line {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg,#b8962e 0%,#e6c96a 100%);
  margin-bottom: 20px;
}

.caas-form-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

.caas-form-title span:last-child {
  color: #d5a63d;
}

.caas-form-hint {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  margin-bottom: 26px;
}

.caas-form-field {
  margin-bottom: 18px;
}

.caas-form-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.78);
  margin-bottom: 7px;
}

.caas-form-optional {
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  text-transform: none;
  letter-spacing: 0;
}

.caas-form-field input {
  width: 100%;
  padding: 12px 14px;
  min-height: 46px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  background: #0f1114;
  color: #fff;
  font-size: 15px;
  font-family: Arial, Helvetica, sans-serif;
}

.caas-form-field input::placeholder {
  color: rgba(255,255,255,0.32);
}

.caas-form-field input:focus {
  outline: none;
  border-color: rgba(213,166,61,0.75);
}

.caas-form-error {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(220,38,38,0.12);
  border: 1px solid rgba(220,38,38,0.45);
  color: #fca5a5;
  font-size: 14px;
  line-height: 1.5;
}

.caas-form-submit {
  display: block;
  width: 100%;
  padding: 15px 18px;
  min-height: 52px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg,#caa94a 0%,#e6c96a 100%);
  color: #000;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 12px;
  transition: opacity 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.caas-form-submit:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); }
.caas-form-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.caas-form-cancel {
  display: block;
  width: 100%;
  padding: 10px 18px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
}

.caas-form-cancel:hover {
  color: rgba(255,255,255,0.85);
}

/* =========================
   PHILOSOPHY SECTION
========================= */

.philosophy-bg {
  position: absolute;
  top: 0;
  left: -25%;
  width: 150%;
  height: 100%;
  background-image: url("../philosophy.webp");
  background-size: cover;
  background-position: center 30%;
  will-change: transform;
  filter: blur(4px);
  transform: scale(1.04);
}

.philosophy-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.65) 36%,
    rgba(0,0,0,0.55) 100%
  );
  z-index: 1;
}

.philosophy-container {
  padding-top: 84px;
  padding-bottom: 84px;
}

.philosophy-content {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.philosophy-kicker {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d5a63d;
}

.philosophy-content h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 26px;
  background: linear-gradient(90deg,#b8962e 0%,#e6c96a 25%,#f3dc8a 50%,#e6c96a 75%,#b8962e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.philosophy-content p {
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
}

/* =========================
   CTA + FOOTER
========================= */

.cta-footer-section {
  background: #14171b;
  padding: 110px 0 60px;
}

.cta-footer-container {
  max-width: 1280px;
}

.cta-block {
  max-width: 720px;
  margin-bottom: 90px;
}

.cta-kicker {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d5a63d;
}

.cta-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(46px, 5.2vw, 76px);
  line-height: 1.03;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 30px;
  background: linear-gradient(90deg,#b8962e 0%,#e6c96a 25%,#f3dc8a 50%,#e6c96a 75%,#b8962e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-button {
  display: inline-block;
  padding: 16px 22px;
  min-width: 220px;
  min-height: 52px;
  text-align: center;
  border-radius: 2px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  color: #000;
  background: linear-gradient(90deg,#caa94a 0%,#e6c96a 100%);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.28);
  margin-bottom: 46px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 42px;
}

.footer-col h4,
.footer-heading {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 600;
  margin-bottom: 18px;
  color: #d5a63d;
}

.footer-heading {
  display: block;
  margin-bottom: 18px;
}

.footer-col p {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.24);
  padding-top: 24px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255,255,255,0.68);
  font-style: italic;
}

/* fade-in rules live in inline critical CSS */

/* =========================
   TABLET (1024px)
========================= */

@media (max-width: 1024px) {
  .collection-grid {
    grid-template-columns: 340px 1fr;
    gap: 48px;
  }

  .collection-bag {
    max-width: 340px;
  }

  .process-content {
    margin-left: 40px;
  }

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

  .caas-plan-card--custom {
    grid-column: 1 / -1;
  }
}

/* =========================
   MOBILE (768px)
========================= */

@media (max-width: 768px) {
  /* Process */
  .process-section {
    min-height: 380px;
  }

  .process-container {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .process-content {
    margin-left: 0;
    max-width: 100%;
  }

  .process-content h2 {
    font-size: clamp(34px, 9vw, 52px);
  }

  /* Collection */
  .collection-section {
    padding: 52px 0 64px;
  }

  .collection-title-wrap {
    text-align: center;
    margin-bottom: 28px;
    display: block;
  }

  .collection-title {
    font-size: clamp(40px, 11vw, 68px);
  }

  .collection-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .collection-grid--clasico .collection-image-col { display: none; }
  .collection-grid--origen .collection-image-col  { display: none; }
  .collection-grid--specialty .collection-image-col { display: none; }
  .collection-bag-mobile { display: flex; justify-content: center; margin: 20px 0 4px; }

  .collection-image-col {
    justify-content: center;
  }

  .collection-bag {
    max-width: 280px;
    margin: 0 auto;
  }

  .collection-name {
    font-size: clamp(40px, 11vw, 62px);
    margin-bottom: 16px;
  }

  .collection-description {
    font-size: 17px;
    margin-bottom: 20px;
  }

  .collection-divider {
    margin-bottom: 20px;
  }

  .collection-detail {
    margin-bottom: 18px;
  }

  .collection-detail h4,
  .detail-label {
    font-size: 20px;
  }

  .collection-detail p {
    font-size: 16px;
  }

  /* Philosophy */
  .philosophy-section {
    min-height: 380px;
  }

  .philosophy-container {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .philosophy-content h2 {
    font-size: clamp(34px, 9vw, 54px);
    margin-bottom: 16px;
  }

  .philosophy-content p {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
  }

  /* CAAS subscription */
  .caas-section {
    padding: 56px 0 64px;
  }

  .caas-title-wrap {
    margin-bottom: 36px;
  }

  .caas-title {
    font-size: clamp(34px, 10vw, 50px);
  }

  .caas-subtitle {
    font-size: 16px;
  }

  .caas-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .caas-plan-card {
    padding: 26px 22px 22px;
  }

  .caas-plan-name {
    font-size: 28px;
  }

  .caas-plan-price {
    font-size: 24px;
  }

  .caas-form-card {
    padding: 28px 22px;
  }

  .caas-form-title {
    font-size: 26px;
  }

  /* CTA + Footer */
  .cta-footer-section {
    padding: 64px 0 40px;
  }

  .cta-block {
    margin-bottom: 48px;
  }

  .cta-title {
    font-size: clamp(38px, 10vw, 60px);
    margin-bottom: 22px;
  }

  .cta-button {
    width: 100%;
    max-width: 300px;
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 28px;
  }

  .footer-col h4,
  .footer-heading {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .footer-col p {
    font-size: 16px;
    line-height: 1.6;
  }

  .footer-bottom {
    padding-top: 16px;
    font-size: 13px;
  }

  /* Reduce motion on mobile for battery */
  .fade-in {
    transition-duration: 0.4s;
  }
}

/* prefers-reduced-motion for fade-in lives in inline critical CSS */
