/* GCC Home Inspections — sage palette */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  --color-brand-sage: #87ae73;
  --color-brand-sage-hover: #6f9559;
  --color-brand-sage-light: #a5c494;
  --color-brand-sage-lighter: #b8d0a8;
  --color-brand-sage-pale: #d4e8ca;
  --color-brand-sage-dark: #5a7a4a;
  --color-brand-sage-deep: #3d5233;
  --color-brand-teal: var(--color-brand-sage);
  --color-brand-teal-hover: var(--color-brand-sage-hover);
  --color-brand-teal-light: var(--color-brand-sage-light);
  --color-brand-orange: var(--color-brand-sage);
  --color-brand-orange-hover: var(--color-brand-sage-hover);
  --color-brand-orange-light: var(--color-brand-sage-light);
  --color-brand-black: var(--color-brand-sage-deep);
  --color-brand-charcoal: var(--color-brand-sage-dark);
  --color-primary: var(--color-brand-sage);
  --color-primary-hover: var(--color-brand-sage-hover);
  --color-primary-light: var(--color-brand-sage-light);
  --color-heading: var(--color-brand-sage-deep);
  --color-surface-dark: var(--color-brand-sage-deep);
  --color-primary-dark: var(--color-heading);
  --color-accent: var(--color-brand-sage);
  --color-accent-hover: var(--color-brand-sage-hover);
  --color-accent-soft: #b8d0a8;
  --color-text: #2a3526;
  --color-text-muted: #5c6b54;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f8f1;
  --color-border: #d4e4cc;
  --color-tint: #eaf2e6;
  --oe-teal: var(--color-brand-sage);
  --oe-teal-light: var(--color-tint);
  --oe-teal-dark: var(--color-brand-sage-hover);
  --font-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --shadow-sm: 0 2px 8px rgba(61, 82, 51, 0.06);
  --shadow-md: 0 8px 24px rgba(135, 174, 115, 0.14);
  --radius: 12px;
  --radius-pill: 50px;
  --header-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

/* Top contact bar */
.top-bar {
  background: var(--color-surface-dark);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  min-height: 38px;
  padding-block: 0.4rem;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: color 0.2s;
}

.top-bar a:hover {
  color: var(--color-accent-soft);
  text-decoration: none;
}

.top-bar-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.top-bar-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.25);
}

.top-bar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.social-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.social-icon:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.social-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Sticky main nav only (top contact bar scrolls away) */
.main-nav-sticky {
  position: sticky;
  top: 0;
  z-index: 300;
}

/* Main header */
.site-header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(26, 26, 26, 0.06);
  border-bottom-color: rgba(135, 174, 115, 0.2);
}

.site-header.is-scrolled {
  box-shadow: 0 6px 28px rgba(26, 26, 26, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.92;
  transform: scale(1.02);
}

.logo-img {
  height: 56px;
  width: auto;
  max-width: min(240px, 42vw);
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

.nav-mobile-header .logo-img {
  height: 44px;
  max-width: 180px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 14px rgba(135, 174, 115, 0.35);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-weight: 700;
  color: #000;
}

.logo-text small {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  max-width: calc(100% - 220px);
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  background: var(--oe-teal-light);
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.nav-link {
  display: block;
  padding: 0.5rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  position: relative;
}

.nav-link:hover {
  color: var(--color-primary);
  background: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.nav-link.active {
  color: var(--color-heading);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.nav-link.active::before {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.nav-link-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 0.55rem 1.15rem !important;
  margin-left: 0.25rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(135, 174, 115, 0.3);
}

.nav-link-cta:hover {
  background: var(--color-primary-hover);
  color: #fff !important;
  transform: translateY(-1px);
}

.nav-link-cta.active::before {
  display: none;
}

/* Legacy nav (pages not yet migrated) */
.nav-desktop {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  max-width: 72%;
}

.nav-desktop a {
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.8rem;
  white-space: nowrap;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--color-primary);
  text-decoration: none;
}

.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  font-weight: 600 !important;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  color: var(--color-primary);
  transition: background 0.2s, border-color 0.2s;
}

.menu-toggle:hover {
  background: #fff;
  border-color: var(--color-primary);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.5);
  z-index: 150;
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-overlay.is-open {
  display: block;
  opacity: 1;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100vh;
  height: 100dvh;
  background: #fff;
  z-index: 2280;
  flex-direction: column;
  padding: 1.25rem;
  gap: 0.25rem;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.nav-mobile.open {
  display: flex;
  transform: translateX(0);
}

.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.nav-mobile-close {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--color-bg-alt);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--color-primary);
  line-height: 1;
}

.nav-mobile a,
.nav-mobile .nav-link {
  display: block;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.2s;
}

.nav-mobile a:hover,
.nav-mobile .nav-link:hover {
  background: var(--color-bg-alt);
  text-decoration: none;
}

.nav-mobile .nav-link-cta {
  margin-top: 0.75rem;
  text-align: center;
  background: var(--color-primary);
  color: #fff !important;
  border-radius: var(--radius-pill);
}

.nav-mobile-contact {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.nav-mobile-contact a {
  font-weight: 500;
  padding: 0.35rem 0;
}

.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-surface-dark) 0%, var(--color-brand-charcoal) 55%, var(--color-brand-sage-dark) 100%);
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-block: 3.5rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
}

