/* ===== 5 South Main — Cohasset, MA ===== */

:root {
  --cream: #f7f1e4;
  --cream-alt: #fffdf8;
  --charcoal: #2a221c;
  --rust: #bd5a38;
  --rust-dark: #9a4529;
  --teal: #275754;
  --teal-dark: #163a38;
  --mustard: #d9a441;
  --line: rgba(42, 34, 28, 0.12);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 84px;
}

body {
  font-family: "Karla", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--charcoal);
  background-color: var(--cream);
  line-height: 1.65;
}

h1, h2, h3, h4, h5,
.font-display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}

a {
  text-decoration: none;
}

.eyebrow {
  font-family: "Karla", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--rust);
}

.section-heading {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.section-pad {
  padding: 5.5rem 0;
}

.divider-rule {
  width: 64px;
  height: 3px;
  background: var(--mustard);
  border: none;
  border-radius: 3px;
  margin: 1.1rem auto 1.6rem;
}

.text-start .divider-rule {
  margin-left: 0;
}

/* ===== Navbar ===== */
.navbar-5sm {
  background-color: var(--cream-alt);
  border-bottom: 1px solid var(--line);
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  transition: box-shadow 0.2s ease;
}

.navbar-5sm.scrolled {
  box-shadow: 0 4px 18px rgba(42, 34, 28, 0.08);
}

.navbar-5sm .navbar-brand {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--charcoal) !important;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.navbar-5sm .navbar-brand img {
  height: 42px;
  width: 42px;
}

.navbar-5sm .nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--charcoal) !important;
  padding: 0.5rem 0.9rem !important;
}

.navbar-5sm .nav-link:hover {
  color: var(--rust) !important;
}

.btn-order {
  background-color: var(--rust);
  color: #fff !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  padding: 0.6rem 1.3rem;
  border-radius: 40px;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-order:hover {
  background-color: var(--rust-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-5sm {
  border: 2px solid #fff;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  padding: 0.65rem 1.6rem;
  border-radius: 40px;
  transition: all 0.2s ease;
}

.btn-outline-5sm:hover {
  background-color: #fff;
  color: var(--charcoal);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: url('img/hero.webp') center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 48%, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.04) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.10) 45%, rgba(0,0,0,0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 2.6rem 2.2rem;
  margin: 0 1rem;
  background: rgba(0,0,0,0.20);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 18px;
}

.hero-eyebrow {
  color: #f2dcb8;
  font-family: "Karla", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.8);
}

.hero-title {
  font-family: "Fraunces", serif;
  font-weight: 900;
  color: #fff;
  font-size: clamp(2.8rem, 7vw, 5rem);
  margin: 0.4rem 0 0.8rem;
  text-shadow: 0 0 4px rgba(0,0,0,1), 0 2px 20px rgba(0,0,0,0.95), 0 0 60px rgba(0,0,0,0.8);
}

.hero-subtitle {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 500;
  max-width: 560px;
  margin: 0 auto 0.9rem;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 2px 16px rgba(0,0,0,0.95), 0 0 40px rgba(0,0,0,0.85);
}

.hero-tagline {
  color: #f2dcb8;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 1rem;
  margin-bottom: 1.7rem;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.9);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== About ===== */
.about-card {
  background: var(--cream-alt);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2.1rem 1.9rem;
  height: 100%;
}

.about-card .icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--mustard);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}

.about-photo {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(42, 34, 28, 0.18);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Menu ===== */
.menu-tabs .nav-link {
  font-family: "Fraunces", serif;
  font-weight: 700;
  color: var(--charcoal);
  background: transparent;
  border: 2px solid var(--line);
  border-radius: 40px;
  padding: 0.6rem 1.8rem;
  margin: 0 0.4rem;
}

.menu-tabs .nav-link.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.menu-category h3 {
  font-size: 1.5rem;
  color: var(--teal);
  border-bottom: 3px solid var(--mustard);
  display: inline-block;
  padding-bottom: 0.3rem;
  margin-bottom: 1.1rem;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.menu-item-name {
  font-weight: 700;
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
}

.menu-item-desc {
  color: #6b5f52;
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.menu-item-price {
  font-family: "Fraunces", serif;
  font-weight: 700;
  color: var(--rust);
  white-space: nowrap;
  font-size: 1.05rem;
}

.menu-subnote {
  background: var(--mustard);
  color: var(--charcoal);
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
}

.menu-highlight {
  background: rgba(39, 87, 84, 0.07);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.4rem;
}

.menu-foot-note {
  font-size: 0.85rem;
  color: #6b5f52;
  font-style: italic;
}

/* ===== Gift Cards ===== */
.giftcard-section {
  background: var(--teal);
  color: #fff;
  position: relative;
}

.giftcard-section h2,
.giftcard-section .eyebrow {
  color: #fff;
}

.giftcard-section .eyebrow {
  color: var(--mustard);
}

.giftcard-section p {
  color: rgba(255,255,255,0.85);
}

.btn-gift {
  background: var(--mustard);
  color: var(--charcoal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.85rem 2.2rem;
  border-radius: 40px;
  font-size: 0.95rem;
  display: inline-block;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-gift:hover {
  background: #e6b968;
  color: var(--charcoal);
  transform: translateY(-2px);
}

/* ===== Gallery ===== */
.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  position: relative;
  aspect-ratio: 4 / 3;
}

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

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

/* ===== Location ===== */
.location-card {
  background: var(--cream-alt);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2.2rem;
  height: 100%;
}

.location-card .info-row {
  display: flex;
  gap: 0.9rem;
  margin-bottom: 1.3rem;
}

.location-card .info-row i {
  color: var(--rust);
  font-size: 1.2rem;
  margin-top: 0.15rem;
}

.location-card .info-row strong {
  display: block;
  font-family: "Fraunces", serif;
}

.map-frame {
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  min-height: 340px;
  box-shadow: 0 18px 40px rgba(42, 34, 28, 0.15);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 2rem;
}

.site-footer h5 {
  color: #fff;
  font-family: "Fraunces", serif;
}

.site-footer a {
  color: rgba(255,255,255,0.75);
}

.site-footer a:hover {
  color: var(--mustard);
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  margin-right: 0.6rem;
  font-size: 1.1rem;
}

.social-icons a:hover {
  background: var(--rust);
  border-color: var(--rust);
  color: #fff;
}

.powered-by {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  text-align: center;
  font-size: 0.9rem;
}

.powered-by a {
  color: var(--mustard);
  font-weight: 700;
}

@media (max-width: 767px) {
  .section-pad {
    padding: 3.75rem 0;
  }
  .menu-item {
    flex-direction: row;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 2rem 1.4rem;
  }
  .hero-title {
    font-size: clamp(2.1rem, 11vw, 5rem);
  }
}
