/* ===================================================
   INTEGRATED HOME CONTROL — MAIN STYLESHEET
   Aesthetic: Warm luxury minimalism. Editorial calm.
   Palette: Warm ivory, deep charcoal, muted gold, slate.
   =================================================== */

:root {
  --ivory:      #f7f4ef;
  --ivory-dark: #ede9e1;
  --charcoal:   #1e1d1b;
  --warm-black: #151412;
  --gold:       #b49b6e;
  --gold-light: #d4bc96;
  --slate:      #6b6560;
  --slate-light:#9e9790;
  --white:      #ffffff;

  --ff-serif:  'Cormorant Garamond', Georgia, serif;
  --ff-sans:   'Jost', 'Helvetica Neue', Helvetica, sans-serif;

  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --max-w: 1240px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-sans);
  background: var(--ivory);
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ======================== UTILITIES ======================== */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  font-family: var(--ff-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 28px;
}

.section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}

.body-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--slate);
  margin-bottom: 18px;
  font-weight: 300;
}

.optional {
  color: var(--slate-light);
  font-size: 12px;
}

/* ======================== BUTTONS ======================== */

.btn {
  display: inline-block;
  font-family: var(--ff-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 2px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--gold);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--charcoal);
  color: var(--white);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
}

.btn--outline:hover {
  background: var(--charcoal);
  color: var(--white);
}

.btn--full {
  width: 100%;
  text-align: center;
}

/* ======================== NAVIGATION ======================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(247, 244, 239, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--ff-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  transition: color var(--transition);
}

.nav.scrolled .nav-logo {
  color: var(--charcoal);
}

.nav-cta {
  font-family: var(--ff-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.6);
  padding: 10px 22px;
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-cta:hover {
  background: rgba(255,255,255,0.15);
}

.nav.scrolled .nav-cta {
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.nav.scrolled .nav-cta:hover {
  background: var(--charcoal);
  color: var(--white);
}

/* ======================== HERO ======================== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  transform: scale(1.04);
  transition: opacity 1.2s ease, transform 8s ease;
}

/* Per-image mobile crop positions — keeps shades/windows in frame */
@media (max-width: 768px) {
  .hero-img--1 { object-position: 40% center; } /* living: shift left toward windows */
  .hero-img--2 { object-position: 20% 25%; }     /* bedroom: anchor left to show left window shade */
  .hero-img--3 { object-position: 70% center; }  /* dining: slight nudge left from 75% */
}

.hero-img.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(20, 18, 16, 0.62) 0%,
    rgba(20, 18, 16, 0.35) 60%,
    rgba(20, 18, 16, 0.28) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 40px;
  max-width: 720px;
  margin-left: max(40px, calc((100vw - var(--max-w)) / 2 + 40px));
  animation: fadeUp 1.1s ease 0.3s both;
}

.hero-eyebrow {
  font-family: var(--ff-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--ff-serif);
  font-size: clamp(46px, 6.5vw, 88px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 28px;
}

.hero-headline em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  font-family: var(--ff-sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll span {
  display: block;
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.4);
  margin: 0 auto;
  animation: scrollPulse 2.4s ease infinite;
  transform-origin: top;
}

.hero-dots {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 2;
  display: flex;
  gap: 10px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.dot.active {
  background: var(--gold-light);
  border-color: var(--gold-light);
  width: 20px;
  border-radius: 3px;
}

/* ======================== INTRO ======================== */

.intro {
  padding: 120px 0;
  background: var(--ivory);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.intro-text {
  animation: fadeUp 0.8s ease both;
}

.intro-img-wrap {
  position: relative;
}

.intro-img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  border-radius: 2px;
  filter: brightness(0.97);
}

.intro-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--charcoal);
  color: var(--white);
  padding: 24px 28px;
  border-radius: 2px;
  text-align: center;
}

.badge-number {
  display: block;
  font-family: var(--ff-serif);
  font-size: 36px;
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
}

.badge-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
}

/* ======================== SERVICES ======================== */

.services {
  padding: 80px 0 120px;
  background: var(--ivory-dark);
}

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

.service-card {
  background: var(--white);
  padding: 52px 44px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  z-index: 1;
}

.service-icon {
  width: 52px;
  height: 52px;
  color: var(--gold);
  margin-bottom: 28px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-title {
  font-family: var(--ff-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.service-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--slate);
  font-weight: 300;
}

/* ======================== PROCESS ======================== */

.process {
  padding: 120px 0;
  background: var(--ivory);
}

.process-header {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 72px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 2px;
}

.step-divider {
  display: none;
}

.step {
  background: var(--white);
  padding: 52px 40px;
  text-align: left;
  height: 100%;
  border-bottom: none;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  z-index: 1;
}

.step-num {
  font-family: var(--ff-serif);
  font-size: 56px;
  font-weight: 300;
  color: var(--ivory-dark);
  line-height: 1;
  margin-bottom: 24px;
  display: block;
}

.step-num::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  margin: 14px 0 0;
}

/* step-divider is hidden — kept in HTML for legacy compatibility */

.step-title {
  font-family: var(--ff-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 14px;
}

.step-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
  font-weight: 300;
}

/* .step-divider — hidden via display:none in .process-steps block above */

/* ======================== IMAGE BREAK ======================== */

.image-break {
  position: relative;
  height: 55vh;
  min-height: 380px;
  overflow: hidden;
}

.break-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  filter: brightness(0.6);
}

.break-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(20,18,16,0.5) 0%, rgba(20,18,16,0.1) 100%);
}

.break-quote {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 60px;
  z-index: 2;
}

