/* Kasdol Enterprises Ltd — purple #392064 / gold #EACE3B / champagne #EDDCA8 / white */

:root {
  --purple: #392064;
  --purple-dark: #2A1749;
  --purple-light: #4D2E86;
  --purple-tint: #EFEAF8;
  --gold: #EACE3B;
  --gold-dark: #B59F2A;
  --champagne: #EDDCA8;
  --cream: #F8F3E2;
  --ink: #241740;
  --muted: #5C5470;
  --line: #DCD5EC;
  --paper: #FFFFFF;

  /* Image slot aspect ratios — adjust to the real files when they arrive */
  --ar-hero: 8 / 5;
  --ar-media: 8 / 5;
  --ar-card: 8 / 5;
  --ar-supplies: 4 / 3;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 44rem;
  --wrap: 1140px;
  /* Radius tiers — mobile values; bumped at the tablet breakpoint below */
  --radius-card: 5px;
  --radius-btn: 4px;
  --radius-chip: 3px;
}

@media (min-width: 768px) {
  :root {
    --radius-card: 8px;
    --radius-btn: 6px;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

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

h1, h2, h3 { color: var(--purple); line-height: 1.15; font-weight: 800; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); letter-spacing: -0.01em; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--purple); }
a:hover { color: var(--purple-light); }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
address { font-style: normal; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: var(--measure); }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 38em; }
.muted { color: var(--muted); }
.muted-light { color: var(--champagne); }
.inline-light { color: var(--gold); }

.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 200;
  background: var(--purple); color: #fff; padding: 10px 16px;
  border-radius: 0 0 var(--radius-btn) var(--radius-btn); text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 12px 22px; border-radius: var(--radius-btn);
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  text-align: center; white-space: nowrap;
}
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-dark); color: #fff; }
.btn-gold { background: var(--gold); color: var(--purple); }
.btn-gold:hover { background: var(--gold-dark); color: var(--purple-dark); }
.btn-outline { background: transparent; color: var(--purple); border-color: var(--purple); }
.btn-outline:hover { background: var(--purple-tint); color: var(--purple); }
.btn-light { background: #fff; color: var(--purple); }
.btn-light:hover { background: var(--champagne); color: var(--purple-dark); }
.btn-block { display: block; width: 100%; margin-top: .5rem; }

.icon { width: 22px; height: 22px; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand-logo { height: 40px; width: auto; }
.nav-toggle {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 14px;
  background: transparent; border: 2px solid var(--purple); border-radius: var(--radius-btn);
  color: var(--purple); font: 700 1rem var(--font); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: none; }
.js .site-nav.open { display: block; }
.no-js .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 8px 0; }
.site-nav a {
  display: block; padding: 12px 16px; min-height: 44px;
  font-weight: 600; text-decoration: none; color: var(--ink);
}
.site-nav a:hover { background: var(--purple-tint); color: var(--purple); }
.site-nav a[aria-current="page"] { color: var(--purple); font-weight: 700; background: var(--purple-tint); }
.header-actions { display: none; }

@media (max-width: 899px) {
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; margin-left: auto; }
  .site-nav ul { display: flex; padding: 0; }
  .site-nav a { padding: 12px 14px; border-radius: var(--radius-btn); }
  .site-nav a[aria-current="page"] { color: var(--purple); }
  .header-actions { display: flex; align-items: center; gap: 14px; }
  .header-phone {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; color: var(--purple); text-decoration: none; white-space: nowrap;
  }
}

