/* ==========================================================================
   GoldHome Appliances — Design Tokens
   Direction: Industrial-modern with warmth. Confident local tradesperson,
   not a generic SaaS template.
   ========================================================================== */

:root {
  /* Color tokens */
  --navy: #1B2A4A;
  --navy-deep: #131E36;
  --gold: #D9A441;
  --gold-bright: #E8B85C;
  --cream: #F7F5F0;
  --charcoal: #20201D;
  --teal: #4A7C7C;
  --white: #FFFFFF;
  --line: rgba(27, 42, 74, 0.12);

  /* Type */
  --font-display: 'Fraunces', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.6rem, 1.4rem + 0.9vw, 2rem);
  --step-3: clamp(2.2rem, 1.8rem + 1.8vw, 3rem);
  --step-4: clamp(2.8rem, 2.1rem + 3.2vw, 4.5rem);

  --container: 1180px;
  --radius: 14px;
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--navy);
}
h1, h2 { font-weight: 800; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 8px 20px -6px rgba(217, 164, 65, 0.55);
}
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(247, 245, 240, 0.35);
}
.btn-ghost:hover { border-color: var(--cream); transform: translateY(-2px); }
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-outline-navy:hover { border-color: var(--navy); transform: translateY(-2px); }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 54px;
  width: auto;
}
.footer-logo img {
  height: 60px;
}

.nav-links {
  display: flex;
  gap: 34px;
}
.nav-links a {
  position: relative;
  font-weight: 500;
  font-size: var(--step--1);
  color: var(--navy);
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-phone {
  display: none;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
}

.call-icon { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 110;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 7px;
  width: 30px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); background: var(--navy); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); background: var(--navy); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 56px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.status-strip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 28px;
  box-shadow: 0 6px 16px -10px rgba(27, 42, 74, 0.3);
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3FA772;
  position: relative;
  flex-shrink: 0;
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid #3FA772;
  animation: pulse-ring 2.2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.9); opacity: 0; }
}

.hero h1 {
  font-size: var(--step-4);
  font-weight: 800;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-sub {
  font-size: var(--step-1);
  color: rgba(32, 32, 29, 0.75);
  max-width: 46ch;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero visual: real technician photo with a "fixed" glow behind it */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual .glow {
  position: absolute;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(217,164,65,0.35), transparent 70%);
  filter: blur(10px);
  animation: glow-breathe 4.5s ease-in-out infinite;
}
@keyframes glow-breathe {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.12); opacity: 1; }
}
.hero-photo {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(19, 30, 54, 0.55);
  border: 1px solid var(--line);
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 25%;
}
.hero-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(247, 245, 240, 0.94);
  backdrop-filter: blur(6px);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: 0 10px 24px -12px rgba(19, 30, 54, 0.5);
}
.hero-badge .status-dot { width: 8px; height: 8px; }

/* About collage */
.about-photos {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 12px;
  margin-top: 32px;
  height: 320px;
}
.about-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.about-photos .photo-main {
  grid-row: 1 / 3;
}

/* ==========================================================================
   Facts band
   ========================================================================== */
.facts-band {
  background: var(--navy);
  color: var(--cream);
}
.facts-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  padding: 26px 24px;
}
.fact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--step--1);
  font-weight: 500;
  color: rgba(247, 245, 240, 0.92);
}
.fact svg { width: 18px; height: 18px; stroke: var(--gold); flex-shrink: 0; }
.fact-emergency { color: var(--gold-bright); font-weight: 700; }
.fact-emergency svg { stroke: var(--gold-bright); }

/* ==========================================================================
   Section shared
   ========================================================================== */
.section { padding: 96px 0; }
.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}
.section-head h2 {
  font-size: var(--step-3);
  font-weight: 700;
}
.section-head p {
  margin-top: 16px;
  color: rgba(32, 32, 29, 0.7);
  font-size: var(--step-1);
}
.section-head .lede {
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-2);
  line-height: 1.3;
  color: var(--navy);
  max-width: 720px;
}
.section-tint { background: var(--white); }

/* ==========================================================================
   Services grid
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 20px 36px -22px rgba(27, 42, 74, 0.35);
}
.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 24px; height: 24px; stroke: var(--gold); }
.service-card h3 {
  font-size: var(--step-1);
  margin-bottom: 10px;
}
.service-card p { color: rgba(32, 32, 29, 0.68); font-size: var(--step--1); }

/* ==========================================================================
   Installations / Sales band
   ========================================================================== */
.highlight-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-top: 3px solid var(--gold);
  border-radius: 24px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(19, 30, 54, 0.6);
}
.highlight-band::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,164,65,0.25), transparent 70%);
}
.highlight-band .eyebrow { color: var(--gold-bright); }
.highlight-band h2 {
  color: var(--white);
  font-size: var(--step-3);
  font-weight: 700;
  margin-bottom: 14px;
}
.highlight-band p {
  color: rgba(247, 245, 240, 0.78);
  font-size: var(--step-0);
  max-width: 52ch;
}
.highlight-features {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.highlight-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--step--1);
  font-weight: 500;
  color: rgba(247, 245, 240, 0.9);
}
.highlight-features svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold-bright);
  flex-shrink: 0;
  margin-top: 2px;
}
.highlight-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}
.highlight-actions .btn { text-align: center; }

