/* =====================================================================
   Robicon Pest Control — public website
   Same blue & white language as the admin system, but sized and paced
   for a marketing page: bigger type, more air, one clear action.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --navy-900: #0B2545;
  --navy-800: #12345E;
  --navy-700: #1B4C82;
  --blue-600: #2E77D0;
  --blue-500: #4C94E8;
  --blue-100: #E7F1FC;
  --white: #FFFFFF;
  --paper: #F4F8FC;
  --line: #DCE6F0;
  --ink: #1B2733;
  --ink-soft: #5C6B7A;
  --amber-600: #C08A2E;
  --green-600: #1F8A57;
  --green-100: #E1F5EA;
  --red-600: #C0392B;
  --red-100: #FBE4E1;

  --font-display: 'Manrope', 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, Segoe UI, sans-serif;
  --radius: 10px;
  --shadow: 0 2px 4px rgba(11,37,69,.05), 0 8px 28px rgba(11,37,69,.07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink);
  background: var(--white); font-size: 16px; line-height: 1.6;
}
h1, h2, h3 { font-family: var(--font-display); color: var(--navy-900); margin: 0 0 .5em; line-height: 1.2; }
h1 { font-size: 2.6rem; font-weight: 800; }
h2 { font-size: 1.9rem; font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; }

.container { width: min(1140px, 92%); margin: 0 auto; }
.section { padding: 76px 0; }
.section-tight { padding: 52px 0; }
.section-paper { background: var(--paper); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 44px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue-600); margin-bottom: 10px;
}

/* ---------------------------------------------------------------
   Header
   --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; }
.brand, .footer-brand { display: flex; align-items: center; gap: 11px; }
.brand-shield {
  width: 40px; height: 44px; flex-shrink: 0; background: var(--blue-600); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 13px; font-weight: 800;
  clip-path: polygon(50% 0%, 100% 18%, 100% 62%, 50% 100%, 0% 62%, 0% 18%);
}
.brand-logo { width: 46px; height: 46px; object-fit: contain; }
.brand-words strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--navy-900); line-height: 1.1; }
.brand-words small { display: block; font-size: .72rem; color: var(--ink-soft); letter-spacing: .02em; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { font-size: .95rem; font-weight: 500; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--blue-600); }
.site-nav a.active { color: var(--blue-600); border-bottom-color: var(--blue-600); }
.btn-quote {
  background: var(--blue-600); color: #fff !important; padding: 10px 20px !important;
  border-radius: 8px; font-weight: 600; border-bottom: none !important;
}
.btn-quote:hover { background: var(--navy-700); }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--navy-900); }

/* ---------------------------------------------------------------
   Hero slideshow
   --------------------------------------------------------------- */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease;
  background-size: cover; background-position: center;
}
.slide.active { opacity: 1; }
/* Gradient fallbacks so the slideshow works before real photos are added */
.slide-1 { background-image: linear-gradient(135deg, #0B2545 0%, #1B4C82 55%, #2E77D0 100%); }
.slide-2 { background-image: linear-gradient(135deg, #12345E 0%, #2E77D0 60%, #4C94E8 100%); }
.slide-3 { background-image: linear-gradient(135deg, #0B2545 0%, #234A7A 50%, #1B4C82 100%); }
.slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,37,69,.86) 0%, rgba(11,37,69,.55) 60%, rgba(11,37,69,.35) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 70px 0; max-width: 640px; color: #fff; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero-lede { font-size: 1.15rem; color: #D6E5F5; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 26px; margin-top: 38px; flex-wrap: wrap; }
.hero-badge strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: #fff; }
.hero-badge span { font-size: .82rem; color: #B9D2EC; }

.slide-dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 9px; z-index: 3; }
.slide-dot {
  width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.4); padding: 0;
}
.slide-dot.active { background: #fff; width: 26px; border-radius: 5px; }

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px; border: 2px solid transparent;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--blue-500); transform: translateY(-1px); }
.btn-outline-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--line); color: var(--navy-900); }
.btn-outline:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------
   Cards & grids
   --------------------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 34px; align-items: center; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease;
}
.card-hover:hover { transform: translateY(-3px); border-color: var(--blue-500); }
.card-icon {
  width: 46px; height: 46px; border-radius: 10px; background: var(--blue-100);
  color: var(--blue-600); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 16px;
}
.card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 13px; color: var(--ink-soft); }
.check-list li::before {
  content: '✓'; position: absolute; left: 0; top: -1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-100); color: var(--green-600);
  font-size: .72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy-900); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* Warranty highlight panel */
