/* ═══════════════════════════════════════════
   HomeLog — Vivid Azulejos Edition
   ═══════════════════════════════════════════ */

:root {
  /* Core palette — brighter, Portuguese azulejo-inspired */
  --white: #FDFCFA;
  --sand: #F3EDE2;
  --sand-light: #F9F6F0;

  /* Azulejo blues — vivid */
  --azulejo: #1565A0;
  --azulejo-bright: #1E88C8;
  --azulejo-deep: #0D4A78;
  --azulejo-sky: #4AACDD;
  --azulejo-pale: #D8EBF5;

  /* Azulejo warm accents */
  --terracotta: #C7613A;
  --terracotta-light: #F4DDD2;
  --gold: #D4983A;
  --gold-light: #FBF0DA;

  /* Neutrals */
  --text-primary: #1A2332;
  --text-secondary: #4A5568;
  --text-muted: #8896A6;

  /* System */
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(21,101,160,0.08);
  --shadow-md: 0 8px 40px rgba(21,101,160,0.12);
  --shadow-lg: 0 16px 56px rgba(21,101,160,0.16);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1120px;
  --section-py: clamp(72px, 10vw, 128px);
}

/* ─── Skip link (accessibility / SEO) ─── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 24px;
  z-index: 9999;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--azulejo);
  outline-offset: 2px;
}

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font: inherit; }

/* ─── Utility ─── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section__header {
  text-align: center;
  margin-bottom: 48px;
}

.section__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--azulejo);
  background: var(--azulejo-pale);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section__tag--light {
  color: var(--gold);
  background: rgba(212,152,58,0.15);
}

.section__title {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 14px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.section__title--light {
  color: #fff;
}

.section__subtitle {
  font-size: clamp(1rem, 2vw, 1.12rem);
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 34px;
  border-radius: 50px;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}

.btn--primary {
  background: linear-gradient(135deg, var(--azulejo-bright), var(--azulejo));
  color: #fff;
  box-shadow: 0 4px 20px rgba(21,101,160,0.35);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--azulejo), var(--azulejo-deep));
  box-shadow: 0 8px 32px rgba(21,101,160,0.45);
  transform: translateY(-2px);
}

.btn--ghost {
  color: var(--azulejo);
  border: 2px solid rgba(21,101,160,0.25);
  background: rgba(21,101,160,0.04);
}

.btn--ghost:hover {
  border-color: var(--azulejo);
  background: rgba(21,101,160,0.08);
}

.btn--white {
  background: #fff;
  color: var(--azulejo);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/* ─── Fade animation ─── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
}

.nav.is-scrolled {
  background: rgba(253,252,250,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(21,101,160,0.08);
  padding: 10px 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--azulejo-bright), var(--azulejo));
  border-radius: 2px;
  transition: all var(--transition);
  transform: translateX(-50%);
}

.nav__link:hover { color: var(--azulejo); }
.nav__link:hover::after { width: 100%; }

.nav__cta {
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--azulejo-bright), var(--azulejo));
  color: #fff;
  transition: all var(--transition);
  box-shadow: 0 2px 12px rgba(21,101,160,0.25);
}

.nav__cta:hover {
  box-shadow: 0 4px 20px rgba(21,101,160,0.4);
  transform: translateY(-1px);
}

.nav__cta--mobile { display: none; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}


/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--white);
  overflow: hidden;
  padding: 120px 0 100px;
}

.hero__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg stroke='%231565A0' stroke-width='1.5'%3E%3Cpath d='M40 0L80 40L40 80L0 40z'/%3E%3Cpath d='M40 12L68 40L40 68L12 40z'/%3E%3Ccircle cx='40' cy='40' r='8'/%3E%3Ccircle cx='40' cy='40' r='3' fill='%231565A0'/%3E%3Ccircle cx='0' cy='0' r='4'/%3E%3Ccircle cx='80' cy='0' r='4'/%3E%3Ccircle cx='0' cy='80' r='4'/%3E%3Ccircle cx='80' cy='80' r='4'/%3E%3Cpath d='M40 0L40 12M80 40L68 40M40 80L40 68M0 40L12 40'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero__glow--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(21,101,160,0.12), transparent 70%);
  top: -100px;
  right: -100px;
}

.hero__glow--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212,152,58,0.1), transparent 70%);
  bottom: 50px;
  left: -80px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content {
  text-align: left;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--azulejo);
  background: var(--azulejo-pale);
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 22px;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: #22C55E;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
  animation: pulse-dot 2s ease infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.2); }
  50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0.08); }
}

.hero__title {
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero__pain {
  background: linear-gradient(135deg, rgba(199,97,58,0.06), rgba(212,152,58,0.06));
  border-left: 3px solid var(--terracotta);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.hero__pain p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.hero__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.08rem);
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.75;
}

.hero__highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin-bottom: 28px;
}

.hero__highlight {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.hero__highlight svg {
  color: var(--azulejo-bright);
  flex-shrink: 0;
  background: var(--azulejo-pale);
  border-radius: 50%;
  padding: 2px;
  width: 20px;
  height: 20px;
}

.hero__cta {
  margin-bottom: 28px;
}

.hero__social {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero__stars {
  display: flex;
  gap: 2px;
  color: var(--gold);
}

/* ─── Hero Animation ─── */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-anim {
  position: relative;
  width: 340px;
  height: 320px;
}

