/* ==========================================================================
   Taxi Evi Samothraki: styles.css
   --------------------------------------------------------------------------
   TABLE OF CONTENTS (search for the CAPITAL words to jump to a section)
     1. FONTS         @font-face rules (LoremIpsum + Inter)
     2. TOKENS        colours, spacing, radius, shadows, type sizes, fonts
     3. RESET         modern reset
     4. BASE          typography, links, focus, scrolling, motion
     5. LAYOUT        .container, sections
     6. BUTTONS       .btn, .btn--primary, .btn--secondary
     7. UTILITIES     .visually-hidden, skip link
     8. HEADER        (filled in later)
     9. HERO          (filled in later)
    10. ABOUT         (filled in later)
    11. VEHICLE       (filled in later)
    12. GALLERY       (filled in later)
    13. STATS         (filled in later)
    14. CONTACT       (filled in later)
    15. FOOTER        (filled in later)
    16. FLOATING      Viber / WhatsApp / Messenger buttons (filled in later)
    17. LEGAL PAGE    privacy.html
   ========================================================================== */


/* ==========================================================================
   1. FONTS
   Only relative paths. Never link Google Fonts.
   ========================================================================== */

/* LoremIpsum: the client's chosen font (BRIEF §5, open decision 1).
   THE FONT FILE IS NOT HERE YET, so this rule is switched off: while it was active the browser
   asked the server for the missing file on every visit (a 404 error in the console).
   WHEN THE FILE ARRIVES: put it at assets/fonts/loremipsum/loremipsum.woff2, then delete the
   comment markers around the rule below. "LoremIpsum" is already first in --font-body and
   --font-heading, with Inter as the fallback for any letter the font does not have.
   Check Greek: if LoremIpsum has no Greek letters, Greek text stays in Inter (see README).

@font-face {
  font-family: "LoremIpsum";
  src: url("../fonts/loremipsum/loremipsum.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
*/

/* Inter: fallback font with full Greek support. Each weight has a Latin file and a
   Greek file; the browser downloads only the file it needs (unicode-range). */

/* Inter 400, Latin */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/inter-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter 400, Greek */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/inter-greek-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* Inter 500, Latin */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/inter-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter 500, Greek */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/inter-greek-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* Inter 700, Latin */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/inter-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter 700, Greek */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/inter-greek-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* Inter 800, Latin */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/inter-latin-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter 800, Greek */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/inter-greek-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}


/* ==========================================================================
   2. TOKENS
   Change colours / sizes / fonts here and the whole site follows.
   ========================================================================== */
:root {

  /* ---- Colours (BRIEF §5) ---- */
  --yellow:      #FCC72E;  /* taxi yellow: buttons, icons, underlines. Text on it is always --ink */
  --yellow-dark: #E5B015;  /* hover / active */
  --graphite:    #2E3236;  /* the car's colour: dark sections, stats band */
  --ink:         #111111;  /* headings, text on yellow */
  --text:        #2B2B2B;  /* body text */
  --muted:       #6B6B6B;  /* secondary text */
  --line:        #D0D5DD;  /* input borders, dividers */
  --bg:          #FFFFFF;
  --bg-alt:      #F6F5F1;  /* alternating section background */
  --dark:        #1F1C1C;  /* footer */
  --success:     #1E7F4F;
  --error:       #B42318;

  /* ---- Fonts: the ONLY two places fonts are set (BRIEF §5) ----
     To swap the font later: replace the file and change the name in these two lines. */
  --font-heading: "LoremIpsum", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body:    "LoremIpsum", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* ---- Font weights ----
     LoremIpsum probably has one weight, and the browser must never fake bold,
     so check these once the real font file is in. */
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-bold:    700;
  --fw-black:   800;

  /* ---- Fluid type (clamp: minimum, preferred, maximum) ---- */
  --fs-h1:    clamp(2.5rem,   1.6rem  + 4vw,    4rem);      /* about 40px to 64px */
  --fs-h2:    clamp(1.75rem,  1.35rem + 1.8vw,  2.5rem);    /* about 28px to 40px */
  --fs-h3:    clamp(1.25rem,  1.1rem  + 0.7vw,  1.5rem);
  --fs-body:  clamp(1rem,     0.95rem + 0.25vw, 1.125rem);  /* 16px to 18px */
  --fs-small: 0.875rem;
  --fs-label: 0.8125rem;                                    /* small uppercase eyebrows */
  --lh-body:  1.6;
  --lh-head:  1.15;

  /* ---- Spacing scale ---- */
  --space-1:  0.25rem;   /*  4px */
  --space-2:  0.5rem;    /*  8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */

  /* ---- Layout ---- */
  --container-max:  1200px;
  --gutter:         20px;                       /* container side padding on mobile */
  --section-pad:    72px;                       /* section top/bottom padding on mobile */
  --header-h:       72px;                       /* sticky header height (used for scroll offset) */
  --tap-min:        48px;                       /* minimum button height */

  /* ---- Radius ---- */
  --radius:    8px;     /* buttons, inputs */
  --radius-lg: 12px;    /* images, cards */
  --radius-pill: 999px;

  /* ---- Shadows ---- */
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.08);
  --shadow-md: 0 4px 14px rgba(17, 17, 17, 0.12);
  --shadow-lg: 0 12px 32px rgba(17, 17, 17, 0.18);

  /* ---- Motion ---- */
  --transition: 0.2s ease;
}