.hero-lead {
  max-width: 640px;
  font-size: 1.1rem;
  opacity: 0.95;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(135, 174, 115, 0.28);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.stats {
  background: var(--color-bg-alt);
  padding: 3rem 0;
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2rem;
}

.stat-item {
  text-align: center;
  padding: 0.5rem;
}

.stat-number {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
}

.stat-number.stat-text {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.stat-label {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-heading);
}

.section-header p {
  margin: 0;
  color: var(--color-text-muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.service-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--color-primary);
}

.service-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--oe-teal-light);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--color-primary);
  font-size: 1.25rem;
}

.service-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--color-heading);
}

.service-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.notice-box {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--oe-teal-light);
  border-left: 4px solid var(--color-primary);
  /* border-radius: 0 var(--radius) var(--radius) 0; */
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 26px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.profile-photo {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-tint);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-content h2 {
  margin: 0 0 0.25rem;
  color: var(--color-heading);
}

.profile-badge {
  display: inline-block;
  background: var(--color-tint);
  color: var(--color-brand-orange-hover);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.credentials-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.credentials-list li {
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
  font-size: 0.95rem;
}

.credentials-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.profile-meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.value-card h3 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.1rem;
  color: var(--color-heading);
}

.value-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.value-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  background: var(--oe-teal-light);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(2.75rem, 6vw, 4rem) 0;
  background-color: var(--color-surface-dark);
  background-image:
    linear-gradient(135deg, rgba(61, 82, 51, 0.88) 0%, rgba(26, 38, 24, 0.78) 100%),
    var(--page-hero-image, url("../images/banner/banner-1.jpg"));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
}

.page-hero h1 {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.page-breadcrumb {
  flex: 0 1 auto;
  margin-left: auto;
}

.page-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  line-height: 1.4;
}

.page-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.92);
}

.page-breadcrumb-item:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: rgba(255, 255, 255, 0.65);
}

