/*
 * site.css: the only stylesheet for equishamilton.co.uk (Equi's Hamilton).
 *
 * 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, columns
 *   5. Components    one block per component: "=== Component: <name> ==="
 *   6. Pages         rare page-specific rules: "=== Page: <path> ==="
 *   7. Utilities     a handful of helpers
 *
 * Breakpoints (from the original Elementor site; media queries can't use custom properties):
 *   mobile  ≤ 767px    tablet 768px–1024px    desktop ≥ 1025px
 *   - The header nav collapses to the burger dropdown at ≤ 1024px.
 *   - Columns stack at ≤ 767px. The header is sticky at ≥ 768px only.
 *
 * Editing: change tokens to restyle the site; add new components as new blocks;
 * add modifier classes (.section-heading--center) instead of changing a component for one page.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (from the original's computed styles) */
  --color-green: #54dc8c;          /* headings, buttons, footer, carousel band */
  --color-green-light: #73dfa3;    /* burger button */
  --color-green-pale: #d9ffe9;     /* Contact Us band */
  --color-mint: #aafdb6;           /* nav hover / active */
  --color-header-bg: rgb(57 57 57 / 0.83); /* #393939D4 translucent header bar */
  --color-text: #000000;
  --color-white: #ffffff;
  --color-toggle-icon: #fff6f6;
  --color-dropdown-hover: #3f444b;
  --color-arrow: rgb(238 238 238 / 0.9);

  /* Typography */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-display: "Titan One", "Arial Black", sans-serif;
  --font-footer: "Roboto", system-ui, Arial, sans-serif;
  --text-base: 16px;
  --text-lg: 20px;
  --text-heading: 40px;
  --text-footer-heading: 24px;

  /* Spacing and shape */
  --container: 1280px;       /* Elementor boxed width */
  --col-pad: 10px;           /* Elementor column padding */
  --section-gutter: 30px;    /* side padding of most sections */
  --radius-image: 30px;
  --radius-button: 3px;

  /* Motion (match the original's timings) */
  --duration: 300ms;
  --ease: ease;
}

/* ============ 2. Fonts ============ */
/* Self-hosted Google Fonts (latin subset, OFL). Inter and Roboto are variable files. */
@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; }
@font-face { font-family: "Roboto"; src: url("/assets/fonts/roboto-latin-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Titan One"; src: url("/assets/fonts/titan-one-latin-400.woff2") format("woff2"); font-weight: 400; 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: var(--text-base); line-height: 1.5; color: var(--color-text); background: var(--color-white); }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 1em 0; }
a { color: inherit; text-decoration: none; transition: color var(--duration) var(--ease); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-green); outline-offset: 2px; }
address { font-style: normal; }

/* ============ 4. Layout ============ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; }
.col { padding: var(--col-pad); min-width: 0; }

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

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

/* === Component: site-header ===
 * Dark translucent bar: nav (left), round logo (centre, hangs below the bar on desktop),
 * ORDER NOW (right). Sticky at ≥ 768px like the original (Elementor Pro sticky: desktop + tablet).
 * On mobile the three parts stack and the bar scrolls away. */
.site-header { position: relative; z-index: 10; background: var(--color-header-bg); padding: 24px 32px; transition: background var(--duration), box-shadow var(--duration); }
.site-header__inner { display: flex; align-items: center; }
.site-header__col { padding: var(--col-pad); }
.site-header__col--nav { width: 43.098%; position: static; }
.site-header__col--logo { width: 13.391%; display: flex; justify-content: center; }
.site-header__col--order { width: 42.844%; display: flex; justify-content: flex-end; }
.site-header__logo { width: 100%; max-width: 150px; height: auto; }
@media (min-width: 768px) {
  .site-header { position: sticky; top: 0; }
}
@media (min-width: 1025px) {
  /* The logo overlaps the bottom of the bar (Elementor widget margin-bottom: -100px). */
  .site-header__col--logo { align-self: flex-start; }
  .site-header__col--logo .site-header__logo { margin-bottom: -100px; }
}
@media (max-width: 767px) {
  .site-header__inner { flex-direction: column; align-items: stretch; }
  .site-header__col { width: 100%; }
  .site-header__col--nav { display: flex; justify-content: center; }
  .site-header__col--order { justify-content: center; }
}