/* Wider screens: bigger side padding and section spacing (BRIEF §5: 640 / 960 / 1200) */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
}
@media (min-width: 960px) {
  :root { --section-pad: 112px; }
}


/* ==========================================================================
   3. RESET
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

p,
h1,
h2,
h3,
h4 {
  overflow-wrap: break-word;
}


/* ==========================================================================
   4. BASE
   ========================================================================== */
html {
  /* Smooth scrolling for #anchor links */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  /* Never let the browser fake bold or italic (BRIEF §5) */
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-head);
  color: var(--ink);
}

/* Greek capitals: with lang="el" the browser drops the accents (ΣΧΕΤΙΚΑ, not ΣΧΕΤΙΚΆ).
   Never type accented capitals by hand. */
h1,
h2,
.btn {
  text-transform: uppercase;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p + p {
  margin-top: var(--space-4);
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

strong,
b {
  font-weight: var(--fw-bold);
}

/* Keyboard focus: always visible. Dark ring on light, and a yellow ring on dark areas. */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--yellow);
}

/* Anchor targets: leave room so the sticky header never covers the heading */
[id] {
  scroll-margin-top: var(--header-h);
}

/* Respect people who ask their system for less 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;
    scroll-behavior: auto !important;
  }
}


/* ==========================================================================
   5. LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container-max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Every main section gets the same vertical spacing */
.section {
  padding-block: var(--section-pad);
}
.section--alt {
  background: var(--bg-alt);
}
.section--dark {
  background: var(--graphite);
  color: #fff;
}
.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: #fff;
}

/* Small uppercase label above a heading (a <p>, not a heading: BRIEF §6) */
.eyebrow {
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-3);
}
/* Yellow is never used as text on white (BRIEF §5): on light sections the label is dark
   with a short yellow bar in front; on dark sections the text itself is yellow. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--yellow);
}
.section--dark .eyebrow {
  color: var(--yellow);
}


/* ==========================================================================
   6. BUTTONS
   Primary = yellow with black bold uppercase text. Secondary = outline.
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--tap-min);
  padding: var(--space-3) var(--space-6);
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.btn--primary {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}
.btn--primary:hover,
.btn--primary:active {
  background: var(--yellow-dark);
  border-color: var(--yellow-dark);
}

.btn--secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--secondary:hover,
.btn--secondary:active {
  background: var(--ink);
  color: #fff;
}

/* Secondary button on a dark background (hero photo, graphite band) */
.on-dark .btn--secondary,
.section--dark .btn--secondary {
  border-color: #fff;
  color: #fff;
}
.on-dark .btn--secondary:hover,
.section--dark .btn--secondary:hover {
  background: #fff;
  color: var(--ink);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}


/* ==========================================================================
   7. UTILITIES
   ========================================================================== */

/* Hidden on screen, still read by screen readers and search engines */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* "Skip to content" link: invisible until it gets keyboard focus */
.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 1000;
  padding: var(--space-3) var(--space-5);
  background: var(--yellow);
  color: var(--ink);
  font-weight: var(--fw-bold);
  border-radius: var(--radius);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: translateY(0);
}


/* ==========================================================================
   8. HEADER
   Sticky header: logo placeholder, nav links, language toggle.
   Over the hero: transparent + white text. After ~80px scroll (.is-scrolled)
   or while the mobile menu is open (.is-open): white + dark text + shadow.
   --header-fg is the single colour that logo, links and hamburger follow.
   ========================================================================== */

