:root {
  --page: #f3f0e8;
  --surface: #fffdf7;
  --surface-strong: #ffffff;
  --ink: #14211f;
  --muted: #5f6b67;
  --line: #d9d1c2;
  --harbor: #12383c;
  --harbor-deep: #0b2529;
  --sea: #1e6f79;
  --sea-deep: #155159;
  --brass: #c5923d;
  --brass-bright: #d8a64d;
  --sand: #e7dcc8;
  --shadow: 0 20px 60px rgba(20, 33, 31, 0.16);
  --shadow-card: 0 14px 38px rgba(20, 33, 31, 0.09);
  --shadow-card-hover: 0 26px 60px rgba(20, 33, 31, 0.18);
  --max: 1120px;
  --radius: 14px;
  --radius-sm: 9px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--page);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
}

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

a {
  color: inherit;
}

::selection {
  background: var(--brass);
  color: #16110a;
}

:focus-visible {
  outline: 3px solid var(--brass-bright);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  transform: translateY(-160%);
  background: var(--ink);
  color: white;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  z-index: 30;
  transition: transform 0.2s var(--ease);
}

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 37, 41, 0.82);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 28px rgba(11, 37, 41, 0.18);
}

.nav {
  width: min(100% - 2rem, var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: white;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 9px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.brand:hover img {
  transform: rotate(-4deg) scale(1.05);
  border-color: var(--brass-bright);
}

.brand span {
  overflow-wrap: anywhere;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a,
.site-footer a {
  position: relative;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 0.5rem 0.78rem;
  text-decoration: none;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a[aria-current="page"] {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.78rem;
  right: 0.78rem;
  bottom: 0.18rem;
  height: 2px;
  border-radius: 2px;
  background: var(--brass-bright);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(880px, 92svh);
  overflow: hidden;
  color: white;
  background: var(--harbor-deep);
}

.hero-bg,
.hero-bg img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 51%;
  transform: scale(1.06);
  animation: heroZoom 18s ease-out forwards;
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 30, 34, 0.95) 0%, rgba(8, 30, 34, 0.8) 36%, rgba(8, 30, 34, 0.32) 70%, rgba(8, 30, 34, 0.5) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(7, 26, 30, 0.6) 100%);
}

.hero-inner {
  position: relative;
  width: min(100% - 2rem, var(--max));
  min-height: min(880px, 92svh);
  margin: 0 auto;
  padding: 4rem 0 3.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  color: var(--sea-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  flex: 0 0 auto;
  opacity: 0.75;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.01em;
}

h1 {
  max-width: 16ch;
  font-size: clamp(2.6rem, 6vw + 0.5rem, 4.6rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw + 0.6rem, 2.5rem);
}

h3 {
  font-size: clamp(1.2rem, 1vw + 0.95rem, 1.4rem);
  font-weight: 600;
}

.lead {
  max-width: 60ch;
  margin: 1.3rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 0.6vw + 0.95rem, 1.22rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.72rem 1.5rem;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

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

.button-primary {
  background: var(--brass);
  color: #16110a;
  box-shadow: 0 12px 28px rgba(197, 146, 61, 0.34);
}

.button-primary:hover,
.button-primary:focus {
  background: var(--brass-bright);
  box-shadow: 0 16px 34px rgba(197, 146, 61, 0.46);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary:hover,
.button-secondary:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.75);
}

.button-dark {
  background: var(--harbor-deep);
  color: white;
  box-shadow: 0 12px 28px rgba(11, 37, 41, 0.28);
}

.button-dark:hover,
.button-dark:focus {
  background: var(--harbor);
}

.hero-facts {
  width: min(100%, 760px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 2rem 0 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hero-facts div {
  padding: 0.95rem 1.1rem;
  background: rgba(9, 32, 36, 0.62);
  transition: background 0.25s var(--ease);
}

.hero-facts div:hover {
  background: rgba(9, 32, 36, 0.82);
}

.hero-facts dt {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 0.3rem 0 0;
  color: white;
  font-weight: 700;
  font-size: 1.02rem;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  text-decoration: none;
  background: rgba(9, 32, 36, 0.35);
  animation: bob 2.4s ease-in-out infinite;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.scroll-cue:hover,
.scroll-cue:focus {
  background: rgba(9, 32, 36, 0.7);
  color: white;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 7px); }
}

/* ---------- Hero entrance ---------- */
.hero-inner > .eyebrow,
.hero-inner > h1,
.hero-inner > .lead,
.hero-inner > .hero-actions,
.hero-inner > .hero-facts {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.85s var(--ease) forwards;
}

.hero-inner > h1 { animation-delay: 0.08s; }
.hero-inner > .lead { animation-delay: 0.18s; }
.hero-inner > .hero-actions { animation-delay: 0.28s; }
.hero-inner > .hero-facts { animation-delay: 0.38s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Sections ---------- */
.section {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: clamp(3.4rem, 6vw, 5.4rem) 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  align-items: end;
  gap: clamp(1.6rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.intro-copy h2 {
  margin-top: 0.4rem;
}

.intro p:last-child {
  margin: 0;
  color: #34413c;
  font-size: clamp(1.02rem, 0.5vw + 0.92rem, 1.12rem);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.32fr 1fr;
  gap: clamp(1rem, 3vw, 1.8rem);
  align-items: start;
  margin-bottom: 2rem;
}

/* ---------- Service cards ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.4rem;
}

.service-card {
  position: relative;
  min-height: 248px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(18, 56, 60, 0.14);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brass), var(--sea));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(30, 111, 121, 0.35);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:nth-child(2) {
  background: #f8f5ec;
}

.service-card:nth-child(3) {
  background: #edf5f4;
}

.service-kicker {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin: 0 0 auto;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(30, 111, 121, 0.1);
  color: var(--sea-deep);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-card h3 {
  margin-top: 2.3rem;
  color: var(--harbor);
}

.service-card p:last-child {
  margin: 0.7rem 0 0;
  color: #45514e;
}

/* ---------- Service list (chips) ---------- */
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.service-list li {
  min-height: 74px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 247, 0.85);
  padding: 0.95rem 1rem;
  color: #26332e;
  font-weight: 600;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.service-list li:hover {
  transform: translateY(-3px);
  border-color: var(--brass);
  background: #fff;
}

.service-list li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.7rem;
  flex: 0 0 auto;
  border-radius: 2px;
  background: var(--brass);
  transition: transform 0.2s var(--ease);
}

.service-list li:hover::before {
  transform: rotate(45deg);
}

/* ---------- Contact panel ---------- */
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 1fr) auto;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2rem);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(30, 111, 121, 0.08), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1.8rem, 4vw, 2.8rem);
}

.contact-panel h2 {
  margin-top: 0.3rem;
  color: var(--harbor);
}

.contact-panel p {
  margin: 0;
  color: #3a4743;
  font-size: 1.05rem;
}

.contact-panel strong {
  color: var(--harbor);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--harbor-deep);
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  padding: 1.4rem max(1rem, calc((100vw - var(--max)) / 2));
  border-top: 3px solid var(--brass);
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
}

