/* ============================================
   GROOVE GALLERIA — clean spring design system
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #F7F6F1;
  --bg-raised: #EFEDE4;
  --border: #DEDACB;
  --ink: #1A1D18;
  --ink-soft: #4A4E45;
  --grey: #7A7D74;
  --green: #3C5B3E;
  --green-dark: #2A4029;
  --sage: #8FA888;
  --sage-soft: rgba(143, 168, 136, 0.15);

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;

  --radius-lg: 10px;
  --radius-md: 8px;
  --radius-full: 40px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  overflow-x: hidden;
  line-height: 1.55;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- NAV ---------- */
nav {
  width: 100%;
  padding: 20px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 1000;
  background: rgba(247,246,241,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--ink);
}

.nav-links { display: flex; gap: 34px; list-style: none; }

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.88rem;
  letter-spacing: 0.3px;
  transition: 0.3s;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--green); }

.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--green);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
}
.nav-toggle span { width: 22px; height: 1.5px; background: var(--ink); transition: 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(75vw, 320px);
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 34px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    border-left: 1px solid var(--border);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  background: var(--green);
  color: var(--bg);
  text-decoration: none;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.3px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}
.btn:hover { background: var(--green-dark); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
}
.btn-outline:hover { background: var(--sage-soft); border-color: var(--sage); color: var(--green); transform: none; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ---------- HERO (home) ---------- */
.hero {
  height: 100vh;
  min-height: 560px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-image { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26,29,24,0.15), rgba(26,29,24,0.55));
}
.hero-content { position: relative; z-index: 10; max-width: 680px; padding: 20px; color: #fff; }
.hero-tag {
  display: inline-block;
  padding: 7px 18px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-full);
  margin-bottom: 25px;
  font-size: 0.75rem;
  letter-spacing: 2px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}
.hero-content h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 4.4rem;
  line-height: 1;
  margin-bottom: 22px;
  letter-spacing: -1px;
}
.hero-content p {
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 32px;
  font-size: 1.02rem;
  font-weight: 300;
}
.scroll-down {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem; letter-spacing: 3px; opacity: 0.75; z-index: 10; color: #fff;
}

/* ---------- PAGE HERO (interior pages) ---------- */
.page-hero { padding: 160px 8% 60px; max-width: 1300px; margin: 0 auto; }
.page-hero .eyebrow {
  color: var(--green);
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.8rem;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.page-hero p { color: var(--ink-soft); max-width: 520px; font-size: 0.98rem; line-height: 1.7; font-weight: 300; }

/* ---------- SECTIONS ---------- */
section.section { width: 92%; max-width: 1300px; margin: 0 auto 90px; }
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 32px; flex-wrap: wrap; gap: 15px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: -0.3px;
}
.section-header p { color: var(--grey); font-size: 0.9rem; font-weight: 300; }

/* ---------- FILTERS (shop) ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn {
  padding: 9px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.82rem;
  cursor: pointer;
  transition: 0.25s;
}
.filter-btn:hover { border-color: var(--sage); color: var(--green); }
.filter-btn.active { background: var(--green); border-color: var(--green); color: var(--bg); font-weight: 500; }

/* ---------- PRODUCTS ---------- */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: 0.4s ease;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s ease forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.product:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(26,29,24,0.08); border-color: var(--sage); }
.product img { width: 100%; height: 260px; object-fit: cover; background: var(--bg-raised); }
.product-info { padding: 18px; }
.product-category { color: var(--green); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.product h3 { font-size: 0.98rem; margin-bottom: 8px; font-weight: 500; }
.product-price { font-size: 1.08rem; font-weight: 600; margin-bottom: 8px; }
.stock { color: var(--grey); margin-bottom: 16px; font-size: 0.85rem; font-weight: 300; }
.order-btn {
  display: block; width: 100%; text-align: center; padding: 11px;
  background: var(--green); color: var(--bg); text-decoration: none;
  border-radius: var(--radius-md); font-weight: 500; transition: 0.3s; font-size: 0.86rem;
}
.order-btn:hover { background: var(--green-dark); }

.empty-state, .loading-state {
  grid-column: 1 / -1; text-align: center; padding: 55px 20px;
  color: var(--grey); border: 1px dashed var(--border); border-radius: var(--radius-lg);
  font-weight: 300;
}

@media (max-width: 1100px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } .product img { height: 180px; } }
@media (max-width: 480px) { .products-grid { grid-template-columns: 1fr; } }

/* ---------- ABOUT ---------- */
.about-hero-img { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 56px; border: 1px solid var(--border); }
.about-block { max-width: 680px; margin-bottom: 56px; }
.about-block h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.7rem; letter-spacing: -0.3px; margin-bottom: 16px; }
.about-block p { color: var(--ink-soft); margin-bottom: 12px; font-size: 0.98rem; line-height: 1.75; font-weight: 300; }

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 64px; }
.value-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 22px; }
.value-card .num { color: var(--sage); font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 10px; display: block; }
.value-card h3 { font-size: 1rem; margin-bottom: 8px; font-weight: 500; }
.value-card p { color: var(--grey); font-size: 0.86rem; line-height: 1.6; font-weight: 300; }

@media (max-width: 900px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values-grid { grid-template-columns: 1fr; } .about-hero-img { height: 240px; } }

.cta-banner {
  text-align: center; padding: 64px 40px;
  background: var(--green); color: var(--bg);
  border-radius: var(--radius-lg);
}
.cta-banner h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.7rem; margin-bottom: 12px; }
.cta-banner p { color: rgba(247,246,241,0.85); margin-bottom: 26px; max-width: 460px; margin-left: auto; margin-right: auto; font-weight: 300; }
.cta-banner .btn { background: var(--bg); color: var(--green); }
.cta-banner .btn:hover { background: #fff; }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; margin-bottom: 18px; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 8px; font-weight: 500; }
.contact-card p { color: var(--grey); font-size: 0.9rem; margin-bottom: 16px; line-height: 1.6; font-weight: 300; }

.social-row { display: flex; gap: 12px; margin-top: 18px; }
.social-row a {
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 50%; text-decoration: none; transition: 0.25s; font-size: 0.8rem;
}
.social-row a:hover { border-color: var(--sage); color: var(--green); }

form.contact-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 0.82rem; color: var(--ink-soft); }
.field input, .field textarea {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 13px 15px; color: var(--ink); font-family: var(--font-body); font-size: 0.92rem;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); }
.field textarea { resize: vertical; min-height: 110px; }
.form-status { font-size: 0.85rem; margin-top: 2px; min-height: 20px; }
.form-status.success { color: var(--green); }
.form-status.error { color: #a4453e; }

@media (max-width: 850px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- FOOTER ---------- */
footer { padding: 46px 8% 28px; border-top: 1px solid var(--border); text-align: center; color: var(--grey); }
footer .footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
footer .footer-links a { text-decoration: none; color: var(--ink-soft); font-size: 0.85rem; }
footer .footer-links a:hover { color: var(--green); }
footer p { font-size: 0.82rem; font-weight: 300; }