/* Marker watched by main.js to know when the page has scrolled ~80px */
.scroll-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 80px;
  pointer-events: none;
}

.site-header {
  --header-fg: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  /* Pull the hero up underneath the header so the header can be transparent over the photo */
  margin-bottom: calc(var(--header-h) * -1);
  color: var(--header-fg);
  background: transparent;
  transition: background-color var(--transition), box-shadow var(--transition), color var(--transition);
}
.site-header.is-scrolled,
.site-header.is-open {
  --header-fg: var(--ink);
  background: var(--bg);
  box-shadow: var(--shadow-md);
}
/* Yellow focus ring while the header sits on the dark photo */
.site-header:not(.is-scrolled):not(.is-open) :focus-visible {
  outline-color: var(--yellow);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* ---- Logo ---- */
.logo {
  position: relative;
  z-index: 2;                /* above the mobile panel so logo and hamburger stay visible */
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 52px;
  text-decoration: none;
  color: inherit;
}
.logo picture {
  display: flex;
  align-items: center;
  height: 100%;
}
.logo__img,
.logo > img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  border-radius: 6px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.logo:hover .logo__img,
.logo:hover > img {
  transform: scale(1.03);
}
.site-header.is-scrolled .logo__img,
.site-header.is-scrolled .logo > img,
.site-header--solid .logo__img,
.site-header--solid .logo > img {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}
.footer__brand .logo {
  height: 64px;
}
.footer__brand .logo__img,
.footer__brand .logo > img {
  max-width: 160px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* ---- Hamburger (below 960px) ---- */
.nav-toggle {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap-min);
  height: var(--tap-min);
  margin-right: -10px;       /* optically aligns the bars with the container edge */
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--transition), background-color var(--transition);
}
.nav-toggle__bars {
  position: relative;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after  { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---- Mobile: nav is a full-screen panel ---- */
.nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-8);
  padding: calc(var(--header-h) + var(--space-8)) var(--gutter) var(--space-10);
  background: var(--bg);
  color: var(--ink);
  overflow-y: auto;
  visibility: hidden;        /* also removes the links from the tab order while closed */
  opacity: 0;
  transition: opacity var(--transition), visibility 0s linear 0.2s;
}
.site-header.is-open .nav {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--transition);
}

.nav__list {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
}
.nav__link {
  position: relative;
  display: block;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.375rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav__link[aria-current="true"] {
  box-shadow: inset 4px 0 0 var(--yellow);
  padding-left: var(--space-4);
}

/* ---- Language switch ---- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  align-self: flex-start;
}
.lang-switch__btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 var(--space-2);
  border: 0;
  background: transparent;
  color: inherit;
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  opacity: 0.85;                 /* 0.6 failed 4.5:1 for white text over the photo */
}
.lang-switch__btn[aria-pressed="true"] {
  opacity: 1;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}
.lang-switch__sep {
  opacity: 0.4;
}

/* Locked page scroll while the mobile menu is open */
html.menu-open,
html.menu-open body {
  overflow: hidden;
}

/* ---- Desktop (960px and up): inline nav ---- */
@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }
  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-8);
    padding: 0;
    background: transparent;
    color: inherit;
    overflow: visible;
    visibility: visible;
    opacity: 1;
  }
  .nav__list {
    flex-direction: row;
    gap: var(--space-8);
  }
  .nav__link {
    padding: var(--space-2) 0;
    border-bottom: 2px solid transparent;
    font-size: var(--fs-small);
    letter-spacing: 0.1em;
    transition: border-color var(--transition);
  }
  .nav__link:hover {
    border-bottom-color: var(--yellow);
  }
  .nav__link[aria-current="true"] {
    box-shadow: none;
    padding-left: 0;
    border-bottom-color: var(--yellow);
  }
  .lang-switch {
    align-self: auto;
  }
}


/* ==========================================================================
   9. HERO
   Photo 5 as a real <img>, dark left-to-right gradient, text on the left.
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  height: 100vh;             /* fallback for browsers without svh */
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--graphite);   /* shown for a moment before the photo loads */
  color: #fff;
}

.hero__slides,
.hero__picture,
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__slides {
  overflow: hidden;              /* slides waiting off to the right never widen the page */
}
.hero__img {
  object-fit: cover;
  object-position: center;       /* desktop */
}

