:root {
  --navy-950: #10243d;
  --navy-900: #17314f;
  --navy-800: #22456d;
  --sage-500: #6ca68e;
  --sage-300: #c8ddd2;
  --sand-200: #f1ebe2;
  --sand-100: #faf7f2;
  --mist-100: #edf2f1;
  --stone-500: #8a8176;
  --stone-700: #534b42;
  --white: #ffffff;
  --danger: #a94646;
  --shadow-lg: 0 24px 70px rgba(16, 36, 61, 0.12);
  --shadow-md: 0 14px 36px rgba(16, 36, 61, 0.09);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1180px;
  --transition: 220ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--navy-950);
  background:
    radial-gradient(circle at top right, rgba(108, 166, 142, 0.15), transparent 28%),
    linear-gradient(180deg, #fcfbf8 0%, #f5f1ea 100%);
  line-height: 1.6;
}

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

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

p,
ul {
  margin: 0;
}

ul {
  padding-left: 1.1rem;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page-shell {
  min-height: 100vh;
}

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

.section {
  padding: 4.75rem 0;
}

.section-tight {
  padding: 3.5rem 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy-800);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
  max-width: 760px;
}

.section-heading h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.section-heading p {
  font-size: 1.05rem;
  color: var(--stone-700);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(250, 247, 242, 0.82);
  border-bottom: 1px solid rgba(23, 49, 79, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

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

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), transparent 35%),
    linear-gradient(160deg, var(--sage-500), var(--navy-900));
  box-shadow: var(--shadow-md);
  position: relative;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
}

.brand-mark::before {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  left: 16px;
  top: 10px;
}

.brand-mark::after {
  width: 22px;
  height: 14px;
  border-radius: 12px 12px 18px 18px;
  left: 15px;
  bottom: 10px;
}

.brand-text strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand-text span {
  display: block;
  font-size: 0.82rem;
  color: var(--stone-700);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
}

.site-nav a {
  padding: 0.6rem 0.75rem;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(23, 49, 79, 0.09);
  color: var(--navy-900);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.menu-toggle {
  display: none;
  border: 0;
  background: rgba(23, 49, 79, 0.08);
  color: var(--navy-950);
  border-radius: 14px;
  padding: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(23, 49, 79, 0.14);
}

.btn-accent {
  background: linear-gradient(135deg, var(--sage-500), #8db8a6);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-danger {
  background: linear-gradient(135deg, #8d2f2f, var(--danger));
  color: var(--white);
}

.hero {
  padding: 5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 1.35rem;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
}

.hero-copy p {
  font-size: 1.1rem;
  max-width: 640px;
  color: var(--stone-700);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

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

.hero-note .stat {
  padding: 1.1rem 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 49, 79, 0.08);
  border-radius: var(--radius-md);
}

.hero-note strong {
  display: block;
  font-size: 1.35rem;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  min-height: 560px;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(16, 36, 61, 0.05), rgba(16, 36, 61, 0.38)),
    linear-gradient(135deg, rgba(108, 166, 142, 0.22), rgba(16, 36, 61, 0.12)),
    var(--white);
  box-shadow: var(--shadow-lg);
}

.hero-collage {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  height: 100%;
}

.hero-panel,
.mini-panel {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(16, 36, 61, 0.15), rgba(16, 36, 61, 0.55)),
    linear-gradient(135deg, #c9ded3, #d9d0c0);
}

.hero-panel::before,
.mini-panel::before,
.photo-card::before,
.team-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.5), transparent 34%),
    linear-gradient(160deg, rgba(16, 36, 61, 0.18), transparent 50%);
}

.hero-panel {
  min-height: 100%;
}

.panel-label {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
}

.panel-label strong {
  display: block;
  margin-bottom: 0.25rem;
}

.hero-panel img,
.mini-panel img,
.photo-card img,
.team-photo img,
.story-media img,
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
}

.mini-panel {
  min-height: 0;
}

.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 1.25rem;
}

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

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

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

.card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(23, 49, 79, 0.08);
  box-shadow: var(--shadow-md);
}

.card h3,
.card h4 {
  margin-bottom: 0.75rem;
}

.muted {
  color: var(--stone-700);
}

.feature-card {
  padding: 1.6rem;
}

.feature-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(108, 166, 142, 0.18), rgba(23, 49, 79, 0.16));
  font-size: 1.2rem;
}

.trust-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 1.5rem;
  align-items: start;
}

.photo-card {
  position: relative;
  min-height: 520px;
  border-radius: 32px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(16, 36, 61, 0.18), rgba(16, 36, 61, 0.6)),
    linear-gradient(135deg, rgba(108, 166, 142, 0.4), rgba(237, 242, 241, 0.3));
  box-shadow: var(--shadow-lg);
}

.photo-card .panel-label {
  max-width: 360px;
}

.photo-card .photo-tag,
.story-media .photo-tag,
.gallery-card .photo-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy-900);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.service-list,
.faq-list {
  display: grid;
  gap: 1rem;
}

.service-item,
.faq-item {
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(23, 49, 79, 0.08);
}