/* ==========================================================================
   How it works
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
  position: relative;
}
.step {
  position: relative;
  padding-top: 8px;
}
.step-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.9;
  margin-bottom: 14px;
  line-height: 1;
}
.step h3 {
  font-size: var(--step-1);
  margin-bottom: 10px;
}
.step p { color: rgba(32, 32, 29, 0.68); font-size: var(--step--1); }

/* ==========================================================================
   About
   ========================================================================== */
.about-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.about-points {
  display: grid;
  gap: 22px;
  margin-top: 32px;
}
.about-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.about-point svg {
  width: 20px; height: 20px;
  stroke: var(--teal);
  flex-shrink: 0;
  margin-top: 3px;
}
.about-point p { font-weight: 500; color: var(--navy); }
.about-body p {
  font-size: var(--step-1);
  color: rgba(32, 32, 29, 0.75);
  line-height: 1.6;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  background: var(--charcoal);
  color: var(--cream);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact h2 {
  color: var(--cream);
  font-size: var(--step-3);
  font-weight: 700;
  margin-bottom: 18px;
}
.contact-lead {
  color: rgba(247, 245, 240, 0.68);
  font-size: var(--step-0);
  max-width: 42ch;
  margin-bottom: 36px;
}
.phone-link {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 28px;
}
.phone-link svg { width: 30px; height: 30px; stroke: var(--gold); align-self: center; }
.contact-meta {
  display: grid;
  gap: 10px;
  font-size: var(--step--1);
  color: rgba(247, 245, 240, 0.75);
}
.contact-meta strong { color: var(--cream); font-weight: 600; }

.form-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 36px;
}
.form-card h3 {
  color: var(--navy);
  font-size: var(--step-1);
  margin-bottom: 6px;
}
.form-card > p {
  color: rgba(32, 32, 29, 0.6);
  font-size: var(--step--1);
  margin-bottom: 24px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: inherit;
  font-size: 16px;
  color: var(--charcoal);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.field textarea { resize: vertical; min-height: 90px; }
.form-card .btn-primary { width: 100%; }
.form-note {
  font-size: 0.78rem;
  color: rgba(32,32,29,0.5);
  margin-top: 12px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--navy-deep);
  color: rgba(247, 245, 240, 0.7);
  padding: 48px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(247,245,240,0.12);
}
.footer .logo { color: var(--cream); }
.footer-tagline {
  font-size: var(--step--1);
  color: rgba(247,245,240,0.55);
  margin-top: 8px;
  max-width: 34ch;
}
.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-col h4 {
  color: var(--cream);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul { display: grid; gap: 10px; font-size: var(--step--1); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 22px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(247,245,240,0.45);
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ==========================================================================
   Polish: grain, custom cursor, micro-interactions
   ========================================================================== */

/* Ambient grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Custom cursor (desktop, fine-pointer only — enabled via JS) */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  will-change: transform;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cursor-dot { width: 6px; height: 6px; background: var(--gold); }
.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(217, 164, 65, 0.5);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, opacity 0.3s ease;
}
.cursor-ring.hover { width: 54px; height: 54px; border-color: var(--gold); }
body.cursor-ready .cursor-dot,
body.cursor-ready .cursor-ring { opacity: 1; }
body.cursor-ready, body.cursor-ready a, body.cursor-ready button {
  cursor: none;
}
body.cursor-ready input,
body.cursor-ready textarea,
body.cursor-ready select {
  cursor: auto;
}

/* Hero photo magnetic tilt */
.hero-photo {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
  will-change: transform;
}

/* Primary button shine sweep */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-primary:hover::after { left: 120%; }

/* Service icon micro-interaction */
.service-icon { transition: transform 0.35s ease; }
.service-card:hover .service-icon { transform: rotate(-6deg) scale(1.08); }

/* Form focus glow */
.field input:focus, .field select:focus, .field textarea:focus {
  box-shadow: 0 0 0 4px rgba(217, 164, 65, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  body::before { display: none; }
  .hero-photo { transition: none; }
  .btn-primary::after { display: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 860px) {
  .nav-phone { display: block; }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .about-inner { grid-template-columns: 1fr; gap: 36px; }
  .highlight-band { grid-template-columns: 1fr; text-align: left; }
  .highlight-actions { align-items: stretch; margin-top: 8px; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 0 0 0 30%;
    top: 0;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 26px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 105;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: var(--cream); font-size: 1.1rem; }
  .nav-links a::after { background: var(--gold); }
  .nav-toggle { display: block; }
  .logo img { height: 38px; }
  .nav-cta .btn-call span { display: none; }
  .nav-cta .btn-call .call-icon {
    display: block;
    width: 20px;
    height: 20px;
    stroke: var(--navy-deep);
  }
  .nav-cta .btn-call {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .section { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-photo img { aspect-ratio: 4 / 3; object-position: center 30%; }
  .about-photos { height: 240px; margin-top: 24px; }
  .facts-inner { justify-content: flex-start; gap: 18px 28px; }
  .highlight-band { padding: 32px 24px; border-radius: 18px; }
  .form-card { padding: 24px; }
  .phone-link { font-size: var(--step-2); }
}