.site-footer a:hover,
.site-footer a:focus,
.site-footer a[aria-current="page"] {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- Legal pages ---------- */
.legal-page {
  width: min(100% - 2rem, 880px);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.legal-content {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.legal-content h1 {
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  margin-bottom: 1.7rem;
  color: var(--harbor);
}

.legal-content section {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  margin-top: 1.4rem;
}

.legal-content h2 {
  font-size: 1.28rem;
  margin-bottom: 0.6rem;
  color: var(--harbor);
}

.legal-content p {
  margin: 0.65rem 0 0;
  color: #34413c;
  font-size: 1.04rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero,
  .hero-inner {
    min-height: 760px;
  }

  .hero-bg img {
    object-position: 70% 50%;
  }

  .intro,
  .section-heading,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-panel .button {
    justify-self: start;
  }

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

  .service-card {
    min-height: 0;
  }

  .service-card h3 {
    margin-top: 1.4rem;
  }

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

@media (max-width: 660px) {
  html {
    scroll-padding-top: 1rem;
  }

  .site-header {
    position: sticky;
  }

  .nav {
    min-height: 0;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.7rem 0;
    gap: 0.5rem 1rem;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 0.1rem;
  }

  .nav-links a {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 0.9rem;
  }

  .hero,
  .hero-inner {
    min-height: 680px;
  }

  .hero-bg img {
    object-position: 58% 50%;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(8, 30, 34, 0.92) 0%, rgba(8, 30, 34, 0.74) 52%, rgba(8, 30, 34, 0.58) 100%),
      linear-gradient(90deg, rgba(8, 30, 34, 0.72) 0%, rgba(8, 30, 34, 0.2) 100%);
  }

  .hero-inner {
    justify-content: center;
    padding-top: 2.6rem;
  }

  .hero-actions .button {
    flex: 1 1 auto;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .scroll-cue {
    display: none;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .hero-inner > .eyebrow,
  .hero-inner > h1,
  .hero-inner > .lead,
  .hero-inner > .hero-actions,
  .hero-inner > .hero-facts {
    opacity: 1;
    transform: none;
  }

  .hero-bg img {
    transform: none;
  }
}