/* Sliding photos. Waiting slides sit just off the right edge; the active one is in place;
   the one leaving moves out to the left. main.js moves the classes along. */
.hero__slide {
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s linear 0.8s;
}
.hero__slide.is-active,
.hero__slide.is-leaving {
  visibility: visible;
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}
.hero__slide.is-active {
  transform: none;
}
.hero__slide.is-leaving {
  transform: translateX(-100%);
}
/* A slide jumping back to the waiting spot on the right must not be seen crossing the screen */
.hero__slide.is-reset {
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero__slide,
  .hero__slide.is-active,
  .hero__slide.is-leaving {
    transition: none;
  }
}

/* Portrait screens: shift each crop toward its subject.
   Photo 5: the TAXI sign sits bottom-right (letters span about 63%-88% of the width), 85% keeps the
   whole word in frame at 320-430px wide phones (BRIEF §4).
   Photo 3: the car is left of centre. Photo 4: the car's side and the ferry are centre-left. */
@media (max-aspect-ratio: 1/1) {
  .hero__slide--port .hero__img  { object-position: 85% center; }
  .hero__slide--car .hero__img   { object-position: 36% center; }
  .hero__slide--ferry .hero__img { object-position: 40% center; }
}

/* Dark gradient so white text passes WCAG AA over the bright sky.
   Layer 1: a soft band at the top so the transparent header stays readable.
   Layer 2 (mobile): text sits in the upper part, so it darkens from the top and clears
            toward the bottom, which keeps the TAXI sign visible.
   Layer 2 (960px+): left-to-right darkening behind the text. */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 12, 14, 0.5) 0, rgba(10, 12, 14, 0) 160px),
    linear-gradient(180deg, rgba(10, 12, 14, 0.78) 0%, rgba(10, 12, 14, 0.7) 55%, rgba(10, 12, 14, 0.1) 80%, rgba(10, 12, 14, 0.1) 100%);
}
@media (min-width: 960px) {
  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(10, 12, 14, 0.5) 0, rgba(10, 12, 14, 0) 160px),
      linear-gradient(90deg, rgba(10, 12, 14, 0.82) 0%, rgba(10, 12, 14, 0.62) 40%, rgba(10, 12, 14, 0.12) 75%, rgba(10, 12, 14, 0) 100%);
  }
}

.hero__inner {
  position: relative;
  padding-top: var(--header-h);  /* centre the text in the space below the header */
}
/* Phones and tablets: pin the text to the upper part instead of the exact middle,
   so the TAXI sign (bottom-right of the photo) stays visible below the buttons. */
@media (max-width: 959px) {
  .hero {
    align-items: flex-start;
  }
  .hero__inner {
    padding-top: calc(var(--header-h) + var(--space-8));
  }
}
.hero__content {
  max-width: 40rem;
}

.hero__tag {
  margin-bottom: var(--space-5);
  color: var(--yellow);
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  color: #fff;
}
.hero__eyebrow {
  display: block;
  margin-bottom: var(--space-3);
  font-size: clamp(0.9375rem, 0.85rem + 0.4vw, 1.125rem);
  font-weight: var(--fw-medium);
  letter-spacing: 0.14em;
  opacity: 0.92;
}
.hero__title {
  display: block;
  font-size: var(--fs-h1);
  font-weight: var(--fw-black);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero__sub {
  max-width: 34em;
  margin-top: var(--space-6);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  color: rgba(255, 255, 255, 0.95);
}

.hero__actions {
  display: flex;
  flex-direction: column;        /* mobile: stacked, full width */
  gap: var(--space-3);
  margin-top: var(--space-8);
}
@media (min-width: 640px) {
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* Subtle rise-up entrance (switched off for reduced motion).
   Movement only, no fade: text that starts at opacity 0 is not painted yet, which delayed the
   first paint and the Largest Contentful Paint by about a second. */
@keyframes fade-up {
  from { transform: translateY(16px); }
  to   { transform: none; }
}
.hero__content > * {
  animation: fade-up 0.7s ease-out both;
}
.hero__content > :nth-child(2) { animation-delay: 0.08s; }
.hero__content > :nth-child(3) { animation-delay: 0.16s; }
.hero__content > :nth-child(4) { animation-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .hero__content > * {
    animation: none;
  }
}


/* ==========================================================================
   10. ABOUT  (#about)
   Text left, photo right (960px+). One column on mobile, photo after the text.
   ========================================================================== */
.about {
  display: grid;
  gap: var(--space-12);
}
.about__text h2 {
  margin-bottom: var(--space-6);
}
.about__text p:not(.eyebrow) {
  max-width: 36em;
}

.about__figure img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about__services-title {
  margin-top: var(--space-12);
  margin-bottom: var(--space-5);
}

/* Services: clean icon list. 1 column on very small phones, 2 columns from 480px */
.services {
  display: grid;
  gap: var(--space-4) var(--space-8);
  list-style: none;
  padding: 0;
}
.services__item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  line-height: 1.35;
}
.services__item img {
  flex: none;
  width: 32px;
  height: 32px;
}
@media (min-width: 480px) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  /* The photo stretches to the full height of the text column, so its bottom edge lines up
     with the last row of services. min-height keeps it from getting too short. */
  .about {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: var(--space-16);
    align-items: stretch;
  }
  .about__figure,
  .about__figure picture {
    display: block;
    height: 100%;
  }
  .about__figure img {
    height: 100%;
    min-height: 420px;
    aspect-ratio: auto;
    object-position: 30% 70%;      /* keeps the whole TAXI sign and the village roofs in frame */
  }
}


