/* ==========================================================================
   Rhys Tyrrell Window Cleaning — Clean Local Trades Styling (Pure CSS)
   ========================================================================== */

:root {
  --teal: #2a8497;
  --teal-dark: #1b5966;
  --teal-soft: #ecf6f8;
  --green: #16a34a;
  --green-hover: #15803d;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-600: #059669;
  --emerald-800: #065f46;

  --rose-50: #fff1f2;
  --rose-200: #fecdd3;
  --rose-700: #be123c;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background: #ffffff;
  color: var(--slate-800);
  min-height: 100vh;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
img, svg { display: block; }

.container {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 1.125rem;
}

@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.hidden { display: none !important; }
.ico { width: 1rem; height: 1rem; flex-shrink: 0; }
.ico-md { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.ico-lg { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }

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

.header-inner {
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  user-select: none;
}

.brand-logo img { height: 2.5rem; width: auto; }
@media (min-width: 640px) { .brand-logo img { height: 3rem; } }

.brand-logo-name {
  display: block;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--teal);
  line-height: 1.1;
}

.brand-logo-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-dark);
}

.brand-light .brand-logo-name { color: #ffffff; }
.brand-light .brand-logo-sub { color: #e0f2fe; }

.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

@media (min-width: 768px) { .desktop-nav { display: flex; } }

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-600);
}

.nav-link:hover { color: var(--teal); }

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-phone {
  display: none;
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 0.92rem;
}

@media (min-width: 1024px) { .header-phone { display: inline-block; } }

.header-cta {
  background: var(--teal);
  color: #ffffff;
  padding: 0.6rem 1.1rem;
  border-radius: 0.65rem;
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.15s ease;
}

.header-cta:hover { background: var(--teal-dark); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero-section {
  background: linear-gradient(180deg, var(--teal-soft) 0%, #ffffff 100%);
  padding: 3rem 0 3.75rem;
  border-bottom: 1px solid var(--slate-200);
}

@media (min-width: 1024px) { .hero-section { padding: 4.5rem 0; } }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-right { display: none; }

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: repeat(12, 1fr); gap: 3rem; }
  .hero-left { grid-column: span 7; }
  .hero-right { grid-column: span 5; display: flex; justify-content: center; }
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ffffff;
  color: var(--emerald-800);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid var(--emerald-100);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.25rem;
  color: var(--slate-900);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

@media (min-width: 640px) { .hero-title { font-size: 2.85rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.35rem; } }
.hero-title-accent { color: var(--teal); }

.hero-lead {
  font-size: 1.05rem;
  color: var(--slate-600);
  max-width: 36rem;
}

.hero-checklist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  width: 100%;
  max-width: 34rem;
}

@media (min-width: 540px) { .hero-checklist { grid-template-columns: repeat(2, 1fr); } }

.hero-check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-700);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.btn-teal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--teal);
  color: #ffffff;
  padding: 0.9rem 1.65rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.15s ease;
}

.btn-teal:hover { background: var(--teal-dark); }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--green);
  color: #ffffff;
  padding: 0.9rem 1.45rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.15s ease;
}

.btn-whatsapp:hover { background: var(--green-hover); }

.btn-soft-teal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: #ffffff;
  color: var(--teal-dark);
  border: 1px solid var(--slate-300);
  padding: 0.9rem 1.35rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.15s ease;
}

.btn-soft-teal:hover { background: var(--slate-50); }

/* Right Hero Visual: either uploaded real photo OR clean brand card */
.hero-photo-frame {
  width: 100%;
  max-width: 26rem;
  aspect-ratio: 4 / 5;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 4px solid #ffffff;
  box-shadow: 0 20px 35px -12px rgba(15, 23, 42, 0.2);
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card {
  width: 100%;
  max-width: 23rem;
  aspect-ratio: 4 / 5;
  background: var(--teal);
  color: #ffffff;
  border-radius: 1.25rem;
  border: 6px solid #ffffff;
  box-shadow: 0 20px 35px -12px rgba(15, 23, 42, 0.18);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.hero-card-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  height: 100%;
}

.hero-card-center img { height: 6.5rem; width: auto; }
.hero-card-name { font-size: 1.5rem; font-weight: 800; }
.hero-card-sub { display: block; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal-soft); }
.hero-card-tag { display: block; font-size: 0.82rem; color: rgba(255, 255, 255, 0.85); margin-top: 0.35rem; }

