/*
Theme Name:   Taxi Zell am See
Theme URI:    https://www.taxi-zellamsee.at
Description:  Custom child theme for TOP TAXI e. U. (Zell am See / Kaprun). Built on GeneratePress. Lightweight, no page-builder/slider bloat, WPML-ready DE/EN, CSS-only hero carousel and FAQ accordion (no JS dependency).
Author:       Verdent (rebuild, Phase 3)
Author URI:   https://www.taxi-zellamsee.at
Template:     generatepress
Version:      1.0.8
Requires PHP: 7.0
Text Domain:  taxi-zellamsee
*/

/* =========================================================================
   TABLE OF CONTENTS
   1. Design Tokens (CSS Custom Properties)
   2. Reset / Base Elements
   3. Responsive Typography Scale
   4. Layout Utilities (container, grid, section spacing)
   5. Buttons
   6. Cards (service cards)
   7. Header / Navigation (incl. mobile nav)
   8. Footer
   9. Hero + CSS-only Fade Carousel
   10. FAQ Accordion (native details/summary)
   11. Forms (styles only — logic in Phase 4)
   12. Testimonials
   13. Accessibility (focus states, reduced motion, contrast helpers)
   ========================================================================= */

/* =========================================================================
   1. DESIGN TOKENS
   -------------------------------------------------------------------------
   Palette rationale (taxi/transport industry, professional + trustworthy):
   - Primary "ink" (dark navy #0f1b2d): navy reads as professional, stable,
     and "official" (transit/livery association) without the coldness of
     pure black. Used for header, footer, body text, and high-contrast
     surfaces.
   - Accent (amber/yellow #f5a623 family): direct visual link to the
     universal "taxi yellow/amber" cue, used for CTAs, active states, and
     highlights. Kept as an accent only (never large body backgrounds) to
     preserve accessible contrast and avoid a "cheap" look.
   - Neutrals (cool greys): calm backdrop for content/cards so the navy and
     amber accents stay the focal points. Cool greys also pair well with
     the wintery/mountain (Zell am See / Kaprun) setting shown in hero
     imagery.
   - A secondary "sky/alpine blue" is included as a tertiary accent for
     links/info states, echoing the Alpine lake-and-mountain backdrop of
     the service area without competing with the amber CTA color.
   ========================================================================= */
:root {
  /* --- Colors: core brand --- */
  --color-ink-900: #0f1b2d;       /* primary dark navy — header/footer/text */
  --color-ink-800: #16273d;
  --color-ink-700: #1f3350;
  --color-accent-500: #f5a623;    /* taxi amber — primary CTA */
  --color-accent-600: #dc8f13;    /* amber hover/active (darker) */
  --color-accent-100: #fdf1dc;    /* amber tint for subtle backgrounds/badges */
  --color-alpine-500: #2b6ca3;    /* secondary accent — links, info states */
  --color-alpine-600: #1f5480;

  /* --- Colors: neutrals --- */
  --color-white: #ffffff;
  --color-grey-50: #f7f8fa;
  --color-grey-100: #eef0f3;
  --color-grey-200: #e2e5ea;
  --color-grey-300: #cbd0d8;
  --color-grey-500: #8992a0;
  --color-grey-700: #4b5563;
  --color-grey-900: #1f2530;

  /* --- Semantic colors --- */
  --color-success-500: #1e8e5a;
  --color-success-100: #e4f5ec;
  --color-error-500: #c62828;
  --color-error-100: #fbe6e6;
  --color-focus-ring: #2b6ca3;

  /* --- Surface / text semantic aliases --- */
  --color-bg: var(--color-white);
  --color-bg-alt: var(--color-grey-50);
  --color-text: var(--color-ink-900);
  --color-text-muted: var(--color-grey-700);
  --color-border: var(--color-grey-200);
  --color-link: var(--color-alpine-500);
  --color-link-hover: var(--color-alpine-600);

  /* --- Typography --- */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: var(--font-body);
  --line-height-body: 1.6;
  --line-height-heading: 1.2;

  /* Fluid/responsive type scale (clamp: min, preferred-vw, max) */
  --fs-xs:   clamp(0.75rem, 0.72rem + 0.15vw, 0.85rem);
  --fs-sm:   clamp(0.875rem, 0.84rem + 0.18vw, 1rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-md:   clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);
  --fs-lg:   clamp(1.375rem, 1.2rem + 0.7vw, 1.875rem);
  --fs-xl:   clamp(1.75rem, 1.45rem + 1.2vw, 2.5rem);
  --fs-2xl:  clamp(2.25rem, 1.75rem + 2vw, 3.5rem);
  --fs-3xl:  clamp(2.75rem, 2rem + 3vw, 4.5rem);
  /* Page-title scale: for .tz-section-header h1 on service/booking pages.
     --fs-3xl (up to 72px) is reserved for the homepage hero
     (.tz-hero__title); a plain page title like "Online Buchung" doesn't
     need hero-sized type, but should still read larger than the --fs-2xl
     (up to 56px) in-content h2 headings that follow it, so it sits one
     step down from the hero max instead of matching it. */
  --fs-page-title: clamp(2.25rem, 1.85rem + 2vw, 4rem);

  /* --- Spacing scale --- */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 9rem;

  /* --- Radius --- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* --- Shadows --- */
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 27, 45, 0.10);
  --shadow-lg: 0 12px 32px rgba(15, 27, 45, 0.16);
  --shadow-focus: 0 0 0 3px rgba(43, 108, 163, 0.35);

  /* --- Layout --- */
  --container-max: 1200px;
  --container-pad: clamp(1rem, 3vw, 2.5rem);
  --header-height: 84px;

  /* --- Motion --- */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --carousel-slide-duration: 6s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--line-height-body);
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-link-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: var(--line-height-heading);
  color: var(--color-ink-900);
  font-weight: 700;
  margin: 0 0 var(--space-sm);
}