/* ==========================================================================
   11. VEHICLE  (#vehicle)
   Gallery: grid on desktop, scroll-snap carousel below 960px. Lightbox is a <dialog>.
   ========================================================================== */
.vehicle__head {
  max-width: 40rem;
  margin-bottom: var(--space-10);
}
.vehicle__head h2 {
  margin-bottom: var(--space-4);
}

/* ---- Mobile / tablet: horizontal carousel with a peek of the next photo ---- */
.gallery {
  position: relative;
  display: flex;
  gap: var(--space-4);
  list-style: none;
  padding: 0 var(--gutter);
  margin-inline: calc(var(--gutter) * -1);     /* full-bleed, so the next photo peeks in */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar {
  display: none;
}
.gallery__item {
  flex: 0 0 82%;
  scroll-snap-align: start;
  aspect-ratio: 4 / 3;                          /* reserves the space: no layout shift */
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--line);
}
@media (min-width: 640px) {
  .gallery__item {
    flex-basis: 60%;
  }
}

.gallery__btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.gallery__btn picture,
.gallery__btn img {
  width: 100%;
  height: 100%;
}
.gallery__btn img {
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery__btn:hover img {
  transform: scale(1.03);
}
.gallery__btn:focus-visible {
  outline-offset: -3px;
  outline-color: var(--yellow);
  box-shadow: inset 0 0 0 6px var(--ink);
}

/* Dots (mobile only) */
.gallery__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
}
.gallery__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  transition: background-color var(--transition), transform var(--transition);
}
.gallery__dots span.is-active {
  background: var(--ink);
  transform: scale(1.25);
}

/* ---- Desktop: symmetric grid, big photo in the middle, two stacked on each side ---- */
@media (min-width: 960px) {
  .gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "a main c"
      "b main d";
    aspect-ratio: 16 / 7;
    padding: 0;
    margin-inline: 0;
    overflow: visible;
  }
  .gallery__item {
    aspect-ratio: auto;
    min-width: 0;
    min-height: 0;
  }
  .gallery__item--main { grid-area: main; }
  .gallery__item--a    { grid-area: a; }
  .gallery__item--b    { grid-area: b; }
  .gallery__item--c    { grid-area: c; }
  .gallery__item--d    { grid-area: d; }
  .gallery__dots {
    display: none;
  }
}

/* ---- Vehicle facts ---- */
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8) var(--space-6);
  margin-top: var(--space-12);
  padding-top: var(--space-10);
  border-top: 1px solid var(--line);
}
/* The icon sits inside the <dt> (an <img> may not be a direct child of the <dl>), but is
   positioned against .fact so it stays centred beside the label + value pair. */
