/* ============================================
   The Barking Crab – style.css
   Palette: Navy · Coral · Cream · Gold
   Fonts: Playfair Display + Raleway
   ============================================ */

:root {
  --navy:       #0c1f33;
  --navy-light: #1a3a52;
  --coral:      #c94330;
  --coral-dark: #a8361f;
  --gold:       #d4933a;
  --cream:      #f5ede0;
  --sand:       #ede0cc;
  --white:      #ffffff;
  --text:       #2a1f1a;
  --text-muted: #6b5f55;
  --radius:     4px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', sans-serif;
  color: var(--text);
  background: var(--cream);
  margin: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
}

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

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

.py-6 { padding-top: 5rem; padding-bottom: 5rem; }

/* ── Navbar ────────────────────────────────── */
#mainNav {
  background: transparent;
  padding: 1rem 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
  z-index: 1050;
}

#mainNav.nav-scrolled {
  background: var(--navy);
  padding: 0.5rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
}

.navbar-brand {
  color: var(--white) !important;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

.brand-name {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--white);
}

@media (max-width: 575px) {
  .brand-name { display: none; }
}

.logo-img {
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.navbar-toggler {
  border: 1.5px solid rgba(255,255,255,0.5);
  color: var(--white);
  padding: 0.3rem 0.6rem;
}

.navbar-toggler .bi { font-size: 1.4rem; color: var(--white); }

.nav-link {
  color: rgba(255,255,255,0.88) !important;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem !important;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--gold) !important; }

.nav-phone {
  background: var(--coral);
  border-radius: 50px;
  padding: 0.4rem 1rem !important;
  color: var(--white) !important;
  transition: background 0.2s !important;
}
.nav-phone:hover { background: var(--coral-dark) !important; color: var(--white) !important; }

/* Mobile nav background */
@media (max-width: 991px) {
  #navbarNav {
    background: var(--navy);
    border-radius: 0 0 8px 8px;
    padding: 1rem;
    margin-top: 0.5rem;
  }
}

/* ── Hero ──────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100svh;
  background: url('img/hero.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 6rem 1.5rem 3rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(12, 31, 51, 0.72) 0%,
    rgba(12, 31, 51, 0.35) 60%,
    rgba(201, 67, 48, 0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-block;
  background: var(--coral);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  margin: 0 0 1.2rem;
  text-shadow: 0 3px 20px rgba(0,0,0,0.4);
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  font-weight: 400;
  max-width: 480px;
  line-height: 1.6;
  margin: 0;
}

.btn-hero-primary {
  background: var(--coral);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  border: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-hero-primary:hover { background: var(--coral-dark); color: var(--white); transform: translateY(-2px); }

.btn-hero-outline {
  background: transparent;
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.6);
  transition: border-color 0.2s, color 0.2s;
}
.btn-hero-outline:hover { border-color: var(--white); color: var(--white); }

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.7);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.hero-scroll-hint .bi { font-size: 1.4rem; animation: bounce 2s infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ── Stats Band ────────────────────────────── */
.stats-band {
  background: var(--coral);
  padding: 2rem 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.25);
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-top: 0.35rem;
}

/* ── Section Headers ───────────────────────── */
.section-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.75rem;
}

.section-tag--light { color: rgba(255,255,255,0.65); }

.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 500px;
  margin: 0.5rem auto 0;
}

/* ── Featured Cards ────────────────────────── */
.featured-section { background: var(--cream); }

.featured-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  height: 100%;
  border-bottom: 4px solid var(--sand);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.featured-card:hover {
  border-color: var(--coral);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.featured-card--highlight {
  background: var(--navy);
  color: var(--white);
  border-bottom-color: var(--gold);
}

.featured-card--highlight h3,
.featured-card--highlight p { color: rgba(255,255,255,0.9); }

.featured-card-icon {
  font-size: 2rem;
  color: var(--coral);
  margin-bottom: 1.2rem;
  line-height: 1;
}
.featured-card--highlight .featured-card-icon { color: var(--gold); }

.featured-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.featured-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.featured-price {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--coral);
}
.featured-card--highlight .featured-price { color: var(--gold); }

/* ── Menu Section ──────────────────────────── */
.menu-section { background: var(--white); }

.menu-tabs .nav-link {
  font-family: 'Raleway', sans-serif !important;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted) !important;
  background: transparent;
  border: 1.5px solid var(--sand);
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  transition: all 0.2s;
}

.menu-tabs .nav-link:hover {
  color: var(--navy) !important;
  border-color: var(--navy);
}

