/* ============================================================
   CWHR Remodeling Contractors - shared stylesheet
   Static clone of https://www.cwhr.biz (originally Wix)
   Owner section: design tokens + shared header/nav/footer + motion.
   Page subagents append page-scoped rules below under a
   banner comment reading: page: <slug>
   ============================================================ */

:root {
  --purple: #6D2F89;
  --purple-dark: #5a2673;
  --purple-soft: #f3ecf7;
  --teal: #009490;
  --ink: #010203;
  --dark: #111014;
  --dark-2: #1b1a1f;
  --text: #231f20;
  --muted: #5f5b5e;
  --line: #e7e2ec;
  --bg: #ffffff;
  --bg-soft: #f7f4fa;
  --white: #ffffff;

  --serif: "Caudex", Georgia, "Times New Roman", serif;
  --sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1200px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(20, 10, 30, 0.10);
  --shadow-sm: 0 4px 14px rgba(20, 10, 30, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 .5em;
  font-weight: 700;
}

p { margin: 0 0 1rem; }

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

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

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

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--purple);
  margin: 0 0 .6rem;
}

.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.section-head p { color: var(--muted); font-size: 1.02rem; }

.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .95rem;
  padding: 13px 30px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--purple);
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-dark); border-color: var(--purple-dark); color: #fff; box-shadow: var(--shadow-sm); }

.btn-outline { background: transparent; color: var(--purple); }
.btn-outline:hover { background: var(--purple); color: #fff; }

.btn-light { background: #fff; color: var(--purple); border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; border-color: #fff; }

.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--purple); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 52px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav .nav-link,
.sub-menu a {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 400;
  color: var(--ink);
  display: block;
}
.main-nav .nav-link { padding: 10px 16px; }
.main-nav .nav-link:hover,
.main-nav .nav-link.active { color: var(--purple); text-decoration: none; }

/* Remodeling Services dropdown */
.nav-item { position: relative; }
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 232px;
  margin: 0;
  padding: 10px 0 14px;
  list-style: none;
  background: #fff;
  box-shadow: 0 10px 26px rgba(20, 10, 30, .13);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
.nav-item:hover .sub-menu,
.nav-item:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a { padding: 9px 22px; white-space: nowrap; }
.sub-menu a:hover, .sub-menu a.active { color: var(--purple); background: var(--purple-soft); text-decoration: none; }

/* Mobile menu button (hidden on desktop) */
.nav-toggle {
  display: none;
  width: 42px; height: 38px;
  border: 0; background: transparent; cursor: pointer;
  padding: 8px 6px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--purple);
  color: #fff;
  padding: 58px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr .8fr 1.15fr 1.2fr .95fr;
  gap: 30px;
}
.site-footer h3 {
  color: #fff;
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-tagline { font-size: .95rem; line-height: 1.75; max-width: 230px; }

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { font-size: .95rem; }
.footer-links a::before { content: "\279C"; margin-right: 8px; }

.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 13px; font-size: .95rem; }
.footer-contact .fi { flex: 0 0 17px; width: 17px; margin-top: 4px; color: #fff; }
.footer-contact .fi svg { width: 100%; height: auto; display: block; }

.footer-hours { font-size: .95rem; line-height: 1.9; }

.footer-social { display: flex; gap: 9px; margin-top: 22px; }
.footer-social a { display: inline-flex; }
.footer-social img { width: 23px; height: 23px; }

.footer-bottom {
  background: var(--dark);
  margin-top: 46px;
  padding: 15px 0;
  text-align: center;
  font-size: .86rem;
  color: #fff;
}

/* ---------- Generic building blocks ---------- */
.grid { display: grid; gap: 28px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.lead { font-size: 1.08rem; color: var(--muted); }

/* Split (image + text) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }

/* Bleed band image helper (avoid replaced-element collapse) */
.band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Dark CTA band */
.cta-band {
  position: relative;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
}
.cta-band .cta-inner {
  position: relative;
  z-index: 2;
  max-width: 830px;
  margin: 0 auto;
  padding: 44px 40px 48px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: var(--radius);
  text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta-band p { color: rgba(255,255,255,.85); }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* Purple process band: numbered rail + line-art icon, copy alongside */
.process-band { background: var(--purple); color: #fff; overflow: hidden; }
.process-band h2, .process-band h3 { color: #fff; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }

.process-step { display: grid; grid-template-columns: 78px 1fr; gap: 22px; align-items: start; }
.step-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.step-rail::before {
  content: "";
  position: absolute;
  top: -84px;
  bottom: -84px;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: rgba(255,255,255,.75);
}
.step-num {
  position: relative;
  z-index: 2;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--purple);
  font-family: var(--serif);
  font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
}
.step-icon {
  position: relative;
  z-index: 2;
  width: 68px; height: 68px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.85);
  background: var(--purple);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.step-icon svg { width: 36px; height: 36px; display: block; }
.step-icon path, .step-icon circle, .step-icon rect, .step-icon polygon, .step-icon ellipse { fill: currentColor; }
.fic path, .fic circle, .fic rect, .fic polygon, .fic ellipse { fill: currentColor; }
.step-body { padding-top: 4px; }
.step-body h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step-body p { color: #fff; font-size: .95rem; margin: 0; }

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

/* ---------- Motion (ported from source entrance reveals) ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulseDot {
  0%   { transform: scale(1); opacity: 1; }
  50%  { transform: scale(1.35); opacity: .55; }
  100% { transform: scale(1); opacity: 1; }
}

/* On-load reveals: animation always runs, element always ends visible. */
.reveal { animation: fadeUp .8s ease both; }
.reveal-2 { animation: fadeUp .8s ease .12s both; }
.reveal-3 { animation: fadeUp .8s ease .24s both; }
.reveal-in { animation: fadeIn 1s ease both; }
.reveal-scale { animation: scaleIn .8s ease both; }

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .process-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .header-inner { flex-wrap: wrap; }
  .main-nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 12px;
    border-top: 1px solid var(--line);
  }
  .main-nav.open { display: flex; }
  .main-nav .nav-link { padding: 11px 4px; }
  .nav-item { position: static; }
  .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0 0 6px 16px;
    min-width: 0;
  }
  .sub-menu a { padding: 8px 4px; font-size: .95rem; }
}

@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .header-inner { min-height: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-tagline { max-width: none; }
}

/* ============================================================
   page: index
   ============================================================ */
.hero {
  position: relative;
  min-height: 820px;
  padding-bottom: 180px;
  display: flex;
  align-items: center;
  color: var(--ink);
  overflow: hidden;
  background: #efeaf3;
}
.hero .hero-media { position: absolute; inset: 0; }
.hero .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero .hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.82) 42%, rgba(255,255,255,.15) 78%, rgba(255,255,255,0) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); max-width: 620px; margin-bottom: 18px; }
.hero h1 .accent { color: var(--purple); }
.hero p { max-width: 480px; font-size: 1.1rem; color: var(--text); margin-bottom: 26px; }
.hero .btn-row { gap: 16px; }

