/* ============================================
   National City Appliance Repair & Service
   Clean Minimalist — Terracotta + Sand
   ============================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --terracotta: #C2704E;
  --terracotta-dark: #A85A3A;
  --terracotta-light: #D4916F;
  --sand: #F5F0EB;
  --sand-dark: #EDE6DF;
  --sand-light: #FAF7F4;
  --charcoal: #1E1E1E;
  --dark: #2C2C2C;
  --gray-900: #1A1A1A;
  --gray-700: #4A4A4A;
  --gray-600: #5A5A5A;
  --gray-500: #7A7A7A;
  --gray-400: #9A9A9A;
  --gray-300: #B8B8B8;
  --gray-200: #D4D4D4;
  --gray-100: #EDEDED;
  --white: #FFFFFF;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--gray-700);
  background: var(--sand-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- NAVIGATION ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 247, 244, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(194, 112, 78, 0.1);
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(250, 247, 244, 0.97);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

.nav-logo-text {
  font-weight: 500;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--gray-600);
  transition: color var(--transition);
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--terracotta);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--terracotta);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta:hover {
  background: var(--terracotta-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--charcoal);
  transition: var(--transition);
  transform-origin: center;
}

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

/* Mobile Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(250, 247, 244, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 120px 32px 60px;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.nav-overlay.open {
  display: flex;
}

.nav-overlay-link {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--charcoal);
  padding: 12px 0;
  transition: color var(--transition);
}

.nav-overlay-link:hover {
  color: var(--terracotta);
}

.nav-overlay-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  background: var(--terracotta);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 500;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 30, 30, 0.82) 0%,
    rgba(30, 30, 30, 0.65) 50%,
    rgba(30, 30, 30, 0.45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(194, 112, 78, 0.2);
  border: 1px solid rgba(194, 112, 78, 0.4);
  color: var(--terracotta-light);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--terracotta-light);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 700px;
}

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

.hero-sub {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  font-weight: 400;
}

.hero-trust-item svg {
  color: var(--terracotta-light);
  flex-shrink: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
  animation: float 3s ease-in-out infinite;
}

.hero-scroll:hover {
  color: var(--white);
}

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

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.01em;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(194, 112, 78, 0.35);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ---------- SECTION COMMON ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--terracotta);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 560px;
  line-height: 1.75;
  font-weight: 300;
}

/* ---------- SERVICES ---------- */
.services {
  padding: 120px 0;
  background: var(--sand-light);
}

.services .section-label,
.services .section-title {
  text-align: center;
}

.services .section-desc {
  text-align: center;
  margin: 0 auto 64px;
}

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

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: rgba(194, 112, 78, 0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand);
  border-radius: var(--radius);
  color: var(--terracotta);
  margin-bottom: 24px;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: var(--terracotta);
  color: var(--white);
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
  font-weight: 300;
}

/* ---------- WHY US ---------- */
.why-us {
  padding: 120px 0;
  background: var(--white);
}

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

.why-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 6/7;
}

.why-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 40px;
}

.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why-item-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(194, 112, 78, 0.1);
  border-radius: 50%;
  color: var(--terracotta);
  margin-top: 2px;
}

.why-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.why-item-desc {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.65;
  font-weight: 300;
}

/* ---------- AREAS ---------- */
.areas {
  padding: 120px 0;
  background: var(--sand);
}

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

.areas-text .section-title,
.areas-text .section-desc {
  text-align: left;
}

.areas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.area-tag {
  padding: 10px 20px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--gray-700);
  transition: all var(--transition);
}

.area-tag:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--white);
}

/* ---------- CTA ---------- */
.cta {
  padding: 100px 0;
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(194, 112, 78, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-content {
  max-width: 560px;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  font-weight: 300;
}

.cta-actions {
  flex-shrink: 0;
}

/* ---------- CONTACT ---------- */
.contact {
  padding: 120px 0;
  background: var(--sand-light);
}

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

.contact-info .section-title,
.contact-info .section-desc {
  text-align: left;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 40px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  color: var(--terracotta);
}

.contact-detail-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.contact-detail-value {
  font-size: 0.95rem;
  color: var(--charcoal);
  font-weight: 400;
  line-height: 1.6;
}

.contact-detail-value a {
  color: var(--terracotta);
  transition: color var(--transition);
}

.contact-detail-value a:hover {
  color: var(--terracotta-dark);
}

/* Contact Form */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-form-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--charcoal);
  background: var(--sand-light);
  transition: all var(--transition);
  outline: none;
}

.form-input::placeholder {
  color: var(--gray-400);
}

.form-input:focus {
  border-color: var(--terracotta);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(194, 112, 78, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 12px;
  font-weight: 300;
}

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: rgba(194, 112, 78, 0.08);
  border: 1px solid rgba(194, 112, 78, 0.2);
  border-radius: var(--radius);
  color: var(--terracotta-dark);
  font-size: 0.9rem;
  font-weight: 400;
  margin-top: 16px;
}

.form-success.show {
  display: flex;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--gray-900);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  max-width: 280px;
  font-weight: 300;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
  font-weight: 300;
}

.footer-links a:hover {
  color: var(--terracotta-light);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-phone {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--white);
  transition: color var(--transition);
}

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

.footer-address {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  font-weight: 300;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
}

/* ---------- SCROLL REVEAL (below-fold only) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(2) { transition-delay: 0.08s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(4) { transition-delay: 0.24s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(5) { transition-delay: 0.32s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: translateY(0); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-layout,
  .areas-inner,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .why-image {
    aspect-ratio: 16/9;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-headline {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .hero-trust {
    gap: 16px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .services,
  .why-us,
  .areas,
  .contact {
    padding: 80px 0;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-content {
    padding: 100px 16px 60px;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 6px 12px;
  }

  .service-card {
    padding: 28px 24px;
  }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Animations are enabled by JS via .reveal / .stagger classes */
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal.visible,
  .stagger, .stagger.visible {
    opacity: 1;
    transform: none;
  }
}
