/* =========================================================
   DeValor Coffee Co. — Landing Site Styles
   Palette + typography sourced from the OpenCart store
   so devalorcoffee.com & devalorcoffeeco.com stay
   visually consistent with devalorcoffeeco.net
   ========================================================= */

:root {
  /* Brand palette (from store handoff) */
  --espresso:        #3E2723;
  --bean:            #5D4037;
  --crema:           #C9905B;
  --cream:           #FAF3E7;
  --beige:           #EFE2CC;
  --ink:             #2B1F1A;
  --muted:           #6E5A4F;
  --leaf:            #6B8E4E;

  /* Roast progression (light to dark) */
  --roast-blonde:    #C9905B;
  --roast-medium:    #8B5A38;
  --roast-espresso:  #5D3424;
  --roast-french:    #3E2017;
  --roast-italian:   #21100B;

  /* Type */
  --serif: "Fraunces", "Playfair Display", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --container: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(43,31,26,.06);
  --shadow-md: 0 10px 30px rgba(43,31,26,.10);
  --shadow-lg: 0 20px 60px rgba(43,31,26,.18);

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ----- Reset & base ----- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--espresso);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

a {
  color: var(--espresso);
  text-decoration: none;
  transition: color .2s var(--ease);
}
a:hover { color: var(--crema); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--crema);
  margin-bottom: 1.2rem;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .03em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease),
              color .2s var(--ease), border-color .2s var(--ease),
              box-shadow .2s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--crema);
  color: var(--espresso);
}
.btn-primary:hover {
  background: var(--espresso);
  color: var(--cream);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: transparent;
  color: var(--cream);
  border-color: rgba(250,243,231,.4);
}
.btn-secondary:hover {
  background: rgba(250,243,231,.08);
  border-color: var(--cream);
  color: var(--cream);
}
.btn-dark {
  background: var(--espresso);
  color: var(--cream);
}
.btn-dark:hover {
  background: var(--bean);
  color: var(--cream);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--espresso);
  border-color: rgba(62,39,35,.25);
}
.btn-ghost:hover {
  background: var(--espresso);
  color: var(--cream);
  border-color: var(--espresso);
}