/* Hero feature cards: house-shaped icon plate sitting on the card top edge,
   straddling the bottom edge of the hero photo (as in the source). */
.feature-band { position: relative; z-index: 3; margin-top: -148px; }
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}
.feature-card {
  position: relative;
  background: #fff;
  color: var(--text);
  border: 2px solid var(--purple);
  border-radius: var(--radius-lg);
  padding: 42px 26px 30px;
  text-align: center;
}
.feature-card.is-filled { background: var(--purple); border-color: var(--purple); color: #fff; }

/* The house plate is painted behind the card, so only its roof shows and the
   card's top border reads as the house's base line -- as in the source. */
.fhouse {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  margin-bottom: -42px;
  width: 144px;
  height: 127px;
  display: block;
  z-index: -1;
}
.fhouse > svg { width: 100%; height: 100%; display: block; }
.fhouse > svg path { fill: #fff; stroke: var(--purple); stroke-width: 6; }
.feature-card.is-filled .fhouse > svg path { fill: var(--purple); stroke: var(--purple); }
.fic {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  color: var(--purple);
  z-index: 1;
}
.feature-card.is-filled .fic { color: #fff; }
.fic svg { width: 100%; height: 100%; display: block; }

.feature-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.feature-card p { font-size: .93rem; margin: 0; }
.feature-card.is-filled h3, .feature-card.is-filled p { color: #fff; }

.about-media { position: relative; }
.about-media .ring { position: absolute; left: 10%; top: 10%; width: 80%; height: 80%; z-index: 3; pointer-events: none; }
.about-media .photo { position: relative; z-index: 2; border-radius: 50%; aspect-ratio: 1/1; object-fit: cover; width: 100%; }

/* Core services: pin-shaped photos sit directly on the band (no card box);
   the last row centres, as in the source. */
.services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 36px 40px; }
.service-card { flex: 0 1 300px; text-align: center; }
.service-card .thumb { width: 100%; max-width: 290px; margin: 0 auto 14px; }
.service-card .thumb img { width: 100%; height: auto; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.service-card p { color: var(--text); font-size: .95rem; margin-bottom: 18px; }

.areas-band { position: relative; background: #0f0e12; color: #fff; overflow: hidden; }
.areas-band .band-bg { opacity: 1; }
/* dark wash over the white world map, as in the source */
.areas-band::after { content: ""; position: absolute; inset: 0; background: rgba(15,14,18,.72); z-index: 1; }
.areas-band .container { position: relative; z-index: 2; }
.areas-band h2 { color: #fff; }
.areas-band .section-head p { color: rgba(255,255,255,.82); }
/* Service areas: purple pill with a white disc holding the map-pin glyph */
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 26px; max-width: 980px; margin: 0 auto; }
.area-pill {
  display: flex; align-items: center; gap: 14px;
  background: var(--purple);
  border-radius: var(--radius-pill);
  padding: 5px 24px 5px 5px;
  color: #fff;
  font-family: var(--serif);
  font-size: 1rem;
}
.area-pill .pin {
  flex: 0 0 52px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #fff;
  color: var(--purple);
  display: flex; align-items: center; justify-content: center;
}
.area-pill .pin svg { width: 27px; height: 27px; display: block; }

/* Project gallery: one panel per category, only the active one shown */
.gallery-tabs { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.gallery-tabs .tab {
  border: 1px solid var(--purple);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 10px 30px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.gallery-tabs .tab:hover { background: var(--purple-soft); }
.gallery-tabs .tab.active { background: var(--purple); color: #fff; }
.gallery-panel { border: 1px solid var(--purple); border-radius: var(--radius-lg); padding: 10px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery-grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; }

/* Testimonials: review column beside the ringed photo */
.reviews-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; margin-bottom: 34px; }
.reviews-col { display: flex; flex-direction: column; gap: 18px; }
.review-card {
  background: #fff;
  border: 1px solid var(--purple);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.review-head { display: flex; align-items: center; gap: 13px; margin-bottom: 10px; }
.review-head img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: 0 0 46px; }
.review-head h3 { font-family: var(--sans); font-weight: 500; font-size: 1.02rem; margin: 0 0 1px; }
.review-card .stars { color: var(--purple); letter-spacing: 2px; font-size: .82rem; line-height: 1; }
.review-card p { color: var(--text); font-size: .92rem; margin: 0; }

.reviews-media { position: relative; }
.reviews-media .photo { width: 100%; height: auto; }
.reviews-media .ring { position: absolute; left: 11%; top: 12%; width: 77%; height: 76%; z-index: 2; pointer-events: none; }

@media (max-width: 960px) {
  .feature-band { margin-top: 60px; }
  .feature-row { grid-template-columns: 1fr; gap: 96px; }
  .areas-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .reviews-split { grid-template-columns: 1fr; gap: 36px; }
  .reviews-media { max-width: 460px; margin: 0 auto; }
  .process-grid { grid-template-columns: 1fr; gap: 34px; }
  .step-rail::before { top: -28px; bottom: -28px; }
  .hero .hero-media::after { background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.9)); }
}
@media (max-width: 620px) {
  .areas-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   page: service (shared by remodeling-services + 5 service pages + about)
   ============================================================ */
.subhero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--dark);
}
.subhero .band-bg { opacity: .55; }
.subhero::after { content: ""; position: absolute; inset: 0; background: rgba(10,6,14,.45); z-index: 1; }
.subhero .container { position: relative; z-index: 2; text-align: center; max-width: 820px; }
.subhero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.1rem); }
.subhero p { color: rgba(255,255,255,.92); font-size: 1.12rem; max-width: 640px; margin: 0 auto; }

/* Ribbon cards: pointed purple banner over a white panel with a bottom point */
.mini-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.mini-card { text-align: center; display: flex; flex-direction: column; }
.mini-card h3 {
  background: var(--purple);
  color: #fff;
  font-size: 1.12rem;
  line-height: 1.3;
  margin: 0;
  padding: 12px 28px;
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 18px 100%, 0 50%);
}
.mini-card p {
  background: #fff;
  width: 84%;
  margin: 0 auto;
  padding: 26px 18px 42px;
  color: var(--text);
  font-size: .95rem;
  flex: 1 1 auto;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), 50% 100%, 0 calc(100% - 22px));
}

