:root {
  --ink: #24324a;
  --muted: #5f6b7a;
  --paper: #fffdf9;
  --surface: #ffffff;
  --soft: #eef7f5;
  --accent: #4c8f87;
  --accent-dark: #356f69;
  --warm: #f4b860;
  --line: #dfe7e5;
  --shadow: 0 12px 35px rgba(36, 50, 74, 0.08);
  --radius: 18px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: auto;
}

header {
  background: rgba(255, 253, 249, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  min-height: 100px; /* Gives the larger logo breathing room */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  min-width: 0;
  flex-shrink: 0; /* Enforces structural size locking */
}

.logo-wrapper {
  width: 80px; /* Larger width setting */
  height: 80px; /* Larger height setting */
  flex: 0 0 80px; /* Keeps the flex anchor locked */
  display: block;
}

.site-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  font-size: 1.25rem; /* Matches the large logo scaling */
}

.brand-text .sub-text {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 650;
  color: #425066;
}

nav a:hover {
  color: var(--accent-dark);
}

.btn {
  display: inline-block;
  padding: 13px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.hero {
  padding: 82px 0 68px;
  background: linear-gradient(135deg, #eef7f5 0%, #fffdf9 58%, #fff5df 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 55px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

h1 {
  font-size: clamp(2.35rem, 5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin: 14px 0 20px;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 15px;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 700px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero-card img {
  display: block;
  width: 100%;
  border-radius: 18px;
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--soft);
}

.center {
  text-align: center;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 27px;
  box-shadow: 0 5px 18px rgba(36, 50, 74, 0.035);
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e4f1ef;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  font-weight: 800;
  color: var(--accent-dark);
}

.list {
  padding-left: 20px;
}

.note {
  padding: 20px;
  border-left: 4px solid var(--warm);
  background: #fff8e9;
  border-radius: 10px;
}

.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 60px;
  margin-bottom: 25px;
}

.step:before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.price {
  font-size: 2rem;
  font-weight: 850;
}

.small {
  font-size: 0.9rem;
  color: var(--muted);
}

footer {
  background: #24324a;
  color: #eef3f7;
  padding: 42px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
}

footer a {
  color: #eef3f7;
}

.form {
  display: grid;
  gap: 16px;
}

label {
  font-weight: 700;
  font-size: 0.92rem;
}

input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #ccd8d5;
  border-radius: 11px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}

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

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.form-note {
  background: #f5f8f7;
  border-radius: 12px;
  padding: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.page-hero {
  padding: 55px 0;
  background: var(--soft);
}

.policy h2 {
  margin-top: 35px;
  font-size: 1.55rem;
}

@media (max-width: 850px) {
  .hero-grid, 
  .grid-3, 
  .grid-2, 
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  nav {
    display: none;
  }
  
  .hero {
    padding-top: 55px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }
  
  .nav {
    min-height: 70px;
  }
  
  /* Responsive sizing adjustments for small smartphone screens */
  .logo-wrapper {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }
  
  .site-logo {
    width: 100%;
    height: 100%;
  }
  
  .brand {
    gap: 9px;
    font-size: 1.02rem;
  }
  
  .brand-text .sub-text {
    font-size: 0.66rem;
  }
  
  .section {
    padding: 55px 0;
  }
  
  .actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* Fallbacks to hide broken or missing system layout logo references */
.site-logo:-moz-broken,
.site-logo:not([src]),
.site-logo:invalid {
  opacity: 0;
  visibility: hidden;
}