/* ---------- signature spark line ---------- */
.sparkline {
  position: relative; height: 2px; background: var(--line);
  margin: 0 0 2rem; overflow: hidden; max-width: 180px;
}
.sparkline::after {
  content: ""; position: absolute; top: 0; left: -80px;
  width: 80px; height: 100%; background: var(--gold);
  animation: spark 4.5s ease-in-out infinite;
}
@keyframes spark {
  0% { left: -80px; }
  60%, 100% { left: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .sparkline::after { animation: none; left: 0; width: 50%; }
}

/* ---------- hero ---------- */
.hero {
  padding: 3rem 0 3.25rem; border-bottom: 1px solid var(--line);
  position: relative; isolation: isolate;
  background: var(--ink) var(--hero-bg) center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(20, 13, 40, .72);
}
.hero-inner { display: grid; gap: 1.5rem; }
.hero-copy h1 { color: #fff; }
.hero-copy .lede { color: rgba(255, 255, 255, .9); }
.hero-phone { color: rgba(255, 255, 255, .9); }
.hero-phone a { color: var(--gold); }
/* Paired CTAs stay on one line on small screens: equal halves, compact padding */
.hero-actions, .service-ctas, .admin-actions, .btn-row {
  display: flex; flex-wrap: nowrap; gap: 10px;
}
.hero-actions { margin: 1.25rem 0 .75rem; }
.hero-actions .btn, .service-ctas .btn, .btn-row .btn, .admin-actions .btn {
  flex: 1 1 0; min-width: 0;
  padding: 10px 12px; min-height: 44px; font-size: .95rem;
}
@media (min-width: 700px) {
  .hero-actions .btn, .service-ctas .btn, .btn-row .btn {
    flex: 0 0 auto; padding: 12px 22px; min-height: 48px; font-size: 1rem;
  }
  .admin-actions .btn { flex: 0 0 auto; }
}
.hero-phone { font-weight: 600; }
@media (min-width: 900px) {
  .hero { padding: 4.5rem 0; }
  .hero-copy { max-width: 34em; }
}

/* ---------- sections ---------- */
.section { padding: 2.5rem 0; }
.section-cream { background: var(--cream); }
.section-purple { background: var(--purple); color: #fff; }
.section-purple h2, .section-purple h3 { color: #fff; }
.section-purple .section-sub { color: var(--champagne); }
.section-purple .sparkline { background: var(--purple-light); }
.section-head { max-width: var(--measure); }
.section-sub { color: var(--muted); }
.section-link { font-weight: 700; }

/* ---------- tiles ---------- */
.tile-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 12px;
}
.tile {
  display: block; min-height: 44px; height: 100%;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-card);
  text-decoration: none; color: var(--ink); position: relative;
}
.tile:hover { border-color: var(--purple); color: var(--ink); }
.tile:hover .tile-go { transform: translateX(4px); }
.tile-name { display: block; font-weight: 700; color: var(--purple); font-size: 1.06rem; margin-bottom: 4px; }
.tile-line { display: block; color: var(--muted); font-size: .95rem; padding-right: 2rem; }
.tile-go { position: absolute; right: 18px; top: 16px; color: var(--gold-dark); font-weight: 800; transition: transform .15s; }
@media (min-width: 640px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tile-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- split layouts ---------- */
.split { display: grid; gap: 2rem; }
.split-form {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 24px;
}
.split-media img {
  width: 100%; aspect-ratio: var(--ar-supplies); object-fit: cover;
  border-radius: var(--radius-card); border: 1px solid var(--line);
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; align-items: center; }
  .split-reverse .split-copy { order: 2; }
  .split-reverse .split-media { order: 1; }
}

.tick-list { list-style: none; padding: 0; }
.tick-list li { padding-left: 1.6em; position: relative; margin-bottom: .4em; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: .8em; height: .8em; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--purple);
}

/* ---------- chips ---------- */
.chip-row { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--line); border-radius: var(--radius-chip);
  padding: 8px 18px; font-weight: 600; background: var(--paper);
  display: inline-flex; align-items: center; min-height: 44px;
}
a.chip, button.chip { text-decoration: none; color: var(--ink); font-family: inherit; font-size: inherit; cursor: pointer; }
a.chip:hover, button.chip:hover { border-color: var(--purple); color: var(--purple); }
.chip-active { background: var(--purple); border-color: var(--purple); color: #fff; }
a.chip-active:hover, button.chip-active:hover { color: var(--gold); }
.chip-row-large .chip { border-color: var(--purple); }

/* ---------- product cards ---------- */
.product-grid { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper); overflow: hidden; display: flex; flex-direction: column; }
.product-card:hover { border-color: var(--purple); }
.product-card > img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; border-bottom: 1px solid var(--line); display: block; }
.product-info { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.product-info h3 { font-size: .95rem; line-height: 1.35; margin: 0 0 .3em; }
.product-brand { font-size: .8rem; color: var(--muted); margin: 0 0 .45em; }
.product-desc { font-size: .85rem; color: var(--muted); margin: 0 0 .8em; flex: 1; }
.product-quote { font-size: .85rem; font-weight: 600; color: var(--purple); text-decoration: none; }
.product-quote:hover { text-decoration: underline; }
.product-card[hidden] { display: none; }
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) and (max-width: 1100px) { .product-grid { gap: 14px; } }