.panel-navy {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff; border-radius: 14px; padding: 44px 40px;
}
.panel-navy h2 { color: #fff; }
.panel-navy p { color: #C7DCF0; }
.warranty-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 22px; margin-top: 28px; }
.wp strong { display: block; font-family: var(--font-display); font-size: 1.9rem; color: #fff; }
.wp span { font-size: .86rem; color: #B9D2EC; }

/* ---------------------------------------------------------------
   FAQ accordion
   --------------------------------------------------------------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: var(--white); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 24px; font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  color: var(--navy-900); display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q:hover { color: var(--blue-600); }
.faq-icon { flex-shrink: 0; font-size: 1.3rem; color: var(--blue-600); transition: transform .2s ease; line-height: 1; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 520px; }
.faq-a-inner { padding: 0 24px 20px; color: var(--ink-soft); font-size: .95rem; }

/* ---------------------------------------------------------------
   Quotation form
   --------------------------------------------------------------- */
.quote-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 36px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field-full { grid-column: 1 / -1; }
label { display: block; font-size: .88rem; font-weight: 600; color: var(--navy-800); margin-bottom: 6px; }
.req { color: var(--red-600); }
input[type=text], input[type=email], input[type=tel], input[type=date],
input[type=number], select, textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  font-family: var(--font-body); font-size: .98rem; color: var(--ink); background: var(--white);
}
input:focus, select:focus, textarea:focus { border-color: var(--blue-600); outline: none; }
textarea { resize: vertical; min-height: 110px; }
.has-error { border-color: var(--red-600) !important; }
.err { color: var(--red-600); font-size: .82rem; margin: 5px 0 0; }
.hint { color: var(--ink-soft); font-size: .82rem; margin: 5px 0 0; }

/* Honeypot — hidden from people, visible to naive bots */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.alert { padding: 16px 18px; border-radius: 10px; margin-bottom: 22px; font-size: .95rem; }
.alert-success { background: var(--green-100); color: var(--green-600); border: 1px solid rgba(31,138,87,.25); }
.alert-error { background: var(--red-100); color: var(--red-600); border: 1px solid rgba(192,57,43,.25); }

.side-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 28px; margin-bottom: 18px; }
.side-card h3 { font-size: 1.05rem; }
.contact-line { display: flex; gap: 10px; margin-bottom: 12px; font-size: .93rem; }
.contact-line .cl-label { color: var(--ink-soft); min-width: 78px; flex-shrink: 0; }
.contact-line strong { color: var(--navy-900); }

/* ---------------------------------------------------------------
   Page banner (inner pages)
   --------------------------------------------------------------- */
.page-banner { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff; padding: 64px 0 58px; text-align: center; }
.page-banner h1 { color: #fff; font-size: 2.2rem; margin-bottom: .3em; }
.page-banner p { color: #C7DCF0; max-width: 620px; margin: 0 auto; }

/* CTA strip */
.cta-strip { background: var(--blue-600); color: #fff; padding: 54px 0; text-align: center; }
.cta-strip h2 { color: #fff; }
.cta-strip p { color: #DCEAFB; max-width: 560px; margin: 0 auto 26px; }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #C7DCF0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding: 56px 0 40px; }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-brand .brand-words strong { color: #fff; }
.footer-brand .brand-words small { color: #8FB3D9; }
.footer-blurb { margin-top: 16px; font-size: .92rem; color: #A8C6E3; }
.footer-list { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.footer-list li { margin-bottom: 10px; }
.fl-label { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: #7FA5CD; }
.footer-links a:hover { color: #fff; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: .84rem; color: #8FB3D9; }
.footer-bar-inner { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.55rem; }
  .quote-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 0;
    box-shadow: 0 10px 24px rgba(11,37,69,.10);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 6%; border-bottom: none; }
  .btn-quote { margin: 8px 6%; text-align: center; }
  .hero { min-height: 480px; }
  .section { padding: 54px 0; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
  .panel-navy { padding: 30px 24px; }
}

/* ---------------------------------------------------------------
   Data privacy consent
   --------------------------------------------------------------- */
.consent {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 15px 16px; margin: 6px 0 20px;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px;
}
.consent input[type="checkbox"] {
  width: 17px; height: 17px; margin: 2px 0 0; flex-shrink: 0;
  accent-color: var(--blue-600); cursor: pointer;
}
.consent label {
  margin: 0; font-size: .84rem; line-height: 1.6;
  font-weight: 400; color: var(--ink-soft); cursor: pointer;
}
.consent-error { border-color: var(--red-600); background: var(--red-100); }

/* ---------------------------------------------------------------
   Address block

   One label over a small grid: street across the full width, then
   city and province side by side, each with its caption BELOW the
   box. That is the arrangement people already know from postal and
   paper forms, so nobody has to work out what goes where.
   --------------------------------------------------------------- */
.group-label { display: block; font-size: .88rem; font-weight: 600; color: var(--navy-800); margin-bottom: 8px; }

.addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.addr-cell { display: flex; flex-direction: column; }
.addr-cell-full { grid-column: 1 / -1; }
.addr-caption { font-size: .78rem; color: var(--ink-soft); margin-top: 5px; }

/* ---------------------------------------------------------------
   Live rate preview

   Appears only once a floor area has been typed. Deliberately quiet
   rather than celebratory: it is a published rate, not an offer, and
   the caveat under it has to be read, not skipped past.
   --------------------------------------------------------------- */
.estimate-box {
  background: var(--blue-100); border: 1px solid rgba(46,119,208,.28);
  border-radius: 12px; padding: 18px 20px;
}
.estimate-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.estimate-tag {
  font-size: .76rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--blue-600);
}
.estimate-figure {
  font-family: var(--font-display); font-size: 1.75rem;
  color: var(--navy-900); line-height: 1.1;
}
.estimate-detail { margin: 10px 0 0; font-size: .88rem; color: var(--navy-800); }
.estimate-detail:empty { display: none; }
.estimate-caveat {
  margin: 12px 0 0; font-size: .8rem; color: var(--ink-soft); line-height: 1.5;
  border-top: 1px solid rgba(46,119,208,.2); padding-top: 11px;
}

/* ---------------------------------------------------------------
   Published rate card (sidebar)
   --------------------------------------------------------------- */
.rate-card { background: var(--white); }
.rate-intro { margin: 0 0 14px; font-size: .88rem; color: var(--ink-soft); }

.rate-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.rate-table th {
  text-align: left; font-weight: 600; font-size: .74rem; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-soft);
  padding: 0 0 7px; border-bottom: 1px solid var(--line);
}
.rate-table td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.rate-table tr:last-child td { border-bottom: none; }
.rate-table th + th, .rate-table td + td { padding-left: 10px; }
.rate-figure { font-weight: 700; color: var(--navy-900); white-space: nowrap; }
.rate-negotiable { font-weight: 600; color: var(--blue-600); }

.rate-notes {
  list-style: none; padding: 0; margin: 15px 0 0;
  font-size: .82rem; color: var(--ink-soft); line-height: 1.55;
}
.rate-notes li { padding-left: 15px; position: relative; margin-bottom: 7px; }
.rate-notes li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--blue-500);
}

@media (max-width: 760px) {
  .addr-grid { grid-template-columns: 1fr; }
}