p {
  margin: 0 0 var(--space-sm);
}

ul, ol {
  margin: 0 0 var(--space-sm);
  padding-left: 1.25em;
}

/* =========================================================================
   3. RESPONSIVE TYPOGRAPHY SCALE
   ========================================================================= */
h1, .h1 { font-size: var(--fs-3xl); }
h2, .h2 { font-size: var(--fs-2xl); }
h3, .h3 { font-size: var(--fs-xl); }
h4, .h4 { font-size: var(--fs-lg); }
h5, .h5 { font-size: var(--fs-md); }
h6, .h6 { font-size: var(--fs-base); text-transform: uppercase; letter-spacing: 0.04em; }

.text-lead {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
}

.text-muted { color: var(--color-text-muted); }
.text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }

/* =========================================================================
   4. LAYOUT UTILITIES
   ========================================================================= */
.tz-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.tz-section {
  padding-block: var(--space-xl);
}

.tz-section--alt {
  background-color: var(--color-bg-alt);
}

.tz-section--ink {
  background-color: var(--color-ink-900);
  color: var(--color-white);
}

.tz-section--ink h1,
.tz-section--ink h2,
.tz-section--ink h3 {
  color: var(--color-white);
}

.tz-section-header {
  max-width: 720px;
  margin-bottom: var(--space-lg);
}

/* Page titles (e.g. booking/service pages) don't need hero-sized type —
   see --fs-page-title definition above for the reasoning. */
.tz-section-header h1 {
  font-size: var(--fs-page-title);
}

.tz-section-header--center {
  margin-inline: auto;
  text-align: center;
}

.tz-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.tz-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.tz-grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tz-grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.tz-flex {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.tz-flex--between {
  justify-content: space-between;
}

.tz-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tz-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--color-ink-900);
  color: var(--color-white);
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-sm);
}

.tz-skip-link:focus {
  left: var(--space-sm);
  top: var(--space-sm);
}

/* =========================================================================
   5. BUTTONS
   ========================================================================= */
.tz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.tz-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.tz-btn:active {
  transform: translateY(0);
}

.tz-btn--primary {
  background-color: var(--color-accent-500);
  color: var(--color-ink-900);
  border-color: var(--color-accent-500);
}

.tz-btn--primary:hover {
  background-color: var(--color-accent-600);
  border-color: var(--color-accent-600);
  color: var(--color-ink-900);
  box-shadow: var(--shadow-md);
}

.tz-btn--secondary {
  background-color: var(--color-ink-900);
  color: var(--color-white);
  border-color: var(--color-ink-900);
}

