/* ==========================================================================
   Amari Bar and Ristorante — Tuscan trattoria, East Sandwich MA
   ========================================================================== */

:root {
  --olive: #4b5c3a;
  --olive-dark: #2f3a25;
  --olive-light: #6d8253;
  --terracotta: #b5602f;
  --terracotta-light: #d9885a;
  --cream: #faf5ea;
  --cream-2: #f1e7d3;
  --ink: #2a2420;
  --ink-soft: #55493e;
  --gold: #c9a15a;

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

h1, h2, h3, h4, .display-font {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--olive-dark);
}

a {
  text-decoration: none;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 700;
}

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

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

.btn-terracotta {
  background: var(--terracotta);
  border: 1px solid var(--terracotta);
  color: #fff;
  padding: 0.75rem 1.9rem;
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn-terracotta:hover {
  background: #99502a;
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-cream {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  padding: 0.75rem 1.9rem;
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
}
.btn-outline-cream:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--olive-dark);
}

.btn-olive {
  background: var(--olive);
  border: 1px solid var(--olive);
  color: #fff;
  padding: 0.7rem 1.7rem;
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-olive:hover {
  background: var(--olive-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* ---------------- Navbar ---------------- */
.navbar-amari {
  background: rgba(42, 36, 32, 0.96);
  padding: 0.65rem 0;
  transition: background 0.25s ease;
}

.navbar-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.navbar-logo-chip {
  background: var(--cream);
  border-radius: 8px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.navbar-logo-chip img {
  height: 34px;
  width: auto;
  display: block;
}

.navbar-brand-text {
  font-family: var(--font-display);
  color: #fff !important;
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.navbar-brand-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.navbar-amari .nav-link {
  color: #f1e7d3 !important;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  padding: 0.5rem 0.75rem !important;
  white-space: nowrap;
}

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

.navbar-amari .nav-giftcard {
  background: var(--terracotta);
  color: #fff !important;
  border-radius: 2px;
  padding: 0.5rem 1.1rem !important;
  margin-left: 0.4rem;
}

.navbar-amari .nav-giftcard:hover {
  background: #99502a;
  color: #fff !important;
}

.navbar-amari .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.55);
}

.navbar-amari .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 48%, rgba(47, 58, 37, 0.55) 0%, rgba(47, 58, 37, 0.08) 100%),
    linear-gradient(to bottom, rgba(42, 36, 32, 0.42) 0%, rgba(181, 96, 47, 0.22) 45%, rgba(42, 36, 32, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: calc(100% - 2rem);
  max-width: 780px;
  margin-inline: auto;
  padding: 2.75rem 2rem;
  background: rgba(20, 18, 14, 0.22);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 4px;
}

.hero-eyebrow {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 700;
  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);
  overflow-wrap: break-word;
}

.hero-title {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 700;
  margin: 0.6rem 0 0.9rem;
  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);
  overflow-wrap: break-word;
}

.hero-subtitle {
  color: #fdf8ee;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-family: var(--font-display);
  font-style: italic;
  margin-bottom: 1.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);
  overflow-wrap: break-word;
}

.hero-cta-row {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 100%;
}

.hero-cta-row a {
  white-space: nowrap;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  font-size: 1.4rem;
  opacity: 0.85;
  animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------------- Our Story ---------------- */
.story-section {
  background: var(--cream);
}

.story-divider {
  color: var(--terracotta);
  font-size: 1.4rem;
  margin: 0.5rem 0 1.75rem;
}

.story-text p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.8;
  text-align: left;
}

/* ---------------- Why Choose (feature cards) ---------------- */
.features-section {
  background: var(--olive-dark);
  color: var(--cream);
}

.features-section .section-eyebrow {
  color: var(--gold);
}

.features-section .section-title {
  color: #fff;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 161, 90, 0.25);
  border-radius: 6px;
  padding: 2.25rem 1.75rem;
  height: 100%;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
  color: #fff;
}

.feature-card h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.feature-card p {
  color: var(--cream-2);
  font-size: 0.96rem;
  line-height: 1.65;
  margin: 0;
}

/* ---------------- Menu ---------------- */
.menu-section {
  background: var(--cream);
}

.menu-category {
  margin-bottom: 3rem;
}

