/* Hazel Coffee: site styles. Poppins is loaded from Google Fonts in index.html. */

:root {
  --tan: #d9bb99;
  --cream: #f2ece0;
  --sand: #e3d1bb;
  --brown: #472b1c;
  --brown-btn: #5a3424;
  --orange: #b66f31;
  --gold: #a8742f;
  --ink: #1f1510;
  --text: #7a6a5c;
  --white: #fbf7ef;
  --line: #d1b48a;
  --error: #b3261e;
  --ok: #2f7a46;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1122px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--font); font-size: 14px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px;
  font: 700 12px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background-color .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid rgba(182, 111, 49, .45); outline-offset: 2px; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-light  { background: #faf3e8; color: var(--ink); border-color: rgba(71, 43, 28, .12); }
.btn-light:hover { background: #fff; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: #9d5d26; }
.btn-dark   { background: var(--brown-btn); color: #fff; }
.btn-dark:hover { background: #3d2318; }
.btn-ghost  { background: transparent; color: var(--ink); border-color: rgba(71, 43, 28, .22); }
.btn-ghost:hover { background: #faf3e8; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; height: var(--header-h); background: var(--sand); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 24px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; color: var(--ink); }
.site-nav { display: flex; gap: 30px; }
.site-nav a {
  position: relative; padding: 4px 0; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink);
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transition: transform .2s;
}
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: clamp(500px, 58.4vw, 820px);
  background: #3a2417 url("../img/hero.jpg") 72% center / cover no-repeat; color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(25, 14, 8, .38), rgba(25, 14, 8, 0) 56%);
}
.hero .wrap { position: relative; padding-top: clamp(64px, 9.5vw, 128px); }
.hero h1 { max-width: 11em; font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
.hero p { max-width: 440px; margin: 22px 0 26px; font-size: 13px; line-height: 1.7; color: rgba(255, 255, 255, .88); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Features ---------- */
.features { padding: 38px 0 84px; text-align: center; background: var(--cream); }
.features h2 { font-size: 28px; font-weight: 700; line-height: 1.2; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 38px auto 0; max-width: 1144px; }
.feature { position: relative; padding: 0 28px; }
.feature + .feature::before {
  content: ""; position: absolute; left: 0; top: 68px; height: 140px; width: 1px; background: var(--line);
}
.feature .icon { width: 140px; height: 140px; margin: 0 auto; border-radius: 50%; object-fit: cover; }
.feature h3 { margin-top: 14px; font-size: 24px; font-weight: 700; line-height: 1.5; }
.feature p { margin-top: 6px; font-size: 12px; line-height: 1.7; color: var(--text); }

/* ---------- Why choose us / offer ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 386px; }
.split-why { display: flex; justify-content: space-between; align-items: stretch; background: var(--ink); color: #fff; overflow: hidden; }
.split-why .copy {
  flex: 1 1 auto; align-self: center; padding: 40px 0 40px max(24px, calc((100vw - var(--wrap)) / 2));
}
.split-why h2 { max-width: 7.5em; font-size: 30px; font-weight: 700; line-height: 1.25; }
.split-why p { max-width: 250px; margin: 28px 0 32px; font-size: 12px; line-height: 1.9; }
.split-why img {
  flex: 0 0 auto; width: auto; max-width: 45%; height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%);
}
.split-offer { display: grid; place-content: center; justify-items: center; padding: 48px 24px; text-align: center; background: var(--sand); }
.split-offer .eyebrow { font-size: 13px; font-weight: 500; }
.split-offer h2 { margin-top: 8px; font-size: 30px; font-weight: 700; line-height: 1.25; }
.split-offer p { max-width: 400px; margin: 24px 0 30px; font-size: 12px; line-height: 1.9; color: var(--text); }

/* ---------- Morning happy hour / drinks ---------- */
.morning { position: relative; padding: 96px 0; background: var(--cream); }
.morning .wrap { display: grid; grid-template-columns: minmax(0, 348px) minmax(0, 1fr); column-gap: 46px; align-items: start; }
.kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 12px; font-weight: 500; color: var(--gold); }
.kicker svg { width: 32px; height: 22px; fill: var(--gold); }
.morning h2 { font-size: 32px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.morning .intro { margin: 22px 0 32px; font-size: 12px; line-height: 1.9; color: var(--text); }
.morning .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.drinks h2 { margin: 6px 0 22px 42.4%; font-size: 28px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.drink-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-right: 36px; }
.drink img { width: 100%; aspect-ratio: 1 / .94; object-fit: cover; border-radius: 14px; }
.drink h3 { margin-top: 12px; font-size: 13px; font-weight: 700; line-height: 1.4; }
.drink p { font-size: 11px; line-height: 1.5; color: var(--text); }
.drink .price { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--gold); }

/* ---------- Banner ---------- */
.banner {
  position: relative; display: flex; align-items: center; min-height: 328px;
  background: #2a1a10 url("../img/banner.jpg") center / cover no-repeat; color: #fff;
}
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 11, 6, .5), rgba(20, 11, 6, 0) 50%); }
.banner .wrap { position: relative; }
.banner h2 { font-size: 24px; font-weight: 500; line-height: 1.3; color: #f4e8d8; }
.banner p { max-width: 300px; margin: 12px 0 24px; font-size: 11.5px; line-height: 1.8; color: #e6d6c2; }
.banner .btn { background: rgba(71, 43, 28, .92); color: #fff; }
.banner .btn:hover { background: var(--brown-btn); }

/* ---------- Contact ---------- */
.contact { padding: 84px 0 96px; background: var(--cream); text-align: center; }
.contact h2 { font-size: 28px; font-weight: 700; line-height: 1.2; }
.contact .lead { max-width: 480px; margin: 12px auto 36px; font-size: 12.5px; line-height: 1.8; color: var(--text); }
form { display: grid; gap: 18px; max-width: 560px; margin: 0 auto; text-align: left; }
label { display: grid; gap: 8px; font-size: 13px; font-weight: 500; }
input, textarea {
  width: 100%; padding: 14px 18px; font: 400 14px/1.5 var(--font); color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: #a8998a; }
input:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(182, 111, 49, .22); }
textarea { min-height: 150px; resize: vertical; }
form .submit-row { text-align: center; padding-top: 6px; }
form .btn { min-height: 46px; padding: 0 36px; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
#status { min-height: 1.5em; font-size: 13px; font-weight: 500; text-align: center; }
#status.ok { color: var(--ok); }
#status.err { color: var(--error); }

/* ---------- Footer ---------- */
.site-footer { padding: 32px 0; background: var(--tan); font-size: 12px; line-height: 1.8; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.site-footer strong { font-size: 16px; }
.site-footer small { display: block; font-size: 11px; color: rgba(31, 21, 16, .65); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .morning .wrap { grid-template-columns: 1fr; row-gap: 56px; }
  .morning .intro { max-width: 520px; }
  .drinks h2 { margin-left: 0; }
  .drink-grid { padding-right: 0; }
}
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .feature:nth-child(3)::before { display: none; }
  .split { grid-template-columns: 1fr; }
  .split-why { min-height: 360px; }
  .split-offer { min-height: 340px; }
  .drink-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .brand { font-size: 21px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 13px; }
  .site-nav a:nth-child(n+3):not(:last-child) { display: none; }
  .hero { background-position: 78% center; }
  .hero::before { background: linear-gradient(180deg, rgba(25, 14, 8, .45), rgba(25, 14, 8, .05) 70%); }
  .features { padding-bottom: 64px; }
  .feature { padding: 0 12px; }
  .feature h3 { font-size: 20px; }
  .split-why img { max-width: 40%; }
  .banner { min-height: 300px; }
  .banner::before { background: rgba(20, 11, 6, .45); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .site-nav a::after { transition: none; }
}
