/*
 * site.css: the only stylesheet for thecharcoalkebabhouse.com.
 *
 * Sections, in order:
 *   1. Tokens        colours, fonts, spacing (custom properties)
 *   2. Fonts         @font-face for self-hosted fonts
 *   3. Base          reset and element defaults
 *   4. Layout        container, sections
 *   5. Components    one block per component: "=== Component: <name> ==="
 *   6. Pages         page-specific rules: "=== Page: <path> ==="
 *   7. Utilities     a handful of helpers
 *
 * Breakpoints (the original's Elementor breakpoints; media queries can't use custom properties):
 *   mobile  <= 767px    tablet 768px-1024px (burger menu)    desktop >= 1025px
 *
 * Editing: change tokens to restyle the site; add new components as new blocks;
 * add modifier classes (.button--ghost) instead of changing a component for one page.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (Elementor kit: primary #000, secondary/text #fff; nav hover #E01313; button hover #4D4D4D) */
  --color-black: #000000;
  --color-white: #ffffff;
  --color-red: #e01313;
  --color-button-hover: #4d4d4d;
  --color-text: var(--color-white);
  --color-bg: var(--color-black);

  /* Typography (Black Han Sans for headings, nav and buttons; Inter for body text) */
  --font-heading: "Black Han Sans", Sans-serif;
  --font-body: "Inter", Sans-serif;
  --text-body: 20px;          /* 16px at <= 1024px for most blocks */
  --text-h2: 40px;            /* 30px at <= 1024px */
  --text-h2-large: 60px;      /* app heading; 50px at <= 1024px */
  --text-small-heading: 20px; /* menu cards, nav, buttons */

  /* Spacing and shape */
  --container: 1280px;
  --section-pad: 60px;
  --radius: 20px;
  --gap: 20px;

  /* Motion */
  --duration: 300ms;
  --ease: ease;

  /* Shared assets */
  --bg-wood: url("/wp-content/uploads/2023/10/bg.png");
  --bg-diagonal: url("/wp-content/uploads/2023/10/about_bg.png");
}

/* ============ 2. Fonts ============ */
@font-face { font-family: "Black Han Sans"; src: url("/assets/fonts/black-han-sans-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-var.woff2") format("woff2"); font-weight: 100 900; 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-body); font-size: 16px; line-height: normal; color: var(--color-text); background: var(--color-bg); overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; text-transform: uppercase; line-height: 1; margin: 0; }
/* The original's site-wide custom CSS: paragraphs have no margin except 20px between consecutive ones */
p { margin: 0; }
p:has(+ p) { margin-bottom: 20px; }
a { color: inherit; transition: color var(--duration) var(--ease), background-color var(--duration) var(--ease); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-white); outline-offset: 2px; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ============ 4. Layout ============ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; }
.section { position: relative; padding: var(--section-pad); }
.section--wood { background: var(--color-black) var(--bg-wood); }
.section--diagonal { background: var(--color-black) var(--bg-diagonal) center center / cover no-repeat; }

/* ============ 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: site-header (rounded black bar, not sticky; overlaps the hero) === */
.site-header { position: relative; z-index: 60; padding: 20px; }
.site-header__bar { max-width: var(--container); margin-inline: auto; padding: 20px; background: var(--color-black); border-radius: var(--radius); }
.nav-toggle { display: none; }
.site-nav__list { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 13px 20px; font-family: var(--font-heading); font-size: var(--text-small-heading); line-height: 20px; text-transform: uppercase; text-decoration: none; color: var(--color-white); }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--color-red); }
@media (max-width: 1024px) {
  /* Burger centred in the bar (33px original, enlarged to a 44px tap target without changing the bar height) */
  .nav-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -5.5px auto; padding: 0; border: 0; border-radius: 3px; background: var(--color-black); color: var(--color-white); cursor: pointer; }
  .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; }
  /* Full-width black dropdown that drops from 10px below the burger (Elementor: max-height + scaleY, .3s) */
  .site-nav { position: absolute; left: 0; right: 0; top: 83px; background: var(--color-black); overflow: hidden; max-height: 0; transform: scaleY(0); transform-origin: top; visibility: hidden; transition: max-height var(--duration) var(--ease), transform var(--duration) var(--ease), visibility 0s linear var(--duration); }
  .site-nav.is-open { max-height: 100vh; transform: scaleY(1); visibility: visible; transition: max-height var(--duration) var(--ease), transform var(--duration) var(--ease), visibility 0s; }
  .site-nav__list { flex-direction: column; }
  .site-nav a { padding: 10px 20px; text-align: center; }
}

