/*
Theme Name: Indoor Air Quality Services
Theme URI: https://iaqinc.com
Author: NetOne360
Author URI: https://netone360.com
Description: Custom theme for Indoor Air Quality Services — mold, IAQ and Healthy Home assessment & remediation. Built by NetOne360.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: iaq-services
*/

/* ============================================================
   Indoor Air Quality Services — shared stylesheet
   Typeface: Work Sans only, hierarchy via weight + size
   ============================================================ */

:root {
  --bg: #F5F6F4;
  --bg-alt: #ECEEE8;
  --ink: #16211D;
  --ink-soft: #47534D;
  --brand-blue: #1FAAE3;
  --brand-blue-deep: #14759D;
  --brand-green: #7AC127;
  --brand-green-deep: #54861B;
  --panel-dark: #0F5876;
  --panel-darker: #093649;
  --line: rgba(22, 33, 29, 0.14);
  --line-soft: rgba(22, 33, 29, 0.08);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Header ---------- */

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--brand-blue);
}

.brand img,
.brand .site-logo-img,
.brand .custom-logo {
  max-height: 60px;
  width: auto;
  display: block;
}

/* Home page: slightly larger than inner pages */
body.home .brand img,
body.home .brand .site-logo-img,
body.home .brand .custom-logo {
  max-height: 72px;
}

@media (max-width: 760px) {
  .brand img,
  .brand .site-logo-img,
  .brand .custom-logo,
  body.home .brand img,
  body.home .brand .site-logo-img,
  body.home .brand .custom-logo { max-height: 56px; }
}

.brand span {
  display: block;
  font-weight: 400;
  font-size: 0.68rem;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--brand-blue);
  border-color: var(--brand-green);
}

.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links li { border-top: 1px solid var(--line-soft); }
  .nav-links a { display: block; padding: 14px 28px; }
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 1rem;
    cursor: pointer;
    color: var(--brand-blue);
  }
}

/* ---------- Reading-line motif ---------- */

.reading-line { width: 100%; height: auto; display: block; }
.reading-line path {
  fill: none;
  stroke: var(--brand-blue);
  stroke-width: 2;
  stroke-linecap: round;
}
.reading-line circle { fill: var(--brand-green); }
.reading-line .track { stroke: var(--line); stroke-width: 1; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 100px 0 84px;
  --hero-image: url('https://ryans515.sg-host.com/wp-content/uploads/2026/09/MiamiCondo.jpeg');
  background-image:
    linear-gradient(120deg, rgba(8, 40, 54, 0.94) 0%, rgba(31, 170, 227, 0.72) 60%, rgba(122, 193, 39, 0.58) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
}

.hero .eyebrow-plain { color: rgba(255, 255, 255, 0.85); }
.hero h1 { color: #ffffff; }
.hero .lede { color: rgba(255, 255, 255, 0.88); }

.hero .btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}
.hero .btn-ghost:hover { border-color: #ffffff; }

.hero-figure {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-figure .caption { color: rgba(255, 255, 255, 0.78); }
.hero .reading-line .track { stroke: rgba(255, 255, 255, 0.3); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

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

.eyebrow-plain {
  font-size: 0.95rem;
  color: var(--brand-blue-deep);
  font-weight: 500;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.15rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  max-width: 16ch;
}

.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 30px;
}

.hero-figure {
  border: 1px solid var(--line);
  background: var(--bg-alt);
  border-radius: 6px;
  padding: 28px;
}

.hero-figure .caption {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--brand-blue);
  color: #ffffff;
}
.btn-primary:hover { background: var(--brand-blue-deep); }

.btn-ghost {
  background: transparent;
  color: var(--brand-blue-deep);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--brand-blue); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */

section { padding: 64px 0; }
.divider { border: none; border-top: 1px solid var(--line); margin: 0; }

.section-head {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  margin-bottom: 40px;
}

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

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.18;
  margin: 0;
  max-width: 18ch;
}

.section-head p {
  color: var(--ink-soft);
  margin: 0;
  max-width: 52ch;
}

/* ---------- Pillars / list blocks ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

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

.pillar {
  padding: 32px 28px 32px 0;
  border-bottom: 1px solid var(--line);
}

.pillars .pillar + .pillar { padding-left: 28px; }

/* Two-up variant (Contact page: email + Florida office) */
@media (min-width: 761px) {
  .pillars.pillars-two { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 761px) {
  .pillar:not(:last-child) { border-right: 1px solid var(--line); }
}

.pillar h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.pillar p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  margin: 0 0 16px;
}

.pillar a {
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--brand-blue-deep);
  border-bottom: 1px solid var(--brand-green);
}

/* ---------- Process (genuinely sequential — numbers earned) ---------- */

.process {
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.step .num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-green-deep);
}

.step h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
}

.step p { margin: 0; color: var(--ink-soft); }

