/* ====== Haven Coffee Co. – Shared Styles ====== */
:root {
  --cream: #f7f3ef;
  --coffee: #6f4e37;
  --latte: #c19a6b;
  --text-dark: #3b2f2f;
  --text-med: #5a4634;
  --shadow: 0 4px 10px rgba(0,0,0,0.1);
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--text-dark);
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
}

/* ====== Header / Nav ====== */
.header {
  position: sticky; top: 0; z-index: 10;
  background: var(--latte);
  color: var(--text-dark);
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; margin: 0 auto; padding: 14px 20px;
}
.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit;
}
.brand h1 { font-size: 1.3rem; letter-spacing: .5px; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: #e8d0b3; color: var(--coffee);
  font-weight: 700;
}

.nav-links {
  display: flex; gap: 16px; align-items: center;
}
.nav-links a {
  text-decoration: none; color: var(--text-dark); font-weight: 600;
  padding: 8px 12px; border-radius: 8px; transition: background .2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  background: rgba(255,255,255,.45);
}

/* Mobile menu (simple show/hide) */
.menu-toggle { display: none; font-size: 26px; cursor: pointer; }
@media (max-width: 780px) {
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; right: 10px; top: 60px; padding: 10px; background: var(--latte); border-radius: 10px; box-shadow: var(--shadow); flex-direction: column; width: 200px; }
  .nav-links.is-open { display: flex; }
}

/* ====== Hero ====== */
.hero {
  position: relative; text-align: center; overflow: hidden;
}
.hero img {
  width: 100%; height: 420px; object-fit: cover; filter: brightness(70%);
}
.hero .hero-text {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 0 16px; color: #fff; text-wrap: balance;
}
.hero .hero-text h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 8px; }
.hero .hero-text p { font-size: clamp(.95rem, 2.2vw, 1.1rem); }

/* ====== Sections / Cards ====== */
.section {
  padding: 48px 20px; max-width: 1100px; margin: 0 auto;
}
.grid {
  display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr);
}
.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
}
.card img { width: 100%; height: 220px; object-fit: cover; }
.card .content { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { color: #4b2e05; font-size: 1.2rem; }
.card p { color: var(--text-med); }

.btn {
  align-self: start; background: var(--coffee); color: #fff; border: none;
  padding: 10px 16px; border-radius: 8px; font-weight: 700; cursor: pointer;
  transition: transform .15s ease, background .2s ease; text-decoration: none; display: inline-flex;
}
.btn:hover { background: #3e2d26; transform: translateY(-1px); }

/* ====== Content Layout (inner pages) ====== */
.page {
  padding: 36px 20px; max-width: 1000px; margin: 0 auto;
}
.lead {
  font-size: 1.05rem; color: var(--text-med); margin-bottom: 18px;
}
.feature {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center;
  background: #fff; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.feature img { width: 100%; height: 320px; object-fit: cover; border-radius: 10px; }
.kicker { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: #6a4a2c; }
.feature h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin: 6px 0 10px; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  background: #efe2d5; color: #5b3d23; padding: 6px 10px; border-radius: 999px; font-size: .85rem; font-weight: 600;
}

.split {
  display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin-top: 20px;
}
.panel {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px;
}
.panel h4 { margin-bottom: 8px; color: #4b2e05; }

/* ====== Footer ====== */
.footer {
  text-align: center; padding: 22px; background: var(--latte);
  color: #3e2d26; font-size: .95rem; margin-top: 44px;
}

/* ====== Responsive ====== */
@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .feature { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr 1fr; }
  .hero img { height: 360px; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .hero img { height: 300px; }
}