.service-item strong,
.faq-item strong {
  display: block;
  margin-bottom: 0.4rem;
}

.testimonial {
  display: grid;
  gap: 1rem;
  min-height: 100%;
}

.testimonial blockquote {
  margin: 0;
  font-size: 1.05rem;
  color: var(--stone-700);
}

.testimonial cite {
  font-style: normal;
  font-weight: 700;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.pill {
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  background: rgba(108, 166, 142, 0.14);
  color: var(--navy-900);
  font-size: 0.95rem;
  font-weight: 600;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(23, 49, 79, 0.08);
}

.timeline-item:last-child {
  border-bottom: 0;
}

.timeline-step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.team-card {
  overflow: hidden;
  padding: 0;
}

.team-photo {
  position: relative;
  min-height: 250px;
  background:
    linear-gradient(180deg, rgba(16, 36, 61, 0.05), rgba(16, 36, 61, 0.28)),
    linear-gradient(135deg, #d6d0c2, #b7d5c7);
}

.team-content {
  padding: 1.4rem;
  display: grid;
  gap: 0.85rem;
}

.team-role {
  color: var(--sage-500);
  font-weight: 700;
}

.split-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
  gap: 1.5rem;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.5rem;
  align-items: stretch;
}

.story-media {
  position: relative;
  min-height: 100%;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(145deg, rgba(16, 36, 61, 0.14), rgba(16, 36, 61, 0.35));
}

.story-media::after,
.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.38), transparent 28%),
    linear-gradient(180deg, rgba(16, 36, 61, 0.02), rgba(16, 36, 61, 0.3));
  pointer-events: none;
}

.story-media .panel-label {
  z-index: 1;
}

.banner-panel {
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(237, 242, 241, 0.82));
  border: 1px solid rgba(23, 49, 79, 0.08);
  box-shadow: var(--shadow-md);
}

.contact-card,
.cta-card {
  padding: 1.75rem;
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(16, 36, 61, 0.98), rgba(34, 69, 109, 0.92));
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-item {
  display: grid;
  gap: 0.2rem;
}

.hours-list {
  display: grid;
  gap: 0.6rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.hours-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.appointment-layout,
.contact-layout,
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.8fr);
  gap: 1.5rem;
}

.form-card form {
  display: grid;
  gap: 1rem;
}

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

label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(23, 49, 79, 0.14);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--navy-950);
  background: rgba(255, 255, 255, 0.96);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-weight: 500;
  color: var(--stone-700);
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
}

.alert-card {
  background: linear-gradient(145deg, rgba(169, 70, 70, 0.98), rgba(141, 47, 47, 0.92));
  color: var(--white);
}

.map-card {
  min-height: 340px;
  background:
    linear-gradient(180deg, rgba(16, 36, 61, 0.08), rgba(16, 36, 61, 0.16)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.7),
      rgba(255, 255, 255, 0.7) 12px,
      rgba(237, 242, 241, 0.9) 12px,
      rgba(237, 242, 241, 0.9) 24px
    );
}

.blog-card {
  display: grid;
  gap: 1.2rem;
  height: 100%;
}

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

.quality-item {
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(23, 49, 79, 0.08);
  box-shadow: var(--shadow-md);
}

.quality-item strong {
  display: block;
  margin-bottom: 0.35rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 1rem;
}

.gallery-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--stone-700);
}

.site-footer {
  margin-top: 4rem;
  padding: 3rem 0 2rem;
  background: #122842;
  color: rgba(255, 255, 255, 0.88);
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  padding: 1rem;
  border-radius: 24px;
  background: rgba(18, 40, 66, 0.96);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.cookie-banner-inner {
  width: min(100%, 1080px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner p {
  max-width: 760px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.8fr 1fr;
  gap: 1.5rem;
}

.footer-title {
  margin-bottom: 0.8rem;
  font-size: 1.15rem;
}

.footer-links,
.social-links {
  display: grid;
  gap: 0.55rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

.page-hero {
  padding: 4.5rem 0 3rem;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
  gap: 1.5rem;
  align-items: center;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.35rem);
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--stone-700);
  max-width: 760px;
}

.page-side-card {
  min-height: 320px;
}

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

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

@media (max-width: 1080px) {
  .hero-grid,
  .trust-layout,
  .split-banner,
  .story-layout,
  .appointment-layout,
  .contact-layout,
  .legal-layout,
  .page-hero-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .site-nav {
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 820px) {
  .header-inner {
    align-items: flex-start;
  }

  .nav-wrap {
    display: grid;
    justify-items: end;
  }

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

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: min(100vw - 2rem, 420px);
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(23, 49, 79, 0.08);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
  }

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

  .header-cta {
    display: none;
  }

  .hero-note,
  .grid-3,
  .grid-2,
  .grid-4,
  .quality-strip,
  .gallery-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 460px;
  }

  .hero-collage {
    grid-template-columns: 1fr;
    grid-template-rows: 1.1fr auto;
  }

  .mini-stack {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 4rem 0;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero-copy h1,
  .page-hero h1 {
    letter-spacing: -0.04em;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    display: grid;
  }

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

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }
}