/* ---------- Service detail lists ---------- */

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 40px;
}

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

.detail-block h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.detail-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-block li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* ---------- Credential strip ---------- */

.credentials {
  background: var(--panel-dark);
  color: #F5F6F4;
}

.credentials .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px 28px;
}

@media (max-width: 760px) {
  .credentials .wrap { grid-template-columns: 1fr; padding: 32px 28px; }
}

.credentials .item .k {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--brand-green);
  display: block;
  margin-bottom: 4px;
}

.credentials .item .v {
  font-size: 0.92rem;
  color: rgba(245, 246, 244, 0.88);
}

/* ---------- Quote / about ---------- */

.quote-block {
  border-left: 3px solid var(--brand-green);
  padding-left: 26px;
  max-width: 62ch;
}

.quote-block p.q {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 16px;
}

.quote-block .who {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}

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

/* One office only (Florida) */
.contact-grid.contact-grid-single { grid-template-columns: 1fr; }

.office h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.office p {
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.office .license {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--brand-blue-deep);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.cta-band .wrap {
  padding: 28px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band h2 {
  max-width: 34ch;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  margin: 0;
}

/* ---------- Footer ---------- */

footer.site {
  background: var(--panel-darker);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr 1.1fr;
  gap: 32px;
  padding-bottom: 40px;
}

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

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

.footer-brand .footer-logo {
  display: inline-flex;
  margin-bottom: 16px;
}

.footer-brand .footer-logo img {
  max-height: 52px;
  width: auto;
  display: block;
}

.footer-brand p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 32ch;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-col a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
}

.footer-col a:hover { color: var(--brand-green); }

.footer-col .footer-license {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
}

.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
}

.foot-links { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.foot-links a { text-decoration: none; color: rgba(255, 255, 255, 0.55); }
.foot-links a:hover { color: var(--brand-green); }

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

/* ---------- FAQ accordion ---------- */

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--brand-green);
  font-weight: 700;
  font-size: 1.2rem;
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- Town note callout (location pages) ---------- */

.town-note {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
  margin-top: 8px;
}

.town-note h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
}

.town-note p {
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- Service area list ---------- */

ul.area-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 700px) {
  ul.area-list { grid-template-columns: 1fr; }
}

ul.area-list li {
  border-bottom: 1px solid var(--line);
  margin: 0;
}

ul.area-list li:nth-child(odd) {
  border-right: 1px solid var(--line);
}

@media (max-width: 700px) {
  ul.area-list li:nth-child(odd) { border-right: none; }
}

ul.area-list a {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 18px 4px;
  text-decoration: none !important;
  color: var(--ink) !important;
  font-weight: 600;
}

ul.area-list li:nth-child(odd) a { padding-right: 24px; }

ul.area-list a span.county {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--ink-soft) !important;
}

/* ---------- Service area map ---------- */

.area-map {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 40px;
}

.area-map iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

/* ---------- Photo gallery (4-up) ---------- */

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 8px 0 0;
}

@media (max-width: 700px) {
  .photo-gallery { grid-template-columns: repeat(2, 1fr); }
}

.photo-gallery-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}

.photo-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-gallery-more {
  margin: 16px 0 0;
  text-align: right;
}

.photo-gallery-more a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--brand-blue-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--brand-gold);
}

.photo-gallery-more a:hover { color: var(--brand-blue); }

/* ---------- Gravity Forms submit button (brand color override) ---------- */
/* Covers both markup styles GF has used across versions, so this
   keeps working whichever version is installed. */

.gform_wrapper .gform_footer input[type="submit"],
.gform_wrapper .gform_footer input[type="button"],
.gform_wrapper .gform_footer button.gform_button,
.gform_wrapper .gform_page_footer input[type="submit"],
.gform_wrapper .gform_page_footer button.gform_button,
.gform_button.button {
  background: var(--brand-blue) !important;
  background-image: none !important;
  border-color: var(--brand-blue) !important;
  color: #ffffff !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

.gform_wrapper .gform_footer input[type="submit"]:hover,
.gform_wrapper .gform_footer input[type="button"]:hover,
.gform_wrapper .gform_footer button.gform_button:hover,
.gform_wrapper .gform_page_footer input[type="submit"]:hover,
.gform_wrapper .gform_page_footer button.gform_button:hover,
.gform_button.button:hover {
  background: var(--brand-blue-deep) !important;
  border-color: var(--brand-blue-deep) !important;
}

/* ---------- Resume page ---------- */

.resume-section {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.resume-section h2 {
  max-width: none;
  margin-bottom: 18px;
}

.resume-list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 40px;
}

@media (max-width: 700px) {
  .resume-list { columns: 1; }
}

.resume-list li {
  padding: 8px 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  break-inside: avoid;
}

.resume-flat {
  margin: 0;
  padding: 0;
  list-style: none;
}

.resume-flat li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.resume-flat li strong { color: var(--ink); }