.tz-btn--secondary:hover {
  background-color: var(--color-ink-700);
  border-color: var(--color-ink-700);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.tz-btn--ghost {
  background-color: transparent;
  color: inherit;
  border-color: currentColor;
}

.tz-btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.tz-section:not(.tz-section--ink) .tz-btn--ghost {
  color: var(--color-ink-900);
}

.tz-section:not(.tz-section--ink) .tz-btn--ghost:hover {
  background-color: var(--color-grey-100);
}

.tz-btn--sm {
  padding: 0.55em 1.2em;
  font-size: var(--fs-sm);
}

.tz-btn--block {
  display: flex;
  width: 100%;
}

/* =========================================================================
   6. CARDS (service cards)
   ========================================================================= */
.tz-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  height: 100%;
}

.tz-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.tz-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--color-grey-100);
}

.tz-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tz-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  flex: 1;
}

.tz-card__title {
  font-size: var(--fs-md);
  margin-bottom: var(--space-3xs);
}

.tz-card__title a {
  color: inherit;
  text-decoration: none;
}

.tz-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.tz-card {
  position: relative;
}

.tz-card__excerpt {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  flex: 1;
}

.tz-card__cta {
  margin-top: var(--space-xs);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-alpine-500);
}

/* =========================================================================
   7. HEADER / NAVIGATION
   ========================================================================= */
.tz-site-header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 500;
}

.tz-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: var(--header-height);
}

.tz-site-branding {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  text-decoration: none;
  /* Tap-target box for the link is kept >= 44px regardless of the
     logo's own visual height (WCAG 2.5.5 / mobile tap-target minimum). */
  min-height: 44px;
}

/* Constrain the logo via the container we actually control (the img
   itself), rather than chasing the wrapper classes WordPress core
   prints for the_custom_logo() (custom-logo-link / custom-logo) or the
   GeneratePress .site-logo markup, which this theme no longer emits
   (generate_construct_header() — and everything hooked to
   generate_before_header_content, including the logo — is removed in
   functions.php). Height is fixed at the source logo's own 600:254
   (~2.36:1) ratio so it neither letterboxes nor gets squashed; width
   scales naturally from that fixed height. */
.tz-site-branding img {
  height: 56px;
  width: auto;
  max-width: 100%;
  display: block;
}

.tz-site-branding__name {
  font-weight: 700;
  font-size: var(--fs-md);
  color: var(--color-ink-900);
  line-height: 1.1;
}

.tz-site-branding__tagline {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--color-text-muted);
}

.tz-primary-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  /* Safety net for item counts we don't fully control (owner-built
     menus can always add "just one more" page). If items ever don't
     fit even after being shortened via the Navigationsbeschriftung
     field (see content/MENU-STRUCTURE.md), the menu scrolls
     horizontally instead of wrapping into a tall multi-row block or
     overflowing the viewport — see the docblock above the 860px/1100px
     breakpoint below for the full reasoning on why this, rather than
     wrap-to-second-row, is the desktop fallback of last resort. */
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.tz-primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: 0;
  padding: 0;
}

.tz-primary-nav li {
  position: relative;
}

.tz-primary-nav a {
  display: inline-block;
  color: var(--color-ink-900);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: var(--space-2xs) var(--space-2xs);
  border-radius: var(--radius-sm);
  /* Long menu labels (imported page titles used verbatim, or any label
     that ends up longer than intended) must overflow predictably on a
     single line rather than wrapping mid-word into a 3-4 line stack —
     see MENU-STRUCTURE.md for the short-label fix; this is the CSS
     backstop for whatever label length actually ends up configured. */
  white-space: nowrap;
}

.tz-primary-nav a:hover,
.tz-primary-nav .current-menu-item > a {
  color: var(--color-alpine-500);
}

/* ---- Submenus (e.g. "Transfers" dropdown holding the 8 route pages) ----
   wp_nav_menu() nests a second <ul class="sub-menu"> inside the parent
   <li> for any menu item with children (Appearance > Menus drag-to-indent).
   Desktop: absolute-positioned dropdown, shown on hover/focus-within so it
   also works via keyboard tab order. Mobile nav (below the 1100px
   breakpoint) overrides this back to a static, always-expanded indented
   list -- see the mobile nav block further down. */
.tz-primary-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 600;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 220px;
  margin: 0;
  padding: var(--space-2xs);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.tz-primary-nav li:hover > .sub-menu,
.tz-primary-nav li:focus-within > .sub-menu {
  display: flex;
}

.tz-primary-nav .sub-menu a {
  display: block;
  width: 100%;
  white-space: normal;
}

