/* =============================================
   Harbour & Vine — NZ Static Restaurant Site
   Palette: off-white · dark grey · olive green
   ============================================= */

:root {
  --white: #faf8f5;
  --beige: #f0ebe3;
  --beige-dark: #ddd5c8;
  --grey-dark: #2a2a2a;
  --grey-mid: #5a5a5a;
  --grey-light: #8c8c8c;
  --olive: #5c6b4a;
  --olive-dark: #4a573c;
  --olive-light: #e8ede3;
  --shadow: 0 4px 24px rgba(42, 42, 42, 0.07);
  --radius: 10px;
  --radius-pill: 999px;
  --max-w: 1140px;
  --nav-h: 80px;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--grey-dark);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--olive);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--olive-dark); }

/* ---- Header / Nav ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(250, 248, 245, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--beige-dark);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  color: var(--grey-dark);
  white-space: nowrap;
}
.logo span { color: var(--olive); }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--grey-mid);
  background: var(--beige);
  border: 1px solid var(--beige-dark);
  border-radius: var(--radius-pill);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--olive);
  color: #fff;
  border-color: var(--olive);
}

.nav-toggle {
  display: none;
  background: var(--beige);
  border: 1px solid var(--beige-dark);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--grey-dark);
  line-height: 1;
}

/* ---- Layout ---- */
main { flex: 1; padding-top: var(--nav-h); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 4.5rem 0; }
.section-sm { padding: 3rem 0; }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--grey-mid);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.page-header {
  text-align: center;
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--beige-dark);
  margin-bottom: 1rem;
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.page-header p { color: var(--grey-mid); }

/* ---- Hero ---- */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero p {
  color: var(--grey-mid);
  max-width: 540px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

.hero-img {
  margin-top: 3rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-img figcaption,
.img-note {
  font-size: 0.78rem;
  color: var(--grey-light);
  font-style: italic;
  padding: 0.5rem 0;
  text-align: center;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
}

.btn-primary { background: var(--olive); color: #fff; }
.btn-primary:hover { background: var(--olive-dark); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--olive);
  border: 1.5px solid var(--olive);
}
.btn-outline:hover { background: var(--olive); color: #fff; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---- Grid & Cards ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }

.card {
  background: #fff;
  border: 1px solid var(--beige-dark);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.card p { color: var(--grey-mid); font-size: 0.95rem; }

.card-img {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}

/* ---- Menu ---- */
.menu-cat { margin-bottom: 3rem; }

.menu-cat h2 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--olive);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--beige-dark);
  margin-bottom: 1rem;
}

.menu-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--beige);
}

.menu-row:last-child { border-bottom: none; }

.menu-row h3 {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.menu-row p { font-size: 0.9rem; color: var(--grey-mid); }

.menu-price {
  font-weight: 600;
  color: var(--olive);
  white-space: nowrap;
}

.menu-note {
  font-size: 0.85rem;
  color: var(--grey-light);
  font-style: italic;
  margin-top: 2rem;
}

/* ---- Form ---- */
.form-wrap {
  max-width: 580px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--beige-dark);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 1.4rem; }

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.form-group label .req { color: #b54a4a; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--grey-dark);
  background: var(--white);
  border: 1px solid var(--beige-dark);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--olive);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #b54a4a;
}

.form-group textarea { resize: vertical; min-height: 100px; }

.field-error {
  display: none;
  font-size: 0.82rem;
  color: #b54a4a;
  margin-top: 0.35rem;
}

.field-error.show { display: block; }

.form-hint {
  font-size: 0.82rem;
  color: var(--grey-light);
  margin-top: 0.3rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
  accent-color: var(--olive);
}

.checkbox-group label {
  font-size: 0.88rem;
  color: var(--grey-mid);
  line-height: 1.55;
  font-weight: 400;
}

.form-submit { width: 100%; }

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  text-align: center;
}

.form-status.error {
  display: block;
  background: #fdf0f0;
  color: #8b3333;
  border: 1px solid #e8c4c4;
}

/* ---- Modal ---- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(42, 42, 42, 0.45);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open { display: flex; }

.modal-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}

.modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  background: var(--olive-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--olive);
}

.modal-box h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.modal-box p {
  color: var(--grey-mid);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* ---- About ---- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-split p { color: var(--grey-mid); margin-bottom: 1rem; }

.values li {
  list-style: none;
  padding: 0.75rem 0 0.75rem 1.5rem;
  position: relative;
  color: var(--grey-mid);
  border-bottom: 1px solid var(--beige);
}

.values li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.15rem;
  width: 7px; height: 7px;
  background: var(--olive);
  border-radius: 50%;
}

.hours td {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--beige);
  font-size: 0.95rem;
}
.hours td:last-child { text-align: right; color: var(--grey-mid); }

/* ---- Privacy page ---- */
.legal { max-width: 740px; }
.legal h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin: 2rem 0 0.65rem;
}
.legal p, .legal li {
  font-size: 0.94rem;
  color: var(--grey-mid);
  margin-bottom: 0.7rem;
}
.legal ul { padding-left: 1.3rem; margin-bottom: 1rem; }

/* ---- Footer ---- */
.site-footer {
  background: var(--grey-dark);
  color: #b8b8b8;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-top .logo { color: #fff; display: block; margin-bottom: 0.75rem; }
.footer-top p { font-size: 0.9rem; line-height: 1.65; }

.footer-addr strong {
  display: block;
  color: #fff;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.footer-addr { font-size: 0.9rem; line-height: 1.7; }

.footer-legal {
  border-top: 1px solid #444;
  padding-top: 2rem;
}

.footer-legal h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: #fff;
  font-weight: 400;
  margin-bottom: 1rem;
}

.footer-legal-text {
  font-size: 0.78rem;
  line-height: 1.65;
  color: #888;
}

.footer-legal-text p { margin-bottom: 0.7rem; }

.footer-bottom {
  border-top: 1px solid #444;
  margin-top: 2rem;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #666;
}

.footer-bottom a { color: #999; }
.footer-bottom a:hover { color: #fff; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 1rem 1.5rem 1.25rem;
    border-bottom: 1px solid var(--beige-dark);
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; font-size: 1rem; }

  .grid-2, .grid-3, .about-split, .footer-top { grid-template-columns: 1fr; }

  .hero { padding: 3rem 0 2.5rem; }
  .section { padding: 3rem 0; }
  .form-wrap { padding: 1.75rem; }

  .menu-row { flex-direction: column; gap: 0.2rem; }
}