.hero-anim__house {
  width: 280px;
  height: auto;
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 8px 24px rgba(21,101,160,0.12));
}

/* Scan line */
.hero-anim__scan {
  position: absolute;
  left: 30px;
  right: 30px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--azulejo-bright), var(--azulejo-sky), var(--azulejo-bright), transparent);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(30,136,200,0.4);
  animation: scan-move 4s ease-in-out infinite;
  opacity: 0.85;
}

@keyframes scan-move {
  0%, 100% { top: 60px; opacity: 0; }
  10%       { opacity: 0.85; }
  90%       { opacity: 0.85; }
  95%       { opacity: 0; }
  50%       { top: 260px; }
}

/* Floating data cards */
.hero-anim__card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(21,101,160,0.12);
  border: 1px solid rgba(21,101,160,0.08);
  white-space: nowrap;
  animation: card-float 6s ease-in-out infinite;
}

.hero-anim__card--temp {
  top: 30px;
  right: -10px;
  color: var(--terracotta);
  animation-delay: 0s;
}

.hero-anim__card--humidity {
  top: 130px;
  left: -20px;
  color: var(--azulejo);
  animation-delay: -2s;
}

.hero-anim__card--air {
  bottom: 50px;
  right: -5px;
  color: #22C55E;
  animation-delay: -4s;
}

@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* Animated checkmarks */
.hero-anim__check {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22C55E, #16A34A);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(34,197,94,0.35);
  animation: check-pop 6s ease-in-out infinite;
}

.hero-anim__check--1 {
  top: 75px;
  left: 10px;
  animation-delay: 0.5s;
}

.hero-anim__check--2 {
  bottom: 85px;
  left: 25px;
  animation-delay: 2s;
}

.hero-anim__check--3 {
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 3.5s;
}

@keyframes check-pop {
  0%, 15%  { transform: scale(0); opacity: 0; }
  20%      { transform: scale(1.15); opacity: 1; }
  25%, 85% { transform: scale(1); opacity: 1; }
  90%      { transform: scale(0); opacity: 0; }
  100%     { transform: scale(0); opacity: 0; }
}

.hero-anim__check--3 {
  animation-name: check-pop-center;
}

@keyframes check-pop-center {
  0%, 15%  { transform: translateX(-50%) scale(0); opacity: 0; }
  20%      { transform: translateX(-50%) scale(1.15); opacity: 1; }
  25%, 85% { transform: translateX(-50%) scale(1); opacity: 1; }
  90%      { transform: translateX(-50%) scale(0); opacity: 0; }
  100%     { transform: translateX(-50%) scale(0); opacity: 0; }
}

/* Camera REC badge */
.hero-anim__cam {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(26,35,50,0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 50px;
  white-space: nowrap;
}

.hero-anim__cam svg {
  color: #fff;
  flex-shrink: 0;
}

.hero-anim__cam-dot {
  width: 7px;
  height: 7px;
  background: #F43F5E;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(244,63,94,0.3);
  animation: pulse-dot 1.5s ease infinite;
}

/* ─── Lead Form (contact section) ─── */
.lead-form {
  background: #fff;
  border-radius: 20px;
  padding: 0 0 28px;
  box-shadow: 0 16px 56px rgba(21,101,160,0.14), 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid rgba(21,101,160,0.08);
  overflow: hidden;
}

.lead-form__head {
  background: linear-gradient(135deg, var(--azulejo), var(--azulejo-deep));
  padding: 24px 28px 22px;
  margin-bottom: 20px;
}

.lead-form__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.lead-form__subtitle {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
}

.lead-form__field {
  margin-bottom: 14px;
  padding: 0 28px;
}

.lead-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 0;
  padding: 0 28px;
}