/* === Component: site-nav (desktop row + burger dropdown ≤ 1024px) === */
.site-nav__list { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { display: block; font-family: var(--font-body); font-size: var(--text-lg); line-height: 20px; }
@media (min-width: 1025px) {
  .site-nav__list li { margin-inline: 8px; }
  .site-nav__list li:first-child { margin-inline-start: 0; }
  .site-nav__list li:last-child { margin-inline-end: 0; }
  .site-nav__list a { padding: 13px 2px; color: var(--color-white); }
  .site-nav__list a:hover, .site-nav__list a:focus, .site-nav__list a.is-active { color: var(--color-mint); }
  .nav-toggle { display: none; }
}
.nav-toggle { position: relative; display: none; align-items: center; justify-content: center; width: 33px; height: 33px; margin: 0 auto; padding: 5.5px; border: 0; border-radius: var(--radius-button); background: var(--color-green-light); color: var(--color-toggle-icon); cursor: pointer; }
.nav-toggle::after { content: ""; position: absolute; inset: -6px; } /* 45px tap target, same look */
.nav-toggle svg { width: 22px; height: 22px; }
.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; }
  /* Full-width white dropdown under the burger (top set by site.js from the burger's position). */
  .site-nav { position: absolute; left: 0; right: 0; top: var(--nav-top, 77px); z-index: 9997; background: var(--color-white); max-height: 0; overflow: hidden; transform: scaleY(0); transform-origin: top; visibility: hidden; transition: max-height .3s, transform .3s, visibility 0s .3s; }
  .site-nav.is-open { max-height: 300px; transform: scaleY(1); visibility: visible; transition: max-height .3s, transform .3s, visibility 0s; }
  .site-nav__list { flex-direction: column; flex-wrap: nowrap; }
  .site-nav__list a { padding: 10px 20px 10px 12px; border-inline-start: 8px solid transparent; color: var(--color-green); }
  .site-nav__list a:hover, .site-nav__list a:focus { background: var(--color-dropdown-hover); color: var(--color-white); }
}

/* === Component: button === */
.button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: var(--radius-button); background: var(--color-green); color: var(--color-white); font-family: var(--font-display); font-size: 15px; line-height: 15px; text-decoration: none; border: 0; cursor: pointer; }

/* === Component: section-heading (Titan One, green, uppercase) === */
.section-heading { font-family: var(--font-display); font-size: var(--text-heading); line-height: 1; text-transform: uppercase; color: var(--color-green); }
.section-heading--center { text-align: center; padding-inline: 30px; }

/* === Component: hero (full-height background photo, no text) === */
.hero { min-height: 100vh; padding-inline: var(--section-gutter); background-position: center center; background-repeat: no-repeat; background-size: cover; }
@media (min-width: 1025px) {
  .hero { margin-top: -109px; } /* sits under the translucent header bar */
}

/* === Component: story (text column + rounded image) === */
.story { margin-block: 120px; padding-inline: var(--section-gutter); }
.story__inner { display: flex; }
.story__text { width: 53.438%; display: flex; flex-direction: column; justify-content: center; }
.story__media { width: 46.524%; display: flex; align-items: center; justify-content: center; }
.story__heading { margin-bottom: 10px; }
.story__copy { width: 72.739%; display: flow-root; font-size: var(--text-base); line-height: 22px; }
.story__media img { border-radius: var(--radius-image); }
@media (max-width: 1024px) {
  .story__copy { width: 334px; max-width: 100%; }
}
@media (max-width: 767px) {
  .story__inner { flex-direction: column; }
  .story__text, .story__media { width: 100%; }
  .story__copy { width: 100%; }
}

/* === Component: dashed-divider (8px dashed green line) === */
.dashed-divider { padding-block: 15px; }
.dashed-divider span { display: block; border-top: 8px dashed var(--color-green); }

/* === Component: menu-band (green strip with dashed white edges holding the carousel) === */
.menu-band__strip { margin-block: 16px; padding: 80px var(--section-gutter); background: var(--color-green); border-style: dashed; border-color: var(--color-white); border-width: 10px 0; }

