/* =========================================================
   RGV Property Services — static stylesheet
   (converted 1:1 from the original Tailwind CSS design)
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@300;400;500;600;700&display=swap");

:root {
  --radius: 0;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);

  --font-display: "Hanken Grotesk", system-ui, sans-serif;
  --font-sans: "Hanken Grotesk", system-ui, sans-serif;

  --background: #ffffff;
  --foreground: #111111;
  --card: #ffffff;
  --card-foreground: #1a1a1a;

  --navy: #000000;
  --navy-soft: #141414;
  --navy-foreground: #ffffff;

  --primary: #c9a227;
  --primary-hover: #a3821e;
  --primary-foreground: #000000;

  --secondary: #f3f1f2;
  --secondary-foreground: #111111;

  --muted: #f3f1f2;
  --muted-foreground: #555555;

  --accent: #f9f2dd;
  --accent-foreground: #1a1a1a;

  --destructive: #dc2626;
  --destructive-foreground: #fafafa;

  --border: #dcdcdc;
  --input: #cfcfcf;
  --ring: #c9a227;
  --star: #c9a227;

  --silver: #cfcfcf;
  --silver-foreground: #1a1a1a;
  --gold-soft: #f9f2dd;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

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

/* Belt-and-braces: never let long/unbroken text (emails, addresses) force
   a horizontal scrollbar on narrow phones */
h1, h2, h3, h4, p, a, span, li {
  overflow-wrap: break-word;
  word-break: break-word;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

p {
  margin: 0;
}

svg {
  display: inline-block;
  vertical-align: middle;
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: 72rem; /* max-w-6xl */
  margin-inline: auto;
  padding-inline: 1rem;
}

.container-sm {
  max-width: 48rem; /* max-w-3xl */
  margin-inline: auto;
  padding-inline: 1rem;
}

.container-md {
  max-width: 56rem; /* max-w-4xl */
  margin-inline: auto;
  padding-inline: 1rem;
}

.section-y {
  padding-block: 3.5rem;
}

.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8125rem;
  color: var(--primary);
}

.bg-navy {
  background-color: var(--navy);
  color: var(--navy-foreground);
}

.bg-secondary {
  background-color: var(--secondary);
}

.bg-secondary-soft {
  background-color: color-mix(in srgb, var(--secondary) 50%, transparent);
}

.text-muted {
  color: var(--muted-foreground);
}

.flex-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

main {
  flex: 1 1 auto;
  padding-bottom: 4rem; /* pb-16 for mobile sticky bar */
}

@media (min-width: 1024px) {
  main {
    padding-bottom: 0;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3.5rem;
  padding-inline: 1.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover {
  background-color: color-mix(in srgb, var(--primary) 90%, black);
}
.btn-primary:disabled {
  opacity: 0.7;
  cursor: default;
}

.btn-outline-dark {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--navy-foreground);
}
.btn-outline-dark:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-outline {
  background: var(--background);
  border: 1px solid var(--input);
  color: var(--foreground);
}
.btn-outline:hover {
  background-color: var(--secondary);
}

.btn-sm {
  height: 3.25rem;
  padding-block: 0.75rem;
}

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}
.icon-sm {
  width: 1rem;
  height: 1rem;
}
.icon-md {
  width: 1.5rem;
  height: 1.5rem;
}
.icon-lg {
  width: 1.75rem;
  height: 1.75rem;
}
.icon-xl {
  width: 2rem;
  height: 2rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
}

.header-topbar {
  display: none;
  background-color: var(--navy);
  color: var(--navy-foreground);
}

@media (min-width: 1024px) {
  .header-topbar {
    display: block;
  }
}

.header-topbar-inner {
  max-width: 72rem;
  margin-inline: auto;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-topbar-inner p {
  font-size: 0.875rem;
  color: rgba(245, 244, 239, 0.8);
}

.header-topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-main {
  max-width: 72rem;
  margin-inline: auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  height: 2.75rem;
  width: auto;
  flex-shrink: 0;
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.2;
}

.brand-sub {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.main-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
  }
}

