/*
 * site.css: the only stylesheet for kyaneez.com.
 *
 * 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        sections and inner containers
 *   5. Components    one block per component: "=== Component: <name> ==="
 *   6. Pages         rare 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    desktop ≥ 1025px
 * The header switches to the burger menu at ≤ 1024px; the footer menu is hidden at ≤ 1024px.
 *
 * Measurements come from the live site's computed styles (Elementor kit 8, pages 5 and 192):
 * sections are 120px apart, have 30px side padding and a 1280px container; Elementor's
 * 10px column padding is kept so text and images sit exactly where they did.
 *
 * Editing: change tokens to restyle the site; add new components as new blocks;
 * add modifier classes (.hero-frame--franchise) instead of changing a component for one page.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (Elementor global colours) */
  --color-text: #000000;        /* primary / text */
  --color-white: #ffffff;       /* secondary */
  --color-accent: #750012;      /* accent: maroon (hero, buttons, active footer link) */
  --color-frame: #000000;       /* 15px black frame round the hero */
  --color-bg: #ffffff;

  /* Typography (Poppins everywhere; self-hosted) */
  --font-body: "Poppins", sans-serif;
  --leading: normal;            /* the original used the font's normal line height (about 1.5 for Poppins) */
  --text-body: 20px;            /* text editor widgets */
  --text-body-mobile: 16px;
  --text-hero: 70px;            /* hero title (global "primary" typography) */
  --text-hero-mobile: 40px;
  --text-h2: 50px;              /* section headings (global "secondary" typography) */
  --text-nav: 18px;
  --text-footer: 20px;
  --text-small: 16px;

  /* Spacing and shape */
  --section-gap: 120px;         /* margin above and below every section */
  --section-pad-x: 30px;
  --container: 1280px;
  --col-pad: 10px;              /* Elementor column padding */
  --frame-width: 15px;
  --divider-width: 90px;
  --divider-height: 1.5px;
  --radius-pill: 27px;
  --radius-toggle: 3px;

  /* Motion (match the original's timings) */
  --duration: 300ms;
  --duration-nav: 400ms;
  --ease-pointer: cubic-bezier(0.58, 0.3, 0.005, 1);
}

/* ============ 2. Fonts ============ */
/* Self-hosted Google Font (latin subset): Poppins 200, 400, 500, 700. */
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-200.woff2") format("woff2"); font-weight: 200; font-style: normal; font-display: swap; }
@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-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-700.woff2") format("woff2"); font-weight: 700; 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: var(--leading); color: var(--color-text); background: var(--color-bg); }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-body); }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* ============ 4. Layout ============ */
/* A page section: 120px above and below (margins collapse between sections), 30px side padding. */
.section { margin-block: var(--section-gap); padding-inline: var(--section-pad-x); }
/* The section's container plus Elementor's 10px column padding. */
.section__inner { max-width: var(--container); margin-inline: auto; padding: var(--col-pad); }
.section__inner--1000 { max-width: 1000px; padding: 0; } /* app section: its two columns carry the 10px padding */
.section__inner--970 { max-width: 970px; }

/* ============ 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-accent); }
.skip-link:focus { left: 16px; }

/* === Component: hero-frame (the framed maroon banner; holds the shared header and the page title) ===
 * 15px black border; maroon background with the burger/texture image laid over it at 26% opacity,
 * at its natural size, repeating from the top left (as the original Elementor overlay).
 * Height: 841px on / and 647px on /franchise/ (border-box), growing if the menu opens.
 */