.lead-form__row .lead-form__field {
  padding: 0;
  margin-bottom: 14px;
}

.lead-form__field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.lead-form__field label span {
  font-weight: 500;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}

.lead-form__field input,
.lead-form__field select {
  width: 100%;
  padding: 11px 13px;
  font-size: 0.93rem;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--sand-light);
  border: 1.5px solid rgba(21,101,160,0.1);
  border-radius: 9px;
  outline: none;
  transition: all var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.lead-form__field select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%234A5568' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
}

.lead-form__field input:focus,
.lead-form__field select:focus {
  border-color: var(--azulejo-bright);
  box-shadow: 0 0 0 3px rgba(30,136,200,0.1);
  background: #fff;
}

.lead-form__field input::placeholder {
  color: var(--text-muted);
}

.lead-form__btn {
  width: calc(100% - 56px);
  margin: 4px 28px 0;
  justify-content: center;
  padding: 15px 24px;
  font-size: 1rem;
  font-weight: 700;
}

.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero__wave svg { width: 100%; height: auto; }


/* ═══════════════════════════════════════════
   VISIT PROTOCOL
   ═══════════════════════════════════════════ */

.protocol {
  background: var(--sand);
  padding: var(--section-py) 0;
  padding-top: 48px;
}

.protocol__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.protocol__step {
  display: flex;
  gap: 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(21,101,160,0.06);
  transition: all var(--transition);
}

.protocol__step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.protocol__num {
  min-width: 48px;
  background: linear-gradient(180deg, var(--azulejo), var(--azulejo-deep));
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 22px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.protocol__body {
  padding: 20px 20px 20px 16px;
}

.protocol__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(21,101,160,0.1), rgba(74,172,221,0.08));
  color: var(--azulejo);
}

.protocol__icon--blue  { background: linear-gradient(135deg, rgba(21,101,160,0.1), rgba(74,172,221,0.08)); color: var(--azulejo); }
.protocol__icon--sky   { background: linear-gradient(135deg, rgba(74,172,221,0.12), rgba(21,101,160,0.06)); color: var(--azulejo-sky); }
.protocol__icon--gold  { background: linear-gradient(135deg, rgba(212,152,58,0.12), rgba(212,152,58,0.06)); color: var(--gold); }
.protocol__icon--terracotta { background: linear-gradient(135deg, rgba(199,97,58,0.12), rgba(199,97,58,0.06)); color: var(--terracotta); }

.protocol__title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.protocol__text {
  font-size: 0.88rem;
  line-height: 1.65;
}

.protocol__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.protocol__metric {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--azulejo);
  background: var(--azulejo-pale);
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: 0.02em;
}


/* ═══════════════════════════════════════════
   CAMERA USP
   ═══════════════════════════════════════════ */

.camera-usp {
  background: var(--white);
  padding: var(--section-py) 0;
}

.camera-usp__inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: center;
  background: linear-gradient(135deg, var(--azulejo-deep) 0%, var(--azulejo) 100%);
  border-radius: 24px;
  padding: 56px 56px 56px 48px;
  overflow: hidden;
  position: relative;
}

.camera-usp__inner::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg stroke='%23ffffff' stroke-width='1'%3E%3Cpath d='M30 0L60 30L30 60L0 30z'/%3E%3Ccircle cx='30' cy='30' r='8'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.camera-usp__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.camera-usp__icon-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.camera-usp__rec {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.12em;
  background: rgba(255,255,255,0.12);
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2);
}

.camera-usp__rec-dot {
  width: 8px;
  height: 8px;
  background: #F43F5E;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(244,63,94,0.3);
  animation: pulse-dot 1.5s ease infinite;
}

.camera-usp__content {
  position: relative;
  z-index: 1;
}

.camera-usp__title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 12px 0 16px;
}

.camera-usp__text {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 520px;
}

.camera-usp__benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.camera-usp__benefit {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
}

.camera-usp__benefit svg {
  color: #4ADE80;
  flex-shrink: 0;
  margin-top: 2px;
}


/* ═══════════════════════════════════════════
   EMERGENCY VISIT
   ═══════════════════════════════════════════ */

.emergency {
  background: var(--white);
  padding: var(--section-py) 0;
  padding-top: 0;
}

.emergency__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, var(--terracotta-light), var(--gold-light));
  border: 2px solid var(--terracotta);
  border-radius: 24px;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.emergency__inner::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(199,97,58,0.08);
  pointer-events: none;
}

