:root {
  --ink: #17202a;
  --muted: #5b6673;
  --line: #d9e0e7;
  --paper: #f8faf9;
  --white: #ffffff;
  --steel: #2f4b5b;
  --copper: #b4683c;
  --moss: #4e6b57;
  --gold: #d9a441;
  --danger: #9e2f2f;
  --shadow: 0 18px 45px rgba(23, 32, 42, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(248, 250, 249, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 230px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--white);
  background: var(--steel);
  border: 3px solid var(--gold);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.nav a,
.footer a {
  text-decoration: none;
}

.nav a:hover,
.footer a:hover {
  color: var(--copper);
}

.header-cta {
  padding: 10px 15px;
  color: var(--white);
  background: var(--danger);
  text-decoration: none;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: calc(100vh - 75px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #263943;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 24, 31, .88), rgba(15, 24, 31, .48), rgba(15, 24, 31, .14)),
    url("https://cdn.pixabay.com/photo/2022/08/28/08/36/house-7416003_1280.jpg") center/cover;
}

.hero-content {
  position: relative;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0 44px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 13px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 930px;
  margin: 0;
  font-size: clamp(40px, 7vw, 82px);
  line-height: .96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 740px;
  margin: 22px 0 0;
  color: #e6edf1;
  font-size: clamp(18px, 2.2vw, 23px);
}

.hero-actions,
.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  font: inherit;
}

.button.primary {
  color: var(--white);
  background: var(--copper);
}

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

.proof-strip {
  margin: 44px 0 0;
  padding: 0;
}

.proof-strip div {
  width: min(220px, 100%);
  padding: 16px 18px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
}

.proof-strip dt {
  font-size: 28px;
  font-weight: 900;
}

.proof-strip dd {
  margin: 0;
  color: #e6edf1;
}

.trust-band {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-band > div {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px clamp(18px, 4vw, 54px);
  background: var(--white);
}

.trust-band p {
  margin: 4px 0 0;
  color: var(--muted);
}

.credential-card {
  align-items: center;
}

.shield-pair {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.shield-pair img {
  width: 72px;
  height: 98px;
  object-fit: contain;
  background: var(--white);
  filter: drop-shadow(0 6px 10px rgba(23, 32, 42, .16));
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 78px 0;
}

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

h2 {
  margin: 0;
  font-size: clamp(31px, 4.6vw, 54px);
  line-height: 1.03;
}

h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-grid article,
.tab-panels,
.comparison > div,
.booking-layout,
.ai-grid p,
.action-panel,
.login-panel,
.admin-tool {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(23, 32, 42, .05);
}

.service-grid article {
  padding: 24px;
}

.service-grid p,
.tab-panel p,
.comparison p,
.gallery figcaption,
.action-panel p,
.ai-grid p,
.admin-note {
  color: var(--muted);
}

.tabs {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
}

.tab-list {
  display: grid;
  gap: 8px;
  align-content: start;
}

.tab {
  min-height: 48px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  color: var(--steel);
  background: var(--white);
  text-align: left;
  font-weight: 900;
  cursor: pointer;
}

.tab.active {
  color: var(--white);
  background: var(--steel);
  border-color: var(--steel);
}

.tab-panels {
  min-height: 330px;
  padding: 34px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-panel ul {
  padding-left: 20px;
  margin: 18px 0 0;
}

.tab-panel li + li {
  margin-top: 8px;
}

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.comparison > div {
  padding: 28px;
}

.label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--copper);
  font-weight: 900;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery figure {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
}

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

.gallery figcaption {
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
}

.photo-credit {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.booking-layout {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 22px;
  padding: 24px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form label,
.admin-tool label,
.login-panel label {
  display: grid;
  gap: 7px;
  color: var(--steel);
  font-weight: 900;
}

.contact-form label:nth-child(5),
.contact-form label:nth-child(6),
.contact-form .button,
.form-note {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #c7d1da;
  background: #fbfcfd;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.action-panel {
  padding: 24px;
}

.quick-action {
  display: block;
  margin: 0 0 10px;
  padding: 14px;
  color: var(--white);
  background: var(--moss);
  text-decoration: none;
  font-weight: 900;
}

.quick-action.muted {
  color: var(--muted);
  background: #edf1f4;
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ai-grid p {
  margin: 0;
  padding: 20px;
}

.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(18px, 4vw, 54px);
  color: #dfe8ec;
  background: #17202a;
}

.footer p {
  margin: 6px 0 0;
  color: #aebdc6;
}

.footer > div:last-child {
  display: grid;
  gap: 8px;
  text-align: right;
}

.admin-body {
  min-height: 100vh;
  background: #eef3f0;
}

.admin-main {
  width: min(960px, calc(100% - 36px));
  margin: 0 auto;
  padding: 52px 0;
}

.login-panel,
.admin-tool {
  padding: 24px;
  margin-top: 18px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.admin-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.admin-preview figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--white);
}

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

.admin-preview figcaption {
  padding: 8px;
  color: var(--muted);
  font-size: 13px;
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

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

  .trust-band,
  .service-grid,
  .tabs,
  .comparison,
  .booking-layout,
  .ai-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .hero {
    min-height: 760px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(15, 24, 31, .44), rgba(15, 24, 31, .9)),
      url("https://cdn.pixabay.com/photo/2022/08/28/08/36/house-7416003_1280.jpg") center/cover;
  }

  .section {
    padding: 56px 0;
  }

  .contact-form,
  .gallery-grid,
  .admin-preview {
    grid-template-columns: 1fr;
  }

  .booking-layout {
    padding: 18px;
  }

  .footer {
    display: grid;
  }

  .footer > div:last-child {
    text-align: left;
  }

  .credential-card {
    align-items: flex-start;
  }

  .shield-pair img {
    width: 64px;
    height: 88px;
  }
}