.hero-frame { position: relative; min-height: 841px; padding: calc(50px + var(--col-pad)) calc(30px + var(--col-pad)); border: var(--frame-width) solid var(--color-frame); background-color: var(--color-accent); color: var(--color-white); }
.hero-frame::before { content: ""; position: absolute; inset: 0; background: var(--color-accent) url("/wp-content/uploads/2022/07/heroimagekyaneez.png") 0 0 repeat; opacity: 0.26; pointer-events: none; }
.hero-frame > * { position: relative; }
.hero-frame--franchise { min-height: 647px; }
.hero { padding-top: 171px; }
.hero__title { max-width: var(--container); margin-inline: auto; padding: var(--col-pad); font-size: var(--text-hero); font-weight: 700; line-height: 1; text-align: center; color: var(--color-white); }
@media (max-width: 767px) {
  .hero { padding-top: 49px; }
  .hero__title { font-size: var(--text-hero-mobile); }
}

/* === Component: site-header (inside .hero-frame; not sticky, scrolls away as the original) ===
 * Columns: logo 20.988% | menu 65.266% | Order Now 13.027% (desktop); 33/33/34% (tablet); stacked (mobile).
 */
.site-header { padding-inline: 30px; }
.site-header__inner { display: flex; align-items: center; max-width: var(--container); margin-inline: auto; }
.site-header__logo-col { flex: 0 0 20.988%; padding: var(--col-pad); }
.site-header__nav-col { flex: 0 0 65.266%; padding: var(--col-pad); }
.site-header__cta-col { flex: 0 0 13.027%; padding: var(--col-pad); text-align: right; }
.site-header__logo { display: block; }
.site-header__logo img { width: 100%; }
@media (max-width: 1024px) {
  .site-header__logo-col, .site-header__nav-col { flex-basis: 33%; }
  .site-header__cta-col { flex-basis: 34%; }
}
@media (max-width: 767px) {
  .site-header__inner { flex-direction: column; align-items: stretch; }
  .site-header__logo-col, .site-header__nav-col, .site-header__cta-col { flex-basis: auto; }
  .site-header__cta-col { text-align: center; }
}

/* === Component: site-nav (desktop: white links with underline pointer; ≤1024px: burger + in-flow white dropdown) === */
.nav-toggle { display: none; align-items: center; justify-content: center; width: 33px; height: 33px; margin-inline: auto; padding: 5.5px; border: 0; border-radius: var(--radius-toggle); background: var(--color-white); color: var(--color-accent); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; fill: currentColor; }
.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; }
.site-nav__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 36px; margin: 0; padding: 0; list-style: none; }
.site-nav__list a { position: relative; display: flex; align-items: center; font-size: var(--text-nav); font-weight: 500; 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: 2px; background: var(--color-white); opacity: 0; transition: opacity var(--duration) var(--ease-pointer); }
.site-nav__list a:hover::after, .site-nav__list a:focus-visible::after,
.site-nav__list a.is-active::after, .site-nav__list a[aria-current="page"]::after { opacity: 1; }
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  /* Slide-down: grid row 0fr → 1fr; align-items: stretch keeps the list clipped while it animates. */
  .site-nav { display: grid; grid-template-rows: 0fr; align-items: stretch; margin-top: 10px; background: var(--color-white); transition: grid-template-rows var(--duration); }
  .site-nav.is-open { grid-template-rows: 1fr; }
  .site-nav.is-instant { transition: none; }
  .site-nav__list { display: block; min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s var(--duration); }
  .site-nav.is-open .site-nav__list { visibility: visible; transition: none; }
  .site-nav__list a { justify-content: center; min-height: 40px; padding: 10px 20px; color: var(--color-accent); text-transform: capitalize; }
  .site-nav__list a::after { display: none; }
  .site-nav__list a:hover, .site-nav__list a:focus-visible { background: var(--color-accent); color: var(--color-white); }
}

/* === Component: button (pill; "Order Now") === */
.button { display: inline-block; padding: 12px 24px; border: 0; border-radius: var(--radius-pill); background: var(--color-white); color: var(--color-accent); font-family: var(--font-body); font-size: 16px; font-weight: 400; line-height: 1; text-align: center; text-transform: capitalize; text-decoration: none; cursor: pointer; transition: all var(--duration); }
/* Solid maroon variant (the original form's Submit button) */
.button--solid { display: block; width: 100%; border-radius: 0; background: var(--color-accent); color: var(--color-white); font-weight: 500; }