.emergency__icon-wrap {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--terracotta), #A84E28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 28px rgba(199,97,58,0.3);
  flex-shrink: 0;
}

.emergency__label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  background: rgba(199,97,58,0.12);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.emergency__title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.emergency__text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 600px;
}

.emergency__features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.emergency__feature {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.emergency__feature svg {
  color: var(--terracotta);
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════
   SCOPE — Do / Don't
   ═══════════════════════════════════════════ */

.scope {
  background: var(--white);
  padding: var(--section-py) 0;
}

.scope__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}

.scope__card {
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 2px solid;
}

.scope__card--do {
  background: linear-gradient(160deg, rgba(21,101,160,0.04), rgba(74,172,221,0.04));
  border-color: var(--azulejo-bright);
}

.scope__card--dont {
  background: linear-gradient(160deg, rgba(199,97,58,0.03), rgba(212,152,58,0.03));
  border-color: var(--terracotta);
}

.scope__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.scope__header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.scope__card--do .scope__header svg { color: var(--azulejo-bright); }
.scope__card--dont .scope__header svg { color: var(--terracotta); }

.scope__list {
  list-style: none;
  padding: 0;
}

.scope__list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.scope__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.scope__card--do .scope__list li::before {
  background: var(--azulejo-bright);
  box-shadow: 0 0 0 3px rgba(30,136,200,0.15);
}

.scope__card--dont .scope__list li::before {
  background: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(199,97,58,0.12);
}

.scope__note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(199,97,58,0.15);
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.65;
}


/* ═══════════════════════════════════════════
   TILE DIVIDER
   ═══════════════════════════════════════════ */

.tile-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px 0;
  background: var(--white);
}

.tile-divider__line {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--azulejo-pale), transparent);
  border-radius: 1px;
}

.tile-divider__diamond {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin-slow 20s linear infinite;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}


/* ═══════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════ */

.how {
  background: var(--white);
  padding: var(--section-py) 0;
  padding-top: 24px;
}

.how__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.how__step {
  text-align: center;
  position: relative;
}

.how__step-top {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
}

.how__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--azulejo-bright), var(--azulejo));
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(21,101,160,0.3);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.how__line {
  position: absolute;
  left: calc(50% + 28px);
  top: 50%;
  width: calc(100% - 16px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--azulejo-pale) 0, var(--azulejo-pale) 6px, transparent 6px, transparent 12px);
  z-index: 1;
}

.how__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--sand-light);
  border: 2px solid var(--azulejo-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--azulejo);
  margin: 0 auto 18px;
  transition: all var(--transition);
}

.how__step:hover .how__icon {
  background: var(--azulejo-pale);
  border-color: var(--azulejo-bright);
  transform: scale(1.08);
}

.how__title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.how__text {
  font-size: 0.93rem;
  line-height: 1.7;
  max-width: 280px;
  margin: 0 auto;
}


/* ═══════════════════════════════════════════
   WHY HOMELOG
   ═══════════════════════════════════════════ */

.why {
  position: relative;
  background: linear-gradient(160deg, var(--azulejo-deep) 0%, var(--azulejo) 50%, #1A7AB5 100%);
  padding: var(--section-py) 0;
  overflow: hidden;
}

.why__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg stroke='%23ffffff' stroke-width='1'%3E%3Cpath d='M40 0L80 40L40 80L0 40z'/%3E%3Cpath d='M40 15L65 40L40 65L15 40z'/%3E%3Ccircle cx='40' cy='40' r='6'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.why__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: all var(--transition);
}

.why__item:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.why__item--wide {
  grid-column: 1 / -1;
  max-width: 460px;
  justify-self: center;
}

.why__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.why__icon--gold { background: rgba(212,152,58,0.3); color: #FFD080; }
.why__icon--terracotta { background: rgba(199,97,58,0.3); color: #FFB899; }

.why__title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.why__text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.75);
}


/* ═══════════════════════════════════════════
   BRAND STATEMENT
   ═══════════════════════════════════════════ */

.brand {
  position: relative;
  background: var(--sand);
  padding: var(--section-py) 0;
  overflow: hidden;
}

