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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  background: #0d1f2d;
  color: #edf3f6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ─── Variables — Monterey Bay palette ──────────────────────────────────── */
:root {
  --dark:    #0d1f2d;   /* deep Monterey Bay night */
  --dark-2:  #122535;   /* secondary dark */
  --sea:     #3bb5c0;   /* bay teal */
  --sea-lt:  #65cdd8;   /* seafoam hover */
  --sand:    #c4a870;   /* Monterey beach sand */
  --fog:     #edf3f6;   /* coastal morning fog — light bg */
  --fog-dk:  #dce8ec;   /* deeper fog */
  --navy:    #1a3a4f;   /* mid-navy for cards & accents */
  --slate:   #5a7a8c;   /* muted text on light backgrounds */
  --text-lt: #b0ccd8;   /* light text on dark */
}

/* ─── Sticky Nav ────────────────────────────────────────────────────────── */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 31, 45, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(59, 181, 192, 0.15);
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}

.sticky-nav.visible { transform: translateY(0); }

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

.sticky-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sticky-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.sticky-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fog);
  letter-spacing: 0.03em;
}

.sticky-links {
  display: flex;
  gap: 28px;
}

.sticky-links a {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-lt);
  transition: color 0.2s;
}

.sticky-links a:hover { color: var(--sea-lt); }

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100dvh;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 48px 24px 80px;
}

/* Ocean spotlight — positioned to sit behind the logo */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 28% 36% at 50% 31%, #1e5268 0%, #102535 45%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.hero-logo {
  width: min(360px, 80vw);
  filter: drop-shadow(0 8px 40px rgba(59, 181, 192, 0.2));
  animation: fadeUp 1s ease both;
}

.hero-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  animation: fadeUp 1s ease 0.2s both;
}

.nav-link {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-lt);
  transition: color 0.25s;
}

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

.nav-dot {
  color: var(--sea);
  font-size: 1.1rem;
  line-height: 1;
}

/* Down arrow */
.scroll-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(90, 122, 140, 0.45);
  border-radius: 50%;
  color: var(--text-lt);
  margin-top: 36px;
  opacity: 0;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

/* Step 1: fade in once */
.scroll-arrow.arrow-fadein {
  animation: fadeUp 1s ease 0.3s both;
}

/* Step 2: stay visible after fade completes */
.scroll-arrow.arrow-loaded {
  opacity: 1;
}

/* Step 3: bounce (only when this class is present) */
.scroll-arrow.is-bouncing {
  animation: bounce 2.5s ease-in-out infinite;
}

.scroll-arrow:hover {
  color: var(--sea-lt);
  border-color: var(--sea);
  background: rgba(59, 181, 192, 0.12);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}

/* 831 Togo block — below arrow */
/* ─── Togo Sliver ────────────────────────────────────────────────────────── */
.togo-sliver {
  position: relative;
  padding: 64px 24px;
  background-image: url('img/svc-dining.jpg');
  background-size: cover;
  background-position: center 60%;
  overflow: hidden;
}

.togo-sliver::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 24, 36, 0.88) 40%, rgba(20, 55, 75, 0.78) 100%);
  z-index: 0;
}

.togo-sliver-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 80px;
}

.togo-sliver-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--fog);
  line-height: 1.2;
}

.togo-sliver-btn {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fog);
  border: 1px solid rgba(237, 243, 246, 0.5);
  border-radius: 40px;
  padding: 13px 28px;
  white-space: nowrap;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.togo-sliver-btn:hover {
  color: var(--dark);
  background: var(--fog);
  border-color: var(--fog);
}

/* ─── Sections ──────────────────────────────────────────────────────────── */
.section {
  padding: 100px 24px;
}

.section-fog {
  background: var(--fog);
  color: var(--dark);
}

.section-dark {
  background: var(--dark-2);
  color: var(--fog);
}

/* Services — dark so cards are clearly legible */
.section-services {
  background: var(--dark);
  color: var(--fog);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.container-narrow {
  max-width: 680px;
  text-align: center;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 14px;
}

/* On light backgrounds use a slightly deeper teal for readability */
.section-fog .section-label,
.section-services .section-label { color: #2a96a4; }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--fog);
  margin-bottom: 24px;
}

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

.section-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--slate);
  margin-bottom: 16px;
}

.section-body.light { color: var(--text-lt); }

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 36px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s, transform 0.15s;
}

.btn:hover { transform: translateY(-2px); }