/* ---------- projects / work ---------- */
.project-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.project-card {
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius-card); overflow: hidden;
  border: 1px solid var(--line);
}
.project-card:hover { border-color: var(--purple); }
.project-card img { width: 100%; aspect-ratio: var(--ar-card); object-fit: cover; }
.project-body { padding: 18px 20px; }
.project-sector { font-size: .85rem; font-weight: 700; color: var(--gold-dark); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .25em; }
@media (min-width: 640px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }

.work-list { list-style: none; padding: 0; margin: 0; }
.work-item {
  display: grid; gap: 0; margin-bottom: 1.5rem;
  border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden;
}
.work-item:hover { border-color: var(--purple); }
.work-item img { width: 100%; aspect-ratio: var(--ar-card); object-fit: cover; }
.work-body { padding: 20px; }
@media (min-width: 900px) {
  .work-item { grid-template-columns: 2fr 3fr; }
  .work-item:nth-child(even) img { order: 2; }
}

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.step {
  border: 1px solid var(--line);
  border-radius: var(--radius-card); background: var(--paper); padding: 18px 20px;
}
.step h3 { display: flex; align-items: center; gap: 10px; }
.step h3::before {
  content: ""; flex: none; width: 12px; height: 12px;
  background: var(--gold); border-radius: var(--radius-chip);
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- compliance ---------- */
.compliance {
  border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 24px; max-width: var(--measure);
}

/* ---------- testimonials ---------- */
/* ---------- review marquee ---------- */
.marquee { overflow: hidden; }
.quote-track {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 16px; width: max-content;
  animation: marquee 55s linear infinite;
}
.marquee:hover .quote-track,
.marquee:focus-within .quote-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 8px)); }
}
@media (prefers-reduced-motion: reduce) {
  .quote-track { animation: none; }
  .marquee { overflow-x: auto; }
}
.quote-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 20px 22px;
  width: min(320px, 78vw); flex-shrink: 0;
  display: flex; flex-direction: column;
}
.quote-card blockquote::before {
  content: "“"; display: block; height: .6em;
  font-size: 2.6rem; line-height: .8; font-weight: 800; color: var(--gold-dark);
}
.quote-card blockquote { margin: 0 0 .75em; font-size: 1.02rem; flex: 1; }
.quote-who { margin: 0 0 .6em; font-size: .9rem; color: var(--muted); }
.quote-tag { align-self: flex-start; font-size: .8rem; padding: 4px 10px; }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius-card); margin-bottom: 10px; background: var(--paper); }
.faq summary {
  cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--purple);
  min-height: 44px; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; color: var(--gold-dark); font-size: 1.3rem; }
.faq[open] summary::after { content: "–"; }
.faq p { padding: 0 18px 14px; margin: 0; }

/* ---------- contact band ---------- */
.contact-band { text-align: center; }
.contact-phones { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 1rem 0; }
.contact-phones .btn { padding: 10px 16px; min-height: 44px; font-size: .95rem; }

