/* Saigon Box — Vietnamese Restaurant, Grenå */

:root {
  /* Paletten er fem farver. Alt andet herunder er de samme fem ved lavere styrke */
  --teal: #2A9D8F;
  --teal-dark: #1F7A6F;
  --cream: #E8D9B5;
  --ivory: #FBF8F2;
  --ink: #4A4038;

  --teal-soft: rgba(42, 157, 143, 0.12);
  --ink-soft: rgba(74, 64, 56, 0.85);
  --line: rgba(74, 64, 56, 0.18);
  --line-strong: rgba(74, 64, 56, 0.3);

  --shadow: 0 4px 24px rgba(74, 64, 56, 0.08);
  --shadow-lg: 0 12px 48px rgba(74, 64, 56, 0.12);
  --radius: 12px;
  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --max-width: 1100px;
  --nav-height: 88px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Navigation ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 217, 181, 0.8);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  position: relative;
}

.logo img {
  height: 48px;
  width: auto;
  display: block;
  position: relative;
  z-index: 1;
}

.site-header .logo::before {
  content: "";
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--teal);
  z-index: 0;
}

.site-header .logo img {
  height: 64px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 1px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-select {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--teal-dark);
  background: transparent;
  border: 1px solid rgba(42, 157, 143, 0.35);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.lang-select:hover,
.lang-select:focus {
  border-color: var(--teal);
  background: rgba(42, 157, 143, 0.06);
  outline: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--ink);
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
}

/* ── Hero ── */

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  max-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--ivory) 0%, var(--cream) 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image:
    radial-gradient(circle at 20% 80%, var(--teal) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, var(--teal) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(42, 157, 143, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  display: grid;
  grid-template-columns: 160px minmax(260px, 1fr) 160px;
  gap: 2rem;
  align-items: start;
  justify-items: center;
}

.hero-side {
  width: 200px;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  margin-top: 4.0rem;
}

.hero-side:first-child {
  transform: rotate(-5deg);
}

.hero-side:last-child {
  transform: rotate(5deg);
}

.hero-side:empty {
  visibility: hidden;
}

.hero-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  padding: 1rem 0;
  text-align: center;
  color: var(--teal-dark);
}

.hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(42, 157, 143, 0.35);
  border-radius: 999px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  color: var(--teal-dark);
}

.hero h1 em {
  font-style: italic;
  color: var(--teal);
}

.hero-lead {
  font-size: 1.2rem;
  max-width: 32rem;
  margin: 0 auto 2.5rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--teal-dark);
  color: var(--ivory);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(31, 122, 111, 0.25);
}

.btn-primary:hover {
  background: var(--teal);
  box-shadow: 0 6px 28px rgba(31, 122, 111, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--teal-dark);
  border-color: var(--teal-dark);
}

.btn-outline:hover {
  background: rgba(42, 157, 143, 0.08);
  border-color: var(--teal-dark);
}

/* ── Sections ── */

main {
  flex: 1;
}

.section {
  padding: 5rem 1.5rem;
  background: var(--cream);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 1rem;
}

.section-intro {
  color: var(--ink-soft);
  max-width: 36rem;
  margin-bottom: 3rem;
}

/* ── Feature cards (forside) ── */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--ivory);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: box-shadow 0.25s, transform 0.25s;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-soft);
  color: var(--teal-dark);
  border-radius: 10px;
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--teal-dark);
}

.feature-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ── About ── */

.about-text {
  max-width: 40rem;
}

.about-text p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ── Page header (undersider) ── */

.page-hero {
  background: linear-gradient(180deg, var(--ivory) 0%, var(--cream) 100%);
  color: var(--ink-soft);
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--teal-dark);
}

.page-hero p {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink-soft);
}

/* ── Menu ── */

.menu-allergen-note {
  color: var(--ink-soft);
  font-size: 0.9rem;
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.menu-allergen-note a {
  color: var(--teal-dark);
  font-weight: 600;
}

.menu-noscript {
  text-align: center;
  color: var(--ink-soft);
}

.menu-noscript a {
  color: var(--teal-dark);
  font-weight: 600;
}

.menu-category {
  margin-bottom: 3.5rem;
}

.menu-category:last-child {
  margin-bottom: 0;
}

.menu-category h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.35rem);
  color: var(--teal-dark);
  margin-bottom: 0.35rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--line);
  display: inline-block;
}