.main-nav a {
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  color: var(--foreground);
  transition: color 0.15s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-call {
  display: none;
  align-items: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding-inline: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--foreground);
  transition: background-color 0.15s ease;
}
.header-call:hover {
  background-color: var(--secondary);
}

@media (min-width: 768px) {
  .header-call {
    display: inline-flex;
  }
}

.header-quote-btn {
  display: none;
  align-items: center;
  height: 2.75rem;
  padding-inline: 1.25rem;
  border-radius: var(--radius-md);
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background-color 0.15s ease;
}
.header-quote-btn:hover {
  background-color: color-mix(in srgb, var(--primary) 90%, black);
}

@media (min-width: 768px) {
  .header-quote-btn {
    display: inline-flex;
  }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background-color: var(--card);
}

@media (min-width: 1024px) {
  .mobile-nav {
    display: none !important;
  }
}

.mobile-nav.open {
  display: block;
}

.mobile-nav-inner {
  max-width: 72rem;
  margin-inline: auto;
  padding: 0.75rem 1rem;
  display: grid;
  gap: 0.25rem;
}

.mobile-nav-inner a {
  border-radius: var(--radius-md);
  padding: 0.75rem;
  font-weight: 600;
  color: var(--foreground);
}
.mobile-nav-inner a:hover,
.mobile-nav-inner a.active {
  background-color: var(--secondary);
  color: var(--primary);
}

.mobile-nav-foot {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(22, 23, 27, 0.95);
  backdrop-filter: blur(6px);
  padding: 0.5rem;
}

@media (min-width: 1024px) {
  .sticky-cta {
    display: none;
  }
}

.sticky-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.sticky-cta-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sticky-cta-call {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--navy-foreground);
}

.sticky-cta-quote {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

/* ---------- Trust / badges ---------- */
.stars {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
}
.stars svg {
  width: 1rem;
  height: 1rem;
  fill: var(--star);
  color: var(--star);
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.15s ease;
}
.rating-badge:hover {
  background-color: var(--secondary);
}

.rating-badge.dark {
  border-color: rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--navy-foreground);
}
.rating-badge.dark:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.trade-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  transition: background-color 0.15s ease;
}
.trade-badge:hover {
  background-color: var(--secondary);
}
.trade-badge svg {
  color: var(--primary);
}
.trade-badge .sub {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted-foreground);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.trust-row.start {
  justify-content: flex-start;
}

/* ---------- Social icons ---------- */
.social-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--foreground);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.social-icons a:hover {
  border-color: var(--primary);
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.social-icons.dark a {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--navy-foreground);
}
.social-icons.dark a:hover {
  border-color: var(--primary);
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.social-icons svg {
  width: 1rem;
  height: 1rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--navy);
  color: var(--navy-foreground);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.25;
}

.hero-bg .placeholder-tile {
  border-radius: 0;
  border: 0;
  height: 100%;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--navy) 0%,
    color-mix(in srgb, var(--navy) 90%, transparent) 55%,
    color-mix(in srgb, var(--navy) 60%, transparent) 100%
  );
}

.hero-inner {
  position: relative;
  max-width: 72rem;
  margin-inline: auto;
  padding: 4rem 1rem;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    padding-block: 6rem;
  }
}

.hero h1 {
  margin-top: 0.75rem;
  font-size: 2.25rem;
  line-height: 1.05;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 3rem;
  }
}
@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.75rem;
  }
}

.hero p.lead {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: 1.125rem;
  color: rgba(245, 244, 239, 0.8);
}

.hero-ctas {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-rating {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.hero-rating p {
  font-size: 0.875rem;
  color: rgba(245, 244, 239, 0.7);
}

.hero-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: var(--card);
  color: var(--card-foreground);
  padding: 1.25rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.15);
}

@media (min-width: 640px) {
  .hero-card {
    padding: 1.5rem;
  }
}

.hero-card h2 {
  font-size: 1.5rem;
}

.hero-card > p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Page hero (non-home pages) */
.page-hero {
  background-color: var(--navy);
  color: var(--navy-foreground);
}

