:root {
  color-scheme: light;
  --ink: #102229;
  --muted: #5f6d72;
  --paper: #f8f5ee;
  --white: #ffffff;
  --line: #d9e0df;
  --teal: #0f7773;
  --teal-dark: #085451;
  --coral: #c95f3f;
  --gold: #d9a441;
  --shadow: 0 24px 70px rgba(16, 34, 41, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(260px, 430px) 1fr auto;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
  min-height: 96px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: #061d34;
  border-bottom: 2px solid rgba(255, 122, 30, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 42px rgba(3, 21, 38, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-compass {
  display: block;
  width: 78px;
  height: 78px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 4px;
}

.brand-wordmark {
  display: grid;
  gap: 5px;
  line-height: 1.15;
  text-transform: uppercase;
}

.brand-title {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.42rem, 2.4vw, 2.08rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.08em;
}

.brand-subtitle {
  color: #ff8a2c;
  font-size: clamp(0.86rem, 1.6vw, 1.15rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.42em;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-nav a:hover,
.contact-details a:hover,
.site-footer a:hover {
  color: #ff8a2c;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.header-cta,
.button-primary {
  color: var(--white);
  background: var(--coral);
}

.header-cta:hover,
.button-primary:hover {
  background: #a94931;
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(16, 34, 41, 0.14);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 73px);
  place-items: end start;
  overflow: hidden;
}

.hero-media,
.about-image {
  background-position: center;
  background-size: cover;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(6, 28, 35, 0.82), rgba(6, 28, 35, 0.3), rgba(6, 28, 35, 0.05)),
    url("hero-tiara-5800.jpg");
  transform: scale(1.01);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin: 0 0 clamp(72px, 14vh, 132px) clamp(18px, 5vw, 72px);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffc36a;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 20px;
  font-size: clamp(3rem, 8vw, 7.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

p {
  line-height: 1.65;
}

.hero-copy {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.quick-contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.quick-contact > div {
  padding: 24px clamp(18px, 4vw, 48px);
  background: var(--white);
}

.quick-contact span {
  display: block;
  margin-bottom: 10px;
  color: var(--coral);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.quick-contact strong {
  display: block;
  max-width: 420px;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.35;
}

.cover-message-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 56px);
  padding: clamp(64px, 9vw, 112px) clamp(18px, 5vw, 72px);
  background: #071d32;
}

.cover-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.cover-message-copy {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
  max-width: 1180px;
  color: var(--white);
}

.cover-message-copy > p {
  max-width: 620px;
}

.cover-message-copy .eyebrow {
  color: #ff8a2c;
}

.cover-message-copy p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.trust-grid div {
  min-height: 150px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
}

.trust-grid span {
  display: block;
  margin-bottom: 10px;
  color: #ff8a2c;
  font-weight: 900;
  text-transform: uppercase;
}

.trust-grid p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.section {
  padding: clamp(72px, 10vw, 128px) clamp(18px, 5vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 920px;
  align-items: start;
  margin-bottom: 44px;
  text-align: left;
}

.intro-section {
  display: block;
  background: var(--white);
}

.intro-section .section-heading {
  margin-bottom: 20px;
}

.intro-section > p,
.section-heading + p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.1rem;
}

.services-section {
  background: #edf5f2;
}

.credentials-section {
  background: #071d32;
  color: var(--white);
}

.credentials-section .eyebrow {
  color: #ff8a2c;
}

.credentials-section .section-heading {
  max-width: 1060px;
}

.credential-photo {
  margin: 0 0 28px;
}

.credential-photo img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.credential-grid article {
  display: block;
  min-height: 0;
  padding: 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.credential-card-feature {
  min-height: 0;
}

.credential-card-accreditation {
  background: rgba(255, 138, 44, 0.12);
  border-color: rgba(255, 138, 44, 0.38);
}

.credential-card-accreditation h3 {
  font-size: 1.35rem;
}

.credential-grid a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 138, 44, 0.65);
  text-underline-offset: 4px;
}

.credential-grid a:hover {
  color: #ffb66f;
}

.credential-card-feature p {
  font-size: 1.08rem;
}

.credential-grid span {
  display: block;
  margin: 0 0 10px;
  color: #ff8a2c;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.credential-grid h3 {
  display: block;
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--white);
  overflow-wrap: anywhere;
}

.credential-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
  line-height: 1.55;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 390px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: var(--white);
  background-color: var(--ink);
  background-image:
    linear-gradient(180deg, rgba(6, 28, 35, 0.1), rgba(6, 28, 35, 0.82)),
    var(--card-image);
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(16, 34, 41, 0.08);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(16, 34, 41, 0.05);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.service-card-prepurchase {
  --card-image: url("assets/service-prepurchase.jpg");
}

.service-card-insurance {
  --card-image: url("assets/service-insurance.jpg");
}

.service-card-condition {
  --card-image: url("assets/service-condition.jpg");
}

.service-card-consulting {
  --card-image: url("assets/service-consulting.jpg");
}

.service-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(6, 28, 35, 0), rgba(6, 28, 35, 0.28)),
    var(--card-image);
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
  z-index: 0;
}

.service-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  content: "";
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  z-index: 1;
}

.service-card > * {
  position: relative;
  z-index: 2;
}

.service-card:hover,
.service-card:focus-within {
  border-color: rgba(201, 95, 63, 0.34);
  box-shadow: 0 22px 48px rgba(16, 34, 41, 0.16);
  transform: translateY(-6px);
}

.service-card:hover::before,
.service-card:focus-within::before {
  opacity: 1;
  transform: scale(1.05);
}

.service-card:hover::after,
.service-card:focus-within::after {
  transform: scaleX(1);
}

.service-card p,
.timeline-item p,
.about-copy p,
.contact-copy p {
  color: var(--muted);
}

.service-card p {
  color: rgba(255, 255, 255, 0.86);
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(260px, 1fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: center;
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
  color: var(--white);
  background: var(--teal-dark);
}

.feature-band .eyebrow {
  color: #ffc36a;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 18px 18px 18px 50px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.check-list li::before {
  position: absolute;
  left: 18px;
  content: "/";
  color: #ffc36a;
  font-weight: 900;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.timeline-item {
  padding-top: 24px;
  border-top: 2px solid var(--line);
}

.timeline-item span {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  place-items: center;
  color: var(--white);
  background: var(--coral);
  border-radius: 50%;
  font-weight: 800;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
  min-height: 620px;
  background: var(--white);
}

.about-image {
  min-height: 420px;
  background-image:
    linear-gradient(180deg, rgba(16, 34, 41, 0), rgba(16, 34, 41, 0.18)),
    url("assets/about-survey-work.jpg");
}

.about-copy {
  align-self: center;
  padding: clamp(42px, 7vw, 96px);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(280px, 1fr);
  gap: clamp(28px, 7vw, 96px);
  padding: clamp(72px, 10vw, 128px) clamp(18px, 5vw, 72px);
  background: #f8efe6;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 28px;
  color: var(--teal-dark);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--white);
  border: 1px solid rgba(16, 34, 41, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.contact-form textarea {
  resize: vertical;
}

.hidden-field {
  display: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.76);
  background: var(--ink);
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .brand-compass {
    width: 66px;
    height: 66px;
  }

  .site-nav {
    display: none;
  }

  .quick-contact,
  .trust-grid,
  .credential-grid,
  .service-grid,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading,
  .intro-section,
  .cover-message-section,
  .cover-message-copy,
  .feature-band,
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .about-copy {
    padding: 56px clamp(18px, 5vw, 72px);
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand-compass {
    width: 58px;
    height: 58px;
  }

  .brand-title {
    font-size: 1.24rem;
    letter-spacing: 0.05em;
  }

  .brand-subtitle {
    font-size: 0.74rem;
    letter-spacing: 0.31em;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: 640px;
    place-items: start start;
  }

  .hero-media {
    background-image:
      linear-gradient(180deg, rgba(6, 28, 35, 0.52), rgba(6, 28, 35, 0.86)),
      url("hero-tiara-5800.jpg");
  }

  .hero-content {
    width: calc(100% - 36px);
    margin: 38px 18px 52px;
  }

  h1 {
    max-width: 9ch;
  }

  .quick-contact,
  .trust-grid,
  .credential-grid,
  .service-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .credential-grid article {
    padding: 22px;
  }

  .credential-grid span {
    margin-bottom: 8px;
    line-height: 1.25;
  }

  .credential-grid h3 {
    font-size: 1.08rem;
    line-height: 1.28;
    margin-bottom: 10px;
  }

  .credential-grid p {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .section,
  .contact-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .service-card {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}
