/* =========================================================
   FLORENT BUILDING SURVEYORS — SITE STYLES
   -----------------------------------------------------------
   HOW TO EDIT COLOURS: change the values in :root below.
   Every colour on the site is pulled from these variables,
   so changing one line here updates the whole site.
   ========================================================= */

:root {
  /* ---- Palette (from the practice's own brand: steel blue + gold + orange) ---- */
  --blue: #4d7aa8;         /* header/footer band */
  --blue-deep: #395d84;    /* hover / darker blue */
  --navy: #223245;         /* deep navy — headings on light bg, footer text */
  --gold: #f0a83d;         /* nav links & labels on the blue band */
  --orange: #e2732a;       /* primary CTA / accent */
  --orange-deep: #c25f1f;  /* orange hover */
  --ink: #201d1a;          /* body text */
  --ink-soft: #55524d;     /* secondary text */
  --paper: #ffffff;        /* main background */
  --paper-deep: #f3f5f7;   /* section tint / card background */
  --line: #dfe3e8;         /* borders / dividers */
  --line-soft: #ebeef1;

  /* ---- Type ---- */
  --font-display: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* ---- Layout ---- */
  --max-width: 1180px;
  --radius: 4px;
}

/* ---------------------------------------------------------
   RESET & BASE
--------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue-deep);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5em 0;
  font-weight: 600;
  line-height: 1.15;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-block;
  margin-bottom: 0.9em;
}

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

section { padding: 88px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } }

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------
   BUTTONS
--------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--orange);
  color: var(--paper);
}
.btn-primary:hover { background: var(--orange-deep); text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); text-decoration: none; }

/* ---------------------------------------------------------
   HEADER / NAV
--------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blue);
  border-bottom: 3px solid var(--blue-deep);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold);
  border-bottom: 2px dotted rgba(240,168,61,0.5);
  padding-bottom: 2px;
}
.logo:hover { text-decoration: none; opacity: 0.9; }
.logo-mark { flex-shrink: 0; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--gold);
  font-weight: 500;
  font-size: 0.96rem;
}
.main-nav a:hover { color: #fff; text-decoration: none; }
.main-nav a.active { color: #fff; border-bottom: 2px solid var(--gold); padding-bottom: 3px; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: #fff;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-phone a { color: #fff; font-weight: 600; }
.header-phone svg { width: 16px; height: 16px; }

.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gold);
  padding: 6px;
  display: flex;
}
.search-toggle:hover { color: #fff; }
.search-toggle svg { width: 22px; height: 22px; }

.header-search {
  display: none;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px 14px;
}
.header-search.open { display: block; }
.header-search input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 940px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blue-deep);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    width: 100%;
    padding: 16px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .main-nav a.active { border-bottom: 1px solid rgba(255,255,255,0.12); }
  .header-phone { display: none; }
  .nav-toggle { display: block; }
}

/* ---------------------------------------------------------
   DIMENSION-LINE DIVIDER  (signature element)
   A measured line with tick ends, used between sections
   instead of a plain rule — echoes a surveyor's dimension line.
--------------------------------------------------------- */
.dim-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 0 28px;
  color: var(--ink-soft);
}
.dim-divider .dim-line {
  flex: 1;
  height: 9px;
}
.dim-divider .dim-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ---------------------------------------------------------
   HERO SLIDESHOW
   Rotating full-width photos, each with its own headline and
   link — replace the .hero-slide backgrounds with real photos,
   see README.md.
--------------------------------------------------------- */
.hero-slideshow {
  position: relative;
  height: 520px;
  overflow: hidden;
}
@media (max-width: 700px) { .hero-slideshow { height: 460px; } }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; }

