/* ============================================================
   Harrow & Stone Coffee — Stylesheet
   ============================================================ */

/* ---------- Reset & Custom Properties ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-espresso: #1a0f08;
  --c-roast:    #3b2314;
  --c-warm:     #7a4520;
  --c-caramel:  #c8a97e;
  --c-cream:    #f5ede0;
  --c-paper:    #faf7f2;
  --c-text:     #2a1a0e;
  --c-muted:    #6b5040;
  --c-white:    #ffffff;

  --ff-serif: Georgia, 'Times New Roman', serif;
  --ff-sans:  system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --max-w: 1120px;
  --transition: 200ms ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-sans);
  color: var(--c-text);
  background: var(--c-paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--ff-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--c-roast);
  color: var(--c-cream);
  border-color: var(--c-roast);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--c-espresso);
  border-color: var(--c-espresso);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--c-cream);
  border-color: rgba(200,169,126,0.5);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  border-color: var(--c-caramel);
  color: var(--c-caramel);
}

.btn--outline {
  background: transparent;
  color: var(--c-roast);
  border-color: var(--c-roast);
}
.btn--outline:hover, .btn--outline:focus-visible {
  background: var(--c-roast);
  color: var(--c-cream);
}

/* ---------- Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-espresso);
  border-bottom: 1px solid rgba(200,169,126,0.2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--c-cream);
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav__brand { display: inline; }

.nav__links {
  display: flex;
  list-style: none;
  gap: var(--space-md);
  align-items: center;
}

.nav__links a {
  color: rgba(245,237,224,0.8);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--c-caramel);
  border-bottom-color: var(--c-caramel);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-caramel);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

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

.hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.6;
}

.hero__bg svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-block: var(--space-2xl);
  max-width: 640px;
}

.hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-caramel);
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

.hero__headline {
  font-family: var(--ff-serif);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  color: var(--c-cream);
  line-height: 1.1;
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}

.hero__sub {
  color: rgba(245,237,224,0.75);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  max-width: 520px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ---------- Tagline bar ---------- */
.tagline-bar {
  background: var(--c-roast);
  overflow: hidden;
  padding-block: 0.6rem;
  border-block: 1px solid rgba(200,169,126,0.2);
}

.tagline-bar__track {
  display: flex;
  gap: 1.5rem;
  animation: marquee 22s linear infinite;
  white-space: nowrap;
  width: max-content;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-caramel);
}

.tagline-bar__track .sep { opacity: 0.5; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Section common ---------- */
.section {
  padding-block: var(--space-2xl);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section__title {
  font-family: var(--ff-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--c-roast);
  margin-bottom: var(--space-xs);
  line-height: 1.2;
}

.section__sub {
  color: var(--c-muted);
  font-size: 1rem;
  max-width: 560px;
  margin-inline: auto;
}

/* ---------- Coffee cards ---------- */
.coffees { background: var(--c-paper); }

.coffee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-md);
}

.coffee-card {
  background: var(--c-white);
  border: 1px solid #e8d9c4;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.coffee-card:hover {
  box-shadow: 0 6px 24px rgba(59,35,20,0.10);
  transform: translateY(-2px);
}

.coffee-card__icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.coffee-card__icon svg { width: 100%; height: 100%; }

.coffee-card__body { display: flex; flex-direction: column; gap: 0.35rem; }

.coffee-card__origin {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-caramel);
  font-weight: 600;
}

.coffee-card__name {
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  color: var(--c-roast);
  line-height: 1.2;
}

.coffee-card__notes {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--c-muted);
}

.coffee-card__desc {
  font-size: 0.9rem;
  color: #4a3020;
  line-height: 1.55;
}

.coffee-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e8d9c4;
}

