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

:root {
  --sky: #6ec1cf;
  --sky-deep: #4fa7ba;
  --sand: #f3efe6;
  --ink: #0b1f2a;
  --ink-soft: #1a2f3b;
  --orange: #f26a2e;
  --orange-deep: #d44a14;
  --white: #ffffff;
  --muted: #4a606c;
  --shadow: 0 24px 60px rgba(7, 17, 22, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--sand);
  min-height: 100vh;
}

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

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

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1.25rem 5vw;
  color: var(--white);
  background: transparent;
}

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

.logo-img {
  height: 54px;
  width: auto;
}

.nav {
  display: flex;
  gap: 1rem;
  font-weight: 400;
  margin-left: auto;
}

.nav a {
  padding: 0.4rem 0.6rem;
  transition: background 0.2s ease, color 0.2s ease;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  border-bottom-color: var(--orange);
  color: var(--white);
}

.brand {
  margin-right: auto;
}

.site-header .cta-button {
  margin-left: 0.5rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 6px auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 42, 0.95);
  color: var(--white);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 20;
  padding: 2rem 5vw;
}

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

.nav-close {
  position: absolute;
  top: 1.25rem;
  right: 5vw;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  padding: 0.5rem 1rem;
  font: inherit;
  cursor: pointer;
}

.nav-overlay-links {
  display: grid;
  gap: 1.25rem;
  text-align: center;
  font-size: 1.6rem;
  font-family: "Anton", "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
}

.nav-overlay-links a {
  color: var(--white);
}

.nav-overlay-links a:hover {
  color: var(--orange);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  border: none;
  box-shadow: 0 16px 30px rgba(242, 106, 46, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(242, 106, 46, 0.32);
}

.cta-dark {
  background: var(--white);
  color: var(--ink);
}

.secondary-link {
  font-weight: 600;
  color: var(--ink);
}

.secondary-link[href]::after {
  content: " →";
}

.light-link {
  color: var(--white);
}

main {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
  padding: 0 0 4rem;
}

section {
  scroll-margin-top: 120px;
}

.eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--white);
}

.section-header .eyebrow,
.estimate-copy .eyebrow {
  color: var(--ink);
}

h1,
h2,
h3 {
  margin: 0 0 0.6rem;
  font-family: "Anton", "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h3 {
  font-size: 1.2rem;
}

.lede {
  margin: 0 0 1.5rem;
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.72);
}

.hero {
  min-height: 80vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 7.5rem 5vw 4rem;
  color: var(--white);
  background: url("../images/hero.jpg") center 70%/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(6, 16, 22, 0.86), rgba(6, 16, 22, 0.45));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.stat-block {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.stat-number {
  display: block;
  font-size: 1.4rem;
  font-family: "Anton", "Segoe UI", sans-serif;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.65);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.trust-item {
  padding: 0.85rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(6, 16, 22, 0.6);
  font-weight: 600;
}

.section-header {
  max-width: 760px;
  padding: 0 5vw;
}

.about-header {
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 2rem;
  align-items: center;
  max-width: none;
}

.about-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-icon {
  width: 200px;
  height: auto;
}

.feature-band {
  background: var(--orange-deep);
  color: var(--white);
  padding: 1.75rem 5vw;
  margin-top: -4.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.feature-item {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 1.25rem;
}

.feature-item:first-child {
  border-left: none;
  padding-left: 0;
}

.feature-top {
  display: block;
  font-family: "Anton", "Segoe UI", sans-serif;
  font-size: 2.1rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.feature-item p {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
}

.pillar-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  padding: 0 5vw;
}

.pillar-grid {
  margin-top: 2.5rem;
}

.services {
  position: relative;
  padding: 3.5rem 0;
  color: var(--white);
  background: url("../images/dampier.jpg") center center/cover no-repeat;
}

.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 16, 22, 0.7);
}

.services .section-header,
.services .service-grid {
  position: relative;
  z-index: 1;
}

.services .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.services .section-header p {
  color: rgba(255, 255, 255, 0.75);
}

.services .service-card {
  background: rgba(6, 16, 22, 0.65);
  border-top-color: rgba(255, 255, 255, 0.6);
}

.services .service-card p {
  color: rgba(255, 255, 255, 0.75);
}

.pillar-card,
.service-card {
  background: var(--white);
  padding: 1.5rem;
  border-top: 4px solid var(--ink);
}

.pillar-card p,
.service-card p {
  margin: 0;
  color: var(--muted);
}

