/*
 * site.css: the only stylesheet for pizza-den.co.uk.
 *
 * Sections, in order:
 *   1. Tokens        colours, fonts, spacing, breakpoints (custom properties)
 *   2. Fonts         @font-face for self-hosted fonts
 *   3. Base          reset and element defaults
 *   4. Layout        container, rows and columns (Elementor's boxed sections)
 *   5. Components    one block per component: "=== Component: <name> ==="
 *   6. Pages         rare page-specific rules: "=== Page: <path> ==="
 *   7. Utilities     a handful of helpers
 *
 * Breakpoints (Elementor's defaults on the original; media queries can't use custom properties):
 *   mobile  <= 767px    tablet 768px-1024px    desktop >= 1025px
 *   The hamburger menu shows at <= 1024px (Elementor "dropdown: tablet").
 *
 * Values come from the original's computed styles (Elementor post-15.css / kit post-9.css).
 * Elementor spacing kept: 10px column padding, 20px between widgets, headings line-height 1.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours */
  --color-black: #000000;
  --color-white: #ffffff;
  --color-red: #ff0000;           /* "Pizza Den", "app", nav hover/active */
  --color-green: #0ecc00;         /* "Welcome" */
  --color-green-app: #26c400;     /* "Download" */
  --color-ink: #252525;           /* feature headings */
  --color-band: #242424;          /* app band background */
  --color-box: #d9d9d9;           /* contact box */
  --color-muted: #8a8a8a;         /* hours, phone, address */
  --color-dropdown-text: #33373d; /* mobile menu items and toggle */
  --color-dropdown-hover: #3f444b;
  --color-toggle-bg: rgb(0 0 0 / 0.05);

  /* Typography */
  --font-display: "Mermaid", serif;   /* custom font from /wp-content/uploads/2022/07/Mermaid1001.ttf */
  --font-poppins: "Poppins", sans-serif;
  --font-roboto: "Roboto", sans-serif;
  --text-base: 16px;

  /* Spacing and shape */
  --container: 1140px;      /* Elementor default boxed width */
  --container-wide: 1280px; /* most page sections */
  --col-pad: 10px;          /* Elementor column padding (gap: default) */
  --widget-gap: 20px;       /* Elementor space between widgets */
  --tablet-pad: 50px;       /* section side padding on tablet/mobile */

  /* Motion */
  --duration: 300ms;
  --duration-nav: 400ms;
  --ease: ease;
  --ease-pointer: cubic-bezier(0.58, 0.3, 0.005, 1);
}

/* ============ 2. Fonts ============ */
/* Self-hosted Google Fonts (latin subset): Poppins 400/600, Roboto variable (100-900).
   Mermaid is the site's own uploaded font, kept at its original uploads URL (declared normal weight;
   headings use 600, so the browser emboldens it exactly as on the original). */
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/assets/fonts/roboto-latin-variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Mermaid"; src: url("/wp-content/uploads/2022/07/Mermaid1001.ttf") format("truetype"); font-weight: normal; font-style: normal; font-display: swap; }

/* ============ 3. Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-roboto); font-size: var(--text-base); line-height: 1.5; color: var(--color-black); background: var(--color-white); }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1; font-weight: 600; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-red); outline-offset: 2px; }

/* ============ 4. Layout ============ */
/* .container: a boxed Elementor section. .row: its columns side by side (stacked on mobile).
   .col: a column (10px padding, widgets stacked 20px apart). */
.container { width: 100%; max-width: var(--container-wide); margin-inline: auto; }
.row { display: flex; }
.col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--widget-gap); padding: var(--col-pad); }
@media (max-width: 767px) {
  .row { flex-direction: column; }
  .col { flex-basis: auto; }
}

/* ============ 5. Components ============ */

/* === Component: skip-link === */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 8px 16px; background: var(--color-white); color: var(--color-black); }
.skip-link:focus { left: 16px; }

/* === Component: icon (inline SVG symbols from the header sprite) === */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1em; height: 1em; fill: currentColor; display: block; }