.coffee-card__roast {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.roast--light      { background: #fef3e2; color: #a07030; }
.roast--medium     { background: #fde8cc; color: #8a4e10; }
.roast--medium-dark{ background: #f5d0a8; color: #6a3008; }

.coffee-card__price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-roast);
}

/* ---------- Process ---------- */
.process { background: var(--c-cream); }

.process-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-lg);
  counter-reset: steps;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.process-step__num {
  font-family: var(--ff-serif);
  font-size: 3rem;
  color: var(--c-caramel);
  line-height: 1;
  opacity: 0.7;
}

.process-step__body h3 {
  font-family: var(--ff-serif);
  font-size: 1.15rem;
  color: var(--c-roast);
  margin-bottom: 0.4rem;
}

.process-step__body p {
  font-size: 0.9rem;
  color: var(--c-muted);
  line-height: 1.6;
}

/* ---------- Story ---------- */
.story { background: var(--c-paper); }

.story__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.story__visual {
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
}

.story__visual svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(59,35,20,0.12);
}

.story__text .section__title {
  text-align: left;
  margin-bottom: var(--space-md);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.story__text p {
  font-size: 0.97rem;
  color: #3a2010;
  line-height: 1.75;
  margin-bottom: var(--space-sm);
}

.story__text .btn { margin-top: var(--space-sm); }

/* ---------- Subscribe ---------- */
.subscribe {
  background: var(--c-roast);
  color: var(--c-cream);
}

.subscribe__inner {
  max-width: 620px;
  text-align: center;
}

.subscribe h2 {
  font-family: var(--ff-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.subscribe p {
  color: rgba(245,237,224,0.8);
  margin-bottom: var(--space-md);
  font-size: 0.97rem;
}

.subscribe__form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.subscribe__form input[type="email"] {
  flex: 1 1 260px;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(200,169,126,0.5);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.07);
  color: var(--c-cream);
  font-size: 1rem;
  font-family: var(--ff-sans);
  outline: none;
  transition: border-color var(--transition);
}

.subscribe__form input[type="email"]::placeholder { color: rgba(245,237,224,0.45); }

.subscribe__form input[type="email"]:focus { border-color: var(--c-caramel); }

.subscribe__fine {
  font-size: 0.78rem;
  color: rgba(245,237,224,0.45);
  margin-top: 0.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-espresso);
  color: rgba(245,237,224,0.7);
  padding-block: var(--space-xl);
  border-top: 1px solid rgba(200,169,126,0.15);
}

.footer__layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-lg);
  align-items: start;
}

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

.footer__brand > span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--c-cream);
  font-family: var(--ff-serif);
  font-size: 1rem;
}

.footer__tagline { font-size: 0.82rem; color: rgba(245,237,224,0.45); }

.footer__nav ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }

.footer__nav a {
  color: rgba(245,237,224,0.65);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer__nav a:hover { color: var(--c-caramel); }

.footer__legal {
  text-align: right;
  font-size: 0.78rem;
  color: rgba(245,237,224,0.4);
  line-height: 1.7;
}

/* ---------- Focus styles ---------- */
:focus-visible {
  outline: 2px solid var(--c-caramel);
  outline-offset: 3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .story__layout {
    grid-template-columns: 1fr;
  }
  .story__visual { order: -1; max-width: 280px; }
  .story__text .section__title { text-align: center; }
  .story__text .btn { display: block; text-align: center; }

  .footer__layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer__brand { align-items: center; }
  .footer__nav ul { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .footer__legal { text-align: center; }
}

@media (max-width: 640px) {
  .nav__links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: var(--c-espresso);
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-sm);
    border-bottom: 1px solid rgba(200,169,126,0.2);
    z-index: 99;
  }

  .nav__links.is-open { display: flex; }

  .nav__toggle { display: flex; }

  .hero { min-height: 75vh; }

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

  .process-steps { grid-template-columns: 1fr; }

  .subscribe__form { flex-direction: column; }
  .subscribe__form input[type="email"],
  .subscribe__form .btn { flex: 1 1 auto; width: 100%; }
}