.hero-slide-overlay {
  background: linear-gradient(0deg, rgba(34,50,69,0.82) 0%, rgba(34,50,69,0.15) 60%, rgba(34,50,69,0.05) 100%);
  width: 100%;
  padding: 56px 0 44px;
}
.hero-slide-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  color: #fff;
}
.hero-slide-content .eyebrow { color: var(--gold); }
.hero-slide-content h1, .hero-slide-content h2 { color: #fff; max-width: 20ch; }
.hero-slide-content p { color: rgba(255,255,255,0.88); max-width: 48ch; font-size: 1.08rem; }

.hero-dots {
  position: absolute;
  bottom: 20px;
  right: 28px;
  display: flex;
  gap: 8px;
  z-index: 5;
}
.hero-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.hero-dots button.active { background: var(--gold); border-color: var(--gold); }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

/* ---------------------------------------------------------
   CREDENTIALS STRIP
--------------------------------------------------------- */
.credentials {
  background: var(--navy);
}
.credentials-inner {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 26px;
  padding: 40px 0;
}
@media (max-width: 980px) { .credentials-inner { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .credentials-inner { grid-template-columns: repeat(2, 1fr); } }
.credential-item { color: rgba(255,255,255,0.9); text-align: left; }
.credential-item .icon { color: var(--gold); margin-bottom: 10px; }
.credential-item .icon svg { width: 28px; height: 28px; }
.credential-item h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 4px 0;
}
.credential-item p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
  line-height: 1.45;
}

/* ---------------------------------------------------------
   SERVICE CARDS
--------------------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.card .icon { color: var(--orange); margin-bottom: 16px; }
.card .icon svg { width: 34px; height: 34px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); margin-bottom: 0; font-size: 0.98rem; }
.card a.card-link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--blue-deep);
  font-weight: 600;
}

/* ---------------------------------------------------------
   PROCESS STEPS  (genuine sequence — numbering is earned here)
--------------------------------------------------------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  counter-reset: step;
}
@media (max-width: 900px) { .process-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-list { grid-template-columns: 1fr; } }

.process-step { position: relative; padding-top: 8px; }
.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--orange);
  border-top: 2px solid var(--orange);
  padding-top: 10px;
  margin-bottom: 14px;
  width: 40px;
}
.process-step h3 { font-size: 1.08rem; }
.process-step p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------------------------------------------------------
   QUOTE / TESTIMONIAL
--------------------------------------------------------- */
.quote-block {
  background: var(--navy);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 52px;
}
.quote-block blockquote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.4;
  margin: 0 0 20px 0;
}
.quote-block cite {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  opacity: 0.85;
}
@media (max-width: 700px) { .quote-block { padding: 34px 26px; } }

/* ---------------------------------------------------------
   CTA BANNER
--------------------------------------------------------- */
.cta-banner {
  background: var(--orange);
  color: var(--paper);
  text-align: center;
  padding: 64px 0;
}
.cta-banner h2 { color: var(--paper); }
.cta-banner p { color: rgba(241,236,224,0.85); max-width: 52ch; margin-left: auto; margin-right: auto; }
.cta-banner .btn-outline { border-color: var(--paper); color: var(--paper); }
.cta-banner .btn-outline:hover { background: var(--paper); color: var(--orange); }

/* ---------------------------------------------------------
   PHOTO PLACEHOLDER
   Swap these for real <img> tags — see README.md
--------------------------------------------------------- */
.photo-placeholder {
  background: repeating-linear-gradient(
    135deg, var(--line-soft), var(--line-soft) 10px, var(--paper-deep) 10px, var(--paper-deep) 20px
  );
  border: 1px dashed var(--ink-soft);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 20px;
  min-height: 220px;
}

