/*
 * Navam Tandoori — South Indian customer theme
 * Presentation-only overrides. Application behaviour remains in the compiled bundle.
 */

:root {
  --brand-primary: #9b3527;
  --brand-primary-hover: #76251c;
  --brand-secondary: #203b2c;
  --brand-accent: #d9a441;
  --brand-bg: #fffaf0;
  --color-brand-primary: #9b3527;
  --color-brand-primary-hover: #76251c;
  --color-brand-secondary: #203b2c;
  --color-brand-accent: #d9a441;
  --color-brand-bg: #fffaf0;
  --si-ivory: #fffaf0;
  --si-cream: #f7ecd6;
  --si-maroon: #76251c;
  --si-chilli: #9b3527;
  --si-gold: #d9a441;
  --si-green: #315a3c;
  --si-ink: #251711;
}

body {
  background:
    radial-gradient(circle at 8% 12%, rgba(217, 164, 65, 0.09), transparent 24rem),
    var(--si-ivory);
  color: var(--si-ink);
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: Georgia, "Times New Roman", serif !important;
  letter-spacing: -0.025em;
}

/* Header */
header {
  border-top: 4px solid var(--si-gold) !important;
  border-bottom-color: rgba(118, 37, 28, 0.13) !important;
  background: rgba(255, 250, 240, 0.96) !important;
  box-shadow: 0 12px 34px rgba(72, 40, 22, 0.09) !important;
}

header .font-display {
  color: var(--si-maroon) !important;
  font-weight: 700 !important;
}

header nav button {
  position: relative;
  color: #49372d !important;
}

header nav button::after {
  position: absolute;
  right: 0.75rem;
  bottom: 0.3rem;
  left: 0.75rem;
  height: 2px;
  border-radius: 999px;
  background: var(--si-gold);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: 180ms ease;
}

header nav button:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

header img[alt="Logo"], footer img[alt="Logo"] {
  filter: sepia(0.35) saturate(1.2) hue-rotate(332deg);
}

/* Hero */
main:has(img[alt="Fried Chicken Background"]) section:first-of-type {
  min-height: 88vh !important;
  background-color: #1d120d !important;
  background-image:
    linear-gradient(90deg, rgba(25, 13, 9, 0.96) 0%, rgba(43, 23, 15, 0.86) 38%, rgba(39, 21, 13, 0.22) 72%),
    url("/assets/south-indian-hero.webp") !important;
  background-position: center center !important;
  background-size: cover !important;
}

main:has(img[alt="Fried Chicken Background"]) section:first-of-type::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(217, 164, 65, 0.14), transparent 22rem),
    linear-gradient(180deg, transparent 72%, rgba(22, 11, 8, 0.78));
  content: "";
  pointer-events: none;
}

main:has(img[alt="Fried Chicken Background"]) section:first-of-type > div.absolute.inset-0.z-0 {
  display: none !important;
}

main:has(img[alt="Fried Chicken Background"]) section:first-of-type > div.relative.z-10 {
  width: min(95%, 80rem);
  max-width: 80rem !important;
  margin-inline: auto;
  align-items: flex-start !important;
  text-align: left !important;
}

main:has(img[alt="Fried Chicken Background"]) section:first-of-type div[class*="uppercase"][class*="tracking-widest"] {
  border: 1px solid rgba(232, 194, 116, 0.55) !important;
  background: rgba(118, 37, 28, 0.5) !important;
  color: #f3d99a !important;
  font-size: 0 !important;
  letter-spacing: 0.16em;
  animation: none !important;
  backdrop-filter: blur(10px);
}

main:has(img[alt="Fried Chicken Background"]) section:first-of-type div[class*="uppercase"][class*="tracking-widest"]::after {
  content: "THE SPIRIT OF SOUTH INDIA · SERVED IN NEWPORT";
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.7rem;
}

main:has(img[alt="Fried Chicken Background"]) section:first-of-type h1 {
  max-width: 46rem !important;
  margin-bottom: 1.5rem !important;
  color: #fff8e9 !important;
  font-size: 0 !important;
  line-height: 1.02 !important;
  text-align: left !important;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.26);
}

main:has(img[alt="Fried Chicken Background"]) section:first-of-type h1 span {
  display: none !important;
}

main:has(img[alt="Fried Chicken Background"]) section:first-of-type h1::after {
  content: "South Indian Soul, Made Fresh in Britain";
  font-size: clamp(3rem, 6vw, 5.6rem);
}