/* ----- Nav ----- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .35s var(--ease), backdrop-filter .35s var(--ease),
              padding .35s var(--ease), box-shadow .35s var(--ease);
}
.nav.scrolled,
.nav.solid {
  background: rgba(250,243,231,.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: .01em;
  transition: color .35s var(--ease);
  text-decoration: none;
}
.nav-brand img {
  height: 44px;
  width: auto;
  display: block;
  transition: transform .3s var(--ease);
}
.nav-brand:hover img { transform: rotate(-4deg); }
.nav-brand em {
  font-style: italic;
  color: var(--crema);
  font-weight: 400;
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-brand-text .word1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: .01em;
}
.nav-brand-text .word2 {
  font-family: var(--sans);
  font-size: .65rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: .75;
}
.nav.scrolled .nav-brand,
.nav.solid .nav-brand { color: var(--espresso); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: .02em;
  transition: color .35s var(--ease);
}
.nav.scrolled .nav-links a,
.nav.solid .nav-links a { color: var(--ink); }
.nav-links a:hover { color: var(--crema); }

.nav-cta {
  background: var(--crema);
  color: var(--espresso) !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--espresso); color: var(--cream) !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px; height: 32px;
  padding: 0;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 4px; right: 4px;
  height: 2px;
  background: var(--cream);
  transition: all .3s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 9px; }
.menu-toggle span:nth-child(2) { top: 15px; }
.menu-toggle span:nth-child(3) { top: 21px; }
.nav.scrolled .menu-toggle span,
.nav.solid .menu-toggle span { background: var(--espresso); }

.menu-toggle.open span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { top: 15px; transform: rotate(-45deg); }

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--cream);
  overflow: hidden;
  padding: 140px 0 90px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    /* Dark overlay so text remains legible over the photo */
    linear-gradient(135deg, rgba(43,31,26,.85) 0%, rgba(62,39,35,.75) 50%, rgba(93,64,55,.65) 100%),
    /* The actual hero photo */
    url('images/hero-bg.jpg') center/cover no-repeat,
    /* Fallback warm gradient if image fails */
    linear-gradient(135deg, #2B1F1A 0%, #3E2723 45%, #5D4037 100%);
  z-index: 0;
}
/* Warm color wash on top of the photo */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(201,144,91,.22), transparent 60%),
    radial-gradient(ellipse at 80% 75%, rgba(107,142,78,.15), transparent 55%);
  pointer-events: none;
}
.hero-bg::after {
  /* Subtle film grain so the dark background feels like roasted bean texture, not flat color */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .78  0 0 0 0 .56  0 0 0 0 .36  0 0 0 .45 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .18;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Big abstract coffee bean as decorative element */
.hero-bean {
  position: absolute;
  right: -140px;
  top: 50%;
  transform: translateY(-50%) rotate(-22deg);
  width: 580px; height: 580px;
  opacity: .15;
  z-index: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.hero-logo {
  width: 90px;
  height: auto;
  margin-bottom: 28px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.35));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.hero-tagline {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .32em;
  color: var(--crema);
  margin-bottom: 30px;
  opacity: .92;
}
.hero h1 {
  color: var(--cream);
  font-style: italic;
  font-weight: 300;
  margin-bottom: 26px;
}
.hero h1 .accent {
  font-style: normal;
  color: var(--crema);
  font-weight: 400;
}
.hero-lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: rgba(250,243,231,.85);
  margin-bottom: 40px;
  max-width: 620px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hero-meta {
  position: absolute;
  bottom: 50px;
  left: 0; right: 0;
  z-index: 2;
}
.hero-meta-inner {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  color: rgba(250,243,231,.7);
  font-size: .85rem;
  letter-spacing: .05em;
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-meta-item::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--crema);
}

/* ----- Section base ----- */
section { padding: 110px 0; position: relative; }

.section-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-head.left {
  text-align: left;
  margin: 0 0 56px;
}
.section-head p {
  font-size: 1.08rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* ----- Story section ----- */
.story { background: var(--cream); }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.story-text p {
  font-size: 1.06rem;
  line-height: 1.78;
  color: var(--ink);
}
.story-text p + p { margin-top: 1.1em; }

.story-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(62,39,35,.6) 0%, rgba(93,64,55,.25) 100%),
    linear-gradient(45deg, #4F6B38 0%, #6B8E4E 50%, #C9905B 100%);
  box-shadow: var(--shadow-lg);
}
/* When a real photo is present, it covers the gradient */
.story-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  /* Subtle warm overlay tinting so the photo feels brand-cohesive */
  filter: saturate(1.08) contrast(1.04);
}
/* Overlay gradient sits ON the photo to keep the caption readable */
.story-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(43,31,26,0) 0%,
    rgba(43,31,26,0) 45%,
    rgba(43,31,26,.55) 80%,
    rgba(43,31,26,.85) 100%);
  z-index: 2;
  pointer-events: none;
}
.story-visual-caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  color: var(--cream);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.45;
  z-index: 3;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}
.story-visual-caption strong {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--crema);
  margin-bottom: 8px;
  font-weight: 600;
}

/* Pillars / value stats */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid rgba(110,90,79,.2);
}
.pillar h4 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--espresso);
  margin: 0 0 8px;
}
.pillar p {
  margin: 0;
  font-size: .98rem;
  color: var(--muted);
  line-height: 1.6;
}
.pillar .pillar-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: .85rem;
  color: var(--crema);
  letter-spacing: .12em;
  display: block;
  margin-bottom: 12px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ----- Roast section ----- */
.roasts {
  background: var(--beige);
  position: relative;
}
.roasts::before {
  /* paper grain on the beige */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n3'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4  0 0 0 0 .28  0 0 0 0 .18  0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n3)'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: .6;
}
.roasts > * { position: relative; z-index: 1; }

