/* ===== Cardiff Stairlifts — Calm Landing Page ===== */

:root {
  --bg: #f7f8f5;
  --surface: #ffffff;
  --text: #1a2e32;
  --text-strong: #0f1f23;
  --muted: #5d6f73;
  --brand: #175465;
  --brand-deep: #113d49;
  --accent: #a85424;
  --accent-deep: #8a441e;
  --star: #f2b01e;
  --border: #dde7e8;
  --shadow: 0 10px 36px rgba(16, 39, 45, 0.07);
  --shadow-soft: 0 6px 20px rgba(16, 39, 45, 0.05);
  --radius: 18px;
  --container: 760px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--brand-deep);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---- Container ---- */
.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 0;
  align-items: center;
  text-align: center;
}

.brand-mark {
  color: var(--brand-deep);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.header-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.header-phone {
  margin: 0;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-strong);
}

/* ---- Buttons ---- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(168, 84, 36, 0.3);
  outline-offset: 2px;
}
.button-primary {
  background: var(--accent);
  color: #fff;
}
.button-primary:hover, .button-primary:focus-visible { background: var(--accent-deep); }
.button-large { min-height: 58px; font-size: 1.1rem; padding: 16px 36px; }
.button-block { width: 100%; }

/* ---- Headings ---- */
h1, h2, h3 {
  margin: 0;
  line-height: 1.22;
  color: var(--text-strong);
  font-weight: 700;
}
h1 {
  font-size: clamp(1.9rem, 5.5vw, 2.8rem);
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.015em;
}
p { margin: 0; color: var(--muted); }

/* ---- Hero ---- */
.hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 340px;
  padding: 44px 0 40px;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15,31,35,0.78) 0%, rgba(15,31,35,0.52) 45%, rgba(15,31,35,0.68) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 620px;
}
.hero-section h1 {
  color: #fff;
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.hero-lead {
  font-size: 1.12rem;
  line-height: 1.65;
  color: #f0f4f5;
  max-width: 540px;
  margin: 0 auto 22px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.hero-section .button { margin: 0 auto 14px; }
.hero-trust-line {
  font-size: 0.95rem;
  color: #d8e6e8;
  margin-top: 4px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ---- Section spacing ---- */
.section { padding: 48px 0; }

/* ---- Review cards (shared) ---- */
.review-card {
  margin: 0;
  padding: 28px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  max-width: 560px;
}
.review-card p {
  color: var(--text-strong);
  font-size: 1.08rem;
  line-height: 1.65;
}
.review-card footer {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.review-card strong {
  font-weight: 700;
  color: var(--text-strong);
  font-size: 1rem;
}
.review-card span {
  color: var(--muted);
  font-size: 0.88rem;
}
.review-stars {
  color: var(--star);
  letter-spacing: 0.08em;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

/* ---- Solo review (first review) ---- */
.review-solo-section { padding-top: 20px; padding-bottom: 20px; }
.review-solo-section .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
}

/* ---- How we help ---- */
.how-we-help-section {
  text-align: center;
}
.how-we-help-section h2 { margin-bottom: 16px; }
.section-lead {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--text);
  max-width: 520px;
  margin: 0 auto 16px;
}
.how-we-help-section p {
  font-size: 1.02rem;
  max-width: 500px;
  margin: 0 auto 24px;
}
.service-points {
  margin: 0 auto 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: 420px;
  text-align: left;
}
.service-points li {
  position: relative;
  padding-left: 26px;
  color: var(--text);
  font-size: 1.02rem;
}
.service-points li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}
.how-we-help-section .button { margin: 0 auto; }

/* ---- Image + review mix ---- */
.image-review-mix { padding: 40px 0; }
.mix-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.mix-image {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.mix-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}
.mix-grid > .review-card {
  align-self: center;
}
.image-review-mix-alt {
  background: rgba(23, 84, 101, 0.025);
}

/* ---- Meet Lee ---- */
.meet-lee-section {
  text-align: center;
}
.lee-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
.lee-photo-wrap {
  display: flex;
  justify-content: center;
}
.lee-photo {
  width: min(100%, 280px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 430 / 551;
  object-fit: cover;
}
.lee-copy h2 { margin-bottom: 14px; }
.lee-copy p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
}
.lee-copy p + p { margin-top: 14px; }

/* ---- CTA block ---- */
.cta-block-section { padding: 44px 0; }
.cta-block {
  text-align: center;
}
.cta-text {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text);
  max-width: 480px;
  margin: 0 auto 24px;
}
.cta-block .button { margin: 0 auto; }

/* ---- Quote form ---- */
.quote-form-section {
  padding: 48px 0 56px;
  background: rgba(23, 84, 101, 0.03);
}
.quote-form-section h2 { text-align: center; margin-bottom: 10px; }
.form-intro {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text);
  max-width: 420px;
  margin: 0 auto 28px;
}

.quote-form {
  display: grid;
  gap: 18px;
  max-width: 560px;
  margin: 0 auto;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.field-group {
  display: grid;
  gap: 7px;
}
label {
  font-weight: 700;
  color: var(--text-strong);
  font-size: 1rem;
}
input, textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text-strong);
  font-size: 1rem;
}
input:focus, textarea:focus {
  border-color: var(--brand);
}
textarea {
  resize: vertical;
  min-height: 120px;
}
.privacy-note {
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

/* ---- Honeypot ---- */
.field-group-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- Form messages ---- */
.form-messages { display: grid; gap: 10px; }
.form-message {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
}
.form-message-success {
  background: rgba(31, 108, 80, 0.1);
  border: 1px solid rgba(31, 108, 80, 0.2);
  color: #1f6c50;
}
.form-message-error {
  background: rgba(185, 43, 43, 0.08);
  border: 1px solid rgba(185, 43, 43, 0.18);
  color: #8b2323;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--brand-deep);
  color: #e3eef0;
  padding: 36px 0 24px;
}
.site-footer p, .site-footer a {
  color: #e3eef0;
  font-size: 0.92rem;
  line-height: 1.6;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}
.footer-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}
.footer-brand p:last-child {
  color: #a8c4c9;
  font-size: 0.88rem;
}
.footer-contact p { margin: 2px 0; }
.footer-link a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}
.footer-bottom p {
  color: #8aa4a8;
  font-size: 0.82rem;
}

/* ===== Responsive ===== */
@media (min-width: 640px) {
  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .header-actions {
    flex-direction: row;
    align-items: center;
    gap: 18px;
  }
}

@media (min-width: 768px) {
  :root { --container: 820px; }

  .hero-section {
    min-height: 440px;
    padding: 60px 0 56px;
  }

  .review-solo-section .container {
    justify-content: center;
  }

  .mix-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .mix-grid-reverse .mix-image { order: 2; }

  .lee-grid {
    grid-template-columns: 280px 1fr;
    text-align: left;
    gap: 48px;
  }
  .meet-lee-section h2 { text-align: left; }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
  }
}