/* ==========================================================================
   Somerset West Taxi Tours — Inner Page Design System
   --------------------------------------------------------------------------
   Brings the same visual language as the landing page (front-page.css) to
   every other template — About, Book a Car, Catalogue, Contact, Fleet,
   single vehicle, 404, and the generic page.php fallback — without those
   pages depending on front-page.css itself. Kept as its own file so the two
   stay decoupled (see the comment in functions.php on why front-page.css is
   scoped to the front page only) while still sharing the same design
   tokens already defined in style.css (--swtt-primary, --swtt-gold, etc).
   ========================================================================== */

/* ---- Page hero header ----------------------------------------------------
   Replaces the badge + h1 + intro paragraph block that was previously
   duplicated with inline styles across about/book-car/catalogue/contact/
   fleet. Also fixes a real bug: the old badge used a fixed 20px pill
   border-radius sized for one short line, which looked broken wherever a
   longer badge label wrapped to two lines on a phone. This version reads
   correctly whether it wraps or not. */

.swtt-page-hero {
  text-align: center;
  margin-bottom: 40px;
}

.swtt-page-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--swtt-cream-surface);
  border: 1px solid var(--swtt-gold);
  color: var(--swtt-primary);
  padding: 6px 16px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
  max-width: 340px;
  margin: 0 auto;
  opacity: 0;
}

.swtt-page-hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(28px, 4.5vw, 36px);
  color: var(--swtt-dark);
  margin: 14px 0 10px;
  line-height: 1.2;
  opacity: 0;
}

.swtt-page-hero p {
  color: #666;
  font-size: 14px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0;
}

/* Same staggered rise-in the front page uses for its hero, scoped locally
   so this file has no dependency on front-page.css. */
.swtt-page-hero.swtt-page-animate .swtt-page-badge { animation: swtt-page-rise 0.6s 0.05s ease forwards; }
.swtt-page-hero.swtt-page-animate h1 { animation: swtt-page-rise 0.6s 0.16s ease forwards; }
.swtt-page-hero.swtt-page-animate p { animation: swtt-page-rise 0.6s 0.28s ease forwards; }

@keyframes swtt-page-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Same badge, always visible — for use outside .swtt-page-hero (e.g. the
   category tag on a single vehicle card), where there's no hero entrance
   sequence to reveal it via animation. */
.swtt-page-badge-static {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--swtt-cream);
  border: 1px solid var(--swtt-primary);
  color: var(--swtt-primary);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.5;
}

/* ---- Cards -------------------------------------------------------------- */

.swtt-page-card {
  background: #fff;
  border-radius: var(--swtt-radius-lg);
  border: 1px solid var(--swtt-border);
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.swtt-page-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  border-color: rgba(201, 154, 62, 0.4);
}

.swtt-page-card h2,
.swtt-page-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  margin-top: 0;
}

.swtt-page-card h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

/* Numbered step badge — the "1/2/3/4" circles on the Book a Car page's
   how-it-works cards. */
.swtt-page-step-num {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--swtt-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 10px;
}

/* Price figures set in the display serif — catalogue tour cards, the
   single-vehicle daily rate and deposit line. */
.swtt-page-price {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--swtt-primary);
  font-weight: 800;
}

/* Single-vehicle template's product title — same face/weight as
   .swtt-page-hero h1, sized for a two-column product layout rather than
   a centered intro. */
.swtt-page-title-lg {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 32px;
  margin: 12px 0 6px 0;
}

.swtt-page-card-tinted {
  background: var(--swtt-cream);
  border: 1px solid var(--swtt-gold);
}

.swtt-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.swtt-page-grid-narrow {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

/* ---- Buttons -------------------------------------------------------------
   Same lift-on-hover feel as the landing page's .swtt-lp-btn, under a
   different class name to keep the two stylesheets independent. */

.swtt-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--swtt-radius-md);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.swtt-page-btn-primary {
  background: var(--swtt-primary);
  color: #fff;
}
.swtt-page-btn-primary:hover {
  background: #223229;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 24, 26, 0.18);
}

.swtt-page-btn-ghost {
  background: var(--swtt-cream);
  color: var(--swtt-dark);
  border: 1px solid var(--swtt-border);
}
.swtt-page-btn-ghost:hover {
  border-color: rgba(201, 154, 62, 0.6);
  transform: translateY(-2px);
}

.swtt-page-btn-whatsapp {
  background: #25D366;
  color: #fff;
}
.swtt-page-btn-whatsapp:hover {
  background: #1fb958;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

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

/* ---- Vehicle / tour cards used on Catalogue, Fleet-via-shortcode-css,
   and single-vehicle template ------------------------------------------- */

.swtt-page-item-card {
  background: #fff;
  border-radius: var(--swtt-radius-lg);
  border: 1px solid var(--swtt-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.swtt-page-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.09);
}

.swtt-page-item-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.swtt-page-item-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ---- Standalone feature icons (About page trust badges, step numbers,
   contact details) — bigger and more prominent than the inline .swtt-ic
   used for header/footer text icons. ---------------------------------- */

.swtt-page-icon {
  width: 28px;
  height: 28px;
  color: var(--swtt-primary);
  stroke-width: 1.6;
}

.swtt-page-icon-lg {
  width: 34px;
  height: 34px;
  color: var(--swtt-primary);
  stroke-width: 1.5;
}

/* ---- Scroll reveal (local copy — see note in the file header) --------- */

.swtt-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.swtt-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .swtt-page-badge, .swtt-page-hero h1, .swtt-page-hero p, .swtt-reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* No-JS safety: never leave revealed content hidden if scripting is off. */
@media (scripting: none) {
  .swtt-reveal { opacity: 1; transform: none; }
}

/* Full-width plugin-designed pages (e.g. Home Drive). */
.swtt-page-full { max-width: none; margin: 0; padding: 0; }