/* === Component: heading (Elementor heading widgets; colours as modifiers) === */
.heading { font-family: var(--font-display); font-weight: 600; line-height: 1; }
.heading--green { color: var(--color-green); }
.heading--green-app { color: var(--color-green-app); }
.heading--red { color: var(--color-red); }
.heading--white { color: var(--color-white); }
.heading--ink { color: var(--color-ink); }

/* === Component: button (Elementor buttons: black pill, Roboto 500 15px) === */
.button { position: relative; display: inline-block; padding: 12px 24px; border-radius: 25px; background: var(--color-black); color: var(--color-white); font-family: var(--font-roboto); font-size: 15px; font-weight: 500; line-height: 1; text-align: center; text-decoration: none; transition: all var(--duration); }
.button--outline-light { border: 2px solid var(--color-white); }                                                   /* header "Order Now" */
.button--outline { border: 2px solid var(--color-black); border-radius: 50px; background: var(--color-white); color: var(--color-black); } /* hero "Order Now ➜" */
.button--download { border-radius: 15px; background: var(--color-white); color: var(--color-black); font-size: 24px; } /* "Download ➜" */
@media (pointer: coarse) {
  .button::after { content: ""; position: absolute; inset: -3px 0; } /* 44px tap target without changing the look */
}

/* === Component: site-header (black bar, not sticky; nav right-aligned, "Order Now" pill) === */
.site-header { background: var(--color-black); padding-block: var(--col-pad); }
.site-header__inner { display: flex; align-items: flex-start; max-width: var(--container); margin-inline: auto; padding-inline: var(--col-pad); }
.site-header__menu { flex: 0 0 49.581%; padding: var(--col-pad); }
.site-header__order { flex: 0 0 16.723%; padding: var(--col-pad); text-align: right; }
.site-nav__list { display: flex; justify-content: flex-end; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { position: relative; display: block; padding: 13px 20px; font-family: var(--font-roboto); font-size: 16px; font-weight: 600; line-height: 20px; color: var(--color-white); text-decoration: none; transition: color var(--duration-nav); }
.site-nav__list a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--color-red); opacity: 0; transition: opacity var(--duration) var(--ease-pointer); }
.site-nav__list a:hover, .site-nav__list a:focus-visible, .site-nav__list a.is-active { color: var(--color-red); }
.site-nav__list a:hover::after, .site-nav__list a:focus-visible::after, .site-nav__list a.is-active::after { opacity: 1; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 33px; height: 33px; margin: 0 auto; padding: 0; border: 0; border-radius: 3px; background: var(--color-toggle-bg); color: var(--color-dropdown-text); font-size: 22px; cursor: pointer; position: relative; }
.nav-toggle::after { content: ""; position: absolute; inset: -6px; } /* 44px tap target */
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  /* White dropdown in the flow under the toggle (pushes the page down), sliding open with a
     0fr -> 1fr grid row in 0.3s like the original's max-height transition. */
  .site-nav { display: grid; margin-top: 10px; grid-template-rows: 0fr; align-items: stretch; visibility: hidden; transition: grid-template-rows var(--duration) var(--ease), visibility var(--duration); }
  .site-nav.is-open { grid-template-rows: 1fr; visibility: visible; }
  .site-nav.is-instant { transition: none; }
  .site-nav__inner { overflow: hidden; min-height: 0; }
  .site-nav__list { display: block; background: var(--color-white); }
  .site-nav__list a { padding: 10px 20px; border-inline-start: 8px solid transparent; font-size: 13px; font-weight: 500; color: var(--color-dropdown-text); transition: color var(--duration-nav), background-color var(--duration-nav); }
  .site-nav__list a::after { display: none; }
  .site-nav__list a:hover, .site-nav__list a:focus-visible, .site-nav__list a.is-active { background: var(--color-dropdown-hover); color: var(--color-white); }
}
@media (max-width: 767px) {
  .site-header__inner { flex-direction: column; align-items: stretch; }
  .site-header__menu, .site-header__order { flex-basis: auto; }
  .site-header__order { text-align: center; }
}

