:root {
  --deep-sage: #2f4a3f;
  --warm-ivory: #f7f4ef;
  --antique-gold: #b58a3c;
  --charcoal: #444444;
  --soft-sage: #a8b2a1;
  --white: #ffffff;
  --mist: #efe9df;
  --forest-shadow: 0 24px 60px rgba(47, 74, 63, 0.12);
  --line: rgba(47, 74, 63, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--charcoal);
  background:
    radial-gradient(circle at top left, rgba(181, 138, 60, 0.12), transparent 28%),
    linear-gradient(180deg, #fbf8f3 0%, var(--warm-ivory) 42%, #f4efe7 100%);
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: auto 0 0 auto;
  width: min(48vw, 620px);
  height: min(38vw, 420px);
  background: url("assets/countryside-watermark.png") bottom right / contain no-repeat;
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  color: var(--deep-sage);
  line-height: 1.04;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 5vw, 5.4rem);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2.15rem, 4vw, 4rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.65rem;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.screen-reader {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background:
    radial-gradient(circle at center, rgba(181, 138, 60, 0.09), transparent 48%),
    linear-gradient(180deg, rgba(252, 249, 244, 0.98), rgba(246, 241, 233, 0.94));
  backdrop-filter: blur(18px);
  transition: box-shadow 160ms ease, border-color 160ms ease;
}

.site-header .shell {
  width: calc(100% - 40px);
  max-width: none;
}

.site-header.is-scrolled,
.site-header.is-open {
  box-shadow: 0 18px 36px rgba(47, 74, 63, 0.08);
  border-color: var(--line);
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  min-height: auto;
  position: relative;
  padding: 18px 0 16px;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(120px, 10vw, 170px);
  margin: 0;
  padding: 0 20px 18px;
  border-bottom: 1px solid rgba(181, 138, 60, 0.24);
  background:
    radial-gradient(circle at center, rgba(181, 138, 60, 0.1), transparent 62%),
    linear-gradient(180deg, rgba(247, 244, 239, 0.98), rgba(244, 239, 231, 0.94));
  box-shadow: none;
  text-decoration: none;
  flex-shrink: 1;
  overflow: hidden;
  position: relative;
}

.brand-mark img {
  width: calc(100% + 220px);
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center center;
  filter: saturate(0.96) contrast(1.02);
  mix-blend-mode: multiply;
  opacity: 0.96;
  transform: scale(1.06);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 22px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  width: 100%;
}

.site-nav a {
  text-decoration: none;
  color: var(--antique-gold);
  white-space: nowrap;
}

.site-nav a[aria-current="page"] {
  font-weight: 700;
  color: var(--deep-sage);
}

.nav-cta {
  padding: 10px 18px;
  border: 1px solid rgba(181, 138, 60, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(47, 74, 63, 0.24);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.menu-button span:not(.screen-reader) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--deep-sage);
}

.hero,
.page-hero {
  padding: 88px 0 80px;
}

.hero-home {
  background:
    linear-gradient(110deg, rgba(34, 52, 44, 0.85), rgba(34, 52, 44, 0.58)),
    url("assets/bedfordshire-village-hero.png") center / cover no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.72fr);
  gap: 30px;
  align-items: end;
}