.tz-primary-nav .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 0.4em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.tz-primary-nav__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3xs);
  font-weight: 700;
  color: var(--color-ink-900);
  text-decoration: none;
}

/* Header CTA: click-to-call + online booking button, right of branding */
.tz-header-cta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.tz-header-cta__phone {
  font-size: var(--fs-sm);
  white-space: nowrap;
}

.tz-header-cta__phone-icon {
  font-size: 1.1em;
  line-height: 1;
}

.tz-header-cta__book {
  white-space: nowrap;
}

.tz-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  cursor: pointer;
}

.tz-nav-toggle__bar,
.tz-nav-toggle__bar::before,
.tz-nav-toggle__bar::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-ink-900);
  position: relative;
  transition: transform var(--transition-fast);
}

.tz-nav-toggle__bar::before { position: absolute; top: -7px; }
.tz-nav-toggle__bar::after { position: absolute; top: 7px; }

/* Mobile nav (checkbox-driven, no JS required) */
.tz-nav-toggle-input {
  position: absolute;
  left: -9999px;
}

/*
 * Mobile/hamburger breakpoint: raised from 860px to 1100px.
 *
 * Reasoning: the primary menu can hold up to 6 top-level items plus a
 * "Transfers" dropdown (see content/MENU-STRUCTURE.md) alongside the
 * logo, phone number and "Book Now" button. At 860px there was not
 * enough room left for 6 nowrap labels + the header CTA without
 * crowding or truncation on common laptop/tablet-landscape widths
 * (900-1099px) -- those viewports would have hit the
 * .tz-primary-nav horizontal-scroll fallback above even with short
 * labels, which is acceptable as a last resort but not as the normal
 * case. Switching to the hamburger earlier (at 1100px) means the
 * *common* case on those in-between widths is the mobile menu (clean,
 * one column, no scrolling needed) rather than a cramped or
 * scrolling desktop bar. Above 1100px there is comfortably enough
 * width for all 6 items + dropdown + CTA on one line without
 * shrinking the font or touching the 44px tap targets.
 */
@media (max-width: 1100px) {
  .tz-nav-toggle {
    display: inline-flex;
  }

  .tz-primary-nav {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background-color: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-md);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
    overflow-x: hidden;
    max-width: none;
  }

  .tz-primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .tz-primary-nav li {
    border-bottom: 1px solid var(--color-border);
  }

  .tz-primary-nav a {
    display: block;
    padding: var(--space-sm) var(--space-2xs);
    white-space: normal;
  }

  /* Submenus (e.g. "Transfers") on mobile: always-expanded, statically
     indented list rather than a hover dropdown -- there is no hover on
     touch, and an accordion would need JS this theme deliberately does
     not ship (see style.css section 9/10 docblocks: CSS-only hero and
     FAQ accordion, no JS dependency). A flat indented list under the
     parent item is the simplest option that needs zero script. */
  .tz-primary-nav .sub-menu {
    display: flex;
    position: static;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background-color: var(--color-grey-50);
  }

  .tz-primary-nav .sub-menu a {
    padding-left: var(--space-md);
  }

  .tz-primary-nav .menu-item-has-children > a::after {
    display: none;
  }

  .tz-nav-toggle-input:checked ~ .tz-site-header__inner .tz-primary-nav,
  .tz-nav-toggle-input:checked ~ .tz-primary-nav {
    transform: translateX(0);
  }

  .tz-nav-toggle-input:checked ~ .tz-site-header__inner .tz-nav-toggle__bar,
  .tz-nav-toggle-input:checked ~ .tz-nav-toggle .tz-nav-toggle__bar {
    background-color: transparent;
  }

  .tz-nav-toggle-input:checked ~ .tz-site-header__inner .tz-nav-toggle__bar::before {
    top: 0;
    transform: rotate(45deg);
  }

  .tz-nav-toggle-input:checked ~ .tz-site-header__inner .tz-nav-toggle__bar::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .tz-site-branding img {
    height: 40px;
  }

  /* Header CTA on mobile: the click-to-call button is the single most
     important control on a taxi site, so it must stay visible and
     easily tappable (>= 44x44px) without scrolling. Space is tight next
     to the logo + hamburger, so the human-readable number is hidden in
     favour of a compact icon-only tap target (accessible name is still
     provided via aria-label on the link) rather than hiding the call
     button outright. The booking button is shrunk to fit alongside it. */
  .tz-header-cta {
    gap: var(--space-2xs);
  }

  .tz-header-cta__phone {
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: var(--space-2xs);
  }

  .tz-header-cta__phone-text {
    display: none;
  }

  .tz-header-cta__book {
    padding: 0.5em 0.85em;
    font-size: var(--fs-xs);
  }
}