.brand__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg stroke='%231565A0' stroke-width='1.5'%3E%3Cpath d='M40 0L80 40L40 80L0 40z'/%3E%3Cpath d='M40 12L68 40L40 68L12 40z'/%3E%3Ccircle cx='40' cy='40' r='8'/%3E%3Ccircle cx='40' cy='40' r='3' fill='%231565A0'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.brand__quote {
  text-align: center;
  max-width: 740px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.brand__tile {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.brand__quote p {
  font-size: clamp(1.18rem, 2.5vw, 1.5rem);
  line-height: 1.8;
  color: var(--text-primary);
  font-weight: 500;
  font-style: italic;
}


/* ═══════════════════════════════════════════
   CONTACT CTA
   ═══════════════════════════════════════════ */

.contact {
  background: var(--sand);
  padding: var(--section-py) 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 56px;
  align-items: start;
}

.contact__copy {
  padding-top: 24px;
}

.contact__title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--text-primary);
  margin: 16px 0 14px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.contact__text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact__perks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.contact__perk {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact__perk svg {
  color: var(--azulejo-bright);
  flex-shrink: 0;
  background: var(--azulejo-pale);
  border-radius: 50%;
  padding: 3px;
  width: 24px;
  height: 24px;
}

.contact__email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--azulejo);
  padding: 10px 20px;
  border: 2px solid var(--azulejo-pale);
  border-radius: 50px;
  transition: all var(--transition);
}

.contact__email:hover {
  background: var(--azulejo-pale);
  border-color: var(--azulejo-bright);
}

.contact__form-wrap {
  position: relative;
}

.btn--white-outline {
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06);
}

.btn--white-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.12);
}


/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */

.footer {
  background: #0C3A5C;
  color: rgba(255,255,255,0.7);
  padding-top: 56px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}

.footer__logo {
  display: inline-block;
  margin-bottom: 12px;
}

.footer__logo-img {
  height: 34px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer__tagline {
  font-size: 0.92rem;
  line-height: 1.6;
  opacity: 0.6;
}

.footer__heading {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer__link {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 10px;
  transition: color var(--transition);
}

.footer__link:hover { color: #fff; }

.footer__location {
  font-size: 0.88rem;
  opacity: 0.5;
  margin-top: 4px;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  font-size: 0.82rem;
  opacity: 0.4;
  text-align: center;
}


/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr 320px;
    gap: 32px;
  }

  .hero__title {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  }

  .hero-anim {
    width: 280px;
    height: 280px;
  }

  .hero-anim__house { width: 240px; }
  .hero-anim__card--temp { right: -20px; }
  .hero-anim__card--humidity { left: -30px; }
  .hero-anim__card--air { right: -15px; }

  .protocol__grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .scope__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

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

  .how__line { display: none; }

  .camera-usp__inner {
    grid-template-columns: 1fr;
    padding: 40px 36px;
    text-align: center;
  }

  .camera-usp__visual {
    flex-direction: row;
    justify-content: center;
  }

  .camera-usp__benefits {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .camera-usp__text {
    max-width: 100%;
  }

  .why__grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .why__item--wide { max-width: 100%; }

  .contact__grid {
    grid-template-columns: 1fr 380px;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 32px;
    gap: 20px;
    box-shadow: -4px 0 32px rgba(0,0,0,0.12);
    transition: right var(--transition);
    z-index: 999;
  }

  .nav__links.is-open { right: 0; }
  .nav__cta--desktop { display: none; }
  .nav__cta--mobile { display: inline-block; margin-top: 12px; }

  .nav__hamburger {
    display: flex;
    z-index: 1001;
  }

  .nav__hamburger.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav__hamburger.is-active span:nth-child(2) { opacity: 0; }
  .nav__hamburger.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero__content {
    text-align: center;
  }

  .hero__pain {
    text-align: left;
  }

  .hero__highlights {
    justify-items: start;
    max-width: 360px;
    margin: 0 auto 28px;
  }

  .hero__social {
    justify-content: center;
  }

  .hero__visual {
    display: none;
  }

  .scope__card {
    padding: 28px 24px;
  }

  .how__steps {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 16px auto 0;
  }

  .camera-usp__inner {
    padding: 36px 24px;
    border-radius: 20px;
  }

  .camera-usp__benefits {
    grid-template-columns: 1fr;
  }

  .emergency__inner {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    text-align: center;
    gap: 24px;
  }

  .emergency__icon-wrap {
    margin: 0 auto;
    width: 72px;
    height: 72px;
  }

  .emergency__features {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact__copy {
    text-align: center;
    padding-top: 0;
  }

  .contact__perks {
    align-items: center;
  }

  .lead-form {
    max-width: 460px;
    margin: 0 auto;
  }

  .lead-form__row {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}


/* ═══════════════════════════════════════════
   MOBILE OVERLAY
   ═══════════════════════════════════════════ */

.nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.nav__overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}
