/*
Theme Name: West Wing Chicken Kitchen
Theme URI: https://www.westwingchicken.com
Author: West Wing Chicken Kitchen
Description: Custom theme replicating the West Wing Chicken Kitchen Squarespace design. Delivery-only scratch chicken kitchen in Tampa, FL.
Version: 1.0.4
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: westwing
*/

/* ==========================================================================
   Design tokens (measured from the original Squarespace site)
   ========================================================================== */
:root {
  --ww-red: #C72128;          /* rgb(199,33,40) — brand red */
  --ww-blue: #2D419A;         /* rgb(45,65,154) — brand blue */
  --ww-white: #ffffff;
  --font-display: 'PhillySans', 'Comic Sans MS', cursive;              /* graffiti display font */
  --font-body: 'adelle-sans', 'Source Sans 3', 'Helvetica Neue', sans-serif;
  --font-ui: 'proxima-nova', 'Montserrat', 'Helvetica Neue', sans-serif;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ww-red);
  background: var(--ww-white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; font-weight: 400; }

.ww-container { max-width: 1400px; margin: 0 auto; padding: 0 6vw; }
.ww-center { text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ww-blue); color: #fff; padding: 1em 2em; border-radius: 300px; z-index: 999;
}
.skip-link:focus { left: 1em; top: 1em; }

/* ==========================================================================
   Typography
   ========================================================================== */
.ww-display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: .06em;
}
h1.ww-display { font-size: clamp(42px, 4.85vw, 73px); }   /* interior page heroes */
h2.ww-display { font-size: clamp(30px, 3vw, 46px); }      /* homepage section headings */
.ww-display--category { font-size: clamp(38px, 4.5vw, 68px); color: var(--ww-blue); } /* menu categories */

/* ==========================================================================
   Header (white bar: nav left, logo center, button right)
   ========================================================================== */
.ww-header {
  background: var(--ww-white);
  padding: 20px 40px;
}
.ww-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.ww-nav { display: flex; gap: 34px; }
.ww-nav a {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .13em;
  color: var(--ww-red);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.ww-nav a:hover, .ww-nav a.is-current { border-bottom-color: var(--ww-red); }

.ww-logo { justify-self: center; }
.ww-logo img { width: 240px; height: auto; }

.ww-header__cta { justify-self: end; }

/* Pill buttons (measured: blue bg, white text, 300px radius, proxima 800) */
.ww-btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .02em;
  color: var(--ww-white) !important;
  background: var(--ww-blue);
  border-radius: 300px;
  padding: 24px 42px;
  text-decoration: none;
  transition: opacity .15s ease;
}
.ww-btn:hover { opacity: .85; }
.ww-btn--small { padding: 16px 30px; font-size: 15px; letter-spacing: .1em; }

/* Mobile burger */
.ww-burger-toggle { display: none; }
.ww-burger {
  display: none;
  width: 34px; height: 26px;
  position: relative; cursor: pointer;
}
.ww-burger span, .ww-burger span::before, .ww-burger span::after {
  content: ''; position: absolute; left: 0;
  width: 100%; height: 3px; background: var(--ww-red); border-radius: 2px;
  transition: transform .2s ease;
}
.ww-burger span { top: 11px; }
.ww-burger span::before { top: -9px; }
.ww-burger span::after { top: 9px; }

