/*
Theme Name: South River Restaurant Simple
Author: South River Restaurant
Description: A premium, mobile-first, single-page coming soon theme for South River Restaurant in Greenwich, Connecticut.
Version: 3.2.2
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: south-river-restaurant-simple
Tags: one-column, custom-logo, full-width-template
*/

:root {
  --ink: #120d0b;
  --ivory: #f4efe7;
  --brass: #c9a66b;
  --line: rgba(244, 239, 231, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 9999;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto;
  background: var(--ivory);
  color: var(--ink);
}

.coming-page,
.hero {
  min-height: 100svh;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #17100d;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(8, 5, 4, 0.97) 0%, rgba(8, 5, 4, 0.88) 43%, rgba(8, 5, 4, 0.35) 76%, rgba(8, 5, 4, 0.24) 100%),
    linear-gradient(0deg, rgba(8, 5, 4, 0.72), transparent 62%),
    url("assets/images/restaurant-hero.png") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 42%, rgba(201, 166, 107, 0.09), transparent 30%),
    linear-gradient(0deg, rgba(8, 5, 4, 0.5), transparent 48%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.hero-inner {
  width: min(calc(100% - 64px), 1360px);
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(20px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--line);
}

.brand-logo-link,
.custom-logo-link {
  display: inline-flex;
  flex: 0 0 auto;
}

.brand-logo,
.custom-logo-link img {
  display: block;
  width: clamp(220px, 21vw, 290px);
  max-height: 150px;
  height: auto;
  object-fit: contain;
}

.header-note {
  margin: 0;
  color: rgba(244, 239, 231, 0.66);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-content {
  max-width: 920px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(42px, 7vh, 76px) 0;
}

.hero-coming-soon {
  margin: 0 0 clamp(18px, 3vh, 28px);
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--brass);
  font-size: clamp(2.6rem, 5.2vw, 4.5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.hero-coming-soon span {
  width: clamp(24px, 3vw, 46px);
  height: 1px;
  flex: 0 0 auto;
  background: currentColor;
}

h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ivory);
  font: 400 clamp(2.7rem, 5vw, 4.35rem) / 0.98 Georgia, "Times New Roman", serif;
  letter-spacing: -0.045em;
}

h1 em {
  color: var(--brass);
  font-weight: 400;
}

.hero-intro {
  margin: 24px 0 0;
  color: rgba(244, 239, 231, 0.72);
  font-size: 12px;
  letter-spacing: 0.18em;
  line-height: 1.6;
  text-transform: uppercase;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.button {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  background: var(--ivory);
  border: 1px solid var(--ivory);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  background: transparent;
  color: var(--ivory);
}

.text-link {
  padding: 10px 0;
  border-bottom: 1px solid rgba(244, 239, 231, 0.42);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.button:focus-visible,
.text-link:focus-visible,
.hero-details a:focus-visible,
.brand-logo-link:focus-visible,
.custom-logo-link:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 4px;
}

.hero-details {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr 1.2fr;
  gap: clamp(24px, 5vw, 80px);
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
}

.hero-details a {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.hero-details span {
  color: rgba(244, 239, 231, 0.5);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-details strong {
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.hero-details a:hover strong,
.hero-details a:focus-visible strong,
.text-link:hover,
.text-link:focus-visible {
  color: var(--brass);
}

@media (max-width: 720px) {
  .hero-backdrop {
    background:
      linear-gradient(90deg, rgba(8, 5, 4, 0.94), rgba(8, 5, 4, 0.62)),
      linear-gradient(0deg, rgba(8, 5, 4, 0.78), transparent 58%),
      url("assets/images/restaurant-hero.png") 60% center / cover no-repeat;
  }

  .hero-inner {
    width: min(calc(100% - 32px), 1360px);
  }

  .site-header {
    padding: 18px 0;
  }

  .brand-logo,
  .custom-logo-link img {
    width: min(210px, 66vw);
  }

  .header-note {
    display: none;
  }

  .hero-content {
    padding: 42px 0 34px;
  }

  .hero-coming-soon {
    margin-bottom: 20px;
    gap: 10px;
    font-size: clamp(1.85rem, 8.6vw, 2.6rem);
    line-height: 1.08;
    letter-spacing: 0.045em;
  }

  .hero-coming-soon span {
    width: 20px;
  }

  h1 {
    font-size: clamp(2.45rem, 11.8vw, 3.4rem);
    line-height: 0.98;
  }

  .hero-intro {
    max-width: 310px;
    margin-top: 20px;
    font-size: 10px;
  }

  .hero-actions {
    margin-top: 24px;
    gap: 20px;
  }

  .button {
    min-height: 46px;
    padding: 0 18px;
    gap: 24px;
  }

  .hero-details {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 0 22px;
  }

  .hero-details a {
    grid-template-columns: 62px 1fr;
    align-items: baseline;
    gap: 12px;
  }

  .hero-details strong {
    font-size: 12px;
  }
}

@media (min-width: 721px) and (max-height: 720px) {
  .site-header {
    padding: 15px 0;
  }

  .brand-logo,
  .custom-logo-link img {
    width: 220px;
  }

  .hero-content {
    padding: 28px 0;
  }

  .hero-coming-soon {
    margin-bottom: 14px;
    font-size: clamp(2.3rem, 4.5vw, 3.7rem);
  }

  h1 {
    font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  }

  .hero-intro {
    margin-top: 16px;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .hero-details {
    padding: 14px 0 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* Keep the complete experience inside one iPhone viewport. */
@media (max-width: 720px) {
  html,
  body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }

  .coming-page,
  .hero,
  .hero-inner {
    height: 100svh;
    min-height: 100svh;
  }

  .hero-inner {
    width: min(calc(100% - 28px), 1360px);
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .site-header {
    padding: clamp(8px, 1.8svh, 15px) 0;
  }

  .brand-logo,
  .custom-logo-link img {
    width: min(190px, 58vw);
    max-height: 12svh;
    object-fit: contain;
  }

  .hero-content {
    min-height: 0;
    padding: clamp(8px, 2svh, 20px) 0;
  }

  .hero-coming-soon {
    margin-bottom: clamp(8px, 1.5svh, 14px);
    gap: 8px;
    font-size: clamp(1.5rem, min(8.4vw, 4.7svh), 2.55rem);
    line-height: 1.04;
  }

  .hero-coming-soon span {
    width: 16px;
  }

  h1 {
    font-size: clamp(2rem, min(11vw, 6svh), 3.35rem);
    line-height: 0.96;
  }

  .hero-intro {
    margin-top: clamp(8px, 1.5svh, 14px);
    font-size: clamp(8px, 2.35vw, 10px);
    line-height: 1.45;
  }

  .hero-actions {
    margin-top: clamp(10px, 1.8svh, 18px);
    gap: 16px;
  }

  .button {
    min-height: clamp(38px, 5.5svh, 44px);
    padding: 0 16px;
    gap: 20px;
  }

  .text-link {
    padding: 8px 0;
  }

  .hero-details {
    gap: clamp(4px, 0.8svh, 8px);
    padding: clamp(7px, 1.3svh, 12px) 0 clamp(8px, 1.3svh, 12px);
  }

  .hero-details a {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 8px;
  }

  .hero-details span {
    font-size: 8px;
  }

  .hero-details strong {
    font-size: clamp(10px, 2.8vw, 12px);
    line-height: 1.25;
  }
}

@supports (height: 100dvh) {
  @media (max-width: 720px) {
    .coming-page,
    .hero,
    .hero-inner {
      height: 100dvh;
      min-height: 100dvh;
    }
  }
}