.why-list { list-style: none; margin: 18px 0 0; padding: 0; }
.why-list li { position: relative; padding-left: 34px; margin-bottom: 14px; color: var(--text); }
.why-list li::before {
  content: "\2713";
  position: absolute; left: 0; top: 2px;
  width: 21px; height: 21px;
  border: 2px solid var(--purple); border-radius: 3px;
  color: var(--purple);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
}

/* Service rows: photo with an overlapping copy panel, sides alternating */
.svc-rows { display: flex; flex-direction: column; gap: 56px; }
.svc-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
}
.svc-photo { grid-row: 1; grid-column: 1 / 8; }
.svc-photo img { width: 100%; aspect-ratio: 511/422; object-fit: cover; border-radius: 10px; }
.svc-panel {
  grid-row: 1;
  grid-column: 7 / 13;
  z-index: 2;
  background: #f9f4fb;
  border: 1px solid var(--purple);
  border-radius: var(--radius);
  padding: 34px 32px 36px;
}
.svc-row.is-reverse .svc-photo { grid-column: 6 / 13; }
.svc-row.is-reverse .svc-panel { grid-column: 1 / 7; }

.svc-panel h3 { font-size: 1.75rem; margin-bottom: 4px; }
.svc-panel .svc-sub { font-family: var(--serif); font-size: 1.05rem; color: var(--purple); margin-bottom: 14px; }
.svc-panel p { color: var(--text); font-size: .95rem; margin-bottom: 20px; }
.svc-panel .btn { padding: 11px 26px; }

