/*
 * site.css: the only stylesheet for endosplace.com (Endo's Place).
 *
 * 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, section shells
 *   5. Components    one block per component: "=== Component: <name> ==="
 *   6. Pages         rare page-specific rules
 *   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
 *
 * Measurements come from the live site's computed styles (Elementor page 8 + kit 6).
 * Elementor's "default column gap" is reproduced as 10px padding inside the container.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (Elementor global colours) */
  --color-dark: #282833;          /* primary: header, app, footer, review cards, page background */
  --color-white: #ffffff;         /* accent: light sections, text on dark */
  --color-secondary: #54595f;     /* active carousel bullet */
  --color-nav: #c0c5c8;           /* header nav text */
  --color-button-bg: #d9d9d9;     /* light grey buttons */
  --color-rule: #c7c7c7;          /* divider lines in the about section */
  --color-social-bg: rgb(255 255 255 / 0.21); /* round social icon background (#FFFFFF36) */
  --color-arrow: rgb(237 237 237 / 0.9);      /* carousel chevrons */
  --shadow-card: 0 0 10px 10px rgb(214 214 214 / 0.5);

  /* Typography */
  --font-body: "Inter", Arial, sans-serif;
  --font-heading: "Roboto", Arial, sans-serif;

  /* Layout */
  --container: 1280px;
  --gutter: 10px;                 /* Elementor column padding */
  --header-height: 114px;         /* sticky header (119px on mobile) */
  --radius-button: 3px;
  --radius-card: 15px;
  --radius-map: 20px;

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

/* ============ 2. Fonts ============ */
/* Google Fonts, self-hosted (latin subset, variable weight). Roboto Slab was loaded by the original but never used. */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-variable.woff2") format("woff2"); font-weight: 100 900; 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; }

/* ============ 3. Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: normal; color: var(--color-dark); background: var(--color-dark); }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
h1, h2, h3 { 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-nav); outline-offset: 2px; }
.icon { width: 1em; height: 1em; fill: currentColor; display: block; }

/* ============ 4. Layout ============ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
@media (max-width: 1024px) { .container { max-width: 1024px; } }

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

/* === Component: social-icon (round Instagram button, header and copyright bar) === */
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 22px; border-radius: 30px; background: var(--color-social-bg); color: var(--color-white); text-decoration: none; transition: opacity var(--duration) var(--ease); }
.social-icon:hover { opacity: 0.9; }
.social-icon--lg { width: 48px; height: 48px; font-size: 24px; }

/* === Component: site-header (sticky dark bar; nav hidden at <= 1024px, no hamburger, as on the original) === */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--color-dark); }
.site-header__inner { display: flex; align-items: flex-end; min-height: var(--header-height); padding-bottom: var(--gutter); max-width: var(--container); margin-inline: auto; }
.site-nav { flex: 0 0 85.156%; padding: 0 var(--gutter) 0 calc(163px + var(--gutter)); }
.site-nav__list { display: flex; justify-content: center; gap: 16px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; font-family: var(--font-body); font-weight: 900; text-transform: uppercase; color: var(--color-nav); text-decoration: none; transition: color var(--duration) var(--ease); }
.site-nav a:hover { color: var(--color-white); }
.site-header__social { flex: 0 0 14.806%; display: flex; justify-content: flex-end; padding-inline: var(--gutter); margin-left: auto; }
@media (max-width: 1024px) {
  .site-header__inner { max-width: 1024px; }
  .site-nav { display: none; }
  .site-header__social { justify-content: center; }
}
@media (max-width: 767px) {
  :root { --header-height: 119px; }
  .site-header__social { flex: 1 1 100%; padding: 0 9px 0 40px; } /* the original's icon block sits at x40-366, so the icon is ~15px right of centre */
}

/* === Component: button (light grey, heavy uppercase) === */
.button { display: inline-block; padding: 12px 24px; border-radius: var(--radius-button); background: var(--color-button-bg); color: var(--color-dark); font-family: var(--font-body); font-size: 20px; font-weight: 900; line-height: 1; text-transform: uppercase; text-decoration: none; text-align: center; transition: all var(--duration) var(--ease); }
.button-pair { display: grid; grid-template-columns: 1fr 1fr; padding-block: var(--gutter); }
.button-pair > :first-child { justify-self: end; margin-right: var(--gutter); }
.button-pair > :last-child { justify-self: start; margin-left: var(--gutter); }
@media (max-width: 767px) {
  .button-pair { grid-template-columns: 1fr; row-gap: 20px; }
  .button-pair > * { justify-self: center !important; margin: 0 !important; }
}