.roast-spectrum {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  font-family: var(--sans);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--muted);
}
.roast-spectrum .bar {
  height: 4px;
  width: 240px;
  border-radius: 999px;
  background: linear-gradient(to right,
    var(--roast-blonde) 0%,
    var(--roast-medium) 25%,
    var(--roast-espresso) 50%,
    var(--roast-french) 75%,
    var(--roast-italian) 100%);
}

.roast-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.roast-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 36px 24px 26px;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex;
  flex-direction: column;
  text-align: center;
  min-height: 460px;
}
.roast-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.roast-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--bean-color, var(--crema));
}
.roast-bean-img {
  width: 120px;
  height: 130px;
  object-fit: contain;
  margin: 0 auto 18px;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(43,31,26,.22));
  transition: transform .4s var(--ease);
}
.roast-card:hover .roast-bean-img {
  transform: translateY(-3px) rotate(-3deg) scale(1.04);
}
.roast-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--espresso);
  margin: 0 0 6px;
  line-height: 1.2;
}
.roast-tag {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--bean-color, var(--crema));
  margin-bottom: 18px;
  display: block;
}
.roast-notes {
  font-size: .95rem;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}
.roast-brew {
  font-size: .82rem;
  color: var(--muted);
  border-top: 1px solid rgba(110,90,79,.18);
  padding-top: 14px;
  line-height: 1.5;
}
.roast-brew strong {
  display: block;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--espresso);
  margin-bottom: 4px;
  font-weight: 600;
}

/* Each roast gets its own bean color */
.roast-card[data-roast="blonde"]   { --bean-color: var(--roast-blonde); }
.roast-card[data-roast="medium"]   { --bean-color: var(--roast-medium); }
.roast-card[data-roast="espresso"] { --bean-color: var(--roast-espresso); }
.roast-card[data-roast="french"]   { --bean-color: var(--roast-french); }
.roast-card[data-roast="italian"]  { --bean-color: var(--roast-italian); }

.roasts-cta {
  text-align: center;
  margin-top: 56px;
}
.roasts-cta p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 1rem;
}

/* ----- Process section ----- */
.process {
  background: var(--cream);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 16px;
}
.process-step {
  position: relative;
}
.process-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease);
}
.process-step:hover .process-photo {
  transform: translateY(-3px);
}
.process-num {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-style: italic;
  font-weight: 400;
  color: var(--crema);
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}
.process-step h4 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--espresso);
  margin: 0 0 8px;
}
.process-step p {
  font-size: .96rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}

/* ----- Shop CTA banner ----- */
.shop-cta {
  background: linear-gradient(135deg, var(--espresso) 0%, var(--bean) 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.shop-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(201,144,91,.25), transparent 50%),
    radial-gradient(circle at 15% 80%, rgba(107,142,78,.18), transparent 55%);
}
.shop-cta-inner {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.shop-cta h2 {
  color: var(--cream);
  font-style: italic;
  font-weight: 300;
  margin-bottom: 18px;
}
.shop-cta h2 .accent {
  font-style: normal;
  color: var(--crema);
  font-weight: 400;
}
.shop-cta p {
  font-size: 1.15rem;
  color: rgba(250,243,231,.85);
  margin-bottom: 36px;
}
.shop-cta .price-row {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-bottom: 36px;
  font-family: var(--serif);
  color: rgba(250,243,231,.85);
}
.shop-cta .price-row span strong {
  display: block;
  font-size: 1.7rem;
  color: var(--cream);
  font-weight: 500;
}
.shop-cta .price-row span small {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--crema);
  font-family: var(--sans);
  font-weight: 600;
}