.fact {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 40px;
  padding-left: calc(40px + var(--space-4));
}
.fact img {
  position: absolute;
  top: 50%;
  left: 0;
  width: 40px;
  height: 40px;
  transform: translateY(-50%);
}
.fact dt {
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.fact dd {
  margin: 0;
  font-weight: var(--fw-bold);
  color: var(--ink);
  line-height: 1.3;
}
@media (min-width: 960px) {
  .facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---- Lightbox (<dialog>): Esc closes natively, arrows + swipe handled in main.js ---- */
.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(17, 17, 17, 0.94);
  color: #fff;
}
.lightbox[open] {
  display: flex;
}
.lightbox::backdrop {
  background: rgba(17, 17, 17, 0.94);
}
.lightbox :focus-visible {
  outline-color: var(--yellow);
}
.lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 72px var(--space-4);
  touch-action: pan-y;                          /* vertical scroll allowed, horizontal = our swipe */
}
.lightbox__stage img {
  width: auto;
  height: auto;
  max-width: calc(100vw - 2 * var(--space-4));
  max-height: calc(100vh - 144px);
  max-height: calc(100svh - 144px);
  border-radius: var(--radius);
  -webkit-user-drag: none;
  user-select: none;
}
.lightbox__btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap-min);
  height: var(--tap-min);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: background-color var(--transition), color var(--transition);
}
.lightbox__btn:hover {
  background: var(--yellow);
  color: var(--ink);
}
.lightbox__close {
  top: var(--space-4);
  right: var(--space-4);
}
.lightbox__prev,
.lightbox__next {
  top: 50%;
  margin-top: calc(var(--tap-min) / -2);
}
.lightbox__prev { left: var(--space-3); }
.lightbox__next { right: var(--space-3); }
.lightbox__count {
  position: absolute;
  bottom: var(--space-5);
  left: 0;
  right: 0;
  text-align: center;
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}
/* Page behind the open lightbox does not scroll */
html.lightbox-open {
  overflow: hidden;
}


/* ==========================================================================
   12. GALLERY  (#gallery)
   20-photo wall: 2 columns on phones, 3 on tablets, 4 on desktop.
   Clicking a photo opens its own lightbox; the shared styles are above.
   ========================================================================== */
.gallery__head {
  max-width: 40rem;
  margin-bottom: var(--space-10);
}
.gallery__head h2 {
  margin-bottom: var(--space-4);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  list-style: none;
  padding: 0;
}
.photo-grid__item {
  aspect-ratio: 4 / 3;                           /* reserves the space: no layout shift */
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--line);
}
.photo-grid__btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
/* Subtle dark veil on hover / keyboard focus, so the photo reads as clickable */
.photo-grid__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.35), transparent 55%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.photo-grid__btn picture,
.photo-grid__btn img {
  width: 100%;
  height: 100%;
}
.photo-grid__btn img {
  object-fit: cover;
  transition: transform 0.4s ease;
}
.photo-grid__btn:hover img,
.photo-grid__btn:focus-visible img {
  transform: scale(1.05);
}
.photo-grid__btn:hover::after,
.photo-grid__btn:focus-visible::after {
  opacity: 1;
}
.photo-grid__btn:focus-visible {
  outline-offset: -3px;
  outline-color: var(--yellow);
  box-shadow: inset 0 0 0 6px var(--ink);
}

@media (min-width: 720px) {
  .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
  }
}
@media (min-width: 1100px) {
  .photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


/* ==========================================================================
   13. STATS  (#stats)
   4 columns on desktop, 2 x 2 below. Number and icon share the same box height
   so the labels line up and counting up causes no layout shift.
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-12) var(--space-6);
  list-style: none;
  padding: 0;
  text-align: center;
}
@media (min-width: 960px) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.stat__figure {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4rem;
}
.stat__figure img {
  width: 56px;
  height: 56px;
}
.stat__value {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 2rem + 2.2vw, 4rem);
  font-weight: var(--fw-black);
  line-height: 1;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  margin-top: var(--space-3);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (min-width: 640px) {
  .stat__label {
    font-size: var(--fs-body);
  }
}


/* ==========================================================================
   14. CONTACT  (#contact)
   One column on phones, two from 768px. Label sits 8px above its input, rows are 20px apart,
   inputs are 48px tall. Notes and consent always span the full width.
   ========================================================================== */
.contact {
  max-width: calc(880px + var(--gutter) * 2);
}
.contact__head {
  margin-bottom: var(--space-8);
}
.contact__head h2 {
  margin-bottom: var(--space-3);
}
.contact__card {
  padding: var(--space-6) var(--space-5);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) {
  .contact__card { padding: var(--space-10); }
}

/* Elements switched with the hidden attribute must really disappear */
.contact [hidden] {
  display: none !important;
}

.form-legend {
  margin-bottom: var(--space-5);
  font-size: var(--fs-small);
  color: var(--muted);
}

/* ---- Grid ---- */
.form__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);                       /* 20px between rows */
}
@media (min-width: 768px) {
  .form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-6);
  }
  .field--full { grid-column: 1 / -1; }
}

