/* ==========================================================================
   Whirlaway Lounge — static site stylesheet
   ========================================================================== */

:root {
  --color-primary: #792123;   /* maroon */
  --color-secondary: #D8B281; /* gold/tan */
  --color-accent: #A61243;    /* hover accent */
  --color-accent-strong: #D31756;
  --color-text: #676767;
  --color-dark: #313638;
  --color-cream: #F3F0E7;
  --color-white: #ffffff;

  --font-heading: "Poppins", sans-serif;
  --font-script: "Rochester", cursive;
  --font-body: "Ubuntu", sans-serif;
  --font-alt: "Roboto", sans-serif;

  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3 { font-family: var(--font-heading); margin: 0; }

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}
.brand__first {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--color-primary);
}
.brand__second {
  font-family: var(--font-script);
  font-size: 26px;
  color: var(--color-secondary);
}

.main-nav__list {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.main-nav__list a {
  display: block;
  padding: 15px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color 0.2s ease;
}
.main-nav__list a:hover,
.main-nav__list a:focus {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--color-accent-strong);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-white);
}

.mobile-nav {
  display: none;
  background: var(--color-accent-strong);
}
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-nav a {
  display: block;
  padding: 12px 20px;
  color: var(--color-white);
  font-size: 15px;
  font-weight: 500;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}
.mobile-nav a:hover { background: rgba(0, 0, 0, 0.15); }

.site-header.is-open .mobile-nav { display: block; }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 62vh;
  overflow: hidden;
  background: var(--color-dark);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
}

.hero__panels {
  position: relative;
  z-index: 1;
  min-height: 62vh;
  display: grid;
  grid-template-columns: minmax(240px, 34%) 1fr;
}

.hero__panel {
  position: relative;
  display: flex;
  align-items: center;
  padding: 50px 40px;
}
.hero__panel::before {
  content: "";
  position: absolute;
  inset: 0;
}

.hero__panel--logo {
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.hero__panel--logo::before {
  background: rgba(8, 6, 6, 0.86);
}

.hero__panel--copy {
  justify-content: flex-start;
  padding-left: 60px;
}
.hero__panel--copy::before {
  background: linear-gradient(200deg, rgba(0, 0, 0, 0.65) 10%, rgba(121, 33, 35, 0.58) 55%, rgba(216, 178, 129, 0.42) 100%);
}

.hero__logo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 260px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
}

.hero__text {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  max-width: 640px;
}

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  margin-bottom: 20px;
}
.hero__title-main {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(38px, 6vw, 84px);
  color: var(--color-white);
}
.hero__title-script {
  font-family: var(--font-script);
  font-size: clamp(38px, 7vw, 92px);
  color: var(--color-secondary);
  margin-top: 4px;
}

.hero__intro {
  max-width: 640px;
  font-family: var(--font-body);
  font-size: 17px;
  color: #F1EFEA;
  margin-bottom: 26px;
}

.social-links {
  display: flex;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease, background 0.2s ease;
}
.social-links svg {
  width: 16px;
  height: 16px;
  fill: var(--color-white);
}
.social-links a:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 700px) {
  .hero__panels { grid-template-columns: 1fr; }
  .hero__panel--logo {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 40px 20px 24px;
  }
  .hero__panel--copy {
    justify-content: center;
    text-align: center;
    padding: 30px 20px 50px;
  }
  .hero__logo { max-width: 170px; margin: 0 auto; }
  .hero__title { align-items: center; }
  .hero__intro { margin-left: auto; margin-right: auto; }
  .social-links { justify-content: center; }
}

/* ==========================================================================
   Generic section styling
   ========================================================================== */

.section {
  padding: 80px 0;
  background-image: url("../images/texture-bg.webp");
  background-repeat: repeat;
  background-color: var(--color-white);
}

.section__heading {
  font-size: 37px;
  font-weight: 700;
  color: var(--color-primary);
}
.section__heading--right {
  text-align: right;
  padding-right: 10px;
  border-right: 5px solid var(--color-primary);
}

/* ==========================================================================
   About
   ========================================================================== */