.page-hero-inner {
  max-width: 72rem;
  margin-inline: auto;
  padding: 3.5rem 1rem;
}

.page-hero h1 {
  margin-top: 0.75rem;
  max-width: 48rem;
  font-size: 2.25rem;
}

@media (min-width: 640px) {
  .page-hero h1 {
    font-size: 3rem;
  }
}

.page-hero p.lead {
  margin-top: 1.25rem;
  max-width: 42rem;
  font-size: 1.125rem;
  color: rgba(245, 244, 239, 0.8);
}

.page-hero-ctas {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* ---------- Sections / grids ---------- */
.grid-2 {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.grid-2-narrow {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .grid-2-narrow {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.checklist {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .checklist {
    grid-template-columns: 1fr 1fr;
  }
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.checklist svg {
  margin-top: 0.125rem;
  color: var(--primary);
  flex-shrink: 0;
}

.promise-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .promise-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 1.25rem;
}

.card h3 {
  margin-top: 0.75rem;
  font-size: 1.125rem;
}

.card > p,
.card p.desc {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.card svg.icon-accent {
  color: var(--primary);
}

.services-summary-grid {
  margin-top: 2rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .services-summary-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.services-summary-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 1.5rem;
}

.services-summary-card h3 {
  font-size: 1.5rem;
}

.services-summary-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .services-summary-list {
    grid-template-columns: 1fr 1fr;
  }
}
.services-summary-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.services-summary-list svg {
  margin-top: 0.125rem;
  color: var(--primary);
  flex-shrink: 0;
}

.btn-block {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  height: 2.75rem;
  padding-inline: 1.25rem;
  border-radius: var(--radius-md);
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background-color 0.15s ease;
}
.btn-block:hover {
  background-color: color-mix(in srgb, var(--primary) 90%, black);
}

/* Testimonials */
.testimonial-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 1.5rem;
}
.testimonial-quote {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--foreground);
}
.testimonial-name {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--foreground);
}

/* Recent work strip */
.strip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.media-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .media-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .media-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.media-grid li {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.media-grid .placeholder-tile {
  transition: transform 0.5s ease;
}
.media-grid li:hover .placeholder-tile {
  transform: scale(1.03);
}

.caption-note {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Closing CTA band */
.cta-band {
  background-color: var(--navy);
  color: var(--navy-foreground);
}
.cta-band-inner {
  max-width: 48rem;
  margin-inline: auto;
  padding-inline: 1rem;
  text-align: center;
}
.cta-band h2 {
  margin-top: 0.75rem;
  font-size: 1.875rem;
}
@media (min-width: 640px) {
  .cta-band h2 {
    font-size: 2.25rem;
  }
}
.cta-band p {
  margin-top: 0.75rem;
  color: rgba(245, 244, 239, 0.8);
}
.cta-band .hero-ctas {
  justify-content: center;
}

/* ---------- Placeholder tiles (image/video slots) ---------- */
.placeholder-tile {
  position: relative;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
  padding: 1rem;
  text-align: center;
  background-image: repeating-linear-gradient(
    45deg,
    color-mix(in srgb, var(--navy) 4%, transparent) 0 2px,
    transparent 2px 14px
  );
  background-color: var(--secondary);
}

.placeholder-tile svg {
  width: 2rem;
  height: 2rem;
  color: color-mix(in srgb, var(--muted-foreground) 60%, transparent);
}

.placeholder-tile p {
  font-size: 0.75rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--muted-foreground) 80%, transparent);
}

.aspect-4-3 {
  aspect-ratio: 4 / 3;
}
.aspect-square {
  aspect-ratio: 1 / 1;
}
.aspect-auto {
  aspect-ratio: auto;
  height: 100%;
}
.aspect-16-9 {
  aspect-ratio: 16 / 9;
}

/* ---------- About page ---------- */
.story-text {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
  color: var(--muted-foreground);
}

.stat-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 1rem;
  text-align: center;
}
.stat-card dt {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
}
.stat-card dd {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
}