/* === Component: hero (full-height photo, round logo, two buttons) === */
.hero { position: relative; z-index: 0; display: flex; align-items: center; min-height: 100vh; margin-top: -121px; background: url("/wp-content/uploads/2023/09/bg.png") bottom center / cover no-repeat; }
.hero__inner { padding-block: var(--gutter); text-align: center; }
.hero__logo { display: inline-block; vertical-align: top; width: 251px; margin-bottom: 50px; }
@media (max-width: 767px) { .hero__logo { width: 61%; } }

/* === Component: about (white intro with ornament and divider lines) === */
.about { background: var(--color-white); padding-block: calc(var(--gutter) + 110px); }
.ornament { display: grid; grid-template-columns: 38.57% 23.451% 37.618%; align-items: center; }
.ornament > * { padding: var(--gutter); }
.ornament__line { display: block; border-top: 1px solid var(--color-rule); margin: 15px var(--gutter); padding: 0; }
.ornament__logo { text-align: center; line-height: 0; }
.ornament__logo img { display: inline-block; }
.about__text { margin: 36px 0 0; text-align: center; font-weight: 400; color: var(--color-dark); }
.about__rule { width: 70.838%; margin: 31px auto 15px; border: 0; border-top: 1px solid var(--color-rule); }
@media (max-width: 1024px) { .about { padding: calc(var(--gutter) + 50px) 60px; } }
@media (max-width: 767px) {
  .about { padding-inline: 30px; }
  .ornament { grid-template-columns: 1fr; }
  .ornament__line { margin: 25px var(--gutter); }
}

/* === Component: carousel (Swiper; library CSS in /assets/vendor/swiper-14.3.0/) === */
.carousel-section { background: url("/wp-content/uploads/2023/09/menu_bg.png") center center / cover no-repeat; padding-block: calc(var(--gutter) + 148px); }
.carousel {
  position: relative; padding: 0 60px;
  --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-inactive-color: var(--color-white);
  --swiper-pagination-bullet-inactive-opacity: 1;
  --swiper-pagination-color: var(--color-secondary);
  --swiper-pagination-bottom: 5px;
}
/* static so the arrows and dots position against .carousel (outside the clipped slide area), like Elementor */
.carousel .swiper { position: static; padding-bottom: 30px; }
.carousel .swiper-slide { text-align: center; }
.carousel figure { margin: 0; }
.carousel .swiper-slide img { display: inline-block; vertical-align: baseline; max-width: 100%; width: auto; height: auto; }
.carousel .swiper-button-prev, .carousel .swiper-button-next { background: none; border: 0; padding: 0; }
.carousel .swiper-button-prev .icon, .carousel .swiper-button-next .icon { width: 25px; height: 25px; }
.carousel .swiper-pagination { line-height: 1; }
/* Without JS (or before Swiper starts): show the slides in a row */
.carousel .swiper:not(.swiper-initialized) .swiper-wrapper { display: flex; }
.carousel .swiper:not(.swiper-initialized) .swiper-slide { flex: 0 0 25%; }
@media (max-width: 1023px) { .carousel .swiper:not(.swiper-initialized) .swiper-slide { flex-basis: 50%; } }
@media (max-width: 766px) { .carousel .swiper:not(.swiper-initialized) .swiper-slide { flex-basis: 100%; } }

/* === Component: reviews (customer feedback cards) === */
.feedback { background: var(--color-white) url("/wp-content/uploads/2023/09/reviews_bg.png") center right no-repeat; padding: calc(var(--gutter) + 93px) 0 calc(var(--gutter) + 80px); }
.section-title { font-family: var(--font-heading); font-size: 50px; font-weight: 600; text-align: center; color: var(--color-dark); margin-bottom: 50px; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; padding: 30px; }
.review-card { display: flex; flex-direction: column; justify-content: center; align-items: center; margin: 20px; padding: 40px; border-radius: var(--radius-card); background: var(--color-dark); box-shadow: var(--shadow-card); color: var(--color-white); text-align: center; }
.review-card__title { width: 100%; font-family: var(--font-body); font-size: 24px; font-weight: 600; text-transform: uppercase; margin-bottom: 20px; }
.review-card__title--as-written { text-transform: none; }
.review-card__text { width: 100%; margin: 20px 0; font-size: 20px; font-weight: 400; text-transform: uppercase; }
.review-card__stars { display: block; width: 51%; margin-inline: auto; }
@media (max-width: 1024px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
  .section-title { font-size: 40px; }
  .reviews { grid-template-columns: minmax(0, 1fr); }
  .review-card { justify-self: start; } /* shrink-to-fit like Elementor's flex column: a long word widens only its own card */
}