.btn-dark {
  background: var(--navy);
  color: #fff;
}

.btn-dark:hover { background: var(--dark); }

.btn-sea {
  background: var(--sea);
  color: #fff;
}

.btn-sea:hover { background: var(--sea-lt); }

/* ─── About Grid ────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.photo-placeholder {
  aspect-ratio: 3/4;
  background: #0d2030;
  border: 1px dashed rgba(59, 181, 192, 0.25);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.7;
}

.about-bio-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
  display: block;
}

/* ─── Social / Contact under inquiry ───────────────────────────────────── */
.ig-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border: 1.5px solid #a0b8c4;
  border-radius: 40px;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--slate);
  transition: color 0.25s, border-color 0.25s;
}

.ig-btn:hover {
  color: var(--sea);
  border-color: var(--sea);
}

.social-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.contact-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.contact-item {
  font-size: 0.9rem;
  color: var(--slate);
  transition: color 0.2s;
}

.contact-item:hover { color: var(--sea); }

.contact-dot {
  color: var(--sea);
  font-size: 1rem;
}

/* ─── Services ──────────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 48px;
}

.service-card {
  position: relative;
  height: 160px;
  overflow: hidden;
  border-radius: 6px;
  cursor: default;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.service-card:hover img,
.service-card:active img {
  transform: scale(1.07);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 25, 40, 0.82) 0%,
    rgba(10, 25, 40, 0.25) 55%,
    transparent 100%
  );
  transition: background 0.35s;
}

.service-card:hover .service-card-overlay,
.service-card:active .service-card-overlay {
  background: linear-gradient(
    to top,
    rgba(10, 25, 40, 0.70) 0%,
    rgba(10, 25, 40, 0.15) 55%,
    transparent 100%
  );
}

.service-card h3 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 20px 16px;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

/* Teal accent bar slides in on hover/tap */
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sea);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.service-card:hover::after,
.service-card:active::after {
  transform: scaleX(1);
}

/* Touch devices — teal bar always faintly visible so cards feel tappable */
@media (hover: none) {
  .service-card::after {
    transform: scaleX(1);
    opacity: 0.3;
    transition: opacity 0.2s;
  }
  .service-card:active::after { opacity: 1; }
  .service-card img { transition: transform 0.2s ease; }
  .service-card:active img { transform: scale(1.04); }
}

/* ─── Menu section ──────────────────────────────────────────────────────── */
.section-menu {
  background: #f0f7f9;
  color: var(--dark);
}

.menu-custom-note {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--slate);
  margin-bottom: 36px;
}

.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.menu-tab {
  background: transparent;
  border: 1px solid rgba(26, 58, 79, 0.2);
  border-radius: 40px;
  color: var(--navy);
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 9px 22px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.menu-tab:hover {
  border-color: var(--sea);
  color: var(--sea);
}

.menu-tab.active {
  background: var(--sea);
  border-color: var(--sea);
  color: #fff;
}

/* Fixed-height overlay via CSS Grid — panels stack in same cell */
.menu-panels {
  display: grid;
}

.menu-panel {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
}

.menu-panel.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s;
}

.menu-panel.exiting {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.menu-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 48px;
}

.menu-list li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(13, 31, 45, 0.07);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-list li:last-child,
.menu-list li:nth-last-child(2):nth-child(odd) {
  border-bottom: none;
}

.menu-list li strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.01em;
}

.menu-list li span {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--slate);
  line-height: 1.6;
}

/* ─── Gallery ───────────────────────────────────────────────────────────── */
.section-gallery {
  background: var(--fog);
  padding-top: 20px;
}

.photo-grid {
  columns: 3;
  column-gap: 10px;
}

.photo-item {
  break-inside: avoid;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 3px;
}

.photo-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease, opacity 0.3s;
  opacity: 0.92;
}

.photo-item:hover img {
  transform: scale(1.03);
  opacity: 1;
}

/* ─── Past Clients ──────────────────────────────────────────────────────── */
.clients-section {
  background: #fff;
  padding-top: 64px;
  padding-bottom: 64px;
}

.clients-section .section-label {
  color: #2a96a4;
  text-align: center;
  margin-bottom: 36px;
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px 64px;
}

.client-logo img {
  height: 52px;
  width: auto;
  opacity: 0.4;
  filter: grayscale(100%);
  transition: opacity 0.25s;
}

.client-logo:hover img { opacity: 0.75; }

