/* ================================================
   Néctar da Serra — Premium Restaurant Website
   Faithful layout replication
   ================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Nautical chart palette */
  --color-bg:         #eef2f5;
  --color-bg-alt:     #dce6ed;
  --color-surface:    #c8d8e4;
  --color-surface-2:  #b0c4d4;
  --color-text:       #000000;
  --color-text-muted: #444444;
  --color-accent:     #2e86c1;
  --color-accent-light:#5dade2;
  --color-accent-dark:#1b4f72;
  --color-border:     rgba(26,45,74,0.12);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, sans-serif;

  /* Spacing */
  --section-pad-y: clamp(4rem, 8vw, 8rem);
  --container-max: 1140px;
  --container-pad: clamp(1rem, 4vw, 2rem);

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  background-image: url('bg_map.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}
/* Page overlay for contrast over the map */
.page-overlay {
  position: fixed;
  inset: 0;
  background: rgba(238, 242, 245, 0.6);
  z-index: 0;
  pointer-events: none;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width:100%; display:block; }

/* ---------- Container ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ---------- Section Titles ---------- */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.section-description,
.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 680px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .3s var(--ease);
}
.navbar.scrolled {
  background: rgba(220, 230, 237, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--color-border);
  padding: 0.6rem 0;
}
.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: height .3s var(--ease), filter .3s var(--ease);
  filter: drop-shadow(0 1px 3px rgba(26,45,74,0.3));
}
.navbar.scrolled .nav-logo-img {
  height: 40px;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
  padding: 0.25rem 0;
  transition: color .3s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--color-accent);
  transition: width .3s var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-text);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== HERO ========== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('hero_background.png') center/cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,45,74,0.55) 0%,
    rgba(26,45,74,0.25) 40%,
    rgba(26,45,74,0.65) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 var(--container-pad);
}
.hero-tagline {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-accent-light);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp .8s .3s var(--ease) forwards;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp .8s .5s var(--ease) forwards;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp .8s .7s var(--ease) forwards;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .8s .9s var(--ease) forwards;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-indicator span {
  display: block;
  width: 24px; height: 40px;
  border: 2px solid rgba(26,45,74,0.15);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--color-accent-light);
  border-radius: 2px;
  animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
  0%,100% { transform: translateY(0); opacity:1; }
  50%     { transform: translateY(12px); opacity:0; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all .3s var(--ease);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46,134,193,0.35);
}
.btn-outline {
  border-color: rgba(26,45,74,0.3);
  color: var(--color-text);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--color-accent-light);
  color: var(--color-accent-light);
  transform: translateY(-2px);
}

/* Animations */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(24px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ========== ABOUT ========== */
.about {
  position: relative;
  z-index: 1;
  padding: var(--section-pad-y) 0;
  background: rgba(220, 230, 237, 0.88);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.feature-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 16px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(26,45,74,0.15);
  border-color: rgba(46,134,193,0.4);
}
.feature-icon {
  width: 72px; height: 72px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(46,134,193,0.12);
  color: var(--color-accent-light);
  transition: background .3s var(--ease);
}
.feature-card:hover .feature-icon {
  background: rgba(46,134,193,0.22);
}
.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========== MENU ========== */
.menu-section {
  position: relative;
  z-index: 1;
  padding: var(--section-pad-y) 0;
  background: rgba(200, 216, 228, 0.90);
}
.menu-category {
  margin-bottom: 3rem;
}
.menu-category-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-accent-light);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.menu-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
  transition: background .25s var(--ease);
}
.menu-item:hover {
  background: rgba(46,134,193,0.04);
}
.menu-item-info h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
.menu-item-info p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 540px;
}
.menu-item-price {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-accent-light);
  font-weight: 600;
  white-space: nowrap;
  margin-left: 2rem;
  padding-top: 2px;
}
.menu-note {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 1rem;
}

/* ========== STORES ========== */
.stores-section {
  position: relative;
  z-index: 1;
  padding: var(--section-pad-y) 0;
  background: rgba(220, 230, 237, 0.88);
}
.stores-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}
@media (max-width: 600px) {
  .stores-header {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
  }
}
.btn-ifood {
  display: inline-flex !important;
  background-color: #ea1d2c !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px;
  z-index: 10;
  padding: 0.8rem 1.8rem;
}
.btn-ifood:hover {
  background-color: #c01824 !important;
}
.stores-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.store-card {
  position: relative;
  padding: 2rem;
  border-radius: 16px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.store-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(26,45,74,0.15);
  border-color: rgba(46,134,193,0.4);
}
.store-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--color-accent);
  color: #ffffff;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.store-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.store-address {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.store-hours {
  color: var(--color-accent-light);
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}
.store-phone {
  color: var(--color-text-muted);
  font-size: 0.88rem;
}
.store-map {
  margin-top: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ========== FOOTER ========== */
.footer {
  position: relative;
  z-index: 1;
  padding: 4rem 0 2rem;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand h4 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-accent-light);
  margin-bottom: 0.5rem;
}
.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}
.footer-col p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}
.footer-bottom p {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .features-grid,
  .stores-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 70vw; height: 100vh;
    background: var(--color-bg-alt);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right .4s var(--ease);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.15rem; }

  .hero-title { font-size: clamp(2rem,8vw,3.5rem); }

  .menu-item { flex-direction: column; gap: 0.5rem; }
  .menu-item-price { margin-left: 0; }
}

/* ========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 400px;
  background: var(--color-bg);
  color: var(--color-text);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(26,45,74,0.2);
  border: 1px solid var(--color-border);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateY(150%);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}
.cookie-content p {
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}
.cookie-link {
  color: var(--color-accent);
  text-decoration: underline;
  font-weight: 500;
}
.cookie-link:hover {
  color: var(--color-accent-dark);
}
.btn-cookie {
  align-self: flex-end;
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
}
@media (max-width: 768px) {
  .cookie-banner {
    bottom: 0;
    right: 0;
    left: 0;
    max-width: 100%;
    border-radius: 12px 12px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
}

/* ========== SLIDESHOW ========== */
.slider-section {
  position: relative;
  z-index: 1;
  padding: 0 0 4rem; /* Removed top padding to sit closer to stores */
  background: transparent;
}
.slider-container {
  position: relative;
  max-width: 450px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(26,45,74,0.15);
}
.slider-track {
  display: flex;
  transition: transform 0.5s var(--ease);
}
.slide {
  min-width: 100%;
  aspect-ratio: 1 / 1;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  z-index: 10;
}
.slider-btn:hover {
  background: var(--color-accent);
  color: #fff;
}
.slider-prev { left: 1rem; }
.slider-next { right: 1rem; }

.slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.1);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.dot.active {
  background: var(--color-accent);
  transform: scale(1.2);
}