/* ---- Label + input ---- */
.field__label {
  display: block;
  margin-bottom: var(--space-2);             /* 8px gap between label and input */
  font-size: 0.9375rem;
  font-weight: var(--fw-medium);
  color: var(--ink);
}
.field__req {
  color: var(--error);
  font-weight: var(--fw-bold);
}

.field__control {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0 var(--space-4);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;                           /* 16px: stops iOS from zooming in on focus */
  line-height: 1.4;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field__control--textarea {
  min-height: 120px;
  padding-block: var(--space-3);
  resize: vertical;
}
.field__control--select {
  padding-right: 40px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
/* Date and time pickers: iOS Safari draws them shorter and centred; make them look like the other fields */
.field__control[type="date"],
.field__control[type="time"] {
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
}
.field__control[type="date"]::-webkit-date-and-time-value,
.field__control[type="time"]::-webkit-date-and-time-value {
  min-height: 1.4em;
  text-align: left;
}
.field__control:hover {
  border-color: var(--muted);
}
/* Clear focus ring (the global one would square off the corners) */
.field__control:focus-visible,
.field__control:focus {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  border-color: var(--ink);
  border-radius: var(--radius);
}

/* Error state: red border (thickened without moving anything) + message with a "!" so colour is not the only signal */
.field__control[aria-invalid="true"],
.check__input[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: inset 0 0 0 1px var(--error);
}
.field__error {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  line-height: 1.4;
  color: var(--error);
}
.field__error::before {
  content: "!";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--error);
  color: #fff;
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  line-height: 18px;
  text-align: center;
}
.field__hint {
  margin-top: var(--space-2);
  font-size: var(--fs-small);
  color: var(--muted);
}

/* ---- Consent checkbox ---- */
.check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.check__input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 12px 0 0 0;                        /* centres it on the first line of text (48px tall row) */
  accent-color: var(--ink);
  cursor: pointer;
}
.check__label {
  display: block;
  padding-block: 12px;
  line-height: 1.5;
  cursor: pointer;
}
.check__label a {
  font-weight: var(--fw-medium);
}

/* ---- Honeypot: off-screen (not display:none, so simple bots still fill it) ---- */
.form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- Submit ---- */
.form__submit {
  width: 100%;
  margin-top: var(--space-6);
  text-transform: uppercase;                 /* Greek: accents drop automatically (lang="el") */
}

/* ---- Messages ---- */
.form-alert,
.form-notice {
  margin-top: var(--space-6);
  padding: var(--space-4);
  border-radius: var(--radius);
  font-size: var(--fs-small);
  line-height: 1.5;
}
.form-alert {
  background: #FEF3F2;
  border: 1px solid var(--error);
  color: var(--ink);
}
.form-alert p + p { margin-top: var(--space-2); }
.form-alert a { font-weight: var(--fw-bold); }
.form-notice {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--ink);
}

/* ---- Confirmation panel (replaces the form) ---- */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-8) var(--space-4);
  text-align: center;
}
.form-success__icon {
  color: var(--success);
}
.form-success__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-head);
  color: var(--ink);
}


/* ==========================================================================
   13b. PORT FERRY PICKUP BANNER
   ========================================================================== */
.port-banner {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 3rem + 5vw, 6.5rem);
  background: var(--graphite);
  color: #fff;
}
.port-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.port-banner__bg picture,
.port-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.port-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(17, 17, 17, 0.88) 0%,
    rgba(27, 30, 36, 0.82) 50%,
    rgba(17, 17, 17, 0.74) 100%
  );
}
.port-banner__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}
.port-banner .eyebrow {
  color: var(--yellow);
}
.port-banner__title {
  color: #fff;
  font-size: var(--fs-h2);
  line-height: var(--lh-head);
  font-weight: var(--fw-black);
  margin-top: 0;
  margin-bottom: var(--space-4);
}
.port-banner__text {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: rgba(255, 255, 255, 0.94);
  margin-bottom: var(--space-8);
  max-width: 680px;
}
.port-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}
.port-banner .btn--secondary {
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}
.port-banner .btn--secondary:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}


/* ==========================================================================
   15. FOOTER
   ========================================================================== */