/* === Component: carousel (Swiper; library CSS in /assets/vendor/swiper-14.3.0/) === */
.carousel { --swiper-navigation-size: 25px; --swiper-navigation-color: var(--color-arrow); --swiper-navigation-sides-offset: 10px; --swiper-navigation-top-offset: calc(50% - 15px); --swiper-pagination-bullet-size: 6px; --swiper-pagination-bullet-horizontal-gap: 6px; --swiper-pagination-color: #000; padding-bottom: 30px; }
.carousel .swiper-slide { text-align: center; }
.carousel figure { margin: 0; line-height: 1; }
.carousel img { display: inline; vertical-align: baseline; border-radius: var(--radius-image); }
.carousel .swiper-button-prev, .carousel .swiper-button-next { background: none; border: 0; padding: 0; }
.carousel .swiper-button-prev svg, .carousel .swiper-button-next svg { width: 25px; height: 25px; fill: currentColor; }
.carousel .swiper-button-prev .swiper-navigation-icon { transform: none; }
.carousel .swiper-pagination-bullet:only-child { display: none; }
/* Without JS (or before Swiper starts) show the first slides side by side. */
.carousel:not(.swiper-initialized) .swiper-wrapper { display: flex; overflow: hidden; }
.carousel:not(.swiper-initialized) .swiper-slide { flex: 0 0 100%; }
@media (min-width: 1025px) {
  .carousel:not(.swiper-initialized) .swiper-slide { flex-basis: 33.333%; }
}

/* === Component: app-band ("Download Our App" on a dark photo, phone mock-up overlapping) === */
.app-section { padding-block: 120px; }
.app-band { padding-inline: var(--section-gutter); background-position: center center; background-repeat: no-repeat; background-size: cover; }
.app-band__inner { display: flex; }
.app-band__text { width: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--color-white); }
.app-band__heading { width: 640px; max-width: 100%; font-family: var(--font-display); font-size: var(--text-heading); line-height: 52px; color: var(--color-white); }
.app-band__copy { width: 492px; max-width: 100%; font-size: var(--text-lg); line-height: normal; display: flow-root; }
.app-band__badges a { display: inline-block; vertical-align: top; }
.app-band__badges img { display: block; }
.app-band__media { width: 50%; display: flex; justify-content: center; }
.app-band__media img { margin-block: -65px; }
@media (max-width: 767px) {
  .app-band { padding-block: 20px; }
  .app-band__inner { flex-direction: column; }
  .app-band__text, .app-band__media { width: 100%; }
  .app-band__copy { margin-top: 10px; }
  .app-band__badges { margin-top: 10px; }
  .app-band__media { padding-top: 50px; }
  .app-band__media img { margin-block: 0; width: 46%; }
}

/* === Component: contact-band (pale green "Contact Us" section) === */
.contact-band { padding: 120px var(--section-gutter); background: var(--color-green-pale); }

/* === Component: contact-email ===
 * Replaces WordPress forms. Here (q1 option B) it holds only the address and social links:
 * no form endpoint and no email yet (pending: Azure form endpoint). To switch to option A,
 * add <a class="button contact-email__button" href="mailto:…">Submit</a> and the visible address. */
.contact-email { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 25px; padding-inline: var(--col-pad); text-align: center; }
.contact-email__address { font-family: var(--font-body); font-size: var(--text-lg); line-height: 1.3; color: var(--color-text); }
.contact-email__button { font-size: 20px; line-height: 20px; padding: 10px 24px; }

/* === Component: social-icons (round Facebook / Instagram buttons) === */
.social-icons { display: flex; gap: 5px; list-style: none; margin: 0; padding: 0; }
.social-icons a { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; background: var(--color-white); color: var(--color-green); transition: opacity var(--duration); }
.social-icons a:hover { opacity: 0.9; }
.social-icons svg { width: 25px; height: 25px; fill: currentColor; }
.social-icons--inverse a { background: var(--color-green); color: var(--color-white); }

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

/* === Component: site-footer (green, four columns) === */
.site-footer { background: var(--color-green); padding: 60px var(--section-gutter); color: var(--color-white); }
.site-footer__inner { display: flex; }
.site-footer__col--links { width: 25%; }
.site-footer__col--address { width: 19.844%; }
.site-footer__col--hours { width: 24.921%; }
.site-footer__col--social { width: 30.235%; }
.site-footer__title { font-family: var(--font-footer); font-size: var(--text-footer-heading); line-height: 1; color: var(--color-white); margin-bottom: 10px; }
.site-footer__list { list-style: none; margin: 0; padding: 0; font-family: var(--font-body); font-size: var(--text-lg); line-height: normal; }
.site-footer__list li + li { margin-top: 6px; }
.site-footer__text { font-family: var(--font-footer); font-size: var(--text-lg); line-height: normal; }
.site-footer__text p { margin: 0; }
.site-footer__text--capitalize { text-transform: capitalize; }
.site-footer__col--social .social-icons { margin-bottom: 10px; }
.site-footer__legal { font-family: var(--font-footer); font-size: var(--text-footer-heading); line-height: 1; color: var(--color-white); }
.site-footer__legal a { color: inherit; }
.site-footer__legal a:hover { text-decoration: underline; }
@media (max-width: 767px) {
  .site-footer__inner { flex-direction: column; }
  .site-footer__inner > .col { width: 100%; }
}

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

/* === Page: /404.html === */
.not-found { padding: 120px var(--section-gutter); text-align: center; }
.not-found__text { font-size: var(--text-lg); }
.not-found__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; list-style: none; margin: 30px 0 0; padding: 0; font-size: var(--text-lg); }
.not-found__links a { color: var(--color-green); text-decoration: underline; }

/* ============ 7. Utilities ============ */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; } /* icon symbols in the header partial */
.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; }
}
