/* Salty's Beach Bar & Restaurant — coastal Tenby */
:root {
  --navy: #003250;
  --navy-deep: #001f33;
  --navy-mid: #25516d;
  --sand: #e8dfd0;
  --sand-light: #f3eee6;
  --foam: #d9e8ef;
  --sea: #4a7a8c;
  --ink: #121820;
  --muted: #5a6570;
  --white: #ffffff;
  --max: 1120px;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Alegreya", "Palatino Linotype", Palatino, serif;
  --font-body: "Arsenal", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--sand-light);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--navy-mid);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy-deep);
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 50, 80, 0.08);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 31, 51, 0.08);
}

.site-header.is-transparent:not(.is-scrolled):not(.is-menu-open) {
  background: transparent;
  border-bottom-color: transparent;
}

.site-header.is-transparent:not(.is-scrolled):not(.is-menu-open) .nav-link,
.site-header.is-transparent:not(.is-scrolled):not(.is-menu-open) .nav-toggle {
  color: var(--white);
}

.site-header.is-transparent:not(.is-scrolled):not(.is-menu-open) .logo-text {
  color: var(--white);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo img {
  width: 52px;
  height: auto;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3em;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  border-radius: 2px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-mid);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.nav-cta {
  padding: 0.7rem 1.2rem;
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.4rem;
  color: var(--navy);
  cursor: pointer;
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: end start;
  color: var(--white);
  overflow: hidden;
  background: var(--navy-deep);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 18s var(--ease) forwards;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 31, 51, 0.35) 0%, rgba(0, 31, 51, 0.25) 40%, rgba(0, 31, 51, 0.72) 100%),
    radial-gradient(ellipse at 20% 80%, rgba(74, 122, 140, 0.25), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 0 12vh;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  animation: rise 1s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  line-height: 0.95;
  margin: 0 0 0.15em;
  letter-spacing: -0.02em;
}

.hero-tag {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 400;
  margin: 0 0 0.75em;
  opacity: 0.95;
}

.hero-lead {
  max-width: 32rem;
  font-size: 1.1rem;
  margin-bottom: 1.75rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sections */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-tight {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}

.section-navy h2,
.section-navy h3 {
  color: var(--white);
}

.section-sand {
  background:
    linear-gradient(160deg, var(--sand-light), var(--foam) 55%, var(--sand));
}

.section-dark {
  position: relative;
  color: var(--white);
  background: var(--navy-deep);
  overflow: hidden;
}

.section-dark .bg-img {
  position: absolute;
  inset: 0;
}

.section-dark .bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.section-dark .container {
  position: relative;
  z-index: 1;
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 0.85rem;
}

.section-navy .eyebrow,
.section-dark .eyebrow {
  color: var(--foam);
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  max-width: 18ch;
}

.section-lead {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.section-navy .section-lead,
.section-dark .section-lead {
  color: rgba(255, 255, 255, 0.82);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split-media {
  position: relative;
  min-height: 420px;
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.split-copy .section-title {
  margin-bottom: 0.75rem;
}

/* Menu highlights */
.dish-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.dish {
  display: grid;
  gap: 1rem;
}

.dish-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy-deep);
}

.dish-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.dish:hover .dish-img img {
  transform: scale(1.04);
}

.dish h3 {
  font-size: 1.45rem;
  margin-bottom: 0.25rem;
}

.dish p {
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-size: 0.98rem;
}

.price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
}

/* Takeaway band */
.band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.band-media {
  position: relative;
  min-height: 280px;
}

.band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--navy);
  color: var(--white);
}

.band-copy h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.band-copy p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 32rem;
}

/* Reviews */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

.quote {
  padding: 0;
  margin: 0;
}

.quote p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--navy-deep);
  margin-bottom: 1rem;
}

.quote cite {
  font-style: normal;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Hours strip */
.hours-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(0, 50, 80, 0.12);
  border-bottom: 1px solid rgba(0, 50, 80, 0.12);
}

/* Page hero (inner) */
.page-hero {
  padding: calc(var(--header-h) + 4rem) 0 3.5rem;
  background:
    linear-gradient(135deg, var(--navy-deep), var(--navy-mid));
  color: var(--white);
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 0.4em;
}

.page-hero p {
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

/* Menu page */
.menu-categories {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 3rem;
}

.menu-cat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0, 50, 80, 0.12);
  text-decoration: none;
  color: inherit;
}

.menu-cat h2 {
  font-size: 1.75rem;
  margin: 0 0 0.25rem;
}

.menu-cat p {
  margin: 0;
  color: var(--muted);
}

.menu-items {
  display: grid;
  gap: 0;
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(0, 50, 80, 0.1);
}

.menu-item h3 {
  font-size: 1.35rem;
  margin: 0 0 0.3rem;
}

.menu-item p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

.menu-item .price {
  white-space: nowrap;
  align-self: start;
  padding-top: 0.2rem;
}

/* About features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.feature {
  padding-top: 1.25rem;
  border-top: 2px solid var(--navy);
}

.feature h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.feature p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.contact-card h2 {
  font-size: 1.75rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin-bottom: 1rem;
}

.contact-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.15rem;
}

.contact-note {
  background: var(--foam);
  padding: 1.5rem;
  border-left: 3px solid var(--navy);
}

.map-embed {
  margin-top: 3rem;
  aspect-ratio: 21 / 9;
  background: var(--navy-deep);
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.2) contrast(1.05);
}

/* Footer */
.site-footer {
  background:
    linear-gradient(180deg, rgba(0, 31, 51, 0.82), rgba(0, 31, 51, 0.92)),
    url("../images/view-moody.jpg") center / cover;
  color: var(--white);
  padding: 4.5rem 0 2rem;
}

.footer-top {
  text-align: center;
  margin-bottom: 3rem;
}

.footer-top h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-meta a {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.socials {
  display: flex;
  gap: 1rem;
}

.socials a {
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* Mobile */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    background: var(--white);
    padding: 1.25rem 1.5rem 1.75rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
    box-shadow: 0 16px 32px rgba(0, 31, 51, 0.12);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    gap: 1rem;
  }

  .site-header.is-transparent .nav-link,
  .site-header.is-transparent .nav-toggle {
    color: var(--navy);
  }

  .site-header.is-transparent.is-menu-open {
    background: rgba(255, 255, 255, 0.98);
  }

  .site-header.is-transparent.is-menu-open .logo-text {
    color: var(--navy);
  }

  .split,
  .band,
  .contact-grid,
  .hours-strip {
    grid-template-columns: 1fr;
  }

  .dish-grid,
  .reviews {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content {
    padding-bottom: 8vh;
  }

  .split-media,
  .split-media img {
    min-height: 280px;
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .logo-text {
    font-size: 1.15rem;
  }

  .menu-item {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