.menu-tabs .nav-link.active {
  background: var(--navy) !important;
  color: var(--white) !important;
  border-color: var(--navy);
}

.menu-item {
  background: var(--cream);
  border-radius: 6px;
  padding: 1.2rem 1.4rem;
  border-left: 3px solid transparent;
  transition: border-color 0.2s, box-shadow 0.15s;
}

.menu-item:hover {
  border-left-color: var(--coral);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.menu-item--lobster {
  border-left: 3px solid var(--gold);
}

.menu-item--platter {
  border-left: 3px solid var(--navy);
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.menu-item-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  flex: 1;
}

.menu-item-name small {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.menu-item-price {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--coral);
  white-space: nowrap;
}

.menu-item-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

.lobster-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 0.3rem;
}

.lobster-sizes span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.lobster-sizes strong {
  color: var(--coral);
}

.menu-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.menu-allergen {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Gallery ───────────────────────────────── */
.gallery-section { background: var(--navy); }

.gallery-section .section-title { color: var(--white); }
.gallery-section .section-tag { color: var(--gold); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 260px);
  gap: 3px;
}

.gallery-item {
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-item:hover img { transform: scale(1.07); }

@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, 180px);
  }
}

/* ── About ─────────────────────────────────── */
.about-section { background: var(--cream); }

.about-img-wrap {
  position: relative;
  border-radius: 8px;
  overflow: visible;
  min-height: 300px;
}

.about-img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 16px 16px 0 var(--sand);
  display: block;
}

.about-img-badge {
  position: absolute;
  bottom: -1.2rem;
  right: -0.5rem;
  background: var(--coral);
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.about-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.btn-outline-primary-custom {
  border: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  background: transparent;
  transition: all 0.2s;
}
.btn-outline-primary-custom:hover {
  background: var(--navy);
  color: var(--white);
}

/* ── Extras (Events & Gift Cards) ─────────── */
.extras-section { background: var(--sand); }

.extras-card {
  border-radius: 8px;
  min-height: 320px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.extras-card--events {
  background: var(--navy);
}

.extras-card--giftcards {
  background: var(--navy-light);
}

.extras-card-content {
  padding: 3rem 2.5rem;
  color: var(--white);
}

.extras-icon {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: block;
}

.extras-card h3 {
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.extras-card p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.extras-card .btn-light {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 50px;
  padding: 0.65rem 1.5rem;
  color: var(--navy);
}

/* ── Contact / Location ────────────────────── */
.contact-section {
  background: var(--navy);
}

.contact-section .section-title { color: var(--white); }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-block {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.contact-block .bi {
  font-size: 1.3rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.contact-block h5 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
  font-family: 'Raleway', sans-serif;
}

.contact-block p {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.contact-block a {
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.contact-block a:hover { color: var(--gold); }

.contact-note {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.contact-note .bi { color: var(--coral); }

.map-wrapper {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.map-wrapper iframe { display: block; }

/* ── Footer ────────────────────────────────── */
.site-footer {
  background: #060f1a;
  padding: 3rem 0 1.5rem;
}

.footer-tagline {
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
  margin: 0;
}

.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

.social-links a {
  color: rgba(255,255,255,0.65);
  font-size: 1.2rem;
  transition: color 0.2s;
}
.social-links a:hover { color: var(--gold); }

.footer-address {
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  line-height: 1.7;
  margin: 0;
}

.footer-address a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-address a:hover { color: var(--gold); }

.footer-divider {
  border-color: rgba(255,255,255,0.1);
  margin: 2rem 0 1.5rem;
}

.footer-powered {
  color: rgba(255,255,255,0.4);
  font-size: 0.78rem;
  margin: 0;
}

.footer-powered a {
  color: var(--gold);
  font-weight: 600;
  transition: color 0.2s;
}
.footer-powered a:hover { color: var(--white); }

/* ── Responsive tweaks ─────────────────────── */
@media (max-width: 767px) {
  .py-6 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .hero-section { padding-top: 5rem; }

  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .stat-item:last-child { border-bottom: none; }

  .about-img-wrap { margin-bottom: 2rem; }
  .about-img-badge { right: 0.5rem; }

  .extras-card-content { padding: 2rem 1.5rem; }

  .menu-item-header { flex-direction: column; gap: 0.2rem; }
  .menu-item-price { font-size: 0.95rem; }
}

@media (max-width: 400px) {
  .hero-title { font-size: 2.5rem; }
}
