/* Bonnygelato — Italian Premium / Minimal */

:root {
  --cream: #F7F2E9;
  --ivory: #FFFDF8;
  --pistachio: #8FA86B;
  --pistachio-dark: #6E8650;
  --pistachio-light: #A9BE88;
  --charcoal: #2B2A28;
  --charcoal-soft: #5A5852;
  --gold: #C9A85C;
  --border: #E6DFD2;
  --shadow: 0 8px 30px rgba(43, 42, 40, 0.10);
  --shadow-soft: 0 2px 12px rgba(43, 42, 40, 0.08);
  --maxw: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--charcoal);
  line-height: 1.15;
  margin: 0 0 0.4em;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; color: var(--charcoal-soft); }

a { color: var(--pistachio-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pistachio-dark);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 242, 233, 0.88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--charcoal);
}
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 35px; }
.brand .b { color: var(--charcoal); }
.brand .g { color: var(--pistachio-dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--charcoal-soft);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--charcoal); text-decoration: none; }

.nav-cta {
  padding: 9px 18px;
  border-radius: 12px;
  background: var(--charcoal);
  color: var(--cream) !important;
  font-weight: 500;
}
.nav-cta:hover { background: #1c1b1a; text-decoration: none; }

.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 13px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--pistachio-dark); color: var(--ivory); }
.btn-primary:hover { background: #5c7143; }
.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-outline:hover { background: var(--charcoal); color: var(--cream); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 84px;
}
.hero-copy h1 { margin-bottom: 0.3em; }
.hero-lead {
  font-size: 1.2rem;
  color: var(--charcoal-soft);
  max-width: 30ch;
  margin-bottom: 1.8rem;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media {
  position: relative;
}
.hero-media img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

/* ---------- Sections ---------- */
section { padding: 68px 0; }
.section-head { max-width: 60ch; margin-bottom: 40px; }
.section-alt { background: var(--ivory); border-block: 1px solid var(--border); }

/* Principles */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.principle {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow-soft);
}
.principle h3 { margin-bottom: 0.3em; }
.principle p { margin: 0; }

/* Product grid */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.product-card .meta { padding: 14px 16px 18px; }
.product-card .meta h3 { font-family: "Work Sans", sans-serif; font-size: 1rem; font-weight: 600; margin: 0 0 2px; }
.product-card .meta span { font-size: 0.85rem; color: var(--charcoal-soft); }

/* App section */
.app-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.app-features { list-style: none; padding: 0; margin: 18px 0 0; }
.app-features li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--charcoal-soft);
}
.app-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--pistachio);
}
.app-note {
  margin-top: 22px;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(201, 168, 92, 0.16);
  color: #8a6d2f;
  font-size: 0.9rem;
  font-weight: 500;
}
.app-visual {
  background: linear-gradient(160deg, var(--pistachio-light), var(--pistachio-dark));
  border-radius: 24px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.app-visual img { width: 96px; height: 120px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.18)); }

/* Corporate */
.corporate-card {
  background: var(--charcoal);
  color: var(--cream);
  border-radius: 24px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}
.corporate-card h2 { color: var(--ivory); }
.corporate-card p { color: rgba(247, 242, 233, 0.78); margin: 0; }
.corporate-card .actions { justify-self: end; }
@media (max-width: 760px) {
  .corporate-card { grid-template-columns: 1fr; padding: 32px; }
  .corporate-card .actions { justify-self: start; }
}

/* ---------- Contact / legal pages ---------- */
.page-hero {
  padding: 56px 0 20px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding-bottom: 40px;
}
.info-card {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
}
.info-card h3 { font-family: "Work Sans", sans-serif; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pistachio-dark); margin-bottom: 10px; }
.info-card p { margin: 0; color: var(--charcoal); font-size: 1.05rem; }
.info-card a { color: var(--charcoal); }

.legal {
  max-width: 760px;
  padding: 8px 0 48px;
}
.legal h2 { font-size: 1.4rem; margin-top: 2rem; }
.legal h2:first-of-type { margin-top: 0.5rem; }
.legal p, .legal li { color: var(--charcoal-soft); }
.legal ul { padding-left: 20px; }
.legal .muted { font-size: 0.9rem; color: var(--charcoal-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(247, 242, 233, 0.75);
  padding: 56px 0 32px;
  margin-top: 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(247, 242, 233, 0.14);
}
.site-footer h4 {
  color: var(--ivory);
  font-family: "Work Sans", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.site-footer a { color: rgba(247, 242, 233, 0.75); }
.site-footer a:hover { color: var(--ivory); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 26px; height: 33px; }
.footer-brand .name { font-family: "Playfair Display", serif; font-size: 1.25rem; color: var(--ivory); }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 9px; }
.footer-legal-name { color: var(--ivory); font-weight: 500; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 56px; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 16 / 11; }
  .app-band { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; width: 100%; }
  .nav-cta { display: inline-block; margin-top: 6px; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--ivory);
    cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: "";
    display: block;
    width: 18px; height: 2px;
    background: var(--charcoal);
    position: relative;
  }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after { position: absolute; top: 6px; }
}
@media (max-width: 520px) {
  .products { grid-template-columns: 1fr 1fr; }
  section { padding: 48px 0; }
}
