/* ============================================================
   Gràdh Turas — brand stylesheet
   Palette: dusk indigo / sunset coral / castle gold / violet (vibrant dusk)
   Type: Fraunces (display) · Outfit (body) · IBM Plex Mono (fare board)
   ============================================================ */

:root {
  --ink: #141029;
  --coal: #1a1438;
  --panel: #221b4a;
  --line: #322a63;
  --orange: #ff6b4a;
  --amber: #ffc145;
  --violet: #8b5cf6;
  --bone: #f4f1ff;
  --stone: #a89fd0;
  --radius: 14px;
  --wrap: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--ink);
  color: var(--bone);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--orange); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  color: var(--orange);
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}
.eyebrow .gd { color: var(--amber); }

.lede { color: var(--stone); max-width: 58ch; font-size: 1.1rem; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 16, 41, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--bone); }
.brand img { width: 52px; height: 52px; }
.brand-name { font-family: "Fraunces", Georgia, serif; font-size: 1.3rem; letter-spacing: 0.02em; }
.brand-name small { display: block; font-family: "Outfit", sans-serif; font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--orange); }

.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: var(--bone); font-size: 0.95rem; }
.nav a.current { color: var(--orange); }
.nav .cta { background: var(--orange); color: var(--ink); padding: 9px 18px; border-radius: 999px; font-weight: 600; }
.nav .cta:hover { background: var(--amber); color: var(--ink); }

@media (max-width: 760px) {
  .nav { gap: 16px; }
  .nav a:not(.cta) { display: none; }
}

/* ---------- Hero: split layout with portrait photo ---------- */
.hero { padding: 64px 0; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-copy .lede { margin-top: 1.1rem; }
.hero-actions { display: flex; gap: 14px; margin-top: 2rem; flex-wrap: wrap; }
.hero-grid .hero-copy { text-align: left; margin: 0; }
.hero-grid .hero-copy .lede { margin-left: 0; }
.hero-grid .hero-actions, .hero-grid .hero-points { justify-content: flex-start; }

.hero-photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 26px 80px rgba(139, 92, 246, 0.3);
}
.hero-photo {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}
.hero-photo-frame::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 16, 41, 0.35) 0%, rgba(20, 16, 41, 0) 30%),
    linear-gradient(0deg, rgba(255, 107, 74, 0.14) 0%, rgba(139, 92, 246, 0.08) 40%, rgba(0, 0, 0, 0) 65%);
  pointer-events: none;
}

/* Fallback when the photo can't load: single column with the illustration */
.hero-grid.no-photo { grid-template-columns: 1fr; gap: 0; }
.hero-grid.no-photo .hero-copy { text-align: center; max-width: 760px; margin: 0 auto; }
.hero-grid.no-photo .hero-actions, .hero-grid.no-photo .hero-points { justify-content: center; }
.hero-grid.no-photo .hero-photo-frame { margin-top: 3.2rem; border-radius: var(--radius) var(--radius) 0 0; border-bottom: none; box-shadow: 0 -18px 70px rgba(139, 92, 246, 0.25); }
.hero-grid.no-photo .hero-photo { aspect-ratio: auto; filter: none; }
.hero-grid.no-photo .hero-photo-frame::after { display: none; }
.hero-grid.no-photo + * { margin-top: 0; }