.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}
.about__story p { margin: 0 0 16px; font-size: 15px; line-height: 1.7; color: var(--color-dark); }
.about__media { display: flex; flex-direction: column; align-items: flex-end; gap: 24px; }
.about__photo {
  box-shadow: 15px 15px 0 0 var(--color-primary);
  max-height: 480px;
  width: 100%;
  object-fit: cover;
}

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { align-items: center; }
  .section__heading--right { text-align: center; border-right: none; border-bottom: 5px solid var(--color-primary); padding: 0 0 10px; }
  .about__photo { box-shadow: 10px 10px 0 0 var(--color-primary); }
}

/* ==========================================================================
   Legacy cards
   ========================================================================== */

.legacy { background-color: #000; background-blend-mode: overlay; }

.legacy__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.legacy-card {
  position: relative;
  margin: 0;
  height: 550px;
  overflow: hidden;
  background: #000;
}
.legacy-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}
.legacy-card:hover img { opacity: 0.3; }

.legacy-card figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.legacy-card:hover figcaption { opacity: 1; transform: translateY(0); }

.legacy-card h3 {
  color: var(--color-white);
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 14px;
}
.legacy-card p {
  color: var(--color-white);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 860px) {
  .legacy__grid { grid-template-columns: 1fr; }
  .legacy-card { height: 420px; }
  .legacy-card figcaption { opacity: 1; transform: none; background: rgba(0, 0, 0, 0.45); }
  .legacy-card img { opacity: 1; }
}

/* ==========================================================================
   Menu
   ========================================================================== */

.menu__heading,
.visit__heading {
  text-align: center;
  margin-bottom: 50px;
}
.menu__heading h2,
.visit__heading h2 {
  font-size: 37px;
  font-weight: 700;
  color: var(--color-primary);
}
.menu__heading-rule {
  display: block;
  width: 90px;
  height: 5px;
  background: var(--color-primary);
  margin: 14px auto 0;
}

.menu__columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.menu-category { margin-bottom: 30px; }
.menu-category:last-child { margin-bottom: 0; }

.menu-category__title {
  font-family: var(--font-alt);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-dark);
  border-bottom: 2px solid var(--color-dark);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
}
.menu-list__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-primary);
}
.menu-list__price {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .menu__columns { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Visit
   ========================================================================== */

.visit__hours {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-bottom: 60px;
  flex-wrap: wrap;
  text-align: center;
}
.hours-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.hours-card p { margin: 0; font-size: 16px; color: var(--color-dark); }

.visit__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: stretch;
}

.visit__address {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  background: var(--color-white);
  padding: 30px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}
.visit__address img { width: 56px; height: 56px; }
.visit__address h3 { color: var(--color-primary); font-size: 20px; margin-bottom: 6px; }
.visit__address p { margin: 0; color: var(--color-dark); }

.visit__map { min-height: 320px; }
.visit__map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

@media (max-width: 860px) {
  .visit__grid { grid-template-columns: 1fr; }
  .visit__hours { gap: 40px; }
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 760px;
  margin: 0 auto;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--color-white);
  padding: 30px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}
.contact-card:hover { transform: translateY(-3px); }
.contact-card img { width: 56px; height: 56px; }
.contact-card h3 { color: var(--color-primary); font-size: 20px; margin-bottom: 6px; }
.contact-card p { margin: 0; color: var(--color-dark); }

@media (max-width: 640px) {
  .contact__cards { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-image: linear-gradient(156deg, var(--color-primary) 60%, var(--color-secondary) 97%);
  color: var(--color-white);
  text-align: center;
}
.site-footer__top {
  padding: 100px 20px 70px;
}
.site-footer__top h2 {
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 700;
  margin-bottom: 10px;
}
.site-footer__top p {
  font-size: 20px;
  color: #F4F4F4;
  margin: 0 0 30px;
}
.social-links--footer { justify-content: center; }
.social-links--footer a { border-color: rgba(255, 255, 255, 0.6); }

.site-footer__bottom {
  background: rgba(0, 0, 0, 0.15);
  padding: 14px 20px;
  font-size: 14px;
}
.site-footer__bottom p { margin: 0; }
