/* ============================================================
   SellYourGarageFast.co.uk — Core Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,400;0,700;0,900;1,400&family=DM+Sans:wght@400;500;600&display=swap');

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

:root {
  --green-dark:  #0d4a2c;
  --green-mid:   #1a7a48;
  --green-light: #22a060;
  --gold:        #d4a017;
  --gold-light:  #f0c040;
  --cream:       #faf8f3;
  --warm-white:  #ffffff;
  --text-dark:   #1a1a1a;
  --text-mid:    #444444;
  --text-soft:   #777777;
  --red-urgent:  #c0392b;
  --border:      #e0ddd5;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:   0 6px 24px rgba(0,0,0,0.12);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  line-height: 1.15;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); font-weight: 700; }
p  { line-height: 1.75; }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section   { padding: 80px 0; }
.section--tight { padding: 48px 0; }

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green-dark);
  border-bottom: 3px solid var(--gold);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.nav__logo {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
}
.nav__logo span { color: var(--gold-light); }
.nav__links { display: flex; gap: 24px; list-style: none; }
.nav__links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--gold-light); }
.nav__cta {
  background: var(--gold);
  color: var(--green-dark) !important;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  border: none;
  text-decoration: none;
}
.btn:hover  { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--green-mid);
  color: #fff;
}
.btn--gold {
  background: var(--gold);
  color: var(--green-dark);
}
.btn--outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.btn--large { padding: 20px 48px; font-size: 1.2rem; }

/* ── Hero ── */
.hero {
  background: var(--green-dark);
  color: #fff;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30 L30 0 L60 30 L30 60Z' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212,160,23,0.2);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}
.hero__eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.hero__title { color: #fff; margin-bottom: 24px; }
.hero__title em { font-style: italic; color: var(--gold-light); }
.hero__sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin-bottom: 40px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__trust {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.trust-item { display: flex; flex-direction: column; }
.trust-item__number {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
}
.trust-item__label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

/* ── Lead Form ── */
.form-card {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--gold);
}
.form-card__header { margin-bottom: 28px; }
.form-card__title {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 8px;
}
.form-card__sub { font-size: 0.9rem; color: var(--text-soft); }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(26,122,72,0.15);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-submit { width: 100%; padding: 18px; font-size: 1.1rem; margin-top: 8px; }
.form-privacy {
  font-size: 0.75rem;
  color: var(--text-soft);
  text-align: center;
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.form-privacy svg { flex-shrink: 0; margin-top: 2px; }

/* ── Success message ── */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 24px;
}
.form-success__icon {
  width: 64px; height: 64px;
  background: #e8f7ef;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.form-success__title { color: var(--green-dark); margin-bottom: 12px; }
.form-success__text  { color: var(--text-mid); }

/* ── Process Steps ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.step { text-align: center; }
.step__num {
  width: 52px; height: 52px;
  background: var(--green-dark);
  color: var(--gold-light);
  border-radius: 50%;
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step__title { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: var(--green-dark); }
.step__text  { font-size: 0.9rem; color: var(--text-soft); }

/* ── Cards ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.card__title { font-size: 1rem; font-weight: 700; color: var(--green-dark); margin-bottom: 8px; }
.card__text  { font-size: 0.9rem; color: var(--text-soft); }

/* ── Testimonials ── */
.testimonial {
  background: var(--green-dark);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
}
.testimonial::before {
  content: '"';
  font-family: 'Fraunces', serif;
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.4;
  position: absolute;
  top: 8px;
  left: 24px;
  line-height: 1;
}
.testimonial__text { font-size: 1rem; line-height: 1.7; margin-bottom: 20px; padding-top: 24px; }
.testimonial__author { font-size: 0.85rem; color: var(--gold-light); font-weight: 600; }
.testimonial__loc    { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* ── Urgency Banner ── */
.urgency-bar {
  background: var(--red-urgent);
  color: #fff;
  text-align: center;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.urgency-bar strong { text-decoration: underline; }

/* ── Section Themes ── */
.section--cream  { background: var(--cream); }
.section--white  { background: #fff; }
.section--dark   { background: var(--green-dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 12px;
}
.section--dark .section__label { color: var(--gold-light); }

/* ── Guarantee Box ── */
.guarantee-box {
  background: rgba(212,160,23,0.1);
  border: 2px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 620px;
}
.guarantee-box__icon { font-size: 2.2rem; flex-shrink: 0; }
.guarantee-box__title { font-weight: 700; color: var(--green-dark); margin-bottom: 6px; }
.guarantee-box__text  { font-size: 0.9rem; color: var(--text-mid); }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-weight: 600;
  color: var(--green-dark);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q::after { content: '+'; font-size: 1.3rem; color: var(--green-mid); flex-shrink: 0; transition: transform 0.2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; font-size: 0.92rem; color: var(--text-mid); margin-top: 12px; }
.faq-item.open .faq-a { display: block; }

/* ── Footer ── */
.footer {
  background: #0a2e1c;
  color: rgba(255,255,255,0.6);
  padding: 48px 0 24px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer__brand { font-family: 'Fraunces', serif; font-size: 1.2rem; font-weight: 900; color: #fff; margin-bottom: 12px; }
.footer__brand span { color: var(--gold-light); }
.footer__text { font-size: 0.85rem; line-height: 1.7; }
.footer__heading { color: #fff; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 8px; }
.footer__links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer__links a:hover { color: var(--gold-light); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
}

/* ══════════════════════════════════════════════
   MOBILE-FIRST RESPONSIVE — Portrait Android & iOS
   ══════════════════════════════════════════════ */

/* ── Tablet & below (≤900px) ── */
@media (max-width: 900px) {
  /* Hero: stack form below content */
  .hero [style*="grid-template-columns:1fr 400px"],
  .hero [style*="grid-template-columns: 1fr 400px"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 40px !important;
  }

  /* Any two-column inline grid → single column */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:2fr 1fr"],
  [style*="grid-template-columns: 2fr 1fr"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
  }

  /* Step connector detail layout */
  [style*="grid-template-columns:80px 1fr"],
  [style*="grid-template-columns: 80px 1fr"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    align-items: flex-start !important;
  }

  /* Comparison table: allow horizontal scroll on small screens */
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Stats band: wrap tightly */
  [style*="display:flex;gap:48px"],
  [style*="display: flex; gap: 48px"] {
    gap: 24px !important;
    justify-content: flex-start !important;
  }

  /* Form value ranges table on cash-buyers page */
  .form-card [style*="display:flex;justify-content:space-between"] {
    flex-direction: column !important;
    gap: 4px !important;
  }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
  /* Global spacing */
  .section       { padding: 56px 0; }
  .section--tight { padding: 32px 0; }
  .container     { padding: 0 16px; }

  /* Nav */
  .nav__links { display: none; }
  .nav__inner { padding: 14px 16px; }
  .nav__logo  { font-size: 1.1rem; }

  /* Urgency bar */
  .urgency-bar { font-size: 0.78rem; padding: 8px 12px; line-height: 1.5; }

  /* Hero */
  .hero         { padding: 40px 0 56px; }
  .hero__badge  { font-size: 0.78rem; padding: 5px 12px; }
  .hero__sub    { font-size: 1rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { text-align: center; justify-content: center; }
  .hero__trust  { gap: 16px; margin-top: 36px; padding-top: 28px; flex-wrap: wrap; }
  .trust-item__number { font-size: 1.5rem; }

  /* Form card */
  .form-card         { padding: 24px 16px; border-radius: var(--radius-md); }
  .form-card__title  { font-size: 1.25rem; }
  .form-group--row   { grid-template-columns: 1fr; gap: 0; }

  /* Make form inputs finger-friendly (min 44px touch target) */
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 14px 14px;
    font-size: 16px; /* prevents iOS zoom on focus */
    border-radius: var(--radius-sm);
    min-height: 48px;
  }
  .form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23777' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
  .form-group label  { font-size: 0.88rem; margin-bottom: 8px; }
  .form-group        { margin-bottom: 18px; }

  /* Submit button */
  .form-submit { padding: 18px; font-size: 1rem; min-height: 56px; }
  .btn--large  { padding: 16px 28px; font-size: 1rem; }

  /* Form privacy text */
  .form-privacy { font-size: 0.72rem; }

  /* Cards */
  .card-grid { grid-template-columns: 1fr; gap: 16px; }
  .card      { padding: 20px; }

  /* Steps */
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step  { text-align: left; display: flex; align-items: flex-start; gap: 16px; }
  .step__num { margin: 0; flex-shrink: 0; width: 44px; height: 44px; font-size: 1.2rem; }

  /* Testimonials */
  .testimonial        { padding: 24px 20px; }
  .testimonial__text  { font-size: 0.92rem; padding-top: 20px; }

  /* Guarantee box */
  .guarantee-box       { padding: 16px 18px; gap: 12px; flex-direction: column; }
  .guarantee-box__icon { font-size: 1.8rem; }

  /* Footer */
  .footer__inner   { grid-template-columns: 1fr; gap: 24px; }
  .footer__bottom  { flex-direction: column; text-align: center; }
  .footer          { padding: 36px 0 80px; } /* extra bottom padding for sticky CTA */

  /* Sticky CTA — always visible on mobile */
  .sticky-cta {
    opacity: 1 !important;
    pointer-events: all !important;
    padding: 10px 16px;
  }
  .sticky-cta .btn { padding: 13px 24px; font-size: 0.95rem; }

  /* Body padding so sticky CTA doesn't cover content */
  body { padding-bottom: 68px; }

  /* Section headings on mobile */
  h2 { font-size: clamp(1.4rem, 6vw, 2rem); }
  h3 { font-size: clamp(1.1rem, 4.5vw, 1.5rem); }

  /* Form success state */
  .form-success { padding: 28px 16px; }

  /* FAQ */
  .faq-q { font-size: 0.94rem; }

  /* Type list on cash-buyers page */
  li [style*="font-size:1.4rem"] { font-size: 1.2rem !important; }
}

/* ── Small phones (≤390px — iPhone SE, older Android) ── */
@media (max-width: 390px) {
  .hero__badge { display: none; } /* declutter on tiny screens */
  .form-card   { padding: 20px 14px; }
  .hero { padding: 32px 0 48px; }
  .hero__trust { gap: 12px; }
  .trust-item__number { font-size: 1.3rem; }
  .nav__logo { font-size: 1rem; }
}

/* ── iOS Safari specific fixes ── */
@supports (-webkit-touch-callout: none) {
  /* Prevent zoom on input focus — font-size 16px already set above */
  select { font-size: 16px !important; }

  /* Fix momentum scroll on iOS */
  .form-card { -webkit-overflow-scrolling: touch; }

  /* Fix button appearance on iOS */
  .btn, button, input[type="submit"] {
    -webkit-appearance: none;
    border-radius: var(--radius-sm);
  }
}

/* ── Android Chrome address bar compensation ── */
@media (max-width: 768px) and (orientation: portrait) {
  .hero { min-height: auto; }

  /* Inline grids inside section containers */
  .container [style*="display:grid"],
  .container [style*="display: grid"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }

  /* Stat band inside dark section */
  .section--dark [style*="display:flex"] {
    flex-wrap: wrap !important;
    gap: 20px !important;
    justify-content: flex-start !important;
  }
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeUp 0.6s ease forwards; }
.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.25s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.4s; opacity: 0; }

/* ── Mobile-safe layout helpers (replaces inline grid styles) ── */
.layout-hero {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: center;
}
.layout-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.layout-2col--cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.layout-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 56px;
}
.stats-band {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .layout-hero,
  .layout-2col { grid-template-columns: 1fr; gap: 36px; }
  .layout-2col--cards { grid-template-columns: 1fr; gap: 16px; }
  .testimonials-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .layout-step { grid-template-columns: 48px 1fr; gap: 16px; margin-bottom: 36px; }
  .stats-band  { gap: 20px; justify-content: flex-start; }
}
.text-gold   { color: var(--gold); }
.text-green  { color: var(--green-mid); }
.text-center { text-align: center; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.mt-40 { margin-top: 40px; }

/* ── Value range rows ── */
.val-row { display: flex; justify-content: space-between; align-items: center; }
@media (max-width: 480px) {
  .val-row { flex-direction: column; align-items: flex-start; gap: 2px; }
}