/* === Component: site-footer (contact details + copyright left, map right) === */
.site-footer { background: var(--color-black); }
.site-footer__inner { display: flex; max-width: var(--container); margin-inline: auto; }
.site-footer__info { display: flex; flex-wrap: wrap; align-items: center; width: 50%; padding: 30px; }
.site-footer__details, .site-footer__bar { width: 100%; }
.site-footer__details { display: flex; }
.site-footer__block { flex: 1 1 0; padding: 10px; text-align: center; font-size: var(--text-body); }
.site-footer__block--address::after { content: ""; display: block; height: 50px; }
.site-footer__bar { padding-top: 13px; text-align: center; font-size: var(--text-body); }
.site-footer__bar p { margin: 0; }
.site-footer__copyright { margin-bottom: 10px !important; }
.site-footer__credit a { text-decoration: none; }
.site-footer__credit a:hover { text-decoration: underline; }
.site-footer__map { width: 50%; }
.site-footer__map .map { height: 460px; }
@media (max-width: 1024px) {
  .site-footer__block { padding: 0; font-size: 16px; }
  .site-footer__bar { font-size: 16px; }
}
@media (max-width: 767px) {
  .site-footer__inner { flex-direction: column; }
  .site-footer__info, .site-footer__map { width: 100%; }
  .site-footer__details { flex-direction: column; }
  .site-footer__block--address::after { height: 16px; }
}

/* === Component: section-heading (white, uppercase Black Han Sans) === */
.section-heading { font-size: var(--text-h2); color: var(--color-white); text-align: center; margin-bottom: 50px; }
.section-heading--start { text-align: start; margin-bottom: 10px; }
@media (max-width: 1024px) {
  .section-heading { font-size: 30px; }
}
@media (max-width: 767px) {
  .section-heading--start { text-align: center; }
}

/* === Component: text (Inter 500, 20px; 16px at <= 1024px) === */
.text { font-size: var(--text-body); font-weight: 500; color: var(--color-white); }
@media (max-width: 1024px) { .text--shrink { font-size: 16px; } }

/* === Component: button (Elementor button: black, rounded, hover #4D4D4D) === */
.button { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 30px 80px; border: 0; border-radius: var(--radius); background: var(--color-black); color: var(--color-white); font-family: var(--font-heading); font-size: var(--text-small-heading); line-height: 20px; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease); }
.button:hover, .button:focus-visible { background: var(--color-button-hover); color: var(--color-white); }
/* Text-only buttons (transparent; the original's widget colour overrides the hover background) */
.button--ghost, .button--ghost:hover, .button--ghost:focus-visible { background: transparent; }
.button--compact { padding: 30px; }
/* White app download button (no hover change on the original) */
.button--light, .button--light:hover, .button--light:focus-visible { background: var(--color-white); color: var(--color-black); border-radius: 10px; padding: 15px 30px; }
@media (max-width: 1024px) {
  .button--tablet-compact { padding: 30px; }
}
@media (max-width: 767px) {
  .button, .button--compact, .button--tablet-compact { padding: 20px; }
  .button--light { padding: 15px 30px; }
}

/* === Component: button-row (centred row of buttons, column on mobile when --stack) === */
.button-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; padding: 10px; }
.button-row--start { justify-content: flex-start; flex-wrap: nowrap; }
@media (max-width: 767px) {
  .button-row--stack { flex-direction: column; align-items: center; }
}

/* === Component: menu-card (Our Favourites cards: black, 3px white border) === */
.menu-cards { display: flex; gap: 30px; padding: 10px; }
.menu-card { flex: 1 1 0; padding: 30px; border: 3px solid var(--color-white); border-radius: var(--radius); background: var(--color-black); text-align: center; }
.menu-card__title { font-size: var(--text-small-heading); line-height: 1; color: var(--color-white); margin-bottom: 15px; }
.menu-card__text { font-size: var(--text-body); font-weight: 500; margin-bottom: 0; }
.menu-card__price { margin-top: 15px; font-size: var(--text-body); font-weight: 500; }
@media (max-width: 1024px) {
  .menu-cards { flex-direction: column; }
}