.menu-category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--gold);
}

.menu-category-header i {
  color: var(--terracotta);
  font-size: 1.3rem;
}

.menu-category-header h3 {
  margin: 0;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.menu-item-name {
  font-weight: 700;
  color: var(--ink);
  font-size: 1.02rem;
}

.menu-item-desc {
  color: var(--ink-soft);
  font-size: 0.88rem;
  display: block;
  margin-top: 0.15rem;
  line-height: 1.5;
}

.menu-item-price {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--terracotta);
  font-size: 1.05rem;
  white-space: nowrap;
}

.menu-item-dots {
  flex: 1;
  border-bottom: 1px dotted rgba(85, 73, 62, 0.35);
  margin-bottom: 0.35rem;
}

/* ---------------- Takeout / Amari Express ---------------- */
.takeout-section {
  background: var(--terracotta);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.takeout-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(181, 96, 47, 0.95), rgba(75, 92, 58, 0.92));
}

.takeout-inner {
  position: relative;
  z-index: 1;
}

.takeout-section .section-eyebrow {
  color: var(--cream);
}

.takeout-section h2 {
  color: #fff;
}

.takeout-section p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  line-height: 1.7;
}

.takeout-pizza-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.takeout-pizza-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.takeout-pizza-list li span:last-child {
  font-weight: 700;
}

.takeout-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 3rem 2rem;
  text-align: center;
}

.takeout-badge i {
  font-size: 3.5rem;
  color: var(--cream);
  opacity: 0.9;
}

.takeout-badge-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-top: 1rem;
}

.takeout-badge-sub {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.4rem;
}

/* ---------------- Gallery ---------------- */
.gallery-section {
  background: var(--cream-2);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  box-shadow: 0 10px 24px rgba(42, 36, 32, 0.15);
}

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

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

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.7rem 1rem;
  background: linear-gradient(to top, rgba(20, 18, 14, 0.75), transparent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ---------------- Hours & Events ---------------- */
.hours-section {
  background: var(--olive);
  color: #fff;
}

.hours-section .section-eyebrow {
  color: var(--gold);
}

.hours-section h2 {
  color: #fff;
}

.hours-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 2rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 1rem;
}

.hours-row:last-child {
  border-bottom: none;
}

.hours-row .day {
  font-weight: 700;
}

.events-text p {
  color: var(--cream-2);
  line-height: 1.75;
  font-size: 1.02rem;
}

/* ---------------- Location & Contact ---------------- */
.location-section {
  background: var(--cream);
}

.contact-card {
  background: #fff;
  border-radius: 6px;
  padding: 2.25rem;
  box-shadow: 0 10px 30px rgba(42, 36, 32, 0.1);
  height: 100%;
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
}

.contact-line i {
  color: var(--terracotta);
  font-size: 1.15rem;
  margin-top: 0.2rem;
}

.contact-line a {
  color: var(--ink);
  font-weight: 600;
}

.contact-line a:hover {
  color: var(--terracotta);
}

.map-frame {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(42, 36, 32, 0.15);
  height: 100%;
  min-height: 340px;
}

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

/* ---------------- Footer ---------------- */
.footer-amari {
  background: var(--ink);
  color: var(--cream-2);
  padding: 3.5rem 0 1.5rem;
}

.footer-logo-chip {
  background: var(--cream);
  border-radius: 8px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.1rem;
}

.footer-logo-chip img {
  height: 46px;
  width: auto;
  display: block;
}

.footer-amari h5 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 1.1rem;
}

.footer-amari a {
  color: var(--cream-2);
}

.footer-amari a:hover {
  color: var(--gold);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
  font-size: 0.94rem;
}

.footer-powered {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(241, 231, 211, 0.65);
}

.footer-powered a {
  color: var(--gold);
  font-weight: 700;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 767.98px) {
  .section-pad {
    padding: 3.75rem 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .hero-content {
    padding: 2rem 1.25rem;
  }

  .hero-eyebrow {
    letter-spacing: 0.16em;
    font-size: 0.72rem;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-row a {
    white-space: normal;
  }

  .navbar-amari .nav-giftcard {
    margin-left: 0;
    margin-top: 0.4rem;
    display: inline-block;
  }
}

@media (max-width: 575.98px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
