:root {
  --navy: #062b66;
  --navy-2: #0a3f8f;
  --green: #42a618;
  --green-2: #2d7f13;
  --yellow: #f5ca25;
  --white: #ffffff;
  --gray-50: #f7fafc;
  --gray-100: #edf2f7;
  --gray-300: #cbd5e1;
  --gray-600: #536174;
  --gray-900: #132033;
  --shadow: 0 22px 60px rgba(6, 43, 102, 0.14);
  --shadow-soft: 0 14px 36px rgba(19, 32, 51, 0.1);
  --radius: 8px;
  --radius-lg: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

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

code {
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
  background: var(--gray-100);
  color: var(--navy);
  font-size: 0.92em;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--navy);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 96px 0;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
}

.nav {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  width: min(100% - 32px, 1240px);
  min-height: 108px;
  margin-inline: auto;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  color: var(--navy);
}

.brand img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.28));
}

.brand span {
  display: none;
}

.nav-links {
  display: none;
  justify-content: center;
  gap: 26px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-600);
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--navy);
}

.header-call,
.btn,
.floating-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: var(--radius);
  font-weight: 900;
  line-height: 1;
}

.header-call {
  display: none;
  padding: 0 18px;
  color: var(--white);
  background: var(--green);
  box-shadow: 0 10px 22px rgba(66, 166, 24, 0.2);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
}

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  overflow: hidden;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 43, 102, 0.92), rgba(6, 43, 102, 0.7) 43%, rgba(6, 43, 102, 0.2)),
    url("assets/hero-california-home.png") center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  right: -8vw;
  bottom: -18vw;
  width: 48vw;
  aspect-ratio: 1;
  border: 34px solid rgba(245, 202, 37, 0.28);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: 58px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--yellow);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(2.85rem, 6vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 3.6vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.18rem;
  line-height: 1.22;
}

.hero-subtitle {
  max-width: 790px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  min-width: 180px;
  padding: 0 22px;
  border: 0;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover,
.btn:focus,
.header-call:hover,
.header-call:focus,
.floating-call:hover,
.floating-call:focus {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 16px 30px rgba(66, 166, 24, 0.24);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--green-2);
}