/* === Component: site-footer (added: the original had no footer; black bar with year + credit) === */
.site-footer { background: var(--color-black); color: var(--color-white); padding: 15px 20px; font-family: var(--font-poppins); font-size: 13px; font-weight: 400; line-height: 1.5; text-align: center; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--color-white); }
.site-footer a:hover { color: var(--color-red); }

/* === Component: hero (logo, "Welcome", "Pizza Den", tagline, two buttons) === */
.hero .container { max-width: var(--container); }
.hero__col { align-items: center; text-align: center; }
.hero__logo { width: 144px; }
.hero__welcome { font-size: 85px; }
.hero__title { font-size: 147px; }
.hero__tagline { font-family: var(--font-poppins); font-size: 17px; font-weight: 600; line-height: 1; color: var(--color-black); }
.hero__buttons { align-self: stretch; margin-inline: calc(-1 * var(--col-pad)); }
.hero__buttons .col:first-child { align-items: flex-end; }
.hero__buttons .col:last-child { align-items: flex-start; }
@media (max-width: 1024px) {
  .hero__tagline { padding-inline: var(--tablet-pad); }
}
@media (max-width: 767px) {
  .hero__logo-wrap, .hero__welcome { padding-inline: var(--tablet-pad); align-self: stretch; }
  .hero__logo-wrap .hero__logo { margin-inline: auto; }
  .hero__welcome { font-size: 40px; }
  .hero__title { font-size: 100px; }
  .hero__buttons .col:first-child, .hero__buttons .col:last-child { align-items: center; }
}

/* === Component: menu-steps (#menu: photo background, "Our Menu", three numbered step cards) === */
.menu-steps { display: flex; flex-direction: column; justify-content: center; gap: var(--widget-gap); min-height: 700px; padding: var(--col-pad); background: url("/wp-content/uploads/2022/07/Rectangle-1.png") 0 0 / cover no-repeat; }
.menu-steps__heading { font-size: 85px; text-align: center; }
.menu-steps__cards { display: flex; width: 100%; max-width: var(--container-wide); margin-inline: auto; }
.step-card { display: flex; flex-direction: column; align-items: center; gap: var(--widget-gap); margin: 10px; padding: 15px; border: 3px solid var(--color-black); background: var(--color-white); }
.step-card--wide { flex: 0 0 calc(35% - 20px); }
.step-card--narrow { flex: 0 0 calc(29.332% - 20px); }
.step-card--thin-border { border-width: 2px; }
@media (max-width: 767px) {
  .menu-steps { justify-content: flex-start; }
  .menu-steps__cards { flex-direction: column; }
  .step-card--wide, .step-card--narrow { flex-basis: auto; }
}

/* === Component: feature (image + big heading side by side; heading side set by source order) === */
.feature .col { padding: var(--col-pad); }
.feature__heading { font-size: 90px; }
.feature__heading--end { text-align: end; }
.feature__image { width: 100%; }
/* The original's spacer widgets around the heading: */
.feature .feature__text--after { padding-bottom: calc(var(--col-pad) + 50px + var(--widget-gap)); } /* spacer 50px after the heading (all widths) */
@media (max-width: 1024px) {
  .feature { padding-inline: var(--tablet-pad); }
  .feature__heading { font-size: 60px; }
  .feature .feature__text { padding-top: calc(var(--col-pad) + 50px + var(--widget-gap)); }  /* spacer 50px before (tablet/mobile only) */
  .feature .feature__text--both { padding-bottom: calc(var(--col-pad) + 50px + var(--widget-gap)); }
}
@media (max-width: 767px) {
  .feature__heading { font-size: 50px; text-align: center; }
  .feature .feature__text--after, .feature .feature__text--both { padding-bottom: calc(var(--col-pad) + 10px + var(--widget-gap)); }
  .feature .feature__text--flush { padding: calc(50px + var(--widget-gap)) 0 calc(10px + var(--widget-gap)); } /* column padding 0 on mobile */
}