.page-breadcrumb-item a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.page-breadcrumb-item a:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.page-breadcrumb-item span {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

@media (max-width: 768px) {
  .page-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-breadcrumb {
    margin-left: 0;
    width: 100%;
  }

  .page-breadcrumb-list {
    justify-content: flex-start;
  }
}

.price-intro {
  max-width: 800px;
  margin: 0 auto 2rem;
  color: var(--color-text-muted);
}

.price-table-wrap {
  overflow-x: auto;
  /* border-radius: var(--radius); */
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.price-table th,
.price-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.price-table th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
}

.price-table tr:nth-child(even) td {
  background: var(--color-bg-alt);
}

.price-table tr:hover td {
  background: var(--color-tint);
}

.price-notes {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.price-notes h3 {
  color: var(--color-heading);
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
}

.price-notes ul {
  margin: 0;
  padding-left: 1.25rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info h2 {
  margin-top: 0;
  color: var(--color-heading);
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--oe-teal-light);
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-form {
  background: var(--color-bg-alt);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--color-heading);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

.form-success {
  display: none;
  padding: 1rem;
  background: #d4edda;
  color: #155724;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.form-success.show {
  display: block;
}

.form-error {
  display: none;
  padding: 1rem;
  background: #f8d7da;
  color: #721c24;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.form-error.show {
  display: block;
}

.form-error a {
  color: #721c24;
  font-weight: 600;
}

.site-footer {
  background: var(--color-surface-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1.25fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
  align-items: start;
}

.footer-logo-wrap {
  display: inline-block;
  background: #fff;
  padding: 1rem 1.35rem;
  border-radius: 12px;
  margin-bottom: 1.35rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: opacity 0.2s, transform 0.2s;
}

.footer-logo-wrap:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  text-decoration: none;
}

.footer-logo {
  display: block;
  height: auto;
  width: auto;
  max-width: min(280px, 100%);
  max-height: 80px;
  object-fit: contain;
}

.footer-about p {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
}

.footer-about p:last-child {
  margin-bottom: 0;
}

.site-footer h3 {
  color: #fff;
  font-size: 1.05rem;
  margin: 0 0 1.1rem;
  font-weight: 700;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-accent-soft);
  text-decoration: none;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.footer-contact-list li:last-child {
  margin-bottom: 0;
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--color-primary);
  border-radius: 10px;
  color: #fff;
}

.footer-contact-icon svg {
  width: 18px;
  height: 18px;
}

.footer-contact-list a,
.footer-contact-text {
  font-size: 0.9rem;
  line-height: 1.5;
  padding-top: 0.45rem;
  color: rgba(255, 255, 255, 0.88);
}

.footer-contact-text {
  display: block;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-surface-dark);
  color: #fff;
  padding: 1rem;
  z-index: 200;
  display: none;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.cookie-banner.show {
  display: block;
}

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1140px;
  margin: 0 auto;
  width: 92vw;
}

.cookie-inner p {
  margin: 0;
  flex: 1;
  min-width: 200px;
  font-size: 0.9rem;
}

.cookie-inner .btn {
  flex-shrink: 0;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 280;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(135, 174, 115, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background 0.2s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-primary-hover);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--color-heading);
  outline-offset: 3px;
}

.back-to-top--raised {
  bottom: 5.5rem;
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    max-width: 220px;
    margin: 0 auto;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-logo-wrap {
    padding: 0.85rem 1rem;
  }

  .footer-logo {
    max-height: 64px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) and (min-width: 601px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid .testimonial-card:last-child {
    grid-column: 1 / -1;
    max-width: 560px;
    margin-inline: auto;
    width: 100%;
  }
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  color: var(--color-text-muted);
}

.page-content h2 {
  color: var(--color-heading);
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
}

.page-content h2:first-child {
  margin-top: 0;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.insight-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.insight-card:hover {
  box-shadow: var(--shadow-sm);
}

.insight-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--color-heading);
}

.insight-card .meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.insight-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.referral-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.referral-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.referral-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--color-heading);
}

.referral-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 2rem 1.75rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.testimonial-stars {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  line-height: 1;
}

.testimonial-card blockquote {
  flex: 1;
  margin: 0 0 1.5rem;
  padding: 0;
  border: none;
}

.testimonial-card blockquote p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-text);
  font-style: italic;
}

.testimonial-author {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-heading);
}

.testimonial-author span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* Public photo gallery */
.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.photo-gallery-item {
  margin: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}

.photo-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.photo-gallery-item a {
  display: block;
  text-decoration: none;
}

.photo-gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.photo-gallery-item figcaption {
  padding: 1rem 1.15rem;
}

.photo-gallery-item figcaption strong {
  display: block;
  color: var(--color-heading);
  font-size: 0.95rem;
}

.photo-gallery-item figcaption span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.report-preview {
  background: var(--color-bg-alt);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 1.5rem;
}

.report-preview p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 1.25rem;
}

.document-actions--below {
  justify-content: center;
  margin-top: 1.25rem;
  margin-bottom: 0;
}

.pdf-viewer-wrapper {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-alt);
  box-shadow: var(--shadow-sm);
}

.pdf-viewer {
  display: block;
  width: 100%;
  min-height: min(78vh, 920px);
  height: 78vh;
  border: none;
  background: #fff;
}

@media (max-width: 768px) {
  .pdf-viewer {
    min-height: 65vh;
    height: 65vh;
  }

  .document-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .document-actions .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 1100px) {
  .main-nav,
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .logo {
    max-width: none;
  }

  .top-bar-inner {
    justify-content: center;
    text-align: center;
  }

  .top-bar-left {
    justify-content: center;
  }

  .topbar-social {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .top-bar-item {
    width: 100%;
    justify-content: center;
  }

  .top-bar-links {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 360px;
  }
}