/* === Component: app-promo (download our app) === */
.app { background: var(--color-dark); color: var(--color-white); }
.app .container { padding-inline: 0; }
.app__inner { display: grid; grid-template-columns: 1fr 1fr; }
.app__text { display: flex; flex-direction: column; justify-content: center; padding: calc(var(--gutter) + 50px) var(--gutter); text-align: center; }
.app__kicker { font-family: var(--font-body); font-size: 49px; font-weight: 600; }
.app__title { font-family: var(--font-heading); font-size: 93px; font-weight: 600; margin-bottom: 25px; }
.app__phone { padding: calc(var(--gutter) + 50px) var(--gutter); text-align: center; line-height: 0; }
.app__phone a { display: inline-block; }
.app__phone img { width: 146px; }
@media (max-width: 1024px) {
  .app__text { padding: 50px 60px; }
  .app__kicker { font-size: 30px; }
  .app__title { font-size: 80px; }
  .app .button { font-size: 16px; }
  .app .button-pair { grid-template-columns: 1fr; row-gap: 20px; }
  .app .button-pair > * { justify-self: center; margin: 0; }
  .app__phone img { width: 178px; }
}
@media (max-width: 767px) { .app__inner { grid-template-columns: 1fr; } }

/* === Component: photo-band (decorative photo above the footer; #contact anchor) === */
.photo-band { height: 290px; background: url("/wp-content/uploads/2023/09/contact_bg.png") center right / cover no-repeat; }

/* === Component: site-footer (quick links, find us, opening hours, map) === */
.site-footer { background: var(--color-dark); color: var(--color-white); }
.site-footer .container { padding-inline: 0; }
.footer-main__inner { display: grid; grid-template-columns: 1fr 1fr; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); padding: calc(var(--gutter) + 50px) var(--gutter) var(--gutter); }
.footer-col { padding: var(--gutter) var(--gutter) 60px; }
.footer-col__title { font-family: var(--font-body); font-size: 20px; font-weight: 500; margin-bottom: 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; font-size: 20px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-map { margin-top: -214px; padding-top: 50px; position: relative; z-index: 1; }
.footer-map .map { display: block; width: 91.25%; height: 517px; border: 0; border-radius: var(--radius-map); }
.footer-bottom__inner { display: grid; grid-template-columns: 1fr 1fr; }
.footer-bottom__copy { padding: calc(var(--gutter) + 50px + 16px) var(--gutter) calc(var(--gutter) + 16px); font-family: var(--font-heading); font-size: 16px; }
.footer-bottom__copy a { text-decoration: none; }
.footer-bottom__copy a:hover { text-decoration: underline; }
.footer-bottom__social { display: flex; justify-content: flex-end; align-items: flex-start; padding: calc(var(--gutter) + 32px) var(--gutter) var(--gutter); }
@media (max-width: 1024px) {
  .site-footer .container { padding-inline: 30px; }
  .footer-col__title, .footer-col ul { font-size: 16px; }
  .footer-map { margin-top: -145px; }
  .footer-map .map { height: 335px; }
  .footer-bottom__social { justify-content: flex-start; }
  .footer-bottom__social-box { width: 216.5px; display: flex; justify-content: flex-end; padding-left: 0; }
}
@media (max-width: 767px) {
  .footer-main__inner, .footer-cols, .footer-bottom__inner { grid-template-columns: 1fr; }
  .footer-col { text-align: center; padding-bottom: 60px; }
  .footer-col--links { padding-bottom: 30px; }
  .footer-col--hours { padding: 0 0 174px; }
  .footer-map { padding-top: 0; z-index: 0; }
  .footer-map .map { width: 100%; height: 270px; }
  .footer-bottom__copy { text-align: center; }
  .footer-bottom__social { justify-content: flex-start; }
  .footer-bottom__social-box { width: 271px; justify-content: center; }
}

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

/* === Page: /404.html === */
.not-found { background: var(--color-white); padding: 120px 0; text-align: center; }
.not-found__title { font-family: var(--font-heading); font-size: 50px; font-weight: 600; margin-bottom: 30px; }
.not-found__text { font-size: 20px; margin-bottom: 30px; }
.not-found .button { margin: 6px; }
@media (max-width: 767px) { .not-found__title { font-size: 40px; } }

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