/* === Component: app-band (#app: dark band, "Download our mobile app", phone mockups, Download button) === */
.app-band { background: var(--color-band); }
.app-band__top { padding-inline: 0; }
.app-band__headings { margin-block: 50px; }
.app-band__heading { font-size: 116px; }
.app-band__phone { width: 300px; }
.app-band__phone-col--top { align-items: flex-end; }
.app-band__phone-col--top .app-band__phone { margin-top: -10px; }
.app-band__phone-col--bottom { align-items: flex-start; }
.app-band__phone-col--bottom .app-band__phone { margin-bottom: -10px; margin-top: auto; }
.app-band__download { align-items: flex-start; }
@media (max-width: 1024px) {
  .app-band__top { padding-inline: var(--tablet-pad); }
  .app-band__heading { font-size: 50px; }
}
@media (max-width: 767px) {
  .app-band__heading { text-align: center; }
  .app-band__phone { display: none; }
  .app-band__download { align-items: center; }
}

/* === Component: contact (#contact: "Contact Us", grey box with the contact-email block, hours, phone, address) === */
.contact { padding-bottom: 50px; }
.contact > .container > .col { padding-top: calc(var(--col-pad) + 25px + var(--widget-gap)); }
.contact__heading { font-size: 39px; color: var(--color-black); }
.contact-box { display: grid; grid-template-columns: 1fr; padding-inline: max(0px, calc((100% - var(--container)) / 2)); background: var(--color-box); }
.contact-box.has-email { grid-template-columns: 64.643% 34.828%; }
/* Info column: the original's 25px spacer + 20px gap on top; without the email block it sits where the form's fields started. */
.contact-box__info { display: flex; flex-direction: column; gap: var(--widget-gap); padding: calc(var(--col-pad) + 25px + var(--widget-gap)) var(--col-pad) 30px 30px; }
.contact-box.has-email .contact-box__info { padding-left: var(--col-pad); }
.contact-box__title { font-size: 39px; color: var(--color-black); }
.contact-box__line { font-family: var(--font-poppins); font-size: 19px; font-weight: 400; line-height: 1; color: var(--color-muted); }
.contact-box__line a { text-decoration: none; }
.contact-box__line a:hover { text-decoration: underline; }
@media (max-width: 1024px) {
  .contact { padding-inline: var(--tablet-pad); }
}
@media (max-width: 767px) {
  .contact__heading, .contact-box__title { font-size: 29px; }
  .contact-box__line { font-size: 16px; }
  .contact-box.has-email { grid-template-columns: 1fr; }
  .contact-box__info, .contact-box.has-email .contact-box__info { padding: calc(var(--col-pad) + 25px + var(--widget-gap)) var(--col-pad) var(--col-pad); }
}

/* === Component: contact-email (replaces the Elementor form; filled by site.js from CONFIG.contactEmail) === */
.contact-email[hidden] { display: none; }
.contact-email { display: flex; flex-direction: column; gap: var(--widget-gap); padding: calc(var(--col-pad) + 20px); } /* column 10px + form widget 20px */
.contact-email__button { display: block; padding: 12px 24px; border-radius: 50px; background: var(--color-white); color: var(--color-black); font-family: var(--font-roboto); font-size: 15px; font-weight: 500; line-height: 16px; text-align: center; text-decoration: none; transition: all var(--duration); }
.contact-email__button:hover { background: #cccccc; color: #393939; }
.contact-email__address { margin: 0; font-family: var(--font-poppins); font-size: 19px; color: var(--color-muted); word-break: break-word; }
.contact-email__address a { color: inherit; }
@media (max-width: 767px) {
  .contact-email__address { font-size: 16px; }
}

/* ============ 6. Pages ============ */

/* === Page: /404.html === */
.not-found { padding: 80px var(--tablet-pad); text-align: center; }
.not-found__title { font-size: 85px; color: var(--color-red); }
.not-found__text { margin-top: var(--widget-gap); font-family: var(--font-poppins); font-size: 17px; font-weight: 600; }
.not-found__links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--widget-gap); margin: 30px 0 0; padding: 0; list-style: none; }

/* ============ 7. Utilities ============ */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.text-center { text-align: center; }

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