/* =========================================================================
   8. FOOTER
   ========================================================================= */
.tz-site-footer {
  background-color: var(--color-ink-900);
  color: var(--color-grey-300);
  padding-block: var(--space-xl) var(--space-md);
}

.tz-site-footer a {
  color: var(--color-white);
}

.tz-site-footer a:hover {
  color: var(--color-accent-500);
}

.tz-footer-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tz-footer-heading {
  color: var(--color-white);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
}

.tz-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tz-footer-col li {
  margin-bottom: var(--space-2xs);
}

.tz-footer-col a {
  text-decoration: none;
  font-size: var(--fs-sm);
}

.tz-footer-nap {
  font-size: var(--fs-sm);
  font-style: normal;
  line-height: 1.7;
}

.tz-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  padding-top: var(--space-md);
  font-size: var(--fs-xs);
  color: var(--color-grey-500);
}

.tz-footer-bottom a {
  color: var(--color-grey-300);
}

.tz-footer-map {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.tz-footer-map img {
  display: block;
  width: 100%;
  max-width: 1200px;
  height: auto;
  border-radius: var(--radius-md);
}

.tz-map-attribution {
  margin-top: var(--space-xs);
  font-size: var(--fs-xs);
  color: var(--color-grey-500);
  text-align: right;
}

.tz-map-attribution a {
  color: var(--color-grey-300);
  text-decoration: underline;
}

.tz-map-attribution a:hover {
  color: var(--color-accent-500);
}

/* =========================================================================
   9. HERO + CSS-ONLY FADE CAROUSEL
   -------------------------------------------------------------------------
   Pure CSS fade carousel using an animation-delay stagger technique.
   No JS. When only one slide is present, template markup omits the
   animation classes entirely (see template-parts/hero-carousel.php),
   so a single static image never animates.
   ========================================================================= */
.tz-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(420px, 60vh, 720px);
  display: flex;
  align-items: center;
  color: var(--color-white);
  overflow: hidden;
  background-color: var(--color-ink-900);
}

.tz-hero-carousel {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.tz-hero-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
}

.tz-hero-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Single static slide: always visible, no animation */
.tz-hero-carousel--static .tz-hero-carousel__slide {
  opacity: 1;
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
}

/* Multi-slide fade animation. --slide-count and --slide-index are set
   inline per slide by the template part. */
.tz-hero-carousel--animated .tz-hero-carousel__slide {
  animation-name: tz-hero-fade;
  animation-duration: calc(var(--carousel-slide-duration) * var(--slide-count, 3));
  animation-iteration-count: infinite;
  animation-delay: calc(var(--carousel-slide-duration) * var(--slide-index, 0) * -1);
}

@keyframes tz-hero-fade {
  0% { opacity: 0; }
  5% { opacity: 1; }
  28% { opacity: 1; }
  33% { opacity: 0; }
  100% { opacity: 0; }
}

.tz-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 27, 45, 0.55) 0%, rgba(15, 27, 45, 0.78) 100%);
}

.tz-hero__content {
  position: relative;
  max-width: 680px;
  padding-block: var(--space-xl);
}

.tz-hero__eyebrow {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-accent-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xs);
}

.tz-hero__title {
  color: var(--color-white);
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-sm);
}

.tz-hero__subtitle {
  font-size: var(--fs-md);
  color: var(--color-grey-100);
  margin-bottom: var(--space-md);
}

.tz-hero__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* =========================================================================
   10. FAQ ACCORDION (native <details>/<summary>, no JS)
   ========================================================================= */
.tz-faq {
  max-width: 820px;
}

.tz-faq__item {
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-sm);
}

.tz-faq__item[open] > .tz-faq__question::after {
  transform: rotate(180deg);
}

.tz-faq__question {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: var(--fs-base);
  color: var(--color-ink-900);
  padding-right: var(--space-lg);
  position: relative;
}

.tz-faq__question::-webkit-details-marker {
  display: none;
}