.hero-copy {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-copy h1,
.page-hero h1 {
  color: var(--white);
}

.lead {
  max-width: 760px;
  font-size: 1.08rem;
}

.hero-copy .lead,
.page-hero .lead {
  color: rgba(255, 255, 255, 0.86);
}

.hero-panel {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: rgba(247, 244, 239, 0.14);
  color: rgba(255, 255, 255, 0.88);
  box-shadow: var(--forest-shadow);
}

.hero-panel h2 {
  color: var(--warm-ivory);
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.hero-panel-soft {
  backdrop-filter: blur(12px);
}

.page-hero-services,
.page-hero-about,
.page-hero-progress,
.page-hero-conveyancing,
.page-hero-search,
.page-hero-training,
.page-hero-areas,
.page-hero-contact {
  background:
    linear-gradient(110deg, rgba(34, 52, 44, 0.86), rgba(34, 52, 44, 0.62)),
    url("assets/full-aa-illustration.png") center / cover no-repeat;
}

.page-hero-progress {
  background:
    linear-gradient(110deg, rgba(34, 52, 44, 0.86), rgba(34, 52, 44, 0.62)),
    url("assets/property-guidance-planning.png") center / cover no-repeat;
}

.page-hero-conveyancing {
  background:
    linear-gradient(110deg, rgba(34, 52, 44, 0.86), rgba(34, 52, 44, 0.64)),
    url("assets/conveyancing-editorial.png") center / cover no-repeat;
}

.page-hero-search {
  background:
    linear-gradient(110deg, rgba(34, 52, 44, 0.84), rgba(34, 52, 44, 0.58)),
    url("assets/bedfordshire-village-hero.png") center / cover no-repeat;
}

.page-hero-training {
  background:
    linear-gradient(110deg, rgba(34, 52, 44, 0.86), rgba(34, 52, 44, 0.62)),
    url("assets/i-link-tablet-branded.png") center / cover no-repeat;
}

.page-hero-areas {
  background:
    linear-gradient(110deg, rgba(34, 52, 44, 0.84), rgba(34, 52, 44, 0.6)),
    url("assets/bedfordshire-village-hero.png") center / cover no-repeat;
}

.page-hero-contact {
  background:
    linear-gradient(110deg, rgba(34, 52, 44, 0.86), rgba(34, 52, 44, 0.6)),
    url("assets/approved-board-design.png") center / cover no-repeat;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--antique-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button-row-left {
  justify-content: flex-start;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: var(--deep-sage);
  box-shadow: 0 14px 28px rgba(47, 74, 63, 0.18);
}

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

.button-secondary-ink {
  color: var(--deep-sage);
  border-color: rgba(47, 74, 63, 0.18);
  background: rgba(255, 255, 255, 0.68);
}

.promise-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid var(--line);
  background: var(--deep-sage);
}

.promise-strip-inner {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 8vw, 120px);
  padding: 22px 0;
  color: var(--antique-gold);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.section,
.cta-band {
  padding: 88px 0;
}

.section-soft {
  background: rgba(255, 255, 255, 0.5);
}

.section-accent {
  background:
    linear-gradient(180deg, rgba(168, 178, 161, 0.18), rgba(247, 244, 239, 0.2));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.watermark-section {
  position: relative;
  overflow: hidden;
}

.watermark-section::before {
  content: "";
  position: absolute;
  inset: auto -120px 18px auto;
  width: min(40vw, 420px);
  height: min(22vw, 220px);
  background: url("assets/countryside-watermark.png") center / contain no-repeat;
  opacity: 0.045;
  pointer-events: none;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: center;
}

.split-layout-feature {
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
}

.media-card,
.info-card,
.person-card,
.testimonial-card,
.contact-form,
.notice-panel,
.stats-panel,
.text-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--forest-shadow);
}

.media-card {
  overflow: hidden;
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card-illustration {
  padding: 14px;
  background: linear-gradient(180deg, #fffaf3, #f4ede2);
}

.media-card-illustration img {
  border-radius: 18px;
  object-fit: contain;
}

.card-grid {
  display: grid;
  gap: 18px;
}

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

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

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

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

.service-card {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: var(--forest-shadow);
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card-body,
.info-card,
.person-card,
.testimonial-card,
.notice-panel,
.text-panel,
.stats-panel,
.contact-form {
  padding: 26px;
}

.service-index {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--antique-gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.service-card a,
.text-link {
  color: var(--deep-sage);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.stats-panel {
  display: grid;
  gap: 18px;
  background: linear-gradient(180deg, rgba(47, 74, 63, 0.96), rgba(47, 74, 63, 0.88));
  color: rgba(255, 255, 255, 0.88);
}

.stats-panel strong {
  display: block;
  margin-bottom: 6px;
  color: var(--warm-ivory);
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-list span {
  padding: 11px 16px;
  border: 1px solid rgba(47, 74, 63, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--deep-sage);
  font-weight: 700;
}

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

.testimonial-grid-single {
  grid-template-columns: minmax(0, 760px);
}

.testimonial-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--antique-gold);
  font-size: 0.95rem;
  font-weight: 800;
}

.testimonial-meta small {
  color: rgba(68, 68, 68, 0.72);
  font-weight: 700;
}

.testimonial-card p {
  margin-bottom: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  line-height: 1.42;
}

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

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

.feature-list {
  margin: 0;
  padding-left: 22px;
}

.feature-list-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 24px;
}

.notice-panel {
  color: var(--deep-sage);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(168, 178, 161, 0.16));
  font-weight: 600;
}

.cta-band {
  background: linear-gradient(120deg, rgba(47, 74, 63, 0.97), rgba(47, 74, 63, 0.86));
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band h2,
.cta-band p:not(.eyebrow) {
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
}

.contact-details {
  padding-top: 12px;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 18px;
}

.contact-list a {
  color: var(--deep-sage);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(47, 74, 63, 0.16);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--charcoal);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.form-span,
.contact-form .button {
  grid-column: 1 / -1;
}

.form-status {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: var(--deep-sage);
  font-weight: 700;
}

.form-status.is-success {
  color: var(--deep-sage);
}

.form-status.is-error {
  color: #8a3c3c;
}

.site-footer {
  padding: 66px 0 56px;
  color: rgba(255, 255, 255, 0.82);
  background: #21352d;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(180px, 0.7fr) minmax(200px, 0.8fr);
  gap: 32px;
}

.brand-mark-footer {
  margin-bottom: 18px;
}

.site-footer h2 {
  margin-bottom: 14px;
  color: var(--warm-ivory);
  font-family: "Manrope", sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer a,
.site-footer p {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.footer-promise {
  color: var(--antique-gold) !important;
  font-weight: 800;
}

@media (max-width: 1080px) {
  .site-header .shell {
    width: min(100%, calc(100% - 40px));
  }

  .site-nav {
    gap: 14px;
    font-size: 0.95rem;
  }

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

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

@media (max-width: 880px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    min-height: 96px;
    padding-right: 76px;
    padding-block: 10px;
  }

  .brand-mark {
    width: min(100%, 1000px);
    height: 116px;
    max-width: none;
    padding: 0;
    border-bottom: none;
    background: transparent;
  }

  .brand-mark img {
    width: 100%;
    opacity: 1;
    transform: none;
  }

  .menu-button {
    display: block;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(247, 244, 239, 0.98);
    box-shadow: var(--forest-shadow);
    font-size: 1.18rem;
  }

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

  .hero-grid,
  .split-layout,
  .cta-band-inner,
  .contact-grid,
  .footer-grid,
  .people-grid,
  .testimonial-grid,
  .card-grid-three,
  .card-grid-four,
  .feature-list-columns {
    grid-template-columns: 1fr;
  }

  .split-layout-feature,
  .areas-grid,
  .service-grid,
  .service-grid-six {
    grid-template-columns: 1fr;
  }

  .cta-band-inner {
    display: grid;
  }

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

  .form-span,
  .contact-form .button {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .site-header .shell {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 96px;
    padding-right: 70px;
  }

  .brand-mark {
    width: 100%;
    height: 96px;
  }

  .brand-mark img {
    width: 100%;
    height: 100%;
  }

  .hero,
  .page-hero,
  .section,
  .cta-band {
    padding: 70px 0;
  }

  .button {
    width: 100%;
  }

  .promise-strip-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
