/* ==========================================================================
   360 Residential Commercial Service — shared styles
   Palette: royal blue + orange on white, drawn from the company mark
   Type: Oswald (headlines, condensed/industrial) + Inter (body/UI)
   ========================================================================== */

:root{
  --blue:        #17408B;
  --blue-dark:   #0E2C63;
  --blue-tint:   #EAF0FB;
  --orange:      #F27A1D;
  --orange-dark: #D2670F;
  --orange-tint: #FEF0E3;
  --ink:         #1B2030;
  --ink-soft:    #545B6E;
  --line:        #E4E7EF;
  --white:       #FFFFFF;
  --grey-bg:     #F6F7FA;

  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --radius: 10px;
  --shadow: 0 12px 28px rgba(14, 44, 99, 0.10);
  --container: 1160px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a{ color: inherit; text-decoration: none; }

h1, h2, h3, h4{
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.12;
  margin: 0 0 0.45em;
  color: var(--blue-dark);
}

h1{ font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 700; }
h2{ font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3{ font-size: 1.25rem; }

p{ margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }

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

section{ padding: 74px 0; }

@media (max-width: 720px){
  section{ padding: 52px 0; }
  .container{ padding: 0 20px; }
}

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn:active{ transform: translateY(0); }

.btn-primary{
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(242, 122, 29, 0.32);
}
.btn-primary:hover{ background: var(--orange-dark); }

.btn-outline{
  background: transparent;
  border-color: var(--blue);
  color: var(--blue);
}
.btn-outline:hover{ background: var(--blue); color: var(--white); }

.btn-ghost-white{
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-ghost-white:hover{ background: rgba(255,255,255,0.14); }

.btn-icon{ width: 18px; height: 18px; flex: none; }

/* ---------- top bar ---------- */
.topbar{
  background: var(--blue-dark);
  color: #cfdaf4;
  font-size: 0.86rem;
}
.topbar .container{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a{ color: #fff; }
.topbar-links{ display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-links span{ opacity: 0.75; margin-right: 6px; }

/* ---------- header / nav ---------- */
header.site{
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--blue-dark);
}
.brand .mark{ width: auto; height: 40px; flex: none; }
.brand .name-sub{
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 30px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink);
}
.nav-links a{ position: relative; padding: 4px 0; }
.nav-links a.current{ color: var(--orange); }
.nav-links a:not(.current):hover{ color: var(--blue); }

.nav-cta{ display: flex; align-items: center; gap: 14px; }
.nav-phone{
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--blue-dark);
  font-size: 1.02rem;
}
.nav-toggle{ display: none; }

@media (max-width: 900px){
  .nav-links{ display: none; }
  .nav-toggle{
    display: inline-flex;
    border: 2px solid var(--line);
    background: none;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
  }
  .nav-phone span.label{ display: none; }
}

/* ---------- hero (home) ---------- */
.hero{
  padding: 56px 0 20px;
  background:
    radial-gradient(760px 420px at 82% -10%, var(--blue-tint) 0%, rgba(255,255,255,0) 60%),
    var(--white);
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero p{ margin-left: auto; margin-right: auto; }
}

.eyebrow-tag{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-dark);
  background: var(--orange-tint);
  border-radius: 999px;
  padding: 7px 16px 7px 12px;
  font-weight: 600;
  font-size: 0.86rem;
  margin-bottom: 18px;
}
.eyebrow-tag .dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 900px){ .hero-actions{ justify-content: center; } }

.hero-trust{
  display: flex;
  gap: 26px;
  margin-top: 36px;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
@media (max-width: 900px){ .hero-trust{ justify-content: center; } }
.hero-trust li{ display: flex; align-items: center; gap: 8px; list-style: none; }
.hero-trust svg{ width: 18px; height: 18px; color: var(--blue); flex: none; }
.hero-trust ul{ display: contents; }

/* ---------- the logo / clickable graphic ---------- */
.logo-stage{ position: relative; }
.logo-caption{
  display: flex;
  justify-content: space-between;
  max-width: 430px;
  margin: 14px auto 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.logo-caption .to-res{ color: var(--orange-dark); }
.logo-caption .to-com{ color: var(--blue); }
.logo-caption span{ display: flex; align-items: center; gap: 6px; }
.logo-caption svg{ width: 15px; height: 15px; }

.zone{ cursor: pointer; }
.zone-house circle.fill{ transition: fill 0.18s ease, transform 0.18s ease; transform-origin: 150px 205px; }
.zone-bldg circle.fill{ transition: fill 0.18s ease, transform 0.18s ease; transform-origin: 258px 205px; }
.zone:hover .fill{ filter: brightness(1.08); }
.zone:hover circle.fill{ transform: scale(1.035); }
.zone:focus-visible{ outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 50%; }

/* ---------- real-logo hero graphic with clickable hotspots ---------- */
.logo-hotspot-wrap{
  position: relative;
  max-width: 440px;
  margin: 0 auto;
}
.logo-hotspot-wrap img{ width: 100%; display: block; }
.hotspot{
  position: absolute;
  border-radius: 16px;
  border: 2px solid transparent;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease;
  padding-bottom: 6%;
}
.hotspot .chip{
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.hotspot:hover .chip,
.hotspot:focus-visible .chip{ opacity: 1; transform: translateY(0); }
.hotspot-house{ left: 20%; top: 72%; width: 19%; height: 14%; border-color: rgba(242,122,29,0.4); }
.hotspot-house .chip{ background: var(--orange); }
.hotspot-house:hover, .hotspot-house:focus-visible{ border-color: var(--orange); background: rgba(242,122,29,0.08); }
.hotspot-bldg{ left: 44%; top: 72%; width: 19%; height: 15%; border-color: rgba(23,64,139,0.4); }
.hotspot-bldg .chip{ background: var(--blue); }
.hotspot-bldg:hover, .hotspot-bldg:focus-visible{ border-color: var(--blue); background: rgba(23,64,139,0.08); }
.hotspot:focus-visible{ outline: none; }

/* ---------- generic section headers ---------- */
.section-head{ max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head p{ margin-left: auto; margin-right: auto; }
.section-head.left{ text-align: left; margin-left: 0; }

.tag-eyebrow{
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--orange-dark);
  margin-bottom: 6px;
  display: block;
}

/* ---------- split promo cards (home) ---------- */
.promo-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 780px){ .promo-grid{ grid-template-columns: 1fr; } }

.promo-card{
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.promo-card:hover{ transform: translateY(-4px); }
.promo-card.res{ background: var(--orange-tint); border: 1px solid #fbdcb9; }
.promo-card.com{ background: var(--blue-tint); border: 1px solid #cdddf7; }
.promo-icon{
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.promo-card.res .promo-icon{ background: var(--orange); }
.promo-card.com .promo-icon{ background: var(--blue); }
.promo-icon svg{ width: 30px; height: 30px; }
.promo-card .btn{ align-self: flex-start; margin-top: 6px; }

/* ---------- band cta ---------- */
.cta-band{
  background: linear-gradient(120deg, var(--blue-dark), var(--blue));
  color: #fff;
}
.cta-band h2{ color: #fff; }
.cta-band p{ color: #cfdaf4; }
.cta-band .container{
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band .actions{ display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- contact / footer info ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 820px){ .contact-grid{ grid-template-columns: 1fr; } }
.contact-card{
  background: var(--grey-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.contact-card .ic{
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  color: var(--blue);
}
.contact-card .ic svg{ width: 20px; height: 20px; }
.contact-card a{ color: var(--blue); font-weight: 600; }
.contact-card a:hover{ color: var(--orange-dark); }
.contact-card h3{ margin-bottom: 6px; }
.contact-card p{ margin-bottom: 4px; }

footer.site{
  background: var(--blue-dark);
  color: #b9c8ea;
  padding: 46px 0 26px;
  font-size: 0.92rem;
}
footer.site a:hover{ color: #fff; }
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
@media (max-width: 720px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-brand{ display: flex; align-items: center; gap: 12px; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin-bottom: 10px;}
.footer-brand .mark{ width: auto; height: 34px; filter: brightness(0) invert(1); }
.footer-col h4{ color: #fff; font-family: var(--font-head); font-size: 0.98rem; margin-bottom: 12px; }
.footer-col li{ list-style: none; margin-bottom: 8px; }
.footer-bottom{ display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 20px; }

/* ---------- page hero (inner pages) ---------- */
.page-hero{
  background: var(--blue-dark);
  color: #fff;
  padding: 66px 0 58px;
  position: relative;
  overflow: hidden;
}
.page-hero .container{ position: relative; z-index: 2; }
.page-hero h1{ color: #fff; }
.page-hero p{ color: #cfdaf4; max-width: 58ch; }
.page-hero .breadcrumb{
  font-family: var(--font-head);
  font-size: 0.86rem;
  color: #9fb4e0;
  margin-bottom: 14px;
  display: flex; gap: 8px; align-items: center;
}
.page-hero .breadcrumb a:hover{ color: #fff; }
.page-hero-accent{
  position: absolute; right: -60px; top: -60px; width: 320px; height: 320px;
  border-radius: 50%; opacity: 0.14;
}
.page-hero.res .page-hero-accent{ background: var(--orange); }
.page-hero.com .page-hero-accent{ background: var(--white); }

/* ---------- before / after ---------- */
.ba-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 980px){ .ba-grid{ grid-template-columns: 1fr; } }

.ba-card{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}
.ba-compare{ display: grid; grid-template-columns: 1fr 1fr; }
.ba-shot{ position: relative; aspect-ratio: 4/3; }
.ba-shot .tag{
  position: absolute; top: 10px; left: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 999px; color: #fff;
}
.ba-shot.before .tag{ background: rgba(27,32,48,0.72); }
.ba-shot.after .tag{ background: var(--orange); }
.ba-card .ba-body{ padding: 18px 20px 22px; }
.ba-card h3{ margin-bottom: 6px; }
.ba-card p{ margin-bottom: 0; font-size: 0.94rem; }

/* ---------- service list (residential) ---------- */
.service-list{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 30px;
}
@media (max-width: 700px){ .service-list{ grid-template-columns: 1fr; } }
.service-list li{
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
}
.service-list li svg{ width: 20px; height: 20px; color: var(--orange); flex: none; margin-top: 2px; }

/* ---------- bubble icon services (commercial) ---------- */
.bubble-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 24px;
}
@media (max-width: 980px){ .bubble-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px){ .bubble-grid{ grid-template-columns: 1fr; } }

.bubble{
  text-align: center;
  padding: 10px 6px;
}
.bubble .circle{
  width: 92px; height: 92px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-tint);
  border: 2px solid #d7e3f8;
  color: var(--blue);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.bubble:nth-child(4n+2) .circle,
.bubble:nth-child(4n+4) .circle{
  background: var(--orange-tint); border-color: #fbdcb9; color: var(--orange-dark);
}
.bubble:hover .circle{ transform: translateY(-5px); }
.bubble .circle svg{ width: 40px; height: 40px; }
.bubble h3{ font-size: 1.02rem; margin-bottom: 4px; }
.bubble p{ font-size: 0.9rem; margin: 0 auto; max-width: 26ch; }

/* ---------- plan / process strip ---------- */
.strip{
  background: var(--grey-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.strip .container{
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.strip .item{ display: flex; align-items: center; gap: 12px; max-width: 250px; }
.strip .item svg{ width: 26px; height: 26px; color: var(--blue); flex: none; }
.strip .item strong{ display: block; color: var(--ink); font-size: 0.95rem; }
.strip .item span{ font-size: 0.84rem; color: var(--ink-soft); }

/* ---------- misc ---------- */
.visually-hidden{
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}

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