.hero-card-footer {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.85rem;
  padding: 0.85rem;
}

.hero-card-motto { font-size: 0.72rem; font-weight: 600; color: rgba(255, 255, 255, 0.9); }
.hero-card-phone { display: block; font-size: 1rem; font-weight: 800; margin-top: 0.2rem; }

/* ==========================================================================
   Trust Strip & Sections
   ========================================================================== */
.trust-strip {
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
  padding: 1.15rem 0;
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate-700);
}

.trust-item { display: inline-flex; align-items: center; gap: 0.45rem; }

.section { padding: 4rem 0; }
.section-alt { background: var(--slate-50); border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); }
.section-teal-soft { background: var(--teal-soft); border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); }

.section-head {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--slate-900);
  letter-spacing: -0.02em;
}

@media (min-width: 640px) { .section-heading { font-size: 2.15rem; } }

.section-sub {
  font-size: 0.98rem;
  color: var(--slate-600);
  margin-top: 0.6rem;
}

/* ==========================================================================
   How It Works (3 Steps)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }

.step-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  padding: 1.5rem;
}

.step-num {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.step-title { font-size: 1.05rem; font-weight: 700; color: var(--slate-900); margin-bottom: 0.35rem; }
.step-desc { font-size: 0.9rem; color: var(--slate-600); }

/* ==========================================================================
   Services Tabs
   ========================================================================== */
.service-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.service-tab-btn {
  padding: 0.7rem 1.25rem;
  border-radius: 0.65rem;
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  color: var(--slate-700);
}

.service-tab-btn.active {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #ffffff;
}

.service-panel-box {
  max-width: 62rem;
  margin: 0 auto;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 1.15rem;
  padding: 1.5rem;
}

@media (min-width: 768px) { .service-panel-box { padding: 2.25rem; } }

.service-panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) { .service-panel-grid { grid-template-columns: 1.2fr 0.8fr; } }

.service-details { display: flex; flex-direction: column; gap: 1rem; }
.service-subtitle { font-size: 0.8rem; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: 0.05em; }
.service-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--slate-900); }
.service-desc { font-size: 0.92rem; color: var(--slate-600); }
.service-bullets-wrap { display: flex; flex-direction: column; gap: 0.5rem; }
.service-bullet { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.9rem; color: var(--slate-700); }
.service-bullet svg { color: var(--teal); margin-top: 2px; }
.service-ctas { display: flex; flex-wrap: wrap; gap: 0.65rem; padding-top: 0.5rem; }

.water-feature-card {
  background: var(--teal-dark);
  color: #ffffff;
  border-radius: 1rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 220px;
}

