:root {
  --forest: #09291f;
  --forest-deep: #061d17;
  --forest-soft: #123a2e;
  --timber: #d8a66a;
  --timber-light: #eccb9d;
  --ivory: #fffaf0;
  --ink: #15211c;
  --muted: #67746d;
  --line: rgba(255, 250, 240, 0.17);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

svg { display: block; }

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
  overflow: hidden;
  background: var(--forest);
}

.hero-photo {
  min-height: 100svh;
  position: relative;
  background: linear-gradient(90deg, transparent 65%, rgba(6, 29, 23, 0.22)), url("quality-log-home-veranda.jpg") center / cover no-repeat;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 29, 23, 0.47), transparent 35%);
}

.photo-label {
  position: absolute;
  z-index: 1;
  left: clamp(1.25rem, 4vw, 4rem);
  bottom: clamp(2.75rem, 6vw, 5rem);
  color: var(--ivory);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-panel {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  padding: clamp(1.5rem, 5vw, 5rem);
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 90% 10%, rgba(216, 166, 106, 0.12), transparent 30%),
    var(--forest);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(236, 203, 157, 0.5);
  border-radius: 50%;
}

.brand-mark svg {
  width: 1.55rem;
  fill: none;
  stroke: var(--timber-light);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.brand-name {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy {
  width: min(100%, 34rem);
  margin: auto 0;
  padding: 3rem 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--timber-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2 {
  font-family: "Manrope", system-ui, sans-serif;
  letter-spacing: -0.045em;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.7rem, 5vw, 5.7rem);
  line-height: 0.97;
}

.intro {
  max-width: 33rem;
  margin: 1.5rem 0 0;
  color: rgba(255, 250, 240, 0.76);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  min-height: 3.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.75rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button svg {
  width: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.short-label { display: none; }

.button:hover { transform: translateY(-2px); }
.button:focus-visible, .location-line:focus-visible, .scroll-cue:focus-visible { outline: 3px solid var(--timber-light); outline-offset: 4px; }

.button-primary { background: var(--timber); color: var(--forest-deep); }
.button-primary:hover { background: var(--timber-light); }
.button-secondary { border-color: rgba(255, 250, 240, 0.26); color: var(--ivory); }
.button-secondary:hover { border-color: var(--timber-light); background: rgba(255, 255, 255, 0.06); }
.button-whatsapp { background: #25d366; color: #06261a; }
.button-whatsapp:hover { background: #59e184; }

.location-line {
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.location-line > svg { width: 1.25rem; fill: none; stroke: var(--timber-light); stroke-width: 1.7; }
.location-line .arrow { width: 1.1rem; stroke: rgba(255, 250, 240, 0.5); }
.location-line span { display: flex; flex-direction: column; gap: 0.15rem; }
.location-line strong { font-size: 0.93rem; }
.location-line small { color: rgba(255, 250, 240, 0.57); font-size: 0.82rem; }

.scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.85rem;
  color: var(--ivory);
  background: rgba(6, 29, 23, 0.78);
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.contact-section {
  min-height: 90svh;
  display: grid;
  grid-template-columns: minmax(320px, 0.76fr) minmax(0, 1.24fr);
  background: #f4ecdf;
}

.contact-photo {
  min-height: 48rem;
  background: linear-gradient(0deg, rgba(6, 29, 23, 0.36), transparent 50%), url("quality-log-home-elevated.jpg") center / cover no-repeat;
}

.digital-card {
  align-self: center;
  width: min(100% - 3rem, 45rem);
  margin: 4rem auto;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background: var(--ivory);
  box-shadow: 0 2rem 5rem rgba(46, 38, 25, 0.13);
}

.card-heading { padding-bottom: 1.75rem; border-bottom: 1px solid rgba(21, 33, 28, 0.12); }
.card-heading .eyebrow { color: #8a5c2b; }
.card-heading h2 { margin: 0; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; }
.card-heading > p:last-child { margin: 0.55rem 0 0; color: var(--muted); font-weight: 600; }

.contact-details { display: grid; gap: 0; }
.contact-details a { padding: 1.25rem 0; border-bottom: 1px solid rgba(21, 33, 28, 0.12); text-decoration: none; }
.contact-details span { display: block; margin-bottom: 0.35rem; color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-details strong { font-size: clamp(0.95rem, 2.2vw, 1.1rem); line-height: 1.55; overflow-wrap: anywhere; }

.qr-block {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.75rem;
}

.qr-block img { width: 100%; height: auto; background: #fff; border: 0.55rem solid #fff; box-shadow: 0 0 0 1px rgba(21, 33, 28, 0.1); }
.qr-block strong { font-family: "Manrope", system-ui, sans-serif; font-size: 1.25rem; }
.qr-block p { margin: 0.45rem 0 0; color: var(--muted); line-height: 1.55; }
.qr-block .save-link { display: inline-block; margin-top: 0.65rem; color: #70461f; font-size: 0.88rem; font-weight: 700; text-underline-offset: 0.22rem; }

footer {
  min-height: 6rem;
  padding: 1.5rem clamp(1.25rem, 5vw, 5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 250, 240, 0.62);
  background: var(--forest-deep);
  font-size: 0.82rem;
}

footer span:first-child { color: var(--ivory); font-family: "Manrope", system-ui, sans-serif; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

@media (max-width: 820px) {
  .hero { display: flex; flex-direction: column; }
  .hero-photo { min-height: clamp(8.5rem, 27svh, 10.75rem); }
  .photo-label { left: 1.15rem; bottom: 1rem; font-size: 0.68rem; }
  .hero-panel { min-height: calc(100svh - clamp(8.5rem, 27svh, 10.75rem)); padding: 1rem 1.2rem; }
  .brand-mark { width: 2.25rem; height: 2.25rem; }
  .brand-name { font-size: 0.78rem; }
  .hero-copy { margin: auto 0; padding: 0.8rem 0; }
  .hero-copy .eyebrow { margin-bottom: 0.55rem; }
  h1 { font-size: clamp(2.15rem, 10.7vw, 3.4rem); }
  .intro { margin-top: 0.65rem; font-size: 0.94rem; line-height: 1.4; }
  .actions { margin-top: 0.85rem; }
  .location-line { padding-top: 0.8rem; }
  .scroll-cue { display: none; }
  .contact-section { grid-template-columns: 1fr; }
  .contact-photo { min-height: 48svh; }
  .digital-card { width: calc(100% - 1.5rem); margin: -4rem auto 1rem; position: relative; }
}

@media (max-width: 430px) {
  .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .button { width: 100%; min-width: 0; min-height: 2.75rem; padding: 0.55rem 0.65rem; }
  .full-label { display: none; }
  .short-label { display: inline; }
  .qr-block { grid-template-columns: 7rem 1fr; gap: 1rem; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (max-height: 650px) and (orientation: landscape) {
  .hero { display: grid; grid-template-columns: 46% 54%; }
  .hero-photo, .hero-panel { min-height: 100svh; }
  .hero-panel { padding: 0.65rem 1rem; }
  .brand { gap: 0.55rem; }
  .brand-mark { width: 1.75rem; height: 1.75rem; }
  .brand-mark svg { width: 1rem; }
  .brand-name { font-size: 0.64rem; }
  .hero-copy { padding: 0.3rem 0; }
  .hero-copy .eyebrow { margin-bottom: 0.25rem; font-size: 0.64rem; }
  h1 { font-size: clamp(1.75rem, 9vh, 2.25rem); }
  .intro { margin-top: 0.35rem; font-size: 0.76rem; line-height: 1.25; }
  .actions { flex-wrap: nowrap; margin-top: 0.45rem; gap: 0.4rem; }
  .button { min-width: 0; min-height: 2.2rem; flex: 1; padding: 0.35rem 0.55rem; font-size: 0.78rem; }
  .button svg { width: 0.95rem; }
  .full-label { display: none; }
  .short-label { display: inline; }
  .location-line { padding-top: 0.45rem; gap: 0.55rem; }
  .location-line strong { font-size: 0.75rem; }
  .location-line small { font-size: 0.68rem; }
  .photo-label { display: none; }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