@media (max-width: 960px) {
  .ww-header { padding: 14px 20px; }
  .ww-header__inner { grid-template-columns: auto 1fr auto; }
  .ww-burger { display: block; order: 1; }
  .ww-logo { order: 2; }
  .ww-logo img { width: 170px; }
  .ww-header__cta { order: 3; }
  .ww-header__cta .ww-btn { padding: 14px 22px; font-size: 14px; }
  .ww-nav {
    display: none;
    order: 4;
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 18px;
    padding: 24px 0 10px;
  }
  .ww-burger-toggle:checked ~ .ww-nav { display: flex; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.ww-section { padding: 60px 6vw; }
.ww-section--red { background: var(--ww-red); color: var(--ww-white); }
.ww-section--blue { background: var(--ww-blue); color: var(--ww-white); }

/* Red hero with winged-White-House pattern (homepage + order online) */
.ww-hero {
  min-height: 497px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--ww-red);
  background-size: cover;
  background-position: center;
  padding: 60px 6vw;
}
.ww-hero h1 { color: var(--ww-white); margin: 0; }
.ww-hero .ww-hero__sub {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--ww-white);
  letter-spacing: .08em;
  font-size: clamp(16px, 1.6vw, 24px);
  margin-top: 28px;
  text-transform: uppercase;
}

/* Flag hero (menu page): photo with red wash */
.ww-hero--photo { position: relative; }

/* Order Online hero: wing accent clipped to a box on the left.
   The source PNG has a stray darker stripe on its right edge, so we paint it
   inside a fixed-width box with `cover`, which crops that edge off. */
.ww-hero--order { position: relative; overflow: hidden; }
.ww-hero--order h1,
.ww-hero--order .ww-hero__sub { position: relative; z-index: 1; }
.ww-hero--order h1 { font-size: clamp(30px, 3.1vw, 46px); }
.ww-hero--order .ww-hero__sub { color: var(--ww-white); }
.ww-hero__accent {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(240px, 32vw, 600px);
  height: 78%;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: cover;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 900px) {
  .ww-hero__accent { width: 46vw; height: 50%; }
}

/* "Let's get saucy!" intro */
.ww-intro { padding: 90px 6vw; text-align: center; }
.ww-intro h2 { color: var(--ww-red); }
.ww-intro p {
  max-width: 660px;
  margin: 0 auto 40px;
  font-size: 15px;
  letter-spacing: .02em;
}

/* Blue banner */
.ww-banner { padding: 70px 6vw; text-align: center; }
.ww-banner h2 { color: var(--ww-white); margin: 0; line-height: 1.5; }

/* Three sticker cards (Order Online / View Our Menu / Contact Us) */
.ww-cards { padding: 90px 6vw; }
.ww-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px;
  max-width: 1250px;
  margin: 0 auto;
}
.ww-cards__grid a { display: block; transition: transform .15s ease; }
.ww-cards__grid a:hover { transform: translateY(-6px); }

/* Featured items (red section, three photos with captions) */
.ww-featured { padding: 80px 6vw 70px; }
.ww-featured h2 { color: var(--ww-white); text-align: center; margin-bottom: 60px; }
.ww-featured__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1380px;
  margin: 0 auto;
  align-items: end;
}
.ww-featured__item { text-align: center; }
.ww-featured__item figcaption a,
.ww-featured__item figcaption {
  margin-top: 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: .06em;
  color: var(--ww-white);
  text-transform: uppercase;
  text-decoration: none;
}
.ww-featured__item figcaption a { display: inline-block; border-bottom: 2px solid transparent; }
.ww-featured__item figcaption a:hover { border-bottom-color: var(--ww-blue); }