/* === Component: section-heading (short black rule, 40px gap, 50px bold heading) === */
.section-heading { text-align: center; }
.section-heading::before { content: ""; display: block; width: var(--divider-width); margin: 0 auto 40px; border-top: var(--divider-height) solid var(--color-text); }
.section-heading__title { font-size: var(--text-h2); font-weight: 700; line-height: 1; text-transform: capitalize; }
.section-heading--spaced { margin-bottom: 20px; } /* 20px spacer below "Contact Us" headings */

/* === Component: prose (centred text editor block; 20px, 16px on mobile) === */
.prose { display: flow-root; font-size: var(--text-body); text-align: center; }
.prose p { margin: 1em 0; }
@media (max-width: 767px) { .prose:not(.prose--keep-size) { font-size: var(--text-body-mobile); } }
/* .prose--keep-size: stays 20px on mobile (the "Why us?" text, as the original) */

/* === Component: intro (heading + prose block inside a section) === */
.intro { padding: var(--col-pad); margin-inline: auto; }
.intro--narrow { max-width: 1020px; }
.intro::after { content: ""; display: block; height: 16px; } /* spacer below the History text */
.intro--flush::after { display: none; }

/* === Component: collage (3 columns: tall image | two short images | tall image; stacks on mobile) === */
.collage { display: grid; grid-template-columns: repeat(3, 1fr); }
.collage__col { display: grid; align-content: start; gap: 20px; padding: var(--col-pad); }
.collage img { width: 100%; object-fit: cover; object-position: center; }
.collage__img--tall { height: 480px; }
.collage__img--short { height: 230px; }
@media (max-width: 767px) { .collage { grid-template-columns: 1fr; } }

/* === Component: features (3 icon boxes: 50px icon, 15px gap, 20px bold title) === */
.features { display: grid; grid-template-columns: repeat(3, 1fr); }
.feature { display: flex; flex-direction: column; align-items: center; gap: 15px; padding: calc(var(--col-pad) + 50px) var(--col-pad) var(--col-pad); text-align: center; }
.feature__icon { width: 50px; height: 50px; object-fit: contain; }
.feature__title { margin: 20px 0; font-size: 20px; font-weight: 700; line-height: 30px; }
@media (max-width: 767px) { .features { grid-template-columns: 1fr; } }

/* === Component: gallery-grid (Our Menu: 4 columns, 40px gutters, GLightbox; 1 column on mobile) === */
.gallery-grid { display: flex; flex-wrap: wrap; margin: 0 -40px -40px 0; padding: 0; list-style: none; }
.gallery-grid__item { width: 25%; padding: 0 40px 40px 0; text-align: center; }
.gallery-grid__item a { display: block; }
.gallery-grid__item img { max-width: 100%; margin: 0 auto 10px; }
@media (max-width: 767px) { .gallery-grid__item { width: 100%; } }
.gallery-section__heading { max-width: 650px; margin: 0 auto 30px; }
.gallery-section__after { height: 60px; }
/* GLightbox: dark overlay, as the Elementor lightbox */
.glightbox-clean .gslide-description { background: transparent; }
.glightbox-clean .gslide-title { margin: 0; color: var(--color-white); font-family: var(--font-body); font-size: 16px; font-weight: 400; text-align: center; }
.goverlay { background: rgb(0 0 0 / 0.87); }

