/*
Theme Name: IIAQS - Island Indoor Air Quality Specialists
Theme URI: https://iiaqs.com
Author: Pulver Digital Consulting, LLC
Description: Single-page theme for Island Indoor Air Quality Specialists, with a built-in estimate request form and Privacy Policy page.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: iiaqs
*/

  /* ── RESET & VARIABLES ──────────────────────────────────────────── */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --navy:     #0a1f3c;
    --teal:     #1a7a8a;
    --teal-lt:  #22a0b4;
    --sand:     #f5f0e8;
    --warm:     #e8dfd0;
    --gold:     #c8964a;
    --white:    #ffffff;
    --text:     #2c2c2c;
    --text-lt:  #5a6a7a;
    --ff-head:  'Playfair Display', Georgia, serif;
    --ff-body:  'Nunito Sans', system-ui, sans-serif;
    --radius:   6px;
    --shadow:   0 4px 24px rgba(10,31,60,.12);
    --trans:    .3s ease;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: var(--ff-body);
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
  }

  /* ── UTILITY ────────────────────────────────────────────────────── */
  .container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
  .section    { padding: 96px 0; }
  .section--alt { background: var(--sand); }
  .section--dark { background: var(--navy); color: var(--white); }
  .section--teal { background: var(--teal); color: var(--white); }

  .eyebrow {
    font-family: var(--ff-body);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--teal-lt);
    margin-bottom: 14px;
  }
  .section--dark .eyebrow,
  .section--teal .eyebrow { color: var(--gold); }

  h1,h2,h3,h4 { font-family: var(--ff-head); line-height: 1.2; }

  h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 900; }
  h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 700; }
  h3 { font-size: 1.3rem; font-weight: 600; }

  p { line-height: 1.75; }

  .btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-family: var(--ff-body);
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .04em;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--trans);
    border: 2px solid transparent;
  }
  .btn--primary {
    background: var(--teal);
    color: var(--white);
  }
  .btn--primary:hover { background: var(--teal-lt); }
  .btn--outline {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
  }
  .btn--outline:hover { background: var(--white); color: var(--navy); }
  .btn--gold {
    background: var(--gold);
    color: var(--white);
  }
  .btn--gold:hover { filter: brightness(1.1); }

  /* ── NAVBAR ─────────────────────────────────────────────────────── */
  #navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    transition: background var(--trans), box-shadow var(--trans);
    padding: 18px 0;
    background: transparent;
  }
  #navbar.scrolled {
    background: var(--navy);
    box-shadow: 0 2px 20px rgba(0,0,0,.3);
    padding: 12px 0;
  }
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    line-height: 1;
  }
  .nav-logo .acronym {
    font-family: var(--ff-head);
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .nav-logo .tagline-small {
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--teal-lt);
  }
  .nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
  }
  .nav-links a {
    color: rgba(255,255,255,.85);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .04em;
    transition: color var(--trans);
  }
  .nav-links a:hover { color: var(--gold); }

  /* ── HERO ───────────────────────────────────────────────────────── */
  #hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--navy);
  }

  /* ocean/island SVG background */
  .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
  }
  .hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 80% 60% at 70% 30%, rgba(26,122,138,.35) 0%, transparent 70%),
      radial-gradient(ellipse 60% 80% at 20% 80%, rgba(10,31,60,.8) 0%, transparent 70%),
      linear-gradient(160deg, #0a1f3c 0%, #0e3050 40%, #0f4a5a 70%, #1a7a8a 100%);
  }

  /* animated wave rings */
  .wave-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(26,122,138,.25);
    animation: pulse-ring 6s ease-in-out infinite;
  }
  .wave-ring:nth-child(1) { width: 400px; height: 400px; right: 10%; top: 20%; animation-delay: 0s; }
  .wave-ring:nth-child(2) { width: 600px; height: 600px; right: 6%; top: 10%; animation-delay: 1s; }
  .wave-ring:nth-child(3) { width: 820px; height: 820px; right: 2%; top: 0%; animation-delay: 2s; }

  @keyframes pulse-ring {
    0%,100% { opacity: .2; transform: scale(1); }
    50%      { opacity: .5; transform: scale(1.04); }
  }

  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    animation: fadeUp .9s ease both;
  }
  @keyframes fadeUp {
    from { opacity:0; transform:translateY(32px); }
    to   { opacity:1; transform:translateY(0); }
  }
  .hero-content .eyebrow { margin-bottom: 20px; font-size: .8rem; }
  .hero-content h1 {
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.1;
  }
  .hero-content h1 span { color: var(--teal-lt); }
  .hero-content p {
    color: rgba(255,255,255,.8);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 560px;
  }
  .hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

  /* license badge strip */
  .hero-badges {
    position: relative;
    z-index: 2;
    margin-top: 80px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }
  .badge {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius);
    padding: 10px 18px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.85);
    backdrop-filter: blur(8px);
  }
  .badge span { color: var(--gold); margin-right: 6px; }

  /* ── WHY IIAQS ──────────────────────────────────────────────────── */
  .why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
  }
  .why-text h2 { color: var(--navy); margin-bottom: 20px; }
  .why-text p  { color: var(--text-lt); margin-bottom: 18px; }

  .why-bullets { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
  .why-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: .95rem;
    font-weight: 600;
    color: var(--navy);
  }
  .why-bullets li .icon {
    width: 28px; height: 28px;
    background: var(--teal);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--white);
    font-size: .85rem;
  }

  .why-visual {
    position: relative;
  }
  .why-visual .card-big {
    background: var(--navy);
    color: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow);
  }
  .why-visual .card-big h3 { font-size: 1.1rem; color: var(--teal-lt); margin-bottom: 28px; font-family: var(--ff-body); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .stat-row { display: flex; gap: 32px; }
  .stat { text-align: center; }
  .stat .num { font-family: var(--ff-head); font-size: 2.6rem; font-weight: 900; color: var(--gold); }
  .stat .lbl { font-size: .8rem; color: rgba(255,255,255,.65); margin-top: 4px; line-height: 1.4; }

  .why-visual .card-small {
    background: var(--teal);
    border-radius: 12px;
    padding: 24px 28px;
    margin-top: 16px;
    color: var(--white);
    font-size: .9rem;
    font-weight: 600;
  }
  .why-visual .card-small em { font-style: normal; color: var(--gold); }

  /* ── SERVICES ───────────────────────────────────────────────────── */
  .services-header { text-align: center; margin-bottom: 60px; }
  .services-header h2 { color: var(--navy); margin-bottom: 14px; }
  .services-header p { color: var(--text-lt); max-width: 580px; margin: 0 auto; }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .service-card {
    background: var(--white);
    border: 1px solid rgba(10,31,60,.1);
    border-radius: 10px;
    padding: 32px 28px;
    transition: box-shadow var(--trans), transform var(--trans), border-color var(--trans);
    position: relative;
    overflow: hidden;
  }
  .service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--trans);
  }
  .service-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: var(--teal); }
  .service-card:hover::before { transform: scaleX(1); }

  .svc-icon {
    width: 52px; height: 52px;
    background: var(--sand);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
  }
  .service-card h3 { color: var(--navy); margin-bottom: 12px; }
  .service-card p  { color: var(--text-lt); font-size: .9rem; }

  /* ── PROCESS ────────────────────────────────────────────────────── */
  .process-header { text-align: center; margin-bottom: 64px; }
  .process-header h2 { margin-bottom: 14px; }

  .steps-row {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 32px;
    position: relative;
  }
  .steps-row::before {
    content: '';
    position: absolute;
    top: 36px; left: 10%; right: 10%;
    height: 2px;
    background: rgba(255,255,255,.18);
    z-index: 0;
  }
  .step {
    text-align: center;
    position: relative;
    z-index: 1;
  }
  .step-num {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--teal);
    color: var(--white);
    font-family: var(--ff-head);
    font-size: 1.6rem;
    font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    border: 4px solid rgba(255,255,255,.15);
  }
  .step h3 { color: var(--white); margin-bottom: 10px; font-size: 1.05rem; }
  .step p  { color: rgba(255,255,255,.7); font-size: .88rem; }

  /* ── FLORIDA LAW CTA ─────────────────────────────────────────────── */
  .law-box {
    background: var(--white);
    border-left: 6px solid var(--gold);
    border-radius: var(--radius);
    padding: 36px 40px;
    max-width: 860px;
    margin: 0 auto;
    box-shadow: var(--shadow);
  }
  .law-box h3 { color: var(--navy); margin-bottom: 12px; font-size: 1.4rem; }
  .law-box p  { color: var(--text-lt); margin-bottom: 16px; }
  .law-box strong { color: var(--navy); }

  /* ── TEAM ───────────────────────────────────────────────────────── */
  .team-header { text-align: center; margin-bottom: 60px; }
  .team-header h2 { color: var(--navy); margin-bottom: 14px; }

  .team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
  .team-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(10,31,60,.08);
  }
  .team-card-header {
    background: var(--navy);
    padding: 36px 36px 28px;
    position: relative;
  }
  .team-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--teal);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--ff-head);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 18px;
    border: 3px solid var(--gold);
  }
  .team-card-header h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 4px; }
  .team-card-header .role {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--teal-lt);
  }
  .team-card-body { padding: 28px 36px; }
  .team-card-body p { color: var(--text-lt); font-size: .92rem; margin-bottom: 20px; }

  .cert-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
  .cert-list li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: .85rem; color: var(--text);
  }
  .cert-list .dot {
    width: 8px; height: 8px;
    background: var(--teal);
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
  }
  .lic-num { font-size: .78rem; color: var(--text-lt); margin-top: 2px; }

  /* ── TESTIMONIAL / TRUST ─────────────────────────────────────────── */
  .trust-row {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 24px;
    text-align: center;
  }
  .trust-item { }
  .trust-item .t-num {
    font-family: var(--ff-head);
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--gold);
  }
  .trust-item .t-label { font-size: .85rem; color: rgba(255,255,255,.7); margin-top: 4px; }

  /* ── CONTACT ────────────────────────────────────────────────────── */
  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .contact-left h2 { margin-bottom: 20px; }
  .contact-left p  { color: rgba(255,255,255,.75); margin-bottom: 36px; }

  .contact-info { display: flex; flex-direction: column; gap: 20px; }
  .contact-row {
    display: flex; align-items: flex-start; gap: 16px;
  }
  .c-icon {
    width: 42px; height: 42px;
    background: rgba(255,255,255,.1);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
  }
  .c-label { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-lt); margin-bottom: 4px; }
  .c-val { font-size: .95rem; color: var(--white); }

  .contact-form-box {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    padding: 40px;
    backdrop-filter: blur(10px);
  }
  .contact-form-box h3 { color: var(--white); margin-bottom: 24px; font-size: 1.2rem; }
  .form-group { margin-bottom: 18px; }
  .form-group label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: rgba(255,255,255,.6); margin-bottom: 7px; text-transform: uppercase; }
  .form-group input,
  .form-group textarea,
  .form-group select {
    width: 100%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--radius);
    padding: 12px 16px;
    color: var(--white);
    font-family: var(--ff-body);
    font-size: .92rem;
    outline: none;
    transition: border-color var(--trans);
  }
  .form-group input:focus,
  .form-group textarea:focus,
  .form-group select:focus { border-color: var(--teal-lt); }
  .form-group textarea { min-height: 100px; resize: vertical; }
  .form-group select option { background: var(--navy); color: var(--white); }

  /* ── FOOTER ─────────────────────────────────────────────────────── */
  footer {
    background: #05121f;
    color: rgba(255,255,255,.5);
    padding: 36px 0;
    font-size: .82rem;
  }
  .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  .footer-inner a { color: var(--teal-lt); text-decoration: none; }
  .footer-inner a:hover { color: var(--gold); }
  .footer-nav { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; }

  /* ── RESPONSIVE ─────────────────────────────────────────────────── */
  @media (max-width: 900px) {
    .why-grid,
    .team-grid,
    .contact-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .steps-row { grid-template-columns: 1fr 1fr; }
    .steps-row::before { display: none; }
    .trust-row { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 600px) {
    .services-grid,
    .trust-row { grid-template-columns: 1fr; }
    .steps-row { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .stat-row { flex-direction: column; gap: 16px; }
  }

  /* ── DIVIDER WAVE ───────────────────────────────────────────────── */
  .wave-divider { line-height: 0; }
  .wave-divider svg { display: block; }

  /* ── WORDPRESS ADDITIONS ────────────────────────────────────────── */
  .admin-bar #navbar { top: 32px; }
  @media (max-width: 782px) { .admin-bar #navbar { top: 46px; } }

  a:focus-visible, button:focus-visible, input:focus-visible,
  select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }


  /* form status messages */
  .form-alert {
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 22px;
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.5;
  }
  .form-alert--success { background: rgba(34,160,180,.18); border: 1px solid var(--teal-lt); color: var(--white); }
  .form-alert--error   { background: rgba(200,80,74,.18);  border: 1px solid #d9776f;      color: var(--white); }
  .form-privacy-note a { color: var(--teal-lt); }
  .iiaqs-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

  /* privacy policy / standard pages */
  .page-hero {
    background: var(--navy);
    padding: 150px 0 64px;
    color: var(--white);
  }
  .page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
  .page-hero .eyebrow { margin-bottom: 12px; color: var(--gold); }
  .legal-content { max-width: 800px; margin: 0 auto; }
  .legal-content h2 { color: var(--navy); font-size: 1.5rem; margin: 40px 0 14px; }
  .legal-content h3 { color: var(--navy); font-size: 1.15rem; margin: 28px 0 10px; }
  .legal-content p  { color: var(--text); margin-bottom: 16px; }
  .legal-content ul { margin: 0 0 20px 22px; }
  .legal-content li { line-height: 1.75; margin-bottom: 10px; }
  .legal-content a  { color: var(--teal); }
  .legal-content .effective { color: var(--text-lt); font-size: .95rem; }


  /* ── HEADER: one compact line, content starts below it ─────────── */
  :root { --nav-h: 88px; }
  html { scroll-padding-top: calc(var(--nav-h) + 12px); }
  #navbar { padding: 12px 0; }
  #navbar.scrolled { padding: 8px 0; }
  .nav-inner { flex-wrap: nowrap; gap: 24px; }
  .nav-logo { gap: 12px; flex-shrink: 0; }
  .nav-logo img { height: 64px; width: auto; display: block; transition: height var(--trans); }
  #navbar.scrolled .nav-logo img { height: 52px; }
  .nav-logo .acronym { font-size: 2rem; }
  .nav-links { gap: 28px; white-space: nowrap; }
  #navbar .btn { white-space: nowrap; flex-shrink: 0; }

  /* hero content starts below the fixed header */
  #hero { padding: calc(var(--nav-h) + 48px) 0 64px; }

  @media (max-width: 1100px) {
    .nav-links { gap: 20px; }
    .nav-links a { font-size: .82rem; }
  }
  @media (max-width: 960px) {
    .nav-links { display: none; }
  }
  @media (max-width: 600px) {
    :root { --nav-h: 72px; }
    .nav-logo img { height: 48px; }
    #navbar.scrolled .nav-logo img { height: 44px; }
    .nav-logo .acronym { font-size: 1.5rem; }
    #navbar .btn { padding: 8px 14px !important; font-size: .74rem !important; }
    .page-hero { padding-top: 120px; }
  }
  @media (max-width: 400px) {
    .nav-logo .acronym { display: none; }
  }

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