/* Source uses rounded rectangles here, not circles */
.round-media { width: 100%; height: auto; border-radius: 12px; }

/* FAQ (native details/summary - no hidden-content CSS) */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--purple); font-size: 1.4rem; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 24px 22px; color: var(--muted); }
.faq .faq-body .num { color: var(--purple); font-weight: 600; font-size: .8rem; letter-spacing: .1em; }

@media (max-width: 960px) {
  .mini-cards { grid-template-columns: 1fr 1fr; }
  .svc-rows { gap: 40px; }
  .svc-row, .svc-row.is-reverse { display: block; }
  .svc-row .svc-photo, .svc-row.is-reverse .svc-photo { margin-bottom: -34px; }
  .svc-row .svc-panel, .svc-row.is-reverse .svc-panel { position: relative; width: 92%; margin: 0 auto; }
}
@media (max-width: 620px) {
  .mini-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   page: about
   ============================================================ */
/* Mission & Values honeycomb: six hexagons wired out to their labels */
.values-hive {
  position: relative;
  width: 100%;
  max-width: 927px;
  margin: 0 auto;
  aspect-ratio: 927 / 430;
}
.hive-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hive-hex { fill: var(--purple); }
.hive-line { fill: none; stroke: var(--purple); stroke-width: 2.5; }
.hive-dot { fill: var(--ink); }
.hive-icon { color: #fff; }
/* the source icons carry no fill attribute, so paint them from `color` */
.hive-icon path, .hive-icon circle, .hive-icon rect, .hive-icon polygon, .hive-icon ellipse,
.value-hex path, .value-hex circle, .value-hex rect, .value-hex polygon, .value-hex ellipse { fill: currentColor; }

.hive-label { position: absolute; }
.hive-label h3 { font-size: 1.35rem; margin: 0 0 6px; }
.hive-label p { font-size: .95rem; color: var(--text); margin: 0; line-height: 1.5; }

/* stacked fallback, used where the diagram no longer fits */
.values-stack { display: none; }
.value-item { display: flex; align-items: flex-start; gap: 18px; }
.value-hex {
  flex: 0 0 76px;
  width: 76px; height: 66px;
  background: var(--purple);
  color: #fff;
  clip-path: polygon(0% 50%, 25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%);
  display: flex; align-items: center; justify-content: center;
}
.value-hex svg { width: 36px; height: 36px; display: block; }
.value-item h3 { font-size: 1.2rem; margin: 0 0 4px; }
.value-item p { font-size: .93rem; color: var(--text); margin: 0; }

.owner-name { font-size: 1.9rem; margin: 8px 0 2px; }
.owner-role { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--purple); font-weight: 600; }

/* Circular photo inside a purple ring with the dashed inner line */
.ring-media { position: relative; }
.ring-media .photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 26px solid var(--purple);
}
.ring-media .ring { position: absolute; left: 12%; top: 12%; width: 76%; height: 76%; z-index: 2; pointer-events: none; }

@media (max-width: 940px) {
  .values-hive { display: none; }
  .values-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 34px; }
}
@media (max-width: 620px) {
  .values-stack { grid-template-columns: 1fr; }
}

/* ============================================================
   page: contact
   ============================================================ */