.menu-category .category-desc {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.menu-items {
  list-style: none;
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item.has-image {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "head thumb"
    "info thumb"
    "price thumb";
  column-gap: 1.35rem;
  row-gap: 0;
  align-items: start;
  padding: 1.35rem 0;
}

.menu-item.has-image .menu-item-thumb {
  grid-area: thumb;
  z-index: 0;
}

.menu-item.has-image .menu-item-head {
  grid-area: head;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.menu-item.has-image .menu-item-info {
  grid-area: info;
  min-width: 0;
  overflow: hidden;
}

.menu-item.has-image .menu-item-price {
  grid-area: price;
  align-self: start;
  justify-self: start;
  margin-top: 0.35rem;
}

.menu-item-thumb {
  display: grid;
  width: 256px;
  height: 160px;
  max-width: 100%;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  flex-shrink: 0;
  isolation: isolate;
}

.menu-item-thumb img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.menu-item-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  min-width: 0;
  margin-bottom: 0.3rem;
}

.menu-tag-row {
  flex: 1 0 100%;
  display: block;
  min-width: 0;
}

.menu-tag {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.15em 0.5em;
  background: var(--teal-soft);
  color: var(--ink);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.menu-item-no {
  flex-shrink: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--teal-dark);
  white-space: nowrap;
}

/* 1.2rem/700 gør navnet til "stor tekst" i WCAG, hvor 3:1 er nok.
   Ved 1.1rem/600 ville tyrkis på creme falde igennem. */
.menu-item-head h3 {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal-dark);
  overflow-wrap: break-word;
}

.menu-item-info p {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.menu-item-price {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

/* ── Contact ── */

.contact-card {
  max-width: 32rem;
  margin: 0 auto;
  background: var(--ivory);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 1px solid var(--line);
}

.contact-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  background: var(--teal-soft);
  color: var(--teal-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 32px;
  height: 32px;
}

.contact-card h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--teal-dark);
}

.contact-card .subtitle {
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  color: var(--teal-dark);
  transition: color 0.2s;
}

.phone-link:hover {
  color: var(--teal);
}

.phone-link svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.contact-meta {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.contact-meta strong {
  display: block;
  color: var(--teal-dark);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* ── Lunch offer ── */

.lunch-offer-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.lunch-offer {
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.lunch-offer-section .lunch-offer {
  margin-bottom: 0;
}

.lunch-offer .section-label {
  margin-bottom: 0.5rem;
}

.lunch-offer-price {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.lunch-offer > p:last-of-type {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.menu-category .lunch-offer {
  margin: 0 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.menu-category .lunch-offer > p:last-of-type {
  margin-bottom: 0;
}

/* ── CTA band ── */

.cta-band {
  background: var(--ivory);
  color: var(--ink-soft);
  padding: 4rem 1.5rem;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
  color: var(--teal-dark);
  font-weight: 700;
}

.cta-band p {
  font-weight: 500;
  margin-bottom: 1.75rem;
}

/* ── Footer ── */

.site-footer {
  background: var(--ink);
  color: rgba(251, 248, 242, 0.85);
  padding: 3rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem 3rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand .logo {
  display: inline-flex;
  margin-bottom: 1rem;
}

.footer-brand .logo img {
  height: 64px;
}

.footer-brand .social-link {
  display: inline-flex;
  margin-top: 0;
}

.footer-copy {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(251, 248, 242, 0.15);
  text-align: center;
  opacity: 0.55;
  font-size: 0.8rem;
}

.footer-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.85rem;
}

.footer-col p {
  margin: 0 0 1rem;
}

.footer-col p:last-child {
  margin-bottom: 0;
}

.footer-hours {
  line-height: 1.45;
}

.footer-col a {
  color: inherit;
}

.footer-col a:hover {
  color: var(--ivory);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(251, 248, 242, 0.35);
  border-radius: 50%;
  color: var(--ivory);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.social-link:hover {
  background: rgba(251, 248, 242, 0.12);
  border-color: var(--ivory);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    border-bottom: 1px solid var(--line);
  }

  .nav-links a {
    display: block;
    padding: 1rem 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand {
    align-items: center;
    gap: 1.25rem;
  }

  .footer-brand .logo {
    margin-bottom: 0;
  }

  .footer-brand .social-link {
    margin-left: auto;
    margin-right: auto;
  }

  .hero {
    min-height: auto;
    max-height: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
    gap: 0;
  }

  .hero-side {
    display: none;
  }

  .hero-content {
    padding: 0;
  }

  .section {
    padding: 3.5rem 1.5rem;
  }

  .contact-card {
    padding: 2rem 1.5rem;
  }

  .menu-item-head {
    display: block;
    line-height: 1.3;
  }

  .menu-item-no {
    font-size: 0.9rem;
    margin-right: 0.35em;
  }

  .menu-item-head h3 {
    display: inline;
    font-size: 0.9rem;
  }

  .menu-tag-row {
    margin-top: 0.3rem;
  }

  .menu-item.has-image {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "head thumb"
      "info info"
      "price price";
    column-gap: 0.75rem;
    row-gap: 0.45rem;
    align-items: start;
  }

  .menu-item.has-image .menu-item-head {
    margin-bottom: 0;
  }

  .menu-item.has-image .menu-item-head .menu-tag {
    display: inline-block;
    width: max-content;
  }

  .menu-item.has-image .menu-item-thumb {
    width: clamp(148px, 42vw, 196px);
    height: auto;
    aspect-ratio: 16 / 10;
    justify-self: end;
    align-self: start;
  }

  .menu-item.has-image .menu-item-price {
    margin-top: 0;
  }
}

/* ── Forside — kun det, der stadig afviger fra standardtemaet. ── */

.page-home .section-about,
.page-home .feature-card {
  background: var(--ivory);
}

.page-home .section-label,
.page-home .section-title,
.page-home .feature-card h3 {
  font-weight: 700;
}

.page-home .section-intro,
.page-home .about-text p,
.page-home .feature-card p {
  font-weight: 500;
}

.page-home .feature-card {
  border-color: rgba(42, 157, 143, 0.15);
}