.tz-faq__question::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--color-alpine-500);
  border-bottom: 2px solid var(--color-alpine-500);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--transition-fast);
}

.tz-faq__answer {
  margin-top: var(--space-xs);
  color: var(--color-text-muted);
}

/* =========================================================================
   11. FORMS (styles only — Phase 4 wires up the handler/JS enhancement)
   ========================================================================= */
.tz-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.tz-form-grid {
  display: grid;
  gap: var(--space-sm) var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tz-form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}

.tz-form-field--full {
  grid-column: 1 / -1;
}

.tz-label {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--color-ink-900);
}

.tz-label .required {
  color: var(--color-error-500);
  margin-left: 0.15em;
}

.tz-input,
.tz-select,
.tz-textarea {
  font-family: inherit;
  font-size: var(--fs-base);
  padding: 0.7em 0.9em;
  border: 1px solid var(--color-grey-300);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  color: var(--color-text);
  width: 100%;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.tz-textarea {
  resize: vertical;
  min-height: 8em;
}

.tz-input:hover,
.tz-select:hover,
.tz-textarea:hover {
  border-color: var(--color-grey-500);
}

.tz-input:focus-visible,
.tz-select:focus-visible,
.tz-textarea:focus-visible {
  outline: none;
  border-color: var(--color-focus-ring);
  box-shadow: var(--shadow-focus);
}

.tz-form-hint {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.tz-form-field--error .tz-input,
.tz-form-field--error .tz-select,
.tz-form-field--error .tz-textarea {
  border-color: var(--color-error-500);
}

.tz-form-error {
  font-size: var(--fs-xs);
  color: var(--color-error-500);
  font-weight: 600;
}

.tz-form-field--success .tz-input {
  border-color: var(--color-success-500);
}

.tz-form-banner {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.tz-form-banner--success {
  background-color: var(--color-success-100);
  color: var(--color-success-500);
  border: 1px solid var(--color-success-500);
}

.tz-form-banner--error {
  background-color: var(--color-error-100);
  color: var(--color-error-500);
  border: 1px solid var(--color-error-500);
}

.tz-checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2xs);
}

.tz-checkbox-field input[type="checkbox"] {
  margin-top: 0.3em;
  width: 1.1em;
  height: 1.1em;
  accent-color: var(--color-alpine-500);
}

/* Collapsible return-trip section (native details/summary, hidden by default) */
.tz-form-collapsible {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-bg-alt);
}

.tz-form-collapsible > summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
}

.tz-form-collapsible > summary::-webkit-details-marker {
  display: none;
}

.tz-form-collapsible > summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  background-color: var(--color-accent-100);
  color: var(--color-ink-900);
  font-weight: 700;
}

.tz-form-collapsible[open] > summary::before {
  content: "\2212";
}

.tz-form-collapsible__body {
  margin-top: var(--space-md);
}

.tz-form-placeholder {
  padding: var(--space-lg);
  border: 2px dashed var(--color-grey-300);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  text-align: center;
}

/* =========================================================================
   12. TESTIMONIALS
   ========================================================================= */
.tz-testimonials__grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.tz-testimonial {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.tz-testimonial__quote {
  font-style: italic;
  color: var(--color-text);
  flex: 1;
}

.tz-testimonial__quote::before { content: "\201C"; }
.tz-testimonial__quote::after { content: "\201D"; }

.tz-testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.tz-testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--color-grey-100);
  flex-shrink: 0;
}

.tz-testimonial__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tz-testimonial__name {
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--color-ink-900);
}

.tz-testimonial__meta {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.tz-testimonial--placeholder {
  border-style: dashed;
  color: var(--color-text-muted);
}

/* =========================================================================
   13. ACCESSIBILITY
   ========================================================================= */
:focus-visible {
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 2px;
}

.tz-btn:focus-visible {
  outline-offset: 3px;
}

/* Reduced motion: disable the carousel animation and smooth scroll */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .tz-hero-carousel--animated .tz-hero-carousel__slide {
    animation: none;
    opacity: 0;
  }

  .tz-hero-carousel--animated .tz-hero-carousel__slide:first-child,
  .tz-hero-carousel--animated .tz-hero-carousel__slide.is-first-slide {
    opacity: 1;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Ensure sufficient contrast for muted text on dark sections */
.tz-section--ink .text-muted {
  color: var(--color-grey-300);
}