.site-footer {
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
  background: var(--dark);
  color: #fff;
  font-size: 0.9375rem;
}
/* Keep text clear of the floating buttons (52px + 16px margin + a little air) */
.site-footer .container {
  padding-right: calc(var(--gutter) + 68px);
}
@media (min-width: 1400px) {
  .site-footer .container { padding-right: var(--gutter); }
}

.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
}

/* Columns: stacked on mobile, 2 up from 640px, 4 up from 960px */
.footer__grid {
  display: grid;
  gap: var(--space-10);
}
@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr auto; gap: var(--space-12); }
}

.footer__tagline {
  margin-top: var(--space-4);
  max-width: 22rem;
  color: rgba(255, 255, 255, 0.78);
}

/* Small H2 column titles (BRIEF §6): look like a label, not a heading */
.footer__title {
  margin-bottom: var(--space-4);
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
}

.footer__list {
  display: grid;
  gap: 0;                              /* same row rhythm as the Contact column next to it */
  list-style: none;
  padding: 0;
}
.footer__list a,
.footer__address a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;                    /* touch target (WCAG 2.5.5 / BRIEF §5) */
}
.footer__address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.78);
}
.footer__address a {
  color: #fff;
}
.footer__address p + p {
  margin-top: 0;
}
/* The plain-text line (no link) gets the same 44px row height as the links, so the
   Navigation and Contact columns line up row by row and end at the same height. */
.footer__address p:last-child {
  display: flex;
  align-items: center;
  min-height: 44px;
}

/* Social icons */
.footer__icons {
  display: flex;
  gap: var(--space-3);
  list-style: none;
  padding: 0;
}
.footer__icons [hidden] { display: none; }
.footer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #fff;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}
.site-footer a.footer__icon:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
  text-decoration: none;
}
.footer__social[hidden] { display: none; }

/* Bottom bar */
.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-2) var(--space-6);
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.7);
}
.footer__bottom p + p { margin-top: 0; }
.footer__bottom a { color: #fff; }
.footer__bottom [hidden] { display: none; }
@media (min-width: 640px) {
  .footer__bottom {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}


/* ==========================================================================
   16. FLOATING BUTTONS
   Viber / WhatsApp / Messenger, bottom-right, appear on scroll.
   Hidden = visibility:hidden, so they are also out of the keyboard order.
   main.js adds .is-visible (hero scrolled away) and hides them on mobile
   while the form's submit button is on screen.
   ========================================================================== */
.float-btns {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 90;                           /* below the header (100) and its mobile menu */
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}
.float-btns.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.float-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(17, 17, 17, 0.28);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.float-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.32);
}
/* White inner ring + dark outline: visible on both the light page and the dark footer */
.float-btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #fff;
}
.float-btn__cut {
  fill: var(--brand);                    /* the glyph "cut-out" takes the button colour */
}

/* Short screens (a phone held sideways): lay the three buttons out in a row so they
   do not cover half of the page height */
@media (max-height: 500px) {
  .float-btns {
    flex-direction: row;
  }
}

/* Tooltip with the phone number (Viber only, mouse devices only) */
.float-btn__tip {
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  transform: translateY(-50%);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility 0s linear 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .float-btn:hover .float-btn__tip,
  .float-btn:focus-visible .float-btn__tip {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--transition);
  }
}


/* ==========================================================================
   17. LEGAL PAGE  (privacy.html)
   Same header and footer as the landing page; a plain readable text column.
   ========================================================================== */
/* Header without a hero underneath: always white, no pull-up */
.site-header--solid {
  --header-fg: var(--ink);
  margin-bottom: 0;
  background: var(--bg);
  box-shadow: var(--shadow-md);
}
.header-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.legal {
  max-width: calc(760px + var(--gutter) * 2);
}
.legal h1 {
  margin-bottom: var(--space-6);
  font-size: var(--fs-h2);
}
.legal h2 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-3);
  font-size: var(--fs-h3);
  text-transform: none;
}
.legal h2:first-of-type { margin-top: var(--space-8); }
.legal ul {
  margin-top: var(--space-3);
  padding-left: var(--space-6);
}
.legal li + li { margin-top: var(--space-2); }
.legal p + p,
.legal ul + p { margin-top: var(--space-4); }
.legal__lead { font-size: 1.0625rem; }
.legal__divider {
  margin-block: var(--space-12);
  border: 0;
  border-top: 3px solid var(--yellow);
  width: 64px;
}
.legal__updated {
  margin-top: var(--space-10);
  font-size: var(--fs-small);
  color: var(--muted);
}
