/* ============================================
   O CEADOIRO — Restaurant Website Styles
   Color Palette: Deep Navy (#0f1c3f) + Warm Gold (#c9a84c)
   Fonts: Cormorant Garamond + Montserrat
   ============================================ */

/* ── Reset & Base ─────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #0f1c3f;
  --navy-light: #1a2d56;
  --navy-dark: #091229;
  --gold: #c9a84c;
  --gold-light: #d4b96a;
  --gold-dark: #b8943f;
  --white: #ffffff;
  --off-white: #f8f7f4;
  --cream: #f2f0ea;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-300: #d1d1d1;
  --gray-500: #888888;
  --gray-700: #444444;
  --gray-900: #1a1a1a;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, sans-serif;
  --transition: 0.3s ease;
  --transition-slow: 0.6s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.7;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ───────────────────────────── */
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 20px;
}

.title-line {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 28px;
}

.title-line-center {
  margin-left: auto;
  margin-right: auto;
}

/* ── Buttons ──────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline-light:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ── Navigation ───────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition);
}

.nav.scrolled {
  background: rgba(15, 28, 63, 0.95);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.2);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-mark {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
}

.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-link {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

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

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle-line {
  width: 22px;
  height: 1px;
  background: var(--white);
  transition: all var(--transition);
  transform-origin: center;
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.active .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .nav-toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--navy-dark);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-link {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.05em;
  transition: color var(--transition);
}

.mobile-menu-link:hover {
  color: var(--gold);
}

/* ── Hero ─────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(9, 18, 41, 0.55) 0%,
    rgba(15, 28, 63, 0.65) 50%,
    rgba(9, 18, 41, 0.80) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  padding: 0 24px;
}

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

.hero-subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-divider {
  width: 50px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 32px;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
  animation: scrollBounce 2s infinite;
}

.hero-scroll:hover {
  color: var(--gold);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── About ────────────────────────────────── */
.about {
  padding: 120px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 2px;
}

.about-image-accent {
  position: absolute;
  top: -16px;
  left: -16px;
  right: 16px;
  bottom: 16px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  z-index: -1;
}

.about-content {
  padding: 20px 0;
}

.about-text {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--gray-700);
  line-height: 1.9;
  margin-bottom: 20px;
}

.about-features {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--gray-200);
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: 0.03em;
}

.about-feature svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* ── Menu ─────────────────────────────────── */
.menu {
  padding: 120px 0;
  background: var(--off-white);
}

.menu-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.menu-intro {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--gray-700);
  line-height: 1.8;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.menu-category {
  padding: 40px 32px;
  background: var(--white);
  border-radius: 2px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.menu-category:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 40px rgba(15, 28, 63, 0.06);
  transform: translateY(-2px);
}

.category-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}

.category-title svg {
  color: var(--gold);
}

.menu-item {
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 4px;
}

.menu-item-desc {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--gray-500);
  line-height: 1.6;
}

.menu-note {
  text-align: center;
  margin-top: 48px;
  padding: 0 24px;
}

.menu-note p {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--gray-500);
  font-style: italic;
  max-width: 500px;
  margin: 0 auto;
}

/* ── Divider ──────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.divider-icon {
  color: var(--gold);
  flex-shrink: 0;
}

/* ── Gallery ──────────────────────────────── */
.gallery {
  padding: 100px 0 120px;
  background: var(--white);
}

.gallery-header {
  text-align: center;
  max-width: 500px;
  margin: 0 auto 64px;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 3/2;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 28, 63, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay span {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.05em;
}

/* ── CTA ──────────────────────────────────── */
.cta {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 18, 41, 0.75);
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

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

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

.cta-text {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Contact ──────────────────────────────── */
.contact {
  padding: 120px 0;
  background: var(--off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-detail svg {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.contact-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.6;
}

.contact-value a {
  color: var(--navy);
  transition: color var(--transition);
}

.contact-value a:hover {
  color: var(--gold);
}

.contact-form-wrap {
  background: var(--white);
  padding: 48px;
  border-radius: 2px;
  border: 1px solid var(--gray-200);
}

.form-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--gray-500);
  margin-bottom: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--gray-900);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gray-200);
  outline: none;
  transition: border-color var(--transition);
  border-radius: 0;
}

.form-input:focus {
  border-color: var(--gold);
}

.form-input::placeholder {
  color: var(--gray-300);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 20px;
  text-align: center;
}

.form-success.show {
  display: flex;
}

.form-success svg {
  color: var(--gold);
}

.form-success p {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--gray-700);
}

/* ── Map ──────────────────────────────────── */
.map-section {
  height: 350px;
  background: var(--gray-100);
}

.map-section iframe {
  filter: grayscale(60%) contrast(1.05);
  transition: filter var(--transition);
}

.map-section:hover iframe {
  filter: grayscale(20%) contrast(1.05);
}

/* ── Footer ───────────────────────────────── */
.footer {
  background: var(--navy-dark);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo-mark {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
}

.footer-logo-text {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--white);
}

.footer-tagline {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-top: 4px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact p,
.footer-contact a {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

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

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
}

/* ── Reveal Animations ────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 1024px) {
  .about-grid {
    gap: 48px;
  }

  .menu-grid {
    gap: 24px;
  }

  .contact-grid {
    gap: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-wrap img {
    height: 350px;
  }

  .about-features {
    flex-direction: column;
    gap: 16px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .menu-category {
    padding: 28px 24px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-form-wrap {
    padding: 32px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 500px;
  }

  .about,
  .menu,
  .gallery,
  .cta,
  .contact {
    padding: 80px 0;
  }

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