/* ---------- page head ---------- */
.page-head {
  padding: 2rem 0; border-bottom: 1px solid var(--line);
  background: var(--purple-tint);
}
.page-head.has-photo {
  padding: 2.75rem 0;
  position: relative; isolation: isolate;
  background: var(--ink) var(--head-bg) center / cover no-repeat;
}
.page-head.has-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(20, 13, 40, .68);
}
.page-head.has-photo h1 { color: #fff; }
.page-head.has-photo .lede { color: rgba(255, 255, 255, .9); }
.page-head.has-photo .crumb,
.page-head.has-photo .crumb a { color: rgba(255, 255, 255, .85); }
.page-head.has-photo .crumb a:hover { color: var(--gold); }
.page-head h1 { margin-bottom: .25em; }
.page-head .lede { margin-bottom: 0; }
.crumb { font-size: .9rem; margin-bottom: .5em; }

/* ---------- services hub ---------- */
.services-layout { display: grid; gap: 2rem; }
.services-side { display: none; }
.service-block {
  display: grid; gap: 0; margin-bottom: 2rem;
  border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden;
  scroll-margin-top: 80px;
}
.service-block:hover { border-color: var(--purple); }
.service-media img { width: 100%; aspect-ratio: var(--ar-media); object-fit: cover; }
.service-info { padding: 20px; }
.service-items { padding-left: 1.25em; }
.service-items li { margin-bottom: .3em; }
.service-ctas { margin-top: 1rem; }
@media (min-width: 900px) {
  .services-layout { grid-template-columns: 240px 1fr; }
  .services-side { display: block; }
  .services-side > ul { list-style: none; padding: 0; margin: 0 0 1rem; }
  .services-side a { display: block; padding: 10px 12px; text-decoration: none; font-weight: 600; color: var(--ink); border-radius: var(--radius-btn); }
  .services-side a:hover { background: var(--purple-tint); color: var(--purple); }
  .services-side { position: sticky; top: 88px; align-self: start; }
  .service-block { grid-template-columns: 1fr 1.4fr; }
}
.side-heading { font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ---------- service detail ---------- */
.detail-layout { display: grid; gap: 2rem; }
.detail-media img {
  width: 100%; aspect-ratio: var(--ar-hero); object-fit: cover;
  border-radius: var(--radius-card); border: 1px solid var(--line); margin-bottom: 1.5rem;
}
.detail-intro { font-size: 1.08rem; }
.detail-main h2 { margin-top: 1.5rem; }
.gallery { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border-radius: var(--radius-card); border: 1px solid var(--line);
}
.side-card {
  border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 20px; margin-bottom: 16px; background: var(--paper);
}
.side-card h2 { font-size: 1.15rem; }
.side-card-cta { background: var(--purple); border-color: var(--purple); color: #fff; }
.side-card-cta h2 { color: #fff; }
.side-card-cta .side-or, .side-card-cta .side-or a { color: rgba(255, 255, 255, .9); }
.side-card-cta .side-or a:hover { color: var(--gold); }
.side-or { margin: .75rem 0 0; text-align: center; }
.prod-thumbs { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; gap: 10px; flex-wrap: wrap; }
.prod-thumbs img {
  width: 72px; height: 72px; object-fit: contain; display: block;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
}
.prod-thumbs a:hover img { border-color: var(--purple); }
.side-prods { list-style: none; padding: 0; margin: 0 0 1rem; }
.side-prods li { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: .9rem; }
.side-prods img {
  width: 48px; height: 48px; object-fit: contain; flex-shrink: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-chip);
}
.side-nav ul { list-style: none; padding: 0; margin: 0; }
.side-nav a { display: block; padding: 8px 0; font-weight: 600; text-decoration: none; }
@media (min-width: 900px) {
  .detail-layout { grid-template-columns: 2fr 1fr; align-items: start; }
  .detail-side { position: sticky; top: 88px; }
}

.note-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 16px 20px; margin: 1.25rem 0;
  background: var(--cream);
}

/* ---------- supplies ---------- */
.supplies-layout { display: grid; gap: 2rem; }
.supply-grid { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 12px; }
.supply-cat { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 16px 20px; }
.supply-cat h2 { font-size: 1.1rem; margin-bottom: .25em; }
.supply-cat p { margin: 0; color: var(--muted); }
@media (min-width: 640px) { .supply-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .supplies-layout { grid-template-columns: 2fr 1fr; align-items: start; }
  .detail-side { position: sticky; top: 88px; }
}

/* ---------- clients ---------- */
.ref-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ref-item { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 16px 20px; }
.ref-item h2 { font-size: 1.05rem; margin-bottom: .2em; }
.ref-item p { margin: 0; color: var(--muted); }
@media (min-width: 700px) { .ref-list { grid-template-columns: 1fr 1fr; } }

/* ---------- contact page ---------- */
.contact-layout { display: grid; gap: 2rem; }
.contact-cards { display: grid; gap: 10px; margin-bottom: 1.75rem; }
.contact-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; min-height: 56px;
  border: 1px solid var(--line); border-radius: var(--radius-card);
  text-decoration: none; color: var(--ink); background: var(--paper);
}
.contact-card .icon { width: 24px; height: 24px; color: var(--purple); flex: none; }
.contact-card > span { display: flex; flex-direction: column; }
.contact-card strong { font-size: 1.02rem; color: var(--purple); }
.contact-card small { color: var(--muted); font-size: .85rem; }
a.contact-card:hover { border-color: var(--purple); }
a.contact-card:hover strong { text-decoration: underline; }
.contact-card-primary { background: var(--purple); border-color: var(--purple); color: #fff; }
.contact-card-primary strong, .contact-card-primary small, .contact-card-primary .icon { color: #fff; }
.contact-card-primary:hover { background: var(--purple-dark); }
.contact-block { margin-bottom: 1.75rem; }
.contact-block h2 { font-size: 1.15rem; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1fr 1.2fr; } }

/* ---------- quote page ---------- */
.quote-layout { display: grid; gap: 2rem; }
@media (min-width: 900px) { .quote-layout { grid-template-columns: 2fr 1fr; align-items: start; } }

/* ---------- forms ---------- */
.enquiry-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-weight: 700; font-size: .95rem; }
.field legend { margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 12px 14px; min-height: 44px;
  border: 1px solid var(--line); border-radius: var(--radius-btn);
  background: var(--paper); color: var(--ink); width: 100%;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23290D46' stroke-width='2' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 18px;
  padding-right: 2.4rem;
}
.field input[type="file"] { border-style: dashed; background: var(--cream); padding: 10px 14px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--gold); outline-offset: 0; border-color: var(--purple);
}
.field textarea { min-height: 110px; resize: vertical; }
.field-error { margin: 0; color: #8C1D18; font-size: .9rem; font-weight: 600; }
.form-errors { border: 2px solid #8C1D18; border-radius: var(--radius-card); padding: 10px 14px; color: #8C1D18; }
.form-errors p { margin: 0; font-weight: 600; }
.form-note { margin: 0; font-size: .9rem; color: var(--muted); }
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-chip input { position: absolute; opacity: 0; }
.radio-chip span {
  display: inline-block; padding: 10px 18px; min-height: 44px;
  border: 1px solid var(--line); border-radius: var(--radius-chip); font-weight: 600; cursor: pointer;
}
.radio-chip input:checked + span { background: var(--purple); color: #fff; border-color: var(--purple); }
.radio-chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.notice { border-radius: var(--radius-card); padding: 14px 18px; margin: 1rem 0; }
.notice p { margin: 0; }
.notice-ok { background: var(--cream); border: 1px solid var(--gold); }
.notice-err { background: #fff; border: 2px solid #8C1D18; color: #8C1D18; }

.empty-state {
  border: 1px dashed var(--line); border-radius: var(--radius-card);
  padding: 32px; text-align: center; color: var(--muted);
}
.link-list { list-style: none; padding: 0; }
.link-list li { margin-bottom: .4em; }
.link-list a { font-weight: 700; }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 1.5rem; }
.prose h3 { margin-top: 1.4rem; }
.prose blockquote {
  margin: 1.25rem 0; padding: 0 1.5rem;
  color: var(--muted); font-size: 1.05rem;
}
.prose img { border-radius: var(--radius-card); margin: 1.25rem 0; }
.blog-card { text-decoration: none; display: block; height: 100%; }
.blog-card:hover { color: var(--ink); }
.blog-card:hover .blog-card-title { color: var(--purple-light); }
.blog-card-title { margin-bottom: .3em; }

/* ---------- admin ---------- */
.admin-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; }
.admin-actions { display: flex; gap: 10px; }
.lead-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.lead-card { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 20px; }
.lead-top h2 { font-size: 1.15rem; margin-bottom: .15em; }
.lead-status { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.lead-status select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-btn); }

/* ---------- footer ---------- */
.site-footer { background: var(--purple); color: #fff; padding: 2.5rem 0 5rem; margin-top: 2rem; }
.footer-grid { display: grid; gap: 2rem; margin-bottom: 2rem; }
.footer-brand .brand-logo-footer { margin-bottom: .75rem; }
.footer-tagline { font-weight: 600; color: var(--champagne); }
.footer-note { font-size: .9rem; color: var(--champagne); }
.footer-heading { color: var(--gold); font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .35em; }
.footer-col a { color: #fff; text-decoration: none; }
.footer-col a:hover { color: var(--gold); text-decoration: underline; }
.footer-contact li { margin-bottom: .4em; }
.footer-contact .muted { color: var(--champagne); }
.site-footer .sparkline { background: var(--purple-light); max-width: none; }
.footer-base {
  display: flex; flex-wrap: wrap; gap: 4px 20px;
  justify-content: space-between; align-items: baseline;
}
.footer-base p { margin: 0; font-size: .9rem; color: var(--champagne); }
.footer-credit a { color: var(--gold); font-weight: 600; text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

/* ---------- floating contact buttons: circular, icon-only, all screens ---------- */
.float-actions {
  position: fixed; right: 14px; bottom: 14px; z-index: 150;
  display: flex; flex-direction: column; gap: 10px;
}
.float-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; border: 0;
}
.float-btn svg { width: 26px; height: 26px; }
.float-wa { background: #25D366; } /* official WhatsApp green */
.float-wa:hover { background: #1FB857; }
.float-call { background: var(--purple); }
.float-call:hover { background: var(--purple-dark); }
@media (min-width: 900px) {
  .float-actions { right: 20px; bottom: 20px; }
  .float-btn { width: 56px; height: 56px; }
  .float-btn svg { width: 28px; height: 28px; }
}

/* ---------- mobile card grids: 2-per-line, all horizontal layers at 6px ---------- */
@media (max-width: 767px) {
  /* Layer 1: screen edge → cards = 6px (page container side padding) */
  .wrap { padding-left: 6px; padding-right: 6px; }

  /* Cards readable at half width → 2 per line, Layer 2: gap = 6px */
  .tile-grid, .project-grid, .supply-grid, .ref-list, .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .product-info { padding: 8px 6px; }
  .product-info h3 { font-size: .85rem; }
  .product-desc { display: none; }

  /* Keep single-column: steps, quotes, footer, other stacked cards */
  .steps, .footer-grid { grid-template-columns: 1fr; }

  /* Single-column cards: edge → 8px (6px container + 2px margin) */
  .service-block, .work-item, .step, .faq, .side-card,
  .lead-card, .split-form, .note-box, .compliance, .empty-state, .notice {
    margin-left: 2px;
    margin-right: 2px;
  }

  /* Layer 3: card inner horizontal padding = 6px */
  .tile { padding: 10px 6px; }
  .project-body { padding: 8px 6px; }
  .supply-cat, .ref-item { padding: 10px 6px; }
  .step { padding-left: 6px; padding-right: 6px; }
  .quote-card { width: min(280px, 80vw); padding: 14px 10px; }
  .faq summary { padding: 12px 6px; }
  .faq summary::after { right: 8px; }
  .faq p { padding: 0 6px 12px; }
  .service-info { padding: 14px 6px; }
  .work-body { padding: 10px 6px; }
  .side-card { padding: 12px 6px; }
  .split-form { padding: 14px 6px; }
  .note-box { padding: 10px 6px; }
  .compliance { padding: 12px 6px; }
  .lead-card { padding: 12px 6px; }
  .empty-state { padding: 16px 6px; }
  .notice { padding: 10px 6px; }

  /* Type trimmed so half-width cards stay readable */
  .tile-name { font-size: .98rem; }
  .tile-line { font-size: .85rem; padding-right: 1.2rem; }
  .tile-go { right: 8px; top: 10px; }
  .project-sector { font-size: .78rem; }
  .project-body h3 { font-size: .98rem; }
  .project-body p { font-size: .85rem; margin-bottom: 0; }
  .supply-cat h2, .ref-item h2 { font-size: .98rem; }
  .supply-cat p, .ref-item p { font-size: .85rem; }
}