.btn-secondary {
  color: var(--navy);
  background: var(--white);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-row span {
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 800;
}

.hero-panel {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-logo {
  width: min(100%, 520px);
  height: auto;
  border-radius: 28px;
  filter: drop-shadow(0 34px 48px rgba(0, 0, 0, 0.32));
}

.stats-band {
  padding: 28px 0;
  background: var(--gray-50);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stats-grid div {
  padding: 18px 20px;
  border-left: 4px solid var(--yellow);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.stats-grid strong {
  display: block;
  color: var(--navy);
  font-size: 1.45rem;
  line-height: 1;
}

.stats-grid span {
  display: block;
  margin-top: 6px;
  color: var(--gray-600);
  font-size: 0.95rem;
  font-weight: 700;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 42px;
}

.section-heading p:last-child {
  margin: 18px 0 0;
  color: var(--gray-600);
  font-size: 1.08rem;
}

.services-grid,
.why-grid,
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card,
.why-card,
.review-card {
  padding: 28px;
  border: 1px solid rgba(6, 43, 102, 0.08);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover,
.why-card:hover,
.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.service-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 50%;
  color: var(--navy);
  background: linear-gradient(135deg, var(--yellow), #fff5b6);
  font-weight: 900;
}

.service-card p,
.why-card p,
.split-copy p,
.contact-section p,
.footer p {
  color: var(--gray-600);
}

.split-section,
.quote-section {
  background: linear-gradient(180deg, var(--gray-50), var(--white));
}

.split-grid,
.quote-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.feature-list {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.feature-list div {
  padding: 22px;
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.feature-list p {
  margin: 8px 0 0;
}

.image-stack {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 18px;
  align-items: end;
}

.image-stack img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.image-stack img:nth-child(2) {
  aspect-ratio: 1;
  margin-bottom: 42px;
  border: 8px solid var(--white);
}

.about-photo {
  position: relative;
}

.about-photo::before {
  content: "";
  position: absolute;
  inset: 28px -18px -18px 34px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(66, 166, 24, 0.16), rgba(245, 202, 37, 0.22));
}

.about-photo img {
  position: relative;
  width: 100%;
  max-height: 720px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border: 10px solid var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.why-section {
  background:
    linear-gradient(135deg, rgba(6, 43, 102, 0.96), rgba(10, 63, 143, 0.92)),
    url("assets/gallery-11.jfif") center / cover;
}

.why-section h2,
.why-section h3 {
  color: var(--white);
}

.why-section .eyebrow {
  color: var(--yellow);
}

.why-card {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.why-card p {
  color: rgba(255, 255, 255, 0.78);
}

.reviews-section {
  background: var(--gray-50);
}

.review-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94)),
    linear-gradient(135deg, rgba(66, 166, 24, 0.16), rgba(245, 202, 37, 0.16));
}

.review-rating {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  color: var(--navy);
  background: rgba(245, 202, 37, 0.32);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.review-card p {
  margin: 0 0 22px;
  color: var(--gray-600);
  font-size: 1.04rem;
}

.review-card strong,
.review-card span {
  display: block;
}

.review-card strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.review-card span {
  margin-top: 4px;
  color: var(--gray-600);
  font-size: 0.92rem;
  font-weight: 700;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, filter 180ms ease;
}

.gallery-grid img:hover {
  transform: scale(1.025);
  filter: saturate(1.08);
}

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

.quote-copy {
  position: sticky;
  top: 116px;
}

.contact-card {
  margin-top: 28px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}

.contact-card h3 {
  color: var(--white);
}

.contact-card a {
  display: inline-block;
  margin-top: 10px;
  color: var(--yellow);
  font-size: 1.45rem;
  font-weight: 900;
}

.contact-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.quote-form {
  display: grid;
  gap: 18px;
  padding: 30px;
  border: 1px solid rgba(6, 43, 102, 0.08);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 16px;
}

.form-row.two {
  grid-template-columns: repeat(2, 1fr);
}

.form-row.three {
  grid-template-columns: repeat(3, 1fr);
}

label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  color: var(--gray-900);
  background: var(--white);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(66, 166, 24, 0.14);
}

.form-submit {
  width: 100%;
  margin-top: 4px;
}

.form-note {
  margin: -4px 0 0;
  color: var(--gray-600);
  font-size: 0.9rem;
  text-align: center;
}

.form-status {
  display: none;
  padding: 16px;
  border-radius: var(--radius);
  color: var(--navy);
  background: #eef9e9;
  font-weight: 800;
}

.form-status.is-visible {
  display: block;
}

.contact-section {
  background: var(--gray-50);
}

.contact-grid {
  grid-template-columns: 1fr 0.72fr;
}

.contact-details {
  display: grid;
  gap: 14px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.contact-details a {
  color: var(--green-2);
  font-size: 1.5rem;
  font-weight: 900;
}

.icon-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.icon-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: 0 !important;
  border-radius: 50%;
  color: var(--white) !important;
  background: var(--navy);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.icon-button:hover,
.icon-button:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.icon-button svg,
.floating-call svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.instagram-icon {
  background: linear-gradient(135deg, #405de6, #c13584 54%, #f5ca25);
}

.phone-icon {
  background: var(--green);
}

.contact-card .icon-links {
  margin-top: 14px;
}

.footer-icons {
  margin-bottom: 16px;
}

address {
  color: var(--gray-600);
  font-style: normal;
}

.footer {
  padding: 62px 0 0;
  color: rgba(255, 255, 255, 0.78);
  background: #041f4d;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  gap: 42px;
}

.footer-brand {
  color: var(--white);
}

.footer-brand img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.footer h2 {
  margin-bottom: 18px;
  color: var(--white);
  font-size: 1rem;
}

.footer a {
  display: block;
  margin-bottom: 10px;
}

.footer a:hover,
.footer a:focus {
  color: var(--yellow);
}

.footer-bottom {
  margin-top: 44px;
  padding: 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.floating-call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 850;
  width: 58px;
  height: 58px;
  min-height: 58px;
  padding: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  box-shadow: var(--shadow);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .section {
    padding: 74px 0;
  }

  .nav {
    display: flex;
    grid-template-columns: none;
  }

  .menu-toggle {
    display: none;
    justify-self: end;
  }

  .nav-links {
    position: absolute;
    top: 82px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    border: 1px solid rgba(6, 43, 102, 0.1);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 14px;
    border-radius: var(--radius);
  }

  .nav-links a:hover {
    background: var(--gray-50);
  }

  .hero-grid,
  .split-grid,
  .quote-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 84px 0;
  }

  .hero-panel {
    justify-content: flex-start;
    max-width: 360px;
  }

  .stats-grid,
  .services-grid,
  .why-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .quote-copy {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .brand span {
    display: none;
  }

  .header-call {
    display: none;
  }

  .nav {
    grid-template-columns: none;
    min-height: 76px;
  }

  .menu-toggle {
    grid-column: 2;
  }

  .nav-links {
    top: 76px;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .hero-logo {
    width: min(78vw, 330px);
  }

  .stats-grid,
  .services-grid,
  .why-grid,
  .reviews-grid,
  .form-row.two,
  .form-row.three,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .quote-form {
    padding: 20px;
  }

  .image-stack {
    grid-template-columns: 1fr;
  }

  .image-stack img:nth-child(2) {
    margin-bottom: 0;
  }

  .about-photo::before {
    inset: 18px -8px -10px 18px;
  }

  .floating-call {
    left: auto;
    right: 14px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