.estimate {
  background: linear-gradient(120deg, rgba(79, 167, 186, 0.12), rgba(242, 106, 46, 0.06));
  padding: 3rem 5vw;
}

.services + .estimate {
  margin-top: -4.5rem;
}

.estimate + .contact {
  margin-top: -4.5rem;
}

.estimate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 2rem;
}

.estimate-copy {
  grid-column: 1;
  grid-row: 1;
}

.estimate-panel {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.estimate-media {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  gap: 1.5rem;
}

.estimate-copy {
  padding-right: 1rem;
}

.estimate-copy p {
  color: var(--muted);
}

.estimate-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.6rem;
}

.estimate-list li {
  padding-left: 1.2rem;
  position: relative;
  font-weight: 600;
}

.estimate-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--orange);
}

.estimate-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.estimate-feature {
  padding-top: 0.75rem;
  border-top: 2px solid rgba(11, 31, 42, 0.12);
}

.estimate-feature span {
  display: block;
  font-family: "Anton", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.estimate-feature p {
  margin: 0;
  color: var(--muted);
}

.estimate-panel {
  display: grid;
  gap: 1rem;
  background: var(--white);
  padding: 1.75rem;
  border: 1px solid rgba(11, 31, 42, 0.1);
  perspective: 1200px;
}

.estimate-panel-card {
  position: relative;
  min-height: 520px;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.estimate-panel-card.is-flipped {
  transform: rotateY(180deg);
}

.estimate-panel-face {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 0.6rem;
  backface-visibility: hidden;
}

.estimate-panel-front {
  background: var(--white);
}

.estimate-panel-front > * {
  margin: 0;
}

.estimate-panel-back {
  background: var(--orange);
  color: var(--white);
  padding: 1.5rem;
  transform: rotateY(180deg);
}

.estimate-logo {
  width: 140px;
  height: auto;
}

.estimate-panel-heading {
  margin: 0;
}

.estimate-panel-help {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.map-canvas {
  width: 100%;
  min-height: 260px;
  border: 1px solid rgba(11, 31, 42, 0.15);
  border-radius: 12px;
  box-shadow: 0 16px 30px rgba(11, 31, 42, 0.12);
  background: #e7f1f3;
}

.map-badge {
  align-self: flex-start;
  padding: 0.35rem 0.75rem;
  background: var(--ink);
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.estimate-form {
  display: grid;
  gap: 0.6rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form-row-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.form-help {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

label {
  font-weight: 600;
}

input {
  border: 1px solid rgba(11, 31, 42, 0.12);
  padding: 0.85rem;
  font-size: 1rem;
  font-family: inherit;
}

input:focus {
  outline: 2px solid rgba(242, 106, 46, 0.4);
  border-color: transparent;
}

.estimate-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: rgba(11, 31, 42, 0.05);
  border-left: 3px solid var(--orange);
  font-weight: 700;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.estimate-result strong {
  font-size: 1.2rem;
}

.estimate-heading {
  font-family: "Anton", "Segoe UI", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.estimate-summary {
  display: grid;
  gap: 0.35rem;
  flex: 1 1 100%;
  color: var(--ink-soft);
}

.estimate-summary p {
  display: flex;
  justify-content: space-between;
  margin: 0;
  gap: 1rem;
}

.estimate-summary p span:first-child {
  font-weight: 700;
  color: var(--ink);
}

.estimate-summary p span:last-child {
  font-weight: 400;
  color: var(--white);
}

.estimate-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.estimate-total strong {
  font-size: 2rem;
  letter-spacing: 0.02em;
}

#estimateStatus {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.35;
  text-align: right;
  max-width: 70%;
}

.estimate-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  width: 100%;
  align-items: center;
}

.estimate-result .estimate-note {
  margin-top: 0.5rem;
}

.estimate-result--active {
  background: var(--orange);
  color: var(--white);
  border-left-color: var(--orange-deep);
}

.estimate-result--active .estimate-summary,
.estimate-result--active .estimate-total,
.estimate-result--active .estimate-summary span {
  color: var(--white);
}

.estimate-result--active .estimate-heading {
  color: var(--white);
}

.estimate-alert {
  margin: 0;
  font-size: 0.9rem;
  color: var(--orange-deep);
}

.estimate-panel-back .estimate-summary,
.estimate-panel-back .estimate-total {
  color: var(--white);
}

.estimate-panel-back .estimate-heading {
  color: var(--ink);
}

.estimate-panel-back .estimate-note {
  color: rgba(255, 255, 255, 0.85);
}

.estimate-panel-back .secondary-button {
  background: var(--ink);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  color: var(--white);
}

.estimate-panel-back .secondary-link {
  color: var(--white);
}

.estimate-panel-back .secondary-link[href]::after {
  color: var(--white);
}

.is-hidden {
  display: none;
}

.estimate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.estimate-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.estimate-disclaimer {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  border: none;
}

.estimate-disclaimer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: default;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  margin-bottom: 0.4rem;
}

.estimate-disclaimer p {
  margin: 0;
}

.estimate-disclaimer summary::marker {
  display: none;
}

.estimate-disclaimer summary::after {
  content: "";
}

.contact {
  padding: 0;
}

.contact-card {
  background: url("../images/freight.jpg") center 65%/cover no-repeat;
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: 2.5rem 5vw;
  display: grid;
  gap: 1.5rem;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 42, 0.85);
  z-index: 0;
}

.contact-card > * {
  position: relative;
  z-index: 1;
}

.dark-logo {
  height: 48px;
}

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

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.light-link {
  color: var(--white);
}

.site-footer {
  padding: 2.5rem 5vw;
  background: #f7f3ec;
  color: var(--ink);
  border-top: 1px solid rgba(11, 31, 42, 0.1);
  margin-top: -4.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  justify-content: flex-start;
  font-weight: 400;
}

.footer-links a {
  color: var(--ink);
}

.footer-meta {
  text-align: left;
  color: var(--muted);
}

.footer-meta p {
  margin: 0 0 0.75rem;
}

.footer-legal {
  text-align: left;
  color: var(--muted);
}

.footer-legal p {
  margin: 0 0 0.6rem;
  color: var(--muted);
}

.legal-page {
  padding: 6rem 5vw 3rem;
}

.legal-page .section-header {
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
}

.legal-content {
  max-width: 900px;
  margin: 2rem auto 0;
  display: grid;
  gap: 1.5rem;
}

.legal-content h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

.legal-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.legal-body .site-header {
  color: var(--ink);
}

.legal-body .nav a {
  color: var(--ink);
}

.legal-body .nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--orange);
}

.legal-body .nav-toggle span {
  background: var(--ink);
}

@media (max-width: 960px) {
  .site-header {
    position: static;
    background: var(--ink);
    flex-wrap: wrap;
    align-items: center;
  }

  .brand {
    flex: 1 1 auto;
  }

  .site-header .cta-button {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    padding: 4.5rem 5vw 3rem;
    min-height: 70vh;
  }

  .about-header {
    grid-template-columns: 1fr;
  }

  .about-icon {
    justify-content: flex-start;
  }

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

  .estimate-panel-card {
    min-height: 480px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (min-width: 961px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .footer-legal {
    text-align: right;
  }

  .footer-legal .footer-links {
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .form-row-pair {
    grid-template-columns: 1fr;
  }

  main {
    padding: 1.5rem 5vw 3rem;
    gap: 3rem;
  }

  .site-header {
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    padding: 4rem 5vw 2.5rem;
  }

  .estimate,
  .contact-card {
    padding: 2rem 5vw;
  }

  .estimate-grid {
    display: flex;
    flex-direction: column;
  }

  .estimate-copy {
    order: 1;
  }

  .estimate-panel {
    order: 2;
  }

  .estimate-media {
    order: 3;
  }

  .estimate-copy .eyebrow {
    margin-top: 1rem;
  }

  .map-canvas {
    min-height: 220px;
  }

  .estimate-panel {
    padding: 1.5rem;
  }

  .estimate-panel-card {
    min-height: 480px;
  }

  .estimate-panel-face {
    gap: 0.5rem;
  }

  .estimate-panel-back {
    padding: 1.25rem;
  }

  .estimate-summary p {
    flex-direction: column;
    align-items: flex-start;
  }

  .estimate-total {
    flex-direction: column;
    align-items: flex-start;
  }

  .estimate-total strong {
    font-size: 1.6rem;
  }

  #estimateStatus {
    text-align: left;
    max-width: 100%;
  }

  .estimate-heading {
    font-size: 1.2rem;
  }

  .estimate-features {
    grid-template-columns: 1fr;
  }

  .estimate-feature:last-child {
    margin-bottom: 1rem;
  }

  .estimate-disclaimer summary {
    margin-bottom: 0.25rem;
  }

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

  .feature-item {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
  }

  .feature-item:nth-child(1),
  .feature-item:nth-child(2) {
    border-top: none;
    padding-top: 0;
  }
}
