:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --ink: #44233b;
  --muted: #6c5d67;
  --line: #efe6e1;
  --brand: #db4242;
  --brand-dark: #3b1f31;
  --sage: #fff0e3;
  --sage-dark: #44233b;
  --gold: #d39b72;
  --rose: #f0a1a1;
  --shadow: 0 14px 34px rgba(68, 35, 59, .12);
  font-family: "Trebuchet MS", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
}

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

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

p { margin: 0 0 1rem; }

ul { padding-left: 1.2rem; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 20;
  padding: .7rem 1rem;
  background: var(--ink);
  color: white;
}

.skip-link:focus { left: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--brand-dark);
  border-bottom: 0;
  box-shadow: 0 8px 20px rgba(59, 31, 49, .18);
}

.nav-wrap,
.section,
.hero-inner,
.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-wrap {
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff0e3;
}

.brand img {
  width: 130px;
  filter: brightness(0) invert(1) sepia(.25) saturate(1.4) opacity(.9);
}

.brand span {
  display: grid;
  line-height: 1.1;
}

.brand small {
  font-weight: 500;
  color: var(--rose);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 240, 227, .25);
  background: rgba(255, 255, 255, .05);
  color: #fff0e3;
  padding: .65rem .8rem;
  border-radius: 8px;
  font-weight: 700;
}

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

.nav a {
  padding: .65rem .45rem;
  border-radius: 8px;
  color: var(--rose);
  font-size: 1.05rem;
  font-weight: 700;
}

.nav a:hover,
.nav a.active {
  background: transparent;
  color: #fff0e3;
}

.button,
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 46px;
  padding: .75rem 1.05rem;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(138, 95, 45, .18);
}

.button.secondary {
  background: var(--sage-dark);
  box-shadow: none;
}

.hero {
  min-height: calc(100vh - 170px);
  display: grid;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(68, 35, 59, .05) 45%, rgba(68, 35, 59, .82) 100%),
    url("../img/beach-house.jpg") center / cover no-repeat;
  color: white;
}

.hero-inner {
  padding: 8rem 0 4.5rem;
}

.eyebrow {
  margin-bottom: .85rem;
  color: var(--rose);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .82rem;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.7rem, 7vw, 5.15rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

h3 {
  font-size: 1.35rem;
}

.hero p {
  max-width: 650px;
  margin-top: 1.2rem;
  font-size: 1.18rem;
  color: rgba(255, 255, 255, .88);
}

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

.section {
  padding: 5.5rem 0;
}

.section.compact { padding-top: 3rem; }

.section-head {
  max-width: 760px;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.section-head p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

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

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(68, 35, 59, .08);
}

.card-body {
  padding: 1.45rem;
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card p,
.muted {
  color: var(--muted);
}

.feature-band {
  background: #fff0e3;
  border-block: 1px solid #f2d6c6;
}

.split {
  display: grid;
  grid-template-columns: 1fr .72fr;
  gap: 2rem;
  align-items: center;
}

.portrait {
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-height: 620px;
  width: 100%;
  object-fit: cover;
  object-position: top;
}

.check-list {
  display: grid;
  gap: .65rem;
  list-style: none;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.7rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62rem;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--gold);
}

.quote-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.quote {
  padding: 1.25rem;
  background: var(--paper);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
}

.contact-panel {
  background: var(--brand-dark);
  color: white;
}

.contact-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.contact-layout p,
.contact-layout a {
  color: rgba(255, 255, 255, .8);
}

.form {
  display: grid;
  gap: .9rem;
  background: white;
  color: var(--ink);
  padding: 1.25rem;
  border-radius: 8px;
}

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

label {
  display: grid;
  gap: .35rem;
  color: var(--ink);
  font-weight: 750;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .85rem .9rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

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

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.form-note,
.status {
  font-size: .92rem;
  color: var(--muted);
}

.status {
  display: none;
  padding: .75rem .9rem;
  border-radius: 8px;
  background: #eaf5ec;
  color: #205b32;
}

.status.error {
  background: #fdecec;
  color: #8b2424;
}

.page-hero {
  background: #fff0e3;
  border-bottom: 1px solid #f2d6c6;
}

.page-hero .section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.page-hero h1 {
  font-size: clamp(2.35rem, 6vw, 4.8rem);
}

.article {
  max-width: 900px;
}

.article h2,
.article h3 {
  margin-top: 2rem;
  margin-bottom: .8rem;
}

.blog-list {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.blog-list-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.25rem;
  align-items: stretch;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(68, 35, 59, .06);
  min-width: 0;
}

.blog-list-item.no-media {
  grid-template-columns: 1fr;
}

.blog-list-media {
  display: block;
  min-height: 170px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--sage);
}

.blog-list-media img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
}

.post-media-placeholder {
  display: grid;
  min-height: 170px;
  place-items: center;
  color: var(--brand-dark);
  font-weight: 800;
}

.blog-list-body {
  display: grid;
  align-content: center;
  gap: .65rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.blog-list-body h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.blog-list-body p {
  margin: 0;
  color: var(--muted);
}

.post-meta {
  color: var(--brand);
  font-weight: 800;
  font-size: .9rem;
}

.read-more,
.post-source a:not(.button),
.article-content a {
  color: var(--brand);
  font-weight: 800;
}

.blog-article {
  max-width: 900px;
}

.post-hero-image {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.article-content {
  font-size: 1.08rem;
  overflow-wrap: anywhere;
}

.article-content h2,
.article-content h3 {
  margin-top: 2.1rem;
  margin-bottom: .9rem;
}

.article-content ul {
  padding-left: 1.35rem;
}

.video-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 2rem;
  border-radius: 8px;
  background: var(--brand-dark);
  box-shadow: var(--shadow);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.post-source {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.calculator {
  display: grid;
  gap: 1rem;
  max-width: 760px;
  padding: 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
}

.calculator input[readonly] {
  background: var(--sage);
  font-weight: 800;
}

.formula-box {
  max-width: 760px;
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--brand);
  background: #fff8f1;
  color: var(--muted);
  border-radius: 8px;
}

.site-footer {
  padding: 2.5rem 0;
  background: var(--brand-dark);
  color: rgba(255, 255, 255, .78);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
}

.footer-links a:hover { color: white; }

@media (max-width: 850px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 92px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: .7rem;
    background: var(--brand-dark);
    border: 1px solid rgba(255, 240, 227, .18);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav.open { display: flex; }

  .grid,
  .grid.two,
  .split,
  .quote-row,
  .contact-layout,
  .form-row,
  .calculator-grid,
  .blog-list-item {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 620px;
    background-position: center;
  }

  .section { padding: 3.7rem 0; }

  .nav-wrap {
    min-height: 92px;
  }

  .brand img {
    width: 72px;
  }

  .brand span {
    font-size: .95rem;
  }

  .hero {
    min-height: calc(100vh - 92px);
  }
}