/* ---------------------------------------------------------
   PAGE HEADER (for inner pages)
--------------------------------------------------------- */
.page-header {
  padding: 60px 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.page-header p.lead { color: var(--ink-soft); font-size: 1.1rem; max-width: 60ch; }

/* ---------------------------------------------------------
   SERVICES ACCORDION
   Built with native <details>/<summary> — works with no
   JavaScript, and is fully keyboard and screen-reader friendly.
   The magnifying-glass icon rotates open/closed via CSS.
--------------------------------------------------------- */
.accordion { border-top: 1px solid var(--line); }
.accordion-item {
  border-bottom: 1px solid var(--line);
}
.accordion-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary .letter-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.accordion-item summary .mag-icon {
  margin-left: auto;
  color: var(--orange);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.accordion-item summary .mag-icon svg { width: 20px; height: 20px; }
.accordion-item[open] summary .mag-icon { transform: rotate(90deg); }
.accordion-item .accordion-body {
  padding: 0 4px 26px 46px;
  color: var(--ink-soft);
  max-width: 74ch;
}
.accordion-item .accordion-body p:last-child { margin-bottom: 0; }
.draft-note {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--orange-deep);
  background: #fdf1e6;
  border: 1px solid #f5d9b9;
  border-radius: var(--radius);
  padding: 6px 10px;
}

/* ---------------------------------------------------------
   FORMS & RESOURCES LIST
--------------------------------------------------------- */
.forms-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.forms-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.forms-list .form-name { font-weight: 600; color: var(--navy); }
.forms-list .form-desc { font-size: 0.9rem; color: var(--ink-soft); margin-top: 2px; }
.forms-list .download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange);
  border: 1.5px solid var(--orange);
  border-radius: var(--radius);
  padding: 8px 16px;
  white-space: nowrap;
}
.forms-list .download-btn:hover { background: var(--orange); color: #fff; text-decoration: none; }
.forms-list .download-btn svg { width: 15px; height: 15px; }

/* ---------------------------------------------------------
   TESTIMONIALS
--------------------------------------------------------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial-card {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.testimonial-card .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 14px; }
.testimonial-card blockquote {
  margin: 0 0 16px 0;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.55;
}
.testimonial-card cite {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------
   COMPARISON TABLE
--------------------------------------------------------- */
table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
table.compare th, table.compare td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.compare th {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
}
table.compare tr:last-child td { border-bottom: none; }
.compare-wrap { overflow-x: auto; }

/* ---------------------------------------------------------
   ABOUT PAGE — team & values
--------------------------------------------------------- */
.values-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 760px) { .values-list { grid-template-columns: 1fr; } }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 760px) { .team-grid { grid-template-columns: 1fr; } }
.team-card .photo-placeholder { min-height: 260px; margin-bottom: 14px; }
.team-card h3 { margin-bottom: 2px; }
.team-card .role { font-family: var(--font-mono); font-size: 0.82rem; color: var(--blue-deep); margin-bottom: 10px; display: block; }

/* ---------------------------------------------------------
   CONTACT PAGE
--------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list .label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  min-width: 90px;
}
.contact-list .value { font-weight: 500; }
.contact-list .value a { color: var(--ink); }

.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--orange);
  outline: none;
}
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 14px; }

.map-placeholder { min-height: 340px; }

/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 60px 0 30px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }
.site-footer h4 {
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.site-footer p, .site-footer a { color: rgba(241,236,224,0.75); }
.site-footer a:hover { color: var(--paper); }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.footer-logo { font-family: var(--font-display); font-size: 1.2rem; color: var(--paper); margin-bottom: 10px; }

/* ---------------------------------------------------------
   FOOTER UTILITY BAND
   The recurring blue strip requested on every page: back-to-top,
   repeated nav, and phone number.
--------------------------------------------------------- */
.footer-utility {
  background: var(--blue);
  padding: 18px 0;
}
.footer-utility-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-utility-left {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}
.footer-utility-left a { color: #fff; font-weight: 600; }
.footer-utility-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-utility-nav a { color: var(--gold); font-size: 0.9rem; font-weight: 500; }
.footer-utility-nav a:hover { color: #fff; text-decoration: none; }
.footer-utility-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
}
.footer-utility-phone svg { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .footer-utility-inner { flex-direction: column; text-align: center; }
}