@media (max-width: 900px) {
  .hero { padding: 48px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-grid .hero-copy { text-align: center; }
  .hero-grid .hero-actions, .hero-grid .hero-points { justify-content: center; }
  .hero-photo { aspect-ratio: 4 / 5; max-height: 70vh; }
}

.btn { display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 1rem; border: 1px solid transparent; }
.btn-solid { background: var(--orange); color: var(--ink); }
.btn-solid:hover { background: var(--amber); color: var(--ink); }
.btn-ghost { border-color: var(--orange); color: var(--amber); }
.btn-ghost:hover { background: rgba(255, 107, 74, 0.14); }

.hero-points { display: flex; gap: 30px; margin-top: 2.2rem; flex-wrap: wrap; justify-content: center; }
.hero-points div { font-size: 0.9rem; color: var(--stone); }
.hero-points strong { display: block; color: var(--bone); font-size: 1rem; }


/* ---------- Section scaffolding ---------- */
section { padding: 72px 0; }
.section-head { margin-bottom: 2.4rem; }
.tartan-rule {
  height: 6px; margin: 0 0 2.2rem;
  background:
    repeating-linear-gradient(90deg,
      var(--orange) 0 30px, var(--violet) 30px 44px,
      var(--amber) 44px 58px, var(--ink) 58px 64px);
  border-radius: 3px;
  max-width: 220px;
}

/* ---------- An Clàr: departure-board fares (signature) ---------- */
.board {
  background: var(--coal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.board-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 26px; border-bottom: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  color: var(--amber); font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.board table { width: 100%; border-collapse: collapse; font-family: "IBM Plex Mono", monospace; }
.board td, .board th { padding: 16px 26px; text-align: left; font-size: 0.95rem; }
.board th { color: var(--stone); font-weight: 400; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.board tbody tr { border-bottom: 1px solid var(--line); }
.board tbody tr:last-child { border-bottom: none; }
.board tbody tr:hover { background: rgba(139, 92, 246, 0.10); }
.board .route { color: var(--bone); }
.board .route em { color: var(--orange); font-style: normal; padding: 0 6px; }
.board .fare { color: var(--orange); font-weight: 600; white-space: nowrap; text-align: right; }
.board .note { color: var(--stone); font-size: 0.82rem; }
.board-foot { padding: 14px 26px; color: var(--stone); font-size: 0.85rem; border-top: 1px solid var(--line); }

@media (max-width: 640px) {
  .board td, .board th { padding: 13px 16px; font-size: 0.85rem; }
  .board .note { display: none; }
}

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex; flex-direction: column; gap: 14px;
}
.card:hover { border-color: var(--orange); }
.card h3 { color: var(--bone); }
.card .gd { font-family: "Fraunces", Georgia, serif; font-style: italic; color: var(--orange); font-size: 0.95rem; }
.card p { color: var(--stone); font-size: 0.98rem; flex: 1; }
.card .from { font-family: "IBM Plex Mono", monospace; color: var(--amber); font-size: 0.9rem; }
.card a.more { font-weight: 600; }

/* ---------- Feature grid (why Tesla) ---------- */
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.feat h3 { font-size: 1.05rem; color: var(--amber); margin-bottom: 6px; }
.feat p { color: var(--stone); font-size: 0.95rem; }
.feat .glyph { color: var(--orange); font-size: 1.5rem; font-family: "Fraunces", serif; margin-bottom: 8px; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.review { background: var(--coal); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.review p { color: var(--bone); font-size: 0.98rem; }
.review footer { margin-top: 14px; color: var(--stone); font-size: 0.85rem; }
.review .stars { color: var(--orange); letter-spacing: 3px; margin-bottom: 10px; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--bone); font-size: 1.05rem; list-style: none; position: relative; padding-right: 34px; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 0; color: var(--orange); font-size: 1.3rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--stone); margin-top: 10px; max-width: 68ch; }

/* ---------- Booking / contact ---------- */
.book { background: var(--coal); border-top: 1px solid var(--line); }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 860px) { .book-grid { grid-template-columns: 1fr; } }

form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { form .row { grid-template-columns: 1fr; } }
label { display: block; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); margin: 16px 0 6px; }
input, select, textarea {
  width: 100%; padding: 13px 15px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  color: var(--bone); font-family: inherit; font-size: 1rem;
}
input::placeholder, textarea::placeholder { color: #6a5fa0; }
form button { margin-top: 22px; cursor: pointer; }

.contact-list { list-style: none; margin-top: 1.4rem; }
.contact-list li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--stone); }
.contact-list strong { color: var(--bone); display: inline-block; min-width: 110px; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 44px 0 60px; color: var(--stone); font-size: 0.9rem; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: center; }
.site-foot .gd { font-family: "Fraunces", serif; font-style: italic; color: var(--orange); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero .lede { margin-top: 1rem; }

/* ---------- Prose ---------- */
.prose { max-width: 70ch; }
.prose p + p { margin-top: 1rem; }
.prose strong { color: var(--bone); }
.prose p { color: var(--stone); }