/* ----- Contact / Newsletter ----- */
.contact { background: var(--beige); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 {
  margin-bottom: 24px;
}
.contact-info p {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

/* ----- Giselle byline in contact section ----- */
.contact-host {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  padding: 18px 20px;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid rgba(110, 90, 79, 0.12);
  box-shadow: var(--shadow-sm);
}
.contact-host-photo {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px;
  max-width: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 3px 10px rgba(43, 31, 26, 0.18);
  border: 2px solid var(--cream);
  filter: saturate(0.92) contrast(1.02) sepia(0.08);
}
.contact-host-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-host-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--espresso);
  margin: 0 !important;
  line-height: 1.2;
}
.contact-host-role {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--crema);
  margin: 0 !important;
}

.contact-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-links li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  font-size: 1rem;
  color: var(--ink);
  border-bottom: 1px solid rgba(110,90,79,.18);
}
.contact-links li:last-child { border-bottom: none; }
.contact-links .label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--crema);
  font-weight: 600;
  min-width: 64px;
}

.contact-form {
  background: var(--cream);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.contact-form h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
}
.contact-form > p {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: .95rem;
}

/* ----- Honeypot fields -----
   Hidden from humans without using `display: none` (which sophisticated
   bots check for and skip). Off-screen + zero opacity + zero size keeps
   the inputs in the DOM and tab order ignored, but invisible. */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.hp-field input {
  /* belt-and-suspenders — also hide the input itself */
  position: absolute;
  left: -10000px;
}

/* Submit button starts disabled; JS enables it on page load.
   This blocks bots that don't execute JavaScript. */
.contact-form button[disabled] {
  opacity: .55;
  cursor: not-allowed;
}
.contact-form button[disabled]:hover {
  transform: none;
  box-shadow: none;
}

.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid rgba(110,90,79,.25);
  border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--crema);
  background: #fff;
}
.field textarea {
  resize: vertical;
  min-height: 110px;
  font-family: var(--sans);
}