/* === Component: gallery-carousel (Swiper; arrows outside the slides, dots below) === */
.gallery-carousel { position: relative; }
.gallery-carousel .swiper { width: calc(100% - 60px); padding-bottom: 30px; }
.gallery-carousel .swiper-slide { text-align: center; }
/* inline images keep the original's 4px baseline gap under each slide */
.gallery-carousel .swiper-slide img { display: inline-block; width: 300px; height: auto; max-width: 100%; object-fit: initial; }
.gallery-carousel__arrow { position: absolute; top: calc(50% - 15px); transform: translateY(-50%); z-index: 2; display: flex; align-items: center; justify-content: center; width: 30px; height: 44px; padding: 0; border: 0; background: none; color: var(--color-white); cursor: pointer; }
.gallery-carousel__arrow svg { width: 25px; height: 25px; }
.gallery-carousel__arrow--prev { left: -3px; }
.gallery-carousel__arrow--next { right: -3px; }
/* Dots are black on black on the original (Elementor default bullets): kept as is */
.gallery-carousel .swiper-pagination { bottom: 0; }
.gallery-carousel .swiper-pagination-bullet { width: 6px; height: 6px; margin: 0 6px; background: var(--color-black); opacity: 0.2; }
.gallery-carousel .swiper-pagination-bullet-active { opacity: 1; }

/* === Component: map === */
.map { display: block; width: 100%; height: 460px; border: 0; }

/* === Component: contact-email (not used: the site has no forms; kept for future use) === */
.contact-email { display: grid; gap: 16px; justify-items: center; text-align: center; }
.contact-email__address { font-weight: 600; word-break: break-word; }

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

/* === Page: / (one-page home) === */
/* Hero: pulled up 128px under the header bar, full viewport height */
.hero { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100vh; margin-top: -128px; padding-top: 100px; background-image: var(--bg-wood); }
.hero__logo { width: calc(min(100%, var(--container)) * 0.42); margin-bottom: 50px; }
@media (max-width: 1024px) { .hero { padding-top: 80px; } }
@media (max-width: 767px) { .hero__logo { width: 65%; } }

.about { text-align: center; }
@media (max-width: 1024px) { .about .section-heading { margin-bottom: 29px; } }

/* Our story: text left, two overlapping photos right */
.story__inner { display: flex; }
.story__text, .story__media { width: 50%; padding: 10px; }
.story__media { display: flex; }
.story__photo { position: relative; flex: 1 1 0; border-radius: var(--radius); overflow: hidden; min-height: 70px; }
.story__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story__photo--front { z-index: 10; flex-grow: 327; margin: 0 70px 70px 0; }
.story__photo--back { z-index: 1; flex-grow: 318; margin: 70px 0 0 -95px; }
@media (max-width: 1024px) {
  .story__media { flex-direction: column; padding: 0; }
  .story__photo { flex: none; }
  .story__photo--front { height: 231px; margin: 0 0 70px; }
  .story__photo--back { height: 211px; margin: -117px 0 0; }
}
@media (max-width: 767px) {
  .story__inner { flex-direction: column; }
  .story__text, .story__media { width: 100%; }
  .story__text { text-align: center; }
}


/* Our favourites: the button row loses its padding on mobile (original 4595332) */
@media (max-width: 767px) { .favourites .button-row { padding: 0; } }

/* App: heading + store badges + button left, phone right */
.app { background-image: url("/wp-content/uploads/2023/10/app_bg.png"); }
.app__inner { display: flex; }
.app__text, .app__media { width: 50%; padding: 10px; }
.app__text { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.app__heading { font-size: var(--text-h2-large); padding: 0 100px; margin-bottom: 19px; }
.app__badges-link { display: block; width: 245px; max-width: 100%; margin-bottom: 19px; }
.app__badges { width: 100%; }
.app__phone { width: 63%; margin-inline: auto; }
@media (max-width: 1024px) {
  .app__heading { font-size: 50px; padding: 0; }
  .app__phone { width: 88%; }
}
@media (max-width: 767px) {
  .app__inner { flex-direction: column; }
  .app__text, .app__media { width: 100%; }
  .app__badges-link { width: 100%; }
}

/* === Page: /404 === */
.page-404 { background: var(--color-black) var(--bg-wood); }
.not-found { text-align: center; min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }
.not-found .text { max-width: 40em; margin: 0 auto 30px; }

/* ============ 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; }
}