/* Gallery strip (horizontal photo band with arrows) */
.ww-gallery { padding: 70px 0 40px; }
.ww-gallery__strip {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.ww-gallery__strip::-webkit-scrollbar { display: none; }
.ww-gallery__strip img {
  height: 420px; width: auto; max-width: none; flex: 0 0 auto; object-fit: cover;
}
.ww-gallery__arrows { padding: 26px 6vw 0; display: flex; gap: 30px; }
.ww-gallery__arrows button {
  background: none; border: none; cursor: pointer;
  font-size: 30px; color: #444; padding: 0;
  line-height: 1;
}
.ww-gallery__arrows button:hover { color: var(--ww-red); }

/* Instagram callout */
.ww-insta { padding: 110px 6vw; }
.ww-insta h2 { color: var(--ww-red); margin: 0; }
.ww-insta a { color: var(--ww-blue); text-decoration: none; border-bottom: 3px solid var(--ww-blue); }
.ww-insta a:hover { opacity: .8; }

/* ==========================================================================
   Menu page
   ========================================================================== */
.ww-menu-section { padding: 60px 6vw 30px; text-align: center; }
.ww-menu-section h2 { margin-bottom: 40px; }
.ww-menu-grid {
  display: grid;
  gap: 60px 70px;
  max-width: 1380px;
  margin: 0 auto 30px;
}
.ww-menu-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ww-menu-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 1000px; }
.ww-menu-item { text-align: center; }
.ww-menu-item img { margin: 0 auto 26px; }
.ww-menu-item h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: .06em;
  color: var(--ww-blue);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.ww-menu-item .ww-menu-item__snark {
  font-weight: 700; font-style: italic; font-size: 15.5px; color: var(--ww-blue);
  margin: 0 0 14px;
}
.ww-menu-item p { color: var(--ww-blue); font-size: 16px; margin: 0; }
.ww-menu-rule {
  border: none; border-top: 1px solid var(--ww-blue);
  max-width: 1380px; margin: 50px auto;
  opacity: .8;
}
.ww-sauces { display: grid; grid-template-columns: repeat(2, auto); gap: 20px 110px; justify-content: center; text-align: left; }
.ww-sauces ul { margin: 0; padding-left: 1.2em; color: var(--ww-blue); font-size: 17px; }
.ww-sauces li { margin-bottom: .55em; }
.ww-sauces .ww-sauce-note { font-style: italic; font-size: 15.5px; }
.ww-sides { list-style: none; padding: 0; margin: 0 auto; color: var(--ww-blue); font-size: 17px; }
.ww-sides li { margin-bottom: .6em; }
.ww-menu-cta { padding: 40px 6vw 90px; text-align: center; }

/* ==========================================================================
   Order online page
   ========================================================================== */
.ww-order { padding: 90px 6vw; }
.ww-order__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  max-width: 1380px;
  margin: 0 auto;
}
.ww-order__item h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: .04em;
  color: var(--ww-red);
  text-transform: uppercase;
  margin: 28px 0;
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.ww-contact {
  background: var(--ww-red);
  color: var(--ww-white);
  padding: 120px 6vw 160px;
  min-height: 60vh;
}
.ww-contact h1 { color: var(--ww-white); }
.ww-contact hr {
  border: none; border-top: 1px solid rgba(255,255,255,.85);
  max-width: 320px; margin: 34px 0;
}
.ww-contact p { max-width: 560px; font-size: 17px; }
.ww-contact a { color: var(--ww-white); }

/* ==========================================================================
   Footer (red)
   ========================================================================== */
.ww-footer {
  background: var(--ww-red);
  color: var(--ww-white);
  padding: 80px 6vw 110px;
}
.ww-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  max-width: 1380px;
  margin: 0 auto;
}
.ww-footer h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: .04em;
  margin-bottom: 20px;
}
.ww-footer h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: .04em;
  margin-bottom: 20px;
}
.ww-footer p { margin: 0 0 8px; font-size: 16px; }
.ww-footer__insta { margin-top: 34px; display: inline-block; }
.ww-footer__insta svg { width: 26px; height: 26px; fill: var(--ww-white); }
.ww-footer__insta:hover svg { opacity: .8; }

/* ==========================================================================
   Generic content pages / fallback
   ========================================================================== */
.ww-page { padding: 70px 6vw; max-width: 900px; margin: 0 auto; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .ww-cards__grid, .ww-featured__grid, .ww-menu-grid--3, .ww-order__grid { grid-template-columns: 1fr; }
  .ww-menu-grid--2 { grid-template-columns: 1fr; }
  .ww-footer__grid { grid-template-columns: 1fr; }
  .ww-gallery__strip img { height: 300px; }
  .ww-sauces { grid-template-columns: 1fr; gap: 20px; }
}
