/* The Wharf Bar & Kitchen — shared stylesheet */

:root {
  --navy: #16324a;
  --navy-dark: #0d1f30;
  --cream: #f4f1ea;
  --cream-alt: #eceae2;
  --ink: #161616;
  --white: #ffffff;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

a { color: inherit; text-decoration: none; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* Header / Nav */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
}
.site-header.solid {
  position: relative;
  background: var(--navy);
}
.site-header.solid .nav-link { color: var(--white); }
.logo-badge img { height: 56px; width: auto; border-radius: 4px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}
.nav-link {
  color: var(--white);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { border-bottom-color: currentColor; }
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}
.btn:hover { opacity: 0.8; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--white);
  color: var(--white);
}
.nav-cta { background: #a9c6da; color: var(--ink); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.site-header.solid .menu-toggle { color: var(--white); }

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  color: var(--white);
  overflow: hidden;
}
.hero-full {
  min-height: 100vh;
  justify-content: space-between;
  padding-top: 210px;
  padding-bottom: 0;
}
.hero video, .hero .hero-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}
.hero-heading {
  position: relative;
  z-index: 2;
  padding: 0 40px;
  text-align: center;
}
.hero-heading h1 {
  font-size: clamp(2.8rem, 8vw, 6rem);
}
.hero-heading .sub {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 40px 24px;
  text-align: center;
}
.hero-blurb {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Sections */
section { padding: 96px 0; }
.section-alt { background: var(--cream-alt); }
.section-navy { background: var(--navy); color: var(--white); }
.center { text-align: center; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: #7a7a7a;
  margin-bottom: 8px;
}

/* Testimonials over image */
.testimonial-banner {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 60px 40px;
}
.testimonial-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(10,20,30,0.45);
}
.testimonial-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto 64px;
}
.testimonial-grid blockquote { font-size: 1.15rem; font-style: italic; }
.testimonial-grid cite { display: block; margin-top: 12px; font-style: normal; font-weight: 600; }
.testimonial-cta {
  position: relative; z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-cta h2 { font-size: clamp(2rem, 5vw, 3.2rem); }

/* Grid layouts */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.photo-strip img { height: 320px; object-fit: cover; width: 100%; }

.card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
}
.card img { height: 240px; object-fit: cover; width: 100%; }
.card-body { padding: 20px; }
.card-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card-body p { font-size: 0.92rem; color: #444; }

/* Footer */
.site-footer {
  background: var(--cream-alt);
  padding: 72px 0 40px;
}
.site-footer .wrap { max-width: 1300px; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 48px;
}
.footer-grid h3 { font-size: 1.4rem; margin-bottom: 16px; }
.hours-row { display: flex; gap: 16px; padding: 4px 0; font-size: 0.95rem; }
.hours-row span:first-child { min-width: 72px; }
.social-icons { display: flex; gap: 16px; margin-top: 16px; }
.social-icons a {
  width: 40px; height: 40px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.footer-note { margin-top: 40px; font-size: 0.85rem; color: #666; text-align: center; }

/* Menu page */
.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid #ddd;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.menu-tab {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: none; border: none; font-family: inherit;
}
.menu-tab.active { border-bottom-color: var(--ink); font-weight: 600; }
.menu-section { display: none; }
.menu-section.active { display: block; }
.menu-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
.menu-item h4 { font-size: 1.05rem; text-transform: uppercase; margin-bottom: 6px; letter-spacing: 0.02em; }
.menu-item p { font-size: 0.92rem; color: #444; }
.menu-note { text-align: center; max-width: 640px; margin: 24px auto 0; font-size: 0.9rem; color: #555; }

/* Forms */
.enquiry-form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
input, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
}
textarea { min-height: 140px; resize: vertical; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.checkbox-row input { width: auto; }

/* Booking embed */
.booking-embed { max-width: 760px; margin: 60px auto 0; position: relative; z-index: 2; background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.25); }
.booking-embed iframe { width: 100%; border: none; display: block; }

/* Buy gift card hero */
.gift-hero { text-align: center; padding: 120px 0 60px; }
.gift-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); max-width: 800px; margin: 0 auto 32px; }

/* Contact */
.contact-block { margin-bottom: 40px; }
.contact-block h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: #7a7a7a; margin-bottom: 8px; }
.contact-block p, .contact-block a { font-size: 1.1rem; }

@media (max-width: 1080px) {
  .site-header { padding: 20px 24px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--navy-dark);
    padding: 16px 24px 24px;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 10px 0; width: 100%; }
  .menu-toggle { display: block; }
  .grid-2, .grid-3, .photo-strip, .form-row, .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
  .menu-items { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