.values-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .values-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.accred-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .accred-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.accred-card {
  display: flex;
  gap: 0.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 1.25rem;
}
.accred-card svg {
  margin-top: 0.125rem;
  flex-shrink: 0;
  color: var(--primary);
}
.accred-card h3 {
  font-size: 1.125rem;
}
.accred-card p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ---------- Services page ---------- */
.service-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 1.5rem;
  transition: box-shadow 0.15s ease;
}
.service-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.service-card svg {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
}
.service-card h3 {
  margin-top: 1rem;
  font-size: 1.25rem;
}
.service-card p {
  margin-top: 0.5rem;
  flex-grow: 1;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.service-card .btn-block {
  justify-content: center;
  margin-top: 1.25rem;
}

.check-first-panel {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 1.5rem;
}
@media (min-width: 640px) {
  .check-first-panel {
    padding: 2rem;
  }
}
.check-first-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.check-first-head h2 {
  font-size: 1.5rem;
}
@media (min-width: 640px) {
  .check-first-head h2 {
    font-size: 1.875rem;
  }
}
.check-first-head p {
  margin-top: 0.5rem;
  max-width: 36rem;
  color: var(--muted-foreground);
}

/* ---------- Gallery page ---------- */
.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.gallery-toolbar h2 {
  font-size: 1.875rem;
}
@media (min-width: 640px) {
  .gallery-toolbar h2 {
    font-size: 2.25rem;
  }
}

.filter-group {
  display: inline-flex;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 0.25rem;
}

.filter-btn {
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.filter-btn:hover {
  background-color: var(--secondary);
}
.filter-btn.active {
  background-color: var(--primary);
  color: var(--primary-foreground);
}
.filter-btn.active:hover {
  background-color: var(--primary);
}

.ba-grid {
  margin-top: 2rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .ba-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ba-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 1rem;
}
@media (min-width: 640px) {
  .ba-card {
    padding: 1.25rem;
  }
}

.ba-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.ba-card-head h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

.ba-category {
  border-radius: 999px;
  background-color: var(--accent);
  color: var(--accent-foreground);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.ba-location {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.ba-photos {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.ba-photos .label-before,
.ba-photos .label-after {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.ba-photos .label-after {
  color: var(--primary);
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.panel {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 1.25rem;
}
@media (min-width: 640px) {
  .panel {
    padding: 2rem;
  }
}

.panel h2 {
  font-size: 1.5rem;
}
@media (min-width: 640px) {
  .panel h2 {
    font-size: 1.875rem;
  }
}

.panel > p.sub {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.side-stack {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.side-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 1.5rem;
}

.side-card h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.contact-list {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
  font-size: 0.875rem;
}
.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--foreground);
}
.contact-list a:hover {
  color: var(--primary);
}
.contact-list li.addr {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--muted-foreground);
}
.contact-list svg {
  color: var(--primary);
}

.hours-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.hours-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.hours-row dt {
  font-weight: 600;
  color: var(--foreground);
}
.hours-row dd {
  color: var(--muted-foreground);
}

.review-block {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}
.review-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.follow-block {
  margin-top: 1.25rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
.follow-block p {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}
.follow-block .social-icons {
  margin-top: 0.75rem;
}

.map-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
}
.map-section > p {
  margin-top: 0.25rem;
  color: var(--muted-foreground);
}
.map-frame {
  margin-top: 1.25rem;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Quote form ---------- */
.quote-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.field-input {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--input);
  background-color: var(--card);
  padding: 0.625rem 0.75rem;
  font-size: 1rem;
  color: var(--foreground);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field-input::placeholder {
  color: var(--muted-foreground);
}
.field-input:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ring) 40%, transparent);
}

.field-error {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--destructive);
}

.form-note {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  padding-inline: 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}
.form-submit:hover {
  background-color: color-mix(in srgb, var(--primary) 90%, black);
}
.form-submit:disabled {
  opacity: 0.7;
  cursor: default;
}

/* ---------- Toast (replaces sonner) ---------- */
.toast-viewport {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: grid;
  gap: 0.5rem;
  width: min(24rem, calc(100vw - 2rem));
}

.toast {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--card-foreground);
  padding: 0.875rem 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  font-size: 0.875rem;
  animation: toast-in 0.2s ease;
}
.toast strong {
  display: block;
  font-weight: 700;
}
.toast p {
  margin-top: 0.25rem;
  color: var(--muted-foreground);
}
.toast.success {
  border-left: 4px solid #16a34a;
}
.toast.error {
  border-left: 4px solid var(--destructive);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 4rem;
  background-color: var(--navy);
  color: var(--navy-foreground);
}

.footer-grid {
  max-width: 72rem;
  margin-inline: auto;
  padding: 3.5rem 1rem;
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-grid img {
  height: 3.5rem;
  width: auto;
}

.footer-brand-name {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-grid p.desc {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: rgba(245, 244, 239, 0.75);
}

.footer-grid h2 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}

.footer-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
  font-size: 0.875rem;
}
.footer-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-list a:hover {
  color: var(--primary);
}
.footer-list li.muted {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: rgba(245, 244, 239, 0.75);
}

.footer-links {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.footer-links a:hover {
  color: var(--primary);
}

.footer-review {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}
.footer-review .review-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-bottom-inner {
  max-width: 72rem;
  margin-inline: auto;
  padding: 1.25rem 1rem;
  font-size: 0.75rem;
  color: rgba(245, 244, 239, 0.6);
}

/* ---------- 404 ---------- */
.notfound {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background-color: var(--background);
  padding-inline: 1rem;
}
.notfound-inner {
  max-width: 28rem;
  text-align: center;
}
.notfound-inner h1 {
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--foreground);
}
.notfound-inner h2 {
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
}
.notfound-inner p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.notfound-inner .btn-block {
  margin-top: 1.5rem;
}

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


/* =========================================================
   KTCS-style theme layer — white / warm grey / black / orange,
   square corners, thin borders, light headings
   ========================================================= */
body { font-weight: 300; color: #333; }
h1, h2 { font-weight: 300; letter-spacing: -0.01em; line-height: 1.15; }
h3, h4 { font-weight: 400; letter-spacing: 0; }
strong, b { font-weight: 600; }

/* sentence case everywhere except the small section labels */
body *:not(.eyebrow) { text-transform: none !important; }
.eyebrow { color: #444; font-weight: 400; letter-spacing: 0.02em; font-size: 0.9375rem; }

/* buttons: square, black outline or solid orange with black text */
.btn { height: 3.25rem; border-radius: 0; font-size: 1rem; font-weight: 500; letter-spacing: 0; }
.btn-primary { background: var(--primary); color: #000; }
.btn-primary:hover { background: var(--primary-hover); color: #000; }
.btn-outline, .header-quote-btn { background: #fff; color: #000; border: 1px solid #000; }
.btn-outline:hover, .header-quote-btn:hover { background: #000; color: #fff; }
.btn-outline-dark { border-color: rgba(255,255,255,.5); }

/* header: plain white with a hairline */
.site-header { background: #fff; backdrop-filter: none; border-bottom: 1px solid #e3e3e3; }

/* boxes: thin grey border, no radius, no shadow */
.card, .services-summary-card, .hero-card, .field-input, .quote-form { border-radius: 0; box-shadow: none; }
.card { border: 1px solid #dcdcdc; padding: 1.75rem; background: #fff; }
.bg-secondary-soft { background: #f3f1f2; }
.card svg.icon-accent { color: #000; }
.ba-category,
.rating-badge,
.social-icons a { border-radius: 0; }

/* keyboard focus */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---- Gallery: "Latest projects" cards (KTCS-style) ---- */
.project-grid { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 2rem 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }
.project-card a { display: block; color: inherit; text-decoration: none; }
.project-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #141414; }
.project-media img, .project-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-arrow { position: absolute; right: 1rem; bottom: 1rem; width: 3.25rem; height: 3.25rem; display: grid; place-items: center; background: #000; color: #fff; border: 1px solid #333; }
.project-card a:hover .project-arrow { background: var(--primary); color: #000; border-color: var(--primary); }
.project-card .eyebrow { margin-top: 1rem; color: #aaa; text-transform: uppercase !important; letter-spacing: 0.04em; font-size: 0.875rem; }
.project-card h3 { margin-top: 0.5rem; font-size: 1.5rem; font-weight: 300; line-height: 1.3; color: #fff; }

/* ---------- Official brand logos (Google, social, trade badges) ---------- */
.brand-g {
  width: 1.375rem;
  height: 1.375rem;
  flex: none;
  padding: 3px;
  border-radius: 999px;
  background: #fff;
  box-sizing: border-box;
}

/* social icons: white tile so the real brand colours read on light AND dark backgrounds */
.social-icons a,
.social-icons.dark a {
  width: 2.5rem;
  height: 2.5rem;
  background-color: #fff;
  border-color: rgba(0, 0, 0, 0.12);
}
.social-icons a img {
  display: block;
  width: 1.375rem;
  height: 1.375rem;
}
.social-icons a:hover,
.social-icons.dark a:hover {
  background-color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

/* Checkatrade / TrustATrader: real logos on a white plate */
.trade-badge.logo-badge {
  background-color: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 0;
  padding: 0.5rem 0.875rem;
  min-height: 3.5rem;
  justify-content: center;
}
.trade-badge.logo-badge:hover {
  background-color: #fff;
  border-color: var(--primary);
}
.trade-badge.logo-badge img {
  display: block;
  height: 1.75rem;
  width: auto;
  max-width: 100%;
}
.trade-badge.logo-badge img[alt^="TrustATrader"] {
  height: 2.75rem;
}

/* keep footer logo sizing (.footer-grid img) from enlarging the brand icons/badges */
.footer-grid .brand-g { width: 1.375rem; height: 1.375rem; }
.footer-grid .social-icons a img { width: 1.375rem; height: 1.375rem; }
.footer-grid .trade-badge.logo-badge img { height: 1.75rem; width: auto; }
.footer-grid .trade-badge.logo-badge img[alt^="TrustATrader"] { height: 2.75rem; }

/* ---------- Gallery: before/after photo tiles ---------- */
.ba-img {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: var(--secondary);
}
.ba-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.ba-img:hover img { transform: scale(1.03); }

/* ---------- Gallery: masonry layout for "Latest projects" ---------- */
.project-grid.masonry {
  display: block;
  column-count: 1;
  column-gap: 1.5rem;
}
@media (min-width: 640px)  { .project-grid.masonry { column-count: 2; } }
@media (min-width: 1024px) { .project-grid.masonry { column-count: 3; } }
.project-grid.masonry .project-card {
  break-inside: avoid;
  margin-bottom: 2rem;
}
.project-grid.masonry .project-media { aspect-ratio: auto; }
.project-grid.masonry .project-media img { height: auto; }
.project-grid.masonry .project-media video { height: auto; aspect-ratio: 16 / 9; }
.ba-img::before {
  content: attr(data-tag);
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 1;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ba-photos > div:last-child .ba-img::before { background: var(--primary); color: #000; }

/* ---- Areas we cover ---- */
.coverage .section-head { margin-bottom: 1.5rem; }
.coverage-groups { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.25rem; }
.coverage-highlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--primary);
  border-left-width: 6px;
  background-color: var(--accent);
  color: var(--accent-foreground);
}
.coverage-highlight .icon-lg { color: var(--primary-hover); flex-shrink: 0; }
.coverage-highlight h3 { margin: 0; font-size: 1.125rem; }
.coverage-highlight p { margin: 0.15rem 0 0; color: var(--muted-foreground); }
.coverage-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.coverage-list li {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background-color: var(--card);
  font-size: 0.9rem;
  font-weight: 500;
}
.coverage-list--featured li {
  border-color: var(--primary);
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
}
.coverage-sub { margin: 0.5rem 0 0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-foreground); }
.coverage-note { margin: 0.5rem 0 0; color: var(--muted-foreground); }
.coverage-note a { color: var(--primary-hover); font-weight: 600; text-decoration: underline; }
.coverage .map-frame { margin-top: 1.5rem; }