/* ─── Footer ────────────────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  padding: 60px 24px;
  text-align: center;
  border-top: 1px solid rgba(59, 181, 192, 0.12);
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.footer-logo {
  width: 90px;
  opacity: 0.9;
  filter: drop-shadow(0 0 16px rgba(59, 181, 192, 0.35)) drop-shadow(0 4px 20px rgba(30, 82, 104, 0.6));
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}

.footer-links a {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-lt);
  transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

.footer-social {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-social a {
  color: var(--slate);
  display: flex;
  transition: color 0.25s, transform 0.2s;
}

.footer-social a:hover {
  color: var(--sea-lt);
  transform: translateY(-2px);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fog);
  transition: color 0.2s;
}

.footer-contact-item:hover { color: var(--sea-lt); }

.footer-contact-item svg { color: var(--slate); flex-shrink: 0; }

.footer-copy {
  font-size: 0.75rem;
  color: var(--slate);
}

/* ─── Scroll Reveal ─────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

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

/* ─── Hamburger (hidden on desktop) ────────────────────────────────────── */
.hamburger { display: none; }
.mobile-menu { display: none; }

/* ─── Tablet (≤ 860px) ──────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo-wrap { order: -1; }
  .photo-placeholder { aspect-ratio: 4/3; }
  .photo-grid { columns: 2; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .menu-list { grid-template-columns: 1fr; }
  .menu-list li:nth-child(odd) { border-right: none; }
}

/* ─── Mobile (≤ 640px) ──────────────────────────────────────────────────── */
@media (max-width: 640px) {

  /* Sticky nav always visible; hamburger replaces links */
  .sticky-nav { transform: translateY(0) !important; }
  .sticky-links { display: none; }
  .sticky-nav-inner { padding: 10px 20px; }
  .sticky-name { font-size: 0.88rem; }
  .sticky-logo { width: 30px; height: 30px; }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 4px;
  }
  .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-lt);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Mobile dropdown */
  .mobile-menu {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s ease;
    background: rgba(13, 31, 45, 0.98);
    border-top: 1px solid rgba(59, 181, 192, 0.1);
  }
  .mobile-menu.open { max-height: 400px; padding: 8px 0 12px; }
  .mobile-menu a {
    display: block;
    padding: 13px 24px;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-lt);
    transition: color 0.2s, background 0.2s;
  }
  .mobile-menu a:active { color: var(--sea-lt); background: rgba(59,181,192,0.06); }

  /* Hero */
  .hero { padding: 80px 20px 72px; }
  .hero-logo { width: min(210px, 58vw); }
  .hero::before {
    background: radial-gradient(ellipse 55% 28% at 50% 44%, #1e5268 0%, #102535 45%, transparent 72%);
  }
  .hero-inner { gap: 24px; }
  .hero-nav { display: none; }
  /* Togo sliver */
  .togo-sliver { padding: 48px 24px; }
  .togo-sliver-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .togo-sliver-btn { align-self: flex-start; }

  /* Sections */
  .section { padding: 56px 20px; }
  .section-gallery { padding-top: 10px; }

  /* Contact */
  .social-btns { justify-content: center; }
  .contact-info { flex-direction: column; gap: 4px; }
  .contact-dot { display: none; }

  /* Services */
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .service-card { height: 130px; }
  .service-card h3 { font-size: 0.82rem; padding: 12px 10px 10px; }

  /* About */
  .about-grid { gap: 28px; }

  /* Menu */
  .menu-tabs { gap: 6px; }
  .menu-tab { font-size: 0.68rem; letter-spacing: 0.1em; padding: 8px 12px; }
  .menu-list li { padding: 12px 0; }
  .menu-custom-note { font-size: 0.82rem; }

  /* Gallery */
  .photo-grid { columns: 2; column-gap: 6px; }
  .photo-item { margin-bottom: 6px; }

  /* Past clients */
  .clients-section { padding: 44px 20px; }
  .clients-grid { gap: 20px 28px; }
  .client-logo img { height: 32px; }

  /* Footer */
  .footer { padding: 44px 20px; }
  .footer-logo { width: 64px; }
  .footer-links { gap: 6px 16px; }
  .footer-contact { gap: 6px; }
  .footer-social { gap: 24px; }
}

/* ─── Small phone (≤ 380px) ─────────────────────────────────────────────── */
@media (max-width: 380px) {
  .hero-logo { width: min(180px, 56vw); }
  .photo-grid { columns: 1; }
  .service-card { height: 110px; }
}