main:has(img[alt="Fried Chicken Background"]) section:first-of-type h1 + p {
  max-width: 39rem !important;
  color: #efe1cb !important;
  font-size: 0 !important;
  line-height: 1.72 !important;
  text-align: left !important;
}

main:has(img[alt="Fried Chicken Background"]) section:first-of-type h1 + p::after {
  content: "From crisp dosas and pillowy idlis to fragrant biryanis and slow-simmered curries — authentic South Indian comfort, prepared fresh in Newport.";
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
}

main:has(img[alt="Fried Chicken Background"]) section:first-of-type div[class*="max-w-xl"][class*="bg-white"] {
  border: 1px solid rgba(217, 164, 65, 0.45) !important;
  background: rgba(255, 250, 240, 0.97) !important;
  box-shadow: 0 28px 70px rgba(12, 7, 4, 0.34) !important;
}

main:has(img[alt="Fried Chicken Background"]) section:first-of-type input,
main:has(img[alt="Fried Chicken Background"]) section:first-of-type select {
  border-color: rgba(118, 37, 28, 0.18) !important;
  background: #fffdf7 !important;
}

/* Home section rhythm and decorative surfaces */
main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(2) {
  position: relative;
  background:
    radial-gradient(circle at 92% 8%, rgba(217, 164, 65, 0.16), transparent 20rem),
    linear-gradient(180deg, #fff8e9, #fffdf8) !important;
  border-color: rgba(118, 37, 28, 0.1) !important;
}

main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(2)::before,
main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(6)::before {
  position: absolute;
  top: 2rem;
  right: 3vw;
  width: 8rem;
  height: 8rem;
  border: 1px solid rgba(118, 37, 28, 0.11);
  border-radius: 50%;
  box-shadow:
    0 0 0 1rem rgba(217, 164, 65, 0.035),
    0 0 0 2rem rgba(118, 37, 28, 0.025);
  content: "";
  pointer-events: none;
}

main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(3) { background: #fffdf8 !important; }

main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(4) {
  background: linear-gradient(150deg, #eef2e7, #fffaf0 72%) !important;
  border-color: rgba(49, 90, 60, 0.13) !important;
}

main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(5) {
  background:
    radial-gradient(circle at 12% 16%, rgba(217, 164, 65, 0.16), transparent 18rem),
    linear-gradient(135deg, #173323, #284b35) !important;
}

main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(6) {
  background: linear-gradient(135deg, #fff5df, #f7ead0) !important;
  border-color: rgba(155, 53, 39, 0.12) !important;
}

main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(7) { background: #fffdf8 !important; }

main section h2 {
  color: var(--si-ink) !important;
  font-weight: 700 !important;
}

main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(5) h2,
main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(5) h3 { color: #fff5df !important; }

main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(5) p { color: #d9e5da !important; }

/* South Indian display copy; original application text stays intact for semantics. */
main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(2) .text-center.mb-12 h2,
main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(4) h2,
main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(5) h2,
main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(6) h2 { font-size: 0 !important; }

main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(2) .text-center.mb-12 h2::after {
  content: "South Indian Favourites";
  font-size: clamp(2rem, 4vw, 2.7rem);
}

main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(2) .text-center.mb-12 p,
main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(4) h2 + p,
main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(5) h2 + p,
main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(6) h2 + p { font-size: 0 !important; }

main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(2) .text-center.mb-12 p::after {
  content: "A warm introduction to our kitchen, inspired by the markets and family tables of South India.";
  font-size: 1rem;
}

main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(4) h2::after {
  content: "Guest Favourites";
  font-size: clamp(2rem, 4vw, 2.7rem);
}

main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(4) h2 + p::after {
  content: "The dishes our Newport guests return for, time after time.";
  font-size: 1rem;
}

main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(5) h2::after {
  content: "Rooted in Southern Tradition";
  font-size: clamp(2.1rem, 5vw, 3rem);
}

main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(5) h2 + p::after {
  content: "Fresh ingredients, whole spices and time-honoured techniques bring warmth and depth to every order.";
  font-size: 1.05rem;
}

main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(6) h2::after {
  content: "Join the Navam Table & Earn Rewards";
  font-size: clamp(2rem, 4vw, 2.7rem);
}

main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(6) h2 + p::after {
  content: "Earn a point for every pound spent and enjoy member-only treats, sides and seasonal rewards.";
  font-size: 1rem;
}

/* Cards */
main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(2) div[class*="min-h-[300px]"] {
  border-color: rgba(255, 245, 223, 0.18) !important;
  border-radius: 1.35rem !important;
  box-shadow: 0 24px 55px rgba(62, 31, 18, 0.18) !important;
}

main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(2) .grid > div:nth-child(1) {
  background: linear-gradient(135deg, #9b3527, #c4742d) !important;
}

main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(2) .grid > div:nth-child(2) {
  background: linear-gradient(135deg, #244631, #173323) !important;
}

main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(3) .grid > div,
main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(4) .grid > div {
  border-color: rgba(118, 37, 28, 0.12) !important;
  border-radius: 1.15rem !important;
  background: rgba(255, 253, 248, 0.96) !important;
  box-shadow: 0 12px 34px rgba(70, 41, 25, 0.07) !important;
}

main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(3) .grid > div:hover,
main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(4) .grid > div:hover {
  border-color: rgba(155, 53, 39, 0.3) !important;
  box-shadow: 0 22px 48px rgba(70, 41, 25, 0.13) !important;
}

main button, main a { transition-duration: 180ms !important; }

main button[class*="bg-brand-primary"] {
  box-shadow: 0 10px 24px rgba(118, 37, 28, 0.2);
}

/* Footer */
footer {
  position: relative;
  overflow: hidden;
  border-top: 5px solid var(--si-gold) !important;
  background:
    radial-gradient(circle at 85% 16%, rgba(217, 164, 65, 0.13), transparent 22rem),
    #172d20 !important;
  color: #e9e2d4 !important;
}

footer::before {
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(217, 164, 65, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 2rem rgba(217, 164, 65, 0.035), 0 0 0 4rem rgba(217, 164, 65, 0.02);
  content: "";
}

footer h3, footer h4, footer .font-display { color: #f4d998 !important; }
footer a:hover, footer button:hover { color: #f4d998 !important; }

/* Mobile */
@media (max-width: 767px) {
  main:has(img[alt="Fried Chicken Background"]) section:first-of-type {
    min-height: auto !important;
    padding-top: 5.5rem !important;
    padding-bottom: 4.5rem !important;
    background-image:
      linear-gradient(180deg, rgba(25, 13, 9, 0.64), rgba(25, 13, 9, 0.92) 52%, rgba(25, 13, 9, 0.98)),
      url("/assets/south-indian-hero.webp") !important;
    background-position: 68% center !important;
  }

  main:has(img[alt="Fried Chicken Background"]) section:first-of-type > div.relative.z-10 {
    align-items: center !important;
    text-align: center !important;
  }

  main:has(img[alt="Fried Chicken Background"]) section:first-of-type h1,
  main:has(img[alt="Fried Chicken Background"]) section:first-of-type h1 + p { text-align: center !important; }

  main:has(img[alt="Fried Chicken Background"]) section:first-of-type h1::after { font-size: clamp(2.6rem, 13vw, 4rem); }

  main:has(img[alt="Fried Chicken Background"]) section:first-of-type div[class*="uppercase"][class*="tracking-widest"]::after {
    content: "SOUTH INDIA · NEWPORT";
    font-size: 0.65rem;
  }

  main:has(img[alt="Fried Chicken Background"]) section:first-of-type div[class*="max-w-xl"][class*="bg-white"] {
    padding: 1rem !important;
    border-radius: 1.2rem !important;
  }

  main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(2)::before,
  main:has(img[alt="Fried Chicken Background"]) section:nth-of-type(6)::before {
    width: 5rem;
    height: 5rem;
    opacity: 0.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Navam identity lockup */
header img[alt="Logo"],
footer img[alt="Logo"] {
  width: 2.6rem !important;
  height: 2.6rem !important;
  content: url("/assets/navam-mark.svg");
  filter: none !important;
  animation: none !important;
}

header span.font-extrabold.text-2xl.font-display,
footer span.font-extrabold.text-2xl.font-display {
  font-size: 0 !important;
}

header span.font-extrabold.text-2xl.font-display::after,
footer span.font-extrabold.text-2xl.font-display::after {
  content: "Navam Tandoori";
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

footer .grid > div:first-child > p {
  font-size: 0 !important;
}

footer .grid > div:first-child > p::after {
  content: "South Indian flavour, warmly served in Newport.";
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
}