/* === Component: app-promo (phone mockup 40% | heading, text and store badges 60%) === */
.app-promo { display: flex; align-items: center; }
.app-promo__media { flex: 0 0 40%; padding: var(--col-pad); }
.app-promo__media img { margin-inline: auto; }
.app-promo__body { flex: 0 0 60%; padding: var(--col-pad); text-align: center; }
.app-promo__title { font-size: var(--text-h2); font-weight: 700; line-height: 1; text-transform: capitalize; }
.app-promo__text { display: flow-root; margin-block: 10px; font-size: 20px; line-height: 1.2; }
.app-promo__text p { margin: 20px 0; }
.app-promo__badges { display: inline-block; vertical-align: top; }
@media (max-width: 1024px) { .app-promo__text { line-height: 1.1; } }
@media (max-width: 767px) {
  .app-promo { flex-direction: column; align-items: stretch; }
  .app-promo__media, .app-promo__body { flex-basis: auto; }
}

/* === Component: map (keyless Google Maps iframe, 300px high, address caption below) === */
.map-block { padding: var(--col-pad); }
.map { display: block; width: 100%; height: 300px; margin-top: 23px; border: 0; }
.map-block__caption { margin-top: 10px; font-size: var(--text-small); font-weight: 200; line-height: 1; text-align: center; text-transform: capitalize; }

/* === Component: contact-layout (form area 58.73% | map 41.27%; map full width while there is no email) === */
.contact-layout { display: block; }
.contact-layout.has-email { display: flex; align-items: flex-start; }
.contact-layout.has-email > .contact-email { flex: 0 0 58.73%; }
.contact-layout.has-email > .map-block { flex: 0 0 41.27%; }
@media (max-width: 767px) { .contact-layout.has-email { display: block; } }

/* === Component: contact-email (replaces the Elementor "Franchise Form"; filled by site.js from CONFIG.contactEmail) === */
.contact-email[hidden] { display: none; }
.contact-email { display: grid; gap: 16px; padding: var(--col-pad); margin-top: 23px; }
.contact-email__button { display: block; width: 100%; padding: 12px 24px; border-radius: 0; background: var(--color-accent); color: var(--color-white); font-weight: 500; }
.contact-email__address { font-size: var(--text-small); text-align: center; word-break: break-word; }
.contact-email__address a { color: var(--color-accent); }

/* === Component: site-footer (credit left, menu right; menu hidden ≤1024px) === */
.site-footer { margin-block: var(--section-gap); padding-inline: var(--section-pad-x); }
.site-footer__inner { display: flex; align-items: center; max-width: var(--container); margin-inline: auto; }
.site-footer__credit-col { flex: 0 0 36.561%; padding: var(--col-pad); }
.site-footer__nav-col { flex: 0 0 63.439%; padding: var(--col-pad); }
.site-footer__credit { font-size: var(--text-footer); font-weight: 200; line-height: 1; }
.site-footer__credit strong { font-weight: 400; }
.site-footer__credit a { text-decoration: none; }
.site-footer__credit a:hover { text-decoration: underline; }
.footer-nav__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 36px; margin: 0; padding: 0; list-style: none; }
.footer-nav__list a { position: relative; display: flex; font-size: var(--text-footer); font-weight: 200; line-height: 20px; color: var(--color-text); text-decoration: none; transition: color var(--duration-nav); }
.footer-nav__list a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--color-accent); opacity: 0; transition: opacity var(--duration) var(--ease-pointer); }
.footer-nav__list a:hover, .footer-nav__list a:focus-visible, .footer-nav__list a.is-active, .footer-nav__list a[aria-current="page"] { color: var(--color-accent); }
.footer-nav__list a:hover::after, .footer-nav__list a:focus-visible::after, .footer-nav__list a.is-active::after, .footer-nav__list a[aria-current="page"]::after { opacity: 1; }
@media (max-width: 1024px) {
  .site-footer__credit-col { flex-basis: 55%; }
  .site-footer__nav-col { flex-basis: 45%; }
  .footer-nav { display: none; }
}
@media (max-width: 767px) {
  .site-footer__inner { flex-direction: column; align-items: stretch; }
  .site-footer__credit { text-align: center; }
}

/* ============ 6. Pages ============ */
/* === Page: /404.html === */
.not-found__order { display: inline-block; width: auto; border-radius: var(--radius-pill); }

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

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