.break-quote blockquote {
  font-family: var(--ff-serif);
  font-size: clamp(24px, 3.5vw, 44px);
  font-style: italic;
  font-weight: 300;
  color: var(--white);
  text-align: center;
  max-width: 800px;
  line-height: 1.4;
}

/* ======================== WHY US ======================== */

.why {
  padding: 120px 0;
  background: var(--ivory);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-img-wrap {
  position: relative;
}

.why-img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  border-radius: 2px;
}

.why-list {
  list-style: none;
  margin-bottom: 40px;
}

.why-item {
  display: flex;
  gap: 18px;
  margin-bottom: 26px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--slate);
  font-weight: 300;
}

.why-item strong {
  color: var(--charcoal);
  font-weight: 500;
}

.why-check {
  flex-shrink: 0;
  color: var(--gold);
  font-size: 16px;
  margin-top: 2px;
}

/* ======================== SOCIAL PROOF ======================== */

.social-proof {
  padding: 80px 0;
  background: var(--charcoal);
}

.proof-inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.proof-mark {
  font-family: var(--ff-serif);
  font-size: 96px;
  color: var(--gold);
  line-height: 0.6;
  margin-bottom: 20px;
  opacity: 0.6;
}

.proof-quote {
  font-family: var(--ff-serif);
  font-size: clamp(22px, 3vw, 32px);
  font-style: italic;
  font-weight: 300;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 28px;
}

.proof-cite {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ======================== WALKTHROUGH FORM ======================== */

.walkthrough {
  padding: 120px 0;
  background: var(--ivory-dark);
}

.walkthrough-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.walk-details {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.walk-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--slate);
  font-weight: 300;
}

.walk-icon {
  color: var(--gold);
  font-size: 18px;
  flex-shrink: 0;
}

/* Form */

.form-wrap {
  background: var(--white);
  padding: 52px 48px;
  border-radius: 2px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.06);
}

.form-title {
  font-family: var(--ff-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 36px;
}

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

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--ivory-dark);
  border-radius: 2px;
  padding: 13px 16px;
  font-family: var(--ff-sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--charcoal);
  background: var(--ivory);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6560' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(180, 155, 110, 0.12);
  background: var(--white);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--slate-light);
  font-weight: 300;
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}

.form-fine {
  font-size: 12px;
  color: var(--slate-light);
  text-align: center;
  margin-top: 16px;
  line-height: 1.6;
}

/* Success state */

.form-success {
  text-align: center;
  padding: 60px 20px;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-size: 28px;
  line-height: 64px;
  text-align: center;
  margin: 0 auto 28px;
}

.form-success h3 {
  font-family: var(--ff-serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.form-success p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--slate);
  font-weight: 300;
}

/* ======================== FOOTER ======================== */

.footer {
  background: var(--warm-black);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
}

.footer-logo {
  font-family: var(--ff-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  max-width: 300px;
}

.footer-contact {
  text-align: right;
  font-size: 14px;
  font-weight: 300;
}

.footer-phone {
  display: block;
  font-family: var(--ff-serif);
  font-size: 24px;
  font-weight: 300;
  color: var(--gold-light);
  margin-top: 8px;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.footer-phone:hover {
  color: var(--white);
}

.footer-bottom {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ======================== ANIMATIONS ======================== */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  30% { opacity: 1; }
  70% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ======================== RESPONSIVE ======================== */

@media (max-width: 960px) {

  .container { padding: 0 28px; }

  .nav { padding: 0 28px; }

  .hero-content {
    margin-left: 28px;
    padding: 0;
  }

  .intro-grid,
  .why-grid,
  .walkthrough-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .intro-img { height: 420px; }

  .intro-badge {
    bottom: -16px;
    right: -8px;
  }

  .why-img { height: 420px; }

  /* Services: stack on tablet */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  /* Service image bleed — recalculate for tablet card padding */
  .service-card { padding: 48px 32px; }

  /* Process: stack on tablet */
  .process-steps {
    grid-template-columns: 1fr;
  }
  .step { padding: 40px 32px; }

  .field-row { grid-template-columns: 1fr; gap: 0; }

  .form-wrap { padding: 36px 28px; }

  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-contact { text-align: left; }
}

@media (max-width: 600px) {

  .container { padding: 0 20px; }

  .nav { padding: 0 20px; }
  .nav-inner { gap: 12px; }

  /* Nav: shrink CTA slightly so both items fit */
  .nav-cta {
    font-size: 10px;
    padding: 8px 14px;
    letter-spacing: 0.12em;
  }

  .hero { min-height: 600px; }
  .hero-content { margin-left: 20px; }
  .hero-headline { font-size: 36px; }
  .hero-sub { font-size: 15px; }
  .hero-dots { bottom: 20px; right: 20px; }
  .hero-scroll { display: none; } /* avoid clutter on small screens */

  .intro { padding: 80px 0; }
  .intro-img { height: 300px; }

  .services { padding: 60px 0 80px; }
  .service-card { padding: 48px 28px; }

  .process { padding: 80px 0; }
  .process-header { margin-bottom: 48px; }
  .step { padding: 36px 28px; }

  .image-break { height: 45vh; min-height: 260px; }
  .break-quote { padding: 0 28px; }
  .break-quote blockquote { font-size: 20px; }

  .why { padding: 80px 0; }
  .why-img { height: 300px; }

  .social-proof { padding: 60px 0; }

  .walkthrough { padding: 80px 0; }
  .walkthrough-grid { gap: 40px; }
  .form-wrap { padding: 32px 20px; }

  .footer { padding: 48px 0 28px; }
}