/* ----- Footer ----- */
footer.site-footer {
  background: var(--espresso);
  color: rgba(250,243,231,.75);
  padding: 70px 0 30px;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-grid h5 {
  font-family: var(--sans);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--crema);
  margin: 0 0 18px;
  font-weight: 600;
}
.footer-brand-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--cream);
  margin: 0 0 12px;
  font-weight: 500;
}
.footer-brand-name em { font-style: italic; color: var(--crema); }
.footer-logo {
  width: 180px;
  height: auto;
  margin-bottom: 18px;
  background: var(--cream);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
}
.footer-tagline {
  margin: 0 0 20px;
  color: rgba(250,243,231,.6);
  font-size: .95rem;
  line-height: 1.6;
  max-width: 320px;
}
.footer-grid ul {
  list-style: none;
  padding: 0; margin: 0;
}
.footer-grid li { margin-bottom: 10px; }
.footer-grid a {
  color: rgba(250,243,231,.75);
}
.footer-grid a:hover { color: var(--crema); }

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(250,243,231,.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.footer-socials a:hover {
  background: var(--crema);
  border-color: var(--crema);
}
.footer-socials svg {
  width: 16px; height: 16px;
  fill: var(--cream);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(250,243,231,.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(250,243,231,.5);
  font-size: .82rem;
}

/* ----- Subpage hero (about, roasts) ----- */
.subhero {
  position: relative;
  padding: 180px 0 90px;
  color: var(--cream);
  background:
    radial-gradient(ellipse at 20% 30%, rgba(201,144,91,.20), transparent 60%),
    linear-gradient(135deg, #2B1F1A 0%, #3E2723 50%, #5D4037 100%);
  overflow: hidden;
}
.subhero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n4'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .78  0 0 0 0 .56  0 0 0 0 .36  0 0 0 .4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n4)'/%3E%3C/svg%3E");
  opacity: .15;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.subhero .container { position: relative; z-index: 1; }
.subhero h1 {
  color: var(--cream);
  font-style: italic;
  font-weight: 300;
  margin-bottom: 18px;
}
.subhero h1 .accent {
  font-style: normal;
  color: var(--crema);
  font-weight: 400;
}
.subhero p {
  font-size: 1.2rem;
  color: rgba(250,243,231,.8);
  max-width: 620px;
  margin: 0;
}

/* ----- About page article ----- */
.article-page { background: var(--cream); }
.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 90px;
}
.article-grid:last-child { margin-bottom: 0; }
.article-grid.reverse .article-text { order: 2; }
.article-grid h2 { margin-bottom: 24px; }
.article-grid p {
  font-size: 1.06rem;
  line-height: 1.78;
  color: var(--ink);
  margin-bottom: 1.1em;
}
.article-image {
  position: relative;
  aspect-ratio: 3/2;
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(62,39,35,.55) 0%, rgba(93,64,55,.2) 100%),
    linear-gradient(45deg, #4F6B38 0%, #6B8E4E 50%, #C9905B 100%);
  box-shadow: var(--shadow-md);
}
.article-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
  transition: transform 1.4s var(--ease, cubic-bezier(.2,.7,.2,1)), filter 1.4s ease;
}
/* Soft vignette over every article image — pulls focus toward the center. */
.article-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 45%,
    transparent 30%,
    rgba(20, 10, 6, .35) 100%
  );
  transition: opacity .8s ease;
}
.article-image:hover img {
  transform: scale(1.04);
  filter: saturate(1.14) contrast(1.07);
}
.article-image:hover::before { opacity: .7; }
.article-image.warm {
  background:
    linear-gradient(135deg, rgba(62,39,35,.55) 0%, rgba(201,144,91,.3) 100%),
    linear-gradient(45deg, #5D4037 0%, #8B5A38 60%, #C9905B 100%);
}
.article-image.dark {
  background:
    linear-gradient(135deg, rgba(33,16,11,.7) 0%, rgba(62,39,35,.5) 100%),
    linear-gradient(45deg, #21100B 0%, #3E2017 60%, #5D3424 100%);
  box-shadow:
    0 30px 60px -20px rgba(33, 16, 11, .55),
    0 12px 24px -12px rgba(33, 16, 11, .4);
}
.article-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n5'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2  0 0 0 0 .15  0 0 0 0 .1  0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n5)'/%3E%3C/svg%3E");
  opacity: .15;
  mix-blend-mode: overlay;
  pointer-events: none;
}
/* Hide the "DV" placeholder when a real image is present */
.article-image img + .placeholder-mark,
.article-image .placeholder-mark + img {
  display: none;
}
.article-image:has(img) .placeholder-mark {
  display: none;
}

/* ----- Animations ----- */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .9s var(--ease) forwards;
}
.fade-up.d1 { animation-delay: .1s; }
.fade-up.d2 { animation-delay: .25s; }
.fade-up.d3 { animation-delay: .4s; }
.fade-up.d4 { animation-delay: .55s; }
.fade-up.d5 { animation-delay: .7s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal — JS toggles .in-view */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Responsive ----- */
@media (max-width: 980px) {
  section { padding: 80px 0; }
  .story-grid,
  .article-grid,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .article-grid.reverse .article-text { order: 0; }
  .roast-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .pillars {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .hero-bean { width: 380px; height: 380px; right: -160px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .nav-brand img { height: 36px; }
  .nav-brand-text .word1 { font-size: 1rem; }
  .nav-brand-text .word2 { font-size: .55rem; }
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--cream);
    padding: 30px 28px;
    gap: 18px;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform .35s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { color: var(--ink) !important; font-size: 1.05rem; }
  .menu-toggle { display: block; }
  .nav-cta { padding: 12px 22px; }
  .hero { min-height: 92vh; padding: 130px 0 80px; }
  .hero-logo { width: 70px; margin-bottom: 22px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero-meta-inner { gap: 18px; flex-direction: column; }
  .hero-bean { display: none; }
  .roast-grid { grid-template-columns: 1fr; }
  .roast-card { min-height: 0; padding: 30px 22px 22px; }
  .roast-bean-img { width: 100px; height: 110px; }
  .process-grid { grid-template-columns: 1fr; }
  .shop-cta .price-row { gap: 24px; }
  .contact-form { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}
