:root {
  --color-primary: #17324d;
  --color-accent: #d8a33d;
  --color-bg: #f4efe7;
  --color-surface: #fffaf2;
  --color-text: #1f2b33;
  --color-text-muted: #5b6670;
  --color-border: rgba(23, 50, 77, 0.14);
  --font-display: "Barlow", sans-serif;
  --font-body: "Barlow", sans-serif;
  --radius: 1rem;
  --radius-lg: 1.75rem;
  --shadow-soft: 0 18px 45px rgba(20, 35, 50, 0.1);
  --spacing-section: clamp(4rem, 8vw, 8rem);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { max-width: 100%; display: block; }
html { scroll-behavior: smooth; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; }

body {
  min-width: 320px;
  font-family: var(--font-body);
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(216, 163, 61, 0.16), transparent 30%),
    linear-gradient(180deg, #fbf7f1 0%, var(--color-bg) 100%);
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

::selection {
  background: rgba(216, 163, 61, 0.28);
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

header {
  background: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header.scrolled {
  background: rgba(12, 27, 42, 0.82);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-badge {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  background: linear-gradient(145deg, var(--color-accent), #c28b23);
  color: var(--color-primary);
  font-weight: 800;
  font-size: 1.4rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.brand-copy {
  display: grid;
  color: #fff;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand-copy span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

nav a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

nav a.active,
nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  width: min(100%, 43rem);
}

.hero-eyebrow,
.section-label {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-eyebrow {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

#hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 12ch;
}

.hero-tagline {
  margin-top: 1.2rem;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 700;
  max-width: 34rem;
}

.hero-sub {
  margin-top: 1rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.6rem;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--color-accent), #c99027);
  color: var(--color-primary);
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-soft);
}

section:not(#hero) {
  padding: var(--spacing-section) 0;
}

.section-label {
  color: var(--color-accent);
  margin-bottom: 0.85rem;
}

.section-grid {
  display: grid;
  gap: 2rem;
}

.section-heading h2,
#services h2,
#contact h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.about-grid {
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 1.1rem;
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

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

.trust-item,
.service-card,
.contact-card,
.form-card {
  background: rgba(255, 250, 242, 0.86);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
  font-weight: 700;
}

.trust-item svg {
  width: 1.45rem;
  height: 1.45rem;
  color: var(--color-accent);
  flex-shrink: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.services-grid.count-5 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.service-card {
  padding: 1.5rem;
}

.service-card svg {
  width: 2rem;
  height: 2rem;
  color: var(--color-accent);
}

.service-card h3 {
  margin-top: 1.1rem;
  font-size: 1.3rem;
  line-height: 1.05;
}

.service-card p {
  margin-top: 0.8rem;
  color: var(--color-text-muted);
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.contact-card,
.form-card {
  padding: 1.6rem;
  height: 100%;
}

.phone-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-primary);
}

.contact-block {
  margin-top: 1.5rem;
}

.contact-block h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
}

.hours-list {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(23, 50, 77, 0.08);
  font-size: 0.97rem;
}

.form-row {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.form-row label {
  font-weight: 700;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(23, 50, 77, 0.18);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
}

.form-row textarea {
  resize: vertical;
  min-height: 10rem;
}

.form-row input.error,
.form-row textarea.error,
.form-row input:invalid.error,
.form-row textarea:invalid.error {
  border-color: #a33232;
  background: #fff2f2;
}

.btn-submit {
  width: 100%;
}

.form-success {
  display: grid;
  gap: 0.9rem;
  color: var(--color-text);
}

.form-success[hidden] {
  display: none;
}

.form-success p:first-child {
  font-size: 1.35rem;
  font-weight: 800;
}

.form-success a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
}

footer {
  padding: 1.5rem 0 2rem;
  color: var(--color-text-muted);
}

.footer-wrap {
  display: grid;
  gap: 0.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(23, 50, 77, 0.12);
}

@media (prefers-reduced-motion: no-preference) {
  nav a,
  .btn-primary,
  .service-card,
  .trust-item,
  .form-row input,
  .form-row textarea {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }

  .btn-primary:hover,
  .btn-primary:focus-visible {
    transform: translateY(-2px);
  }

  .service-card:hover,
  .trust-item:hover {
    transform: translateY(-4px);
  }

  section[data-reveal] {
    opacity: 0;
    transform: translateY(2rem);
  }

  section.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
}

:focus-visible {
  outline: 3px solid rgba(216, 163, 61, 0.6);
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .nav-wrap {
    padding: 1rem 0;
  }

  .about-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 3rem;
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid.count-5 {
    grid-template-columns: repeat(6, 1fr);
  }

  .services-grid.count-5 .service-card {
    grid-column: span 2;
  }

  .services-grid.count-5 .service-card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .services-grid.count-5 .service-card:nth-child(5) {
    grid-column: 4 / span 2;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: stretch;
  }

  .contact-card,
  .form-card {
    padding: 2rem;
  }
}

@media (min-width: 1200px) {
  .trust-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .service-card {
    padding: 1.7rem;
  }
}
