/* Premier Taxis Salisbury — stylesheet
   Color variables (--bg, --surface, --text, --accent, --navy, etc.) come
   from css/theme.css, which must be linked before this file. This file is
   layout + components only, so it automatically follows whatever mode
   (light/dim/lights-out) and accent color the visitor has picked. */

:root {
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 10px 16px;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

h1, h2, h3 { font-weight: 800; color: var(--text); line-height: 1.15; margin: 0; }
p { margin: 0; }

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.mt { margin-top: 20px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: var(--accent-contrast); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn-primary:hover { background: var(--accent-dark); }

.btn-secondary { background: rgba(255,255,255,0.12); color: var(--on-dark); border: 1.5px solid rgba(255,255,255,0.35); }
.btn-secondary:hover { background: rgba(255,255,255,0.2); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark { flex-shrink: 0; }

.logo-text {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--on-dark);
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}
.logo-sub {
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent);
  color: var(--accent-contrast) !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--accent-dark); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--on-dark);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero — Salisbury Cathedral photo on the right, dissolving into solid
   navy on the left where the text sits. The photo layer + gradient live
   on .hero-bg so the text markup stays untouched above it. */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--on-dark);
  padding: 88px 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/img/hero-cathedral-right.jpg");
  background-size: cover;
  background-position: center right;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--navy) 0%,
    var(--navy) 32%,
    rgba(15, 36, 56, 0.82) 50%,
    rgba(15, 36, 56, 0.35) 72%,
    rgba(15, 36, 56, 0.12) 100%
  );
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 620px) 1fr;
  align-items: center;
  gap: 48px;
}
.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 {
  color: var(--on-dark);
  font-size: 2.6rem;
  margin-bottom: 18px;
}
.hero-text p {
  color: rgba(255,255,255,0.78);
  font-size: 1.08rem;
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

.trust-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.trust-badges li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  font-weight: 500;
}
.trust-badges svg { color: var(--accent); flex-shrink: 0; }

/* Slight lift so the text reads crisply over any bright patch of sky */
.hero-text { text-shadow: 0 1px 12px rgba(15, 36, 56, 0.45); }

/* Section heading */
.section-heading {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-heading h2 { font-size: 2rem; margin: 8px 0 14px; }
.section-heading p { color: var(--muted); font-size: 1.02rem; }
.section-heading.light .eyebrow { color: var(--accent); }
.section-heading.light h2 { color: var(--on-dark); }
.section-heading.light p { color: rgba(255,255,255,0.75); }

/* Cards */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 32px;
}

/* Coverage */
.coverage { padding: 84px 0; }
.coverage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.coverage h3 { font-size: 1.1rem; margin-bottom: 14px; }

.chip-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 4px;
  padding: 0;
}
.chip-list li {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
}

.hours-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--success-bg);
  color: var(--success);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hours-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.hours-table th, .hours-table td {
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  font-weight: 500;
}
.hours-table th { color: var(--text); font-weight: 600; }
.hours-table td { color: var(--muted); text-align: right; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: none; }

/* Pricing */
.pricing { padding: 84px 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pricing-card { text-align: left; }
.pricing-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.pricing-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.pricing-card p { color: var(--muted); font-size: 0.92rem; }

/* Booking */
.booking { padding: 84px 0; background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%); }
.booking-form { max-width: 780px; margin: 0 auto; }

/* Honeypot — hidden from real users, catches basic bots */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

fieldset { border: none; padding: 0; margin: 0 0 28px; }
legend {
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
  padding: 0 0 16px;
  width: 100%;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.field-wide { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.req { color: var(--error); }
.optional { color: var(--muted); font-weight: 400; }

.field input, .field textarea {
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
  background: var(--surface);
}
.field textarea { resize: vertical; min-height: 70px; }

.autocomplete-wrap { position: relative; }

.autocomplete-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 50;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-height: 260px;
  overflow-y: auto;
}
.autocomplete-list[hidden] { display: none; }

.autocomplete-item {
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
}
.autocomplete-item:hover,
.autocomplete-item.active {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  margin-bottom: 8px;
}
.checkbox-label input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--accent); }

.w3w-input.hidden { display: none; }

.field.invalid input, .field.invalid textarea { border-color: var(--error); background: var(--error-bg); }
.error-msg {
  font-size: 0.8rem;
  color: var(--error);
  min-height: 1em;
  display: block;
}

.btn-submit {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  margin-top: 6px;
  position: relative;
}
.btn-spinner { display: none; animation: spin 0.8s linear infinite; }
.btn-submit.loading .btn-label { opacity: 0.6; }
.btn-submit.loading .btn-spinner { display: block; }
.btn-submit:disabled { cursor: not-allowed; opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  margin-top: 16px;
  padding: 0;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: center;
}
.form-status.success { padding: 14px; background: var(--success-bg); color: var(--success); }
.form-status.error { padding: 14px; background: var(--error-bg); color: var(--error); }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.8); padding: 48px 0 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 36px;
}
.footer-brand { max-width: 360px; }
.footer-brand .logo-text.light { color: var(--on-dark); margin-bottom: 10px; }
.footer-brand p { margin-top: 10px; color: rgba(255,255,255,0.6); }

.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
  transition: color 0.15s ease;
}
.footer-contact a:hover { color: var(--accent); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0; }
.footer-bottom p { color: rgba(255,255,255,0.5); text-align: center; }

/* Quick actions */
.quick-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 200;
}
.quick-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.quick-btn:hover { transform: scale(1.08); }
.quick-btn-whatsapp { background: #25D366; color: #fff; }

/* Fixed fares */
.fares { padding: 72px 0; background: var(--bg); }

.fares-table-card { padding: 10px 22px 18px; overflow-x: auto; max-width: 780px; margin: 0 auto; }
.fares-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.fares-table th, .fares-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.fares-table th {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fares-table td:first-child { font-weight: 600; color: var(--text); }
.fares-table td:nth-child(2) { color: var(--accent-dark); font-weight: 700; }
.fares-table tbody tr:last-child td { border-bottom: none; }
.fares-note { margin: 14px 2px 4px; }
.fares-note a { color: var(--accent-dark); font-weight: 600; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  /* On small screens the photo becomes a full-bleed backdrop behind the
     text: lighter mobile image + a stronger, mostly-vertical navy wash so
     everything stays readable. */
  .hero-bg { background-image: url("../assets/img/hero-cathedral-mobile.jpg"); background-position: center; }
  .hero-bg::after {
    background: linear-gradient(
      180deg,
      rgba(15, 36, 56, 0.94) 0%,
      rgba(15, 36, 56, 0.86) 55%,
      rgba(15, 36, 56, 0.72) 100%
    );
  }
  .coverage-grid, .pricing-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-cta { margin-top: 10px; text-align: center; }
  .nav-toggle { display: flex; }
  .hero h1 { font-size: 2rem; }
  .hero { padding: 52px 0; }
  .coverage, .pricing, .booking, .fares { padding: 56px 0; }
  .card { padding: 22px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .footer-inner { flex-direction: column; }
}