.water-feature-quote { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.45; }
.water-feature-foot { font-size: 0.78rem; color: #a5f3fc; font-weight: 600; }

/* ==========================================================================
   Optional Recent Work Gallery (Shown when photos uploaded via /admin)
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.gallery-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-caption {
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-700);
}

/* ==========================================================================
   Quote Form Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: repeat(12, 1fr); }
  .contact-left { grid-column: span 5; }
  .contact-right { grid-column: span 7; }
}

.contact-left { display: flex; flex-direction: column; gap: 1.25rem; }

.wa-card {
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  border-radius: 1rem;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.wa-card h3 { font-size: 1.05rem; font-weight: 800; color: var(--slate-900); }
.wa-card p { font-size: 0.9rem; color: var(--slate-600); }

.form-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 1.15rem;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

@media (min-width: 640px) { .form-card { padding: 2rem; } }

.form-stack { display: flex; flex-direction: column; gap: 1rem; }
.form-grid-2 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: repeat(2, 1fr); } }
.form-grid-3 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .form-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.form-group { display: flex; flex-direction: column; gap: 0.3rem; }
.form-label { font-size: 0.8rem; font-weight: 700; color: var(--slate-700); }
.opt-tag { font-weight: 400; color: var(--slate-400); }

.form-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--slate-300);
  border-radius: 0.6rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.92rem;
  color: var(--slate-900);
}

.form-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42, 132, 151, 0.15);
}

.form-error {
  background: var(--rose-50);
  border: 1px solid var(--rose-200);
  color: var(--rose-700);
  padding: 0.85rem;
  border-radius: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.form-submit {
  width: 100%;
  background: var(--teal);
  color: #ffffff;
  font-weight: 700;
  padding: 0.9rem;
  border-radius: 0.65rem;
  font-size: 0.98rem;
  transition: background 0.15s ease;
}

.form-submit:hover { background: var(--teal-dark); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-gdpr { font-size: 0.78rem; color: var(--slate-500); text-align: center; }

.dispatch-panel {
  text-align: center;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.dispatch-actions { display: flex; flex-direction: column; gap: 0.65rem; width: 100%; max-width: 22rem; }
.btn-new-inquiry { font-size: 0.82rem; color: var(--teal); font-weight: 600; text-decoration: underline; }

/* ==========================================================================
   Areas & FAQs
   ========================================================================== */
.areas-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 640px) { .areas-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .areas-list { grid-template-columns: repeat(4, 1fr); } }

.area-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-700);
}

.area-pill svg { color: var(--teal); }
.areas-footer { text-align: center; font-size: 0.88rem; color: var(--slate-600); margin-top: 1.5rem; }

.faq-wrap { max-width: 48rem; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: #ffffff; border: 1px solid var(--slate-200); border-radius: 0.85rem; overflow: hidden; }
.faq-btn {
  width: 100%;
  padding: 1.1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--slate-900);
}
.faq-chevron { width: 1.15rem; height: 1.15rem; color: var(--teal); flex-shrink: 0; transition: transform 0.2s ease; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 1.25rem 1.15rem; font-size: 0.92rem; color: var(--slate-600); line-height: 1.6; }
.faq-item.open .faq-answer { display: block; }

/* ==========================================================================
   Bottom CTA, Footer & Sticky Mobile Bar
   ========================================================================== */
.bottom-cta-band {
  background: var(--teal-dark);
  color: #ffffff;
  padding: 3rem 0;
  text-align: center;
}

.bottom-cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem; }
.bottom-cta-note { font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); margin-top: 1rem; }

.site-footer {
  background: #133f48;
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 5.5rem;
}

@media (min-width: 768px) { .site-footer { padding: 3rem 0 2rem; } }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1.2fr 1.5fr; } }

.footer-bio { font-size: 0.88rem; color: rgba(255, 255, 255, 0.75); margin-top: 0.85rem; max-width: 24rem; }
.footer-heading { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #ffffff; margin-bottom: 0.75rem; }
.footer-list { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.88rem; }
.footer-list a:hover { color: #ffffff; text-decoration: underline; }
.footer-contact { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.9rem; }
.footer-contact a { color: #ffffff; font-weight: 700; }

.footer-bottom {
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Sticky Mobile Bar */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: #ffffff;
  border-top: 1px solid var(--slate-200);
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  padding: 0.5rem 0.65rem;
}

@media (min-width: 768px) { .mobile-sticky-bar { display: none; } }

.sticky-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.5rem;
  border-radius: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.sticky-call { background: var(--slate-100); color: var(--slate-900); }
.sticky-wa { background: var(--green); color: #ffffff; }
.sticky-quote { background: var(--teal); color: #ffffff; }

.text-teal { color: var(--teal); }
.text-emerald { color: var(--emerald-600); }
