/* ═══════════════════════════════════════════════════════════════
   Bianchini Family Website — Shared Stylesheet
   Load this on every page, followed by a page-specific stylesheet.
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. Custom Properties (design tokens) ── */
:root {
  --clay:      #C07060;
  --straw:     #C8A870;
  --vine:      #7A8C72;
  --creek:     #7A9EAA;
  --earth:     #6B4A38;
  --limestone: #EDE4D4;
  --ink:       #2C2620;
  --page:      #F7F3EC;
}

/* ── 2. Reset & Box Model ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── 3. Base Styles ── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── 4. Layout Utilities ── */
.container { max-width: 1160px; margin: 0 auto; }

section { padding: 100px 40px; }
@media (max-width: 768px) { section { padding: 70px 24px; } }

/* ── 5. Typography ── */
.section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 24px;
}
.section-title em { font-style: italic; color: var(--earth); }
.section-subtitle {
  font-size: 1rem;
  color: #7a6a5a;
  line-height: 1.8;
  font-weight: 300;
  max-width: 580px;
}
.divider {
  width: 48px;
  height: 2px;
  background: var(--straw);
  margin: 20px 0;
}

/* ── 6. Component: Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  transition: background 0.35s, box-shadow 0.35s;
}
nav.scrolled {
  background: rgba(44, 38, 32, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.nav-logo img {
  height: 36px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--straw); }
.nav-cta {
  background: var(--clay);
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: 100px;
  letter-spacing: 1px !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: #a85e50 !important; color: #fff !important; }

/* Mobile nav toggle */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(44, 38, 32, 0.98);
  padding: 24px 40px;
  z-index: 99;
  flex-direction: column;
  gap: 20px;
}
.mobile-menu a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu.open { display: flex; }

@media (max-width: 768px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* Instagram nav icon */
.nav-instagram {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  margin-left: 4px;
  padding: 6px;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}
.nav-instagram:hover { color: #fff; background: rgba(255,255,255,0.1); }
@media (max-width: 768px) { .nav-instagram { display: flex; } }

/* ── 7. Component: Footer ── */
footer {
  background: var(--ink);
  padding: 60px 40px 36px;
}
@media (max-width: 768px) { footer { padding: 48px 24px 28px; } }
.footer-inner { max-width: 1160px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand img { height: 32px; margin-bottom: 16px; }
.footer-brand p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
  font-weight: 300;
}
.footer-col h4 {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--straw);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.75rem; color: rgba(255,255,255,0.3); }

/* ── 8. Component: Buttons ── */
.btn-primary {
  background: var(--clay);
  color: #fff;
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: #a85e50; transform: translateY(-1px); }

.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff;
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* ── 9. Component: Forms (shared between contact & order) ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9a8878;
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e8e0d4;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--page);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clay);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit {
  width: 100%;
  background: var(--clay);
  color: #fff;
  padding: 15px;
  border: none;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}
.form-submit:hover { background: #a85e50; }

/* ── 10. Utility: Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── 11. Utility: Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}