/* Contact detail "tags": pill outline with an offset purple plate behind */
.contact-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 46px 54px; }
.contact-tag {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 270px;
  padding: 14px 26px 14px 14px;
  border: 2px solid var(--purple);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--text);
  font-size: .98rem;
  line-height: 1.4;
}
.contact-tag::before {
  content: "";
  position: absolute;
  left: -14px; top: -14px;
  width: 128px; height: 34px;
  background: var(--purple);
  z-index: -1;
}
a.contact-tag:hover { text-decoration: none; box-shadow: var(--shadow-sm); }
.tag-ic {
  flex: 0 0 48px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.tag-ic svg { width: 24px; height: 24px; display: block; }
.tag-ic path, .tag-ic circle, .tag-ic rect, .tag-ic polygon { fill: currentColor; }

/* Quote form */
.quote-form { max-width: 900px; margin: 0 auto; }
.quote-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.quote-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.quote-form .field { margin-bottom: 18px; }
.quote-form input, .quote-form textarea, .quote-form select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--purple);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: .95rem;
  background: #fff;
  color: var(--text);
}
.quote-form input:focus, .quote-form textarea:focus, .quote-form select:focus {
  outline: 2px solid var(--purple);
}
.quote-form textarea { min-height: 140px; resize: vertical; }
.quote-form .btn { margin-top: 8px; padding: 13px 44px; }
.hp-field { position: absolute; left: -9999px; overflow: hidden; width: 1px; height: 1px; }

@media (max-width: 720px) {
  .quote-form .form-row { grid-template-columns: 1fr; }
  .contact-tags { gap: 40px; }
}

/* ============================================================
   page: gallery
   ============================================================ */
.masonry { columns: 3; column-gap: 16px; }
.masonry-item { margin: 0 0 16px; break-inside: avoid; }
.masonry-item img { width: 100%; height: auto; border-radius: 10px; display: block; }
@media (max-width: 900px) { .masonry { columns: 2; } }
@media (max-width: 560px) { .masonry { columns: 1; } }

/* ============================================================
   page: feedback
   ============================================================ */
.feedback-panel {
  background: var(--purple-soft);
  padding: 54px 32px 60px;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}
.feedback-mark { max-width: 480px; width: 100%; height: auto; margin: 0 auto 24px; }
.feedback-panel > p { max-width: 700px; margin: 0 auto 34px; font-size: 1.02rem; }
.feedback-thumbs { display: flex; justify-content: center; gap: 40px; margin-bottom: 38px; }
.feedback-thumbs .thumb { width: 120px; height: 120px; color: var(--purple); display: block; }
.feedback-thumbs .thumb svg { width: 100%; height: 100%; display: block; }

/* ============================================================
   page: blog + posts
   ============================================================ */
.blog-filter {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .95rem;
  color: var(--purple);
  border-bottom: 2px solid var(--purple);
  display: inline-block;
  padding-bottom: 6px;
  margin-bottom: 34px;
}
.post-list { display: flex; flex-direction: column; gap: 46px; }
.post-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 34px; align-items: center; }
.post-card-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.post-meta { font-family: var(--sans); font-size: .84rem; color: var(--muted); margin-bottom: 10px; }
.post-card h2 { font-size: 1.6rem; margin-bottom: 12px; }
.post-card h2 a { color: var(--ink); }
.post-card h2 a:hover { color: var(--purple); text-decoration: none; }
.post-excerpt { color: var(--text); font-size: .95rem; margin-bottom: 14px; }
.post-more { font-family: var(--sans); font-weight: 600; font-size: .9rem; }

.post-container { max-width: 820px; }
.post h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 12px; }
.post-hero { width: 100%; height: auto; border-radius: 12px; margin: 22px 0 34px; }
.post-body { font-size: 1.02rem; line-height: 1.75; }
.post-body h2 { font-size: 1.7rem; margin: 38px 0 14px; }
.post-body h3 { font-size: 1.3rem; margin: 30px 0 12px; }
.post-body h4 { font-size: 1.1rem; margin: 24px 0 10px; }
.post-body ul, .post-body ol { padding-left: 22px; margin: 0 0 18px; }
.post-body li { margin-bottom: 8px; }
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 22px;
  font-size: .95rem;
  /* wide tables scroll inside the article rather than widening the page */
  display: block;
  max-width: 100%;
  overflow-x: auto;
}
.post-body th, .post-body td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.post-body tr:first-child td { background: var(--purple-soft); }
.post-body blockquote {
  margin: 0 0 20px;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--purple);
  color: var(--muted);
}
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.post-nav a {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.35;
}
.post-nav a:hover { border-color: var(--purple); color: var(--purple); text-decoration: none; }
.post-nav a span { display: block; font-family: var(--sans); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--purple); margin-bottom: 6px; }
.post-nav-next { text-align: right; }
.post-nav-next:only-child { grid-column: 2; }

@media (max-width: 860px) {
  .post-card { grid-template-columns: 1fr; gap: 18px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }
  .post-nav-next:only-child { grid-column: 1; }
}
