/*
Theme Name: NTX Smart Homes
Theme URI: https://ntxsmarthomes.com
Author: NTX Smart Homes
Description: Custom theme for NTX Smart Homes - Smart home automation, AV, and theater installation.
Version: 1.0
License: Private
Text Domain: ntx-smart-homes
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg: hsl(210, 25%, 5%);
  --bg-card: hsl(210, 22%, 8%);
  --fg: hsl(210, 15%, 93%);
  --primary: hsl(170, 75%, 45%);
  --primary-dark: hsl(170, 75%, 38%);
  --primary-fg: hsl(210, 25%, 5%);
  --muted: hsl(210, 10%, 50%);
  --secondary: hsl(210, 18%, 12%);
  --border: hsl(210, 18%, 14%);
  --radius: 0.75rem;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  line-height: 1.1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
html { scroll-behavior: smooth; }

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

/* ===== NAVBAR ===== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: hsla(210, 25%, 5%, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.site-nav .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; padding-bottom: 1rem;
}
.site-nav .logo {
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.25rem;
}
.site-nav .logo span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: 0.875rem; color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-phone { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 500; color: var(--primary); }
.mobile-toggle { display: none; background: none; border: none; color: var(--fg); font-size: 1.5rem; cursor: pointer; }
.mobile-menu { display: none; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 1rem; }
.mobile-menu a { display: block; padding: 0.5rem 0; font-size: 0.875rem; color: var(--muted); }
.mobile-menu a:hover { color: var(--primary); }

@media (max-width: 768px) {
  .nav-links, .nav-phone { display: none; }
  .mobile-toggle { display: block; }
  .mobile-menu.open { display: block; }
}

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden; padding-top: 4rem;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay1 {
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--bg), hsla(210, 25%, 5%, 0.8), transparent);
}
.hero-overlay2 {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg), transparent, hsla(210, 25%, 5%, 0.4));
}
.hero-content { position: relative; z-index: 10; max-width: 640px; }
.hero-badge {
  display: inline-block; background: hsla(170, 75%, 45%, 0.15);
  border: 1px solid hsla(170, 75%, 45%, 0.3);
  border-radius: 999px; padding: 0.375rem 1rem; margin-bottom: 1.5rem;
  font-size: 0.875rem; color: var(--primary); font-weight: 500;
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; margin-bottom: 1.5rem; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.125rem; color: var(--muted); max-width: 32rem; margin-bottom: 2.5rem; line-height: 1.7; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Outfit', sans-serif; font-size: 0.875rem; font-weight: 500;
  padding: 0.875rem 2rem; border-radius: var(--radius);
  cursor: pointer; transition: all 0.2s; border: none;
}
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline {
  background: transparent; color: var(--fg);
  border: 1px solid hsla(210, 15%, 93%, 0.2);
}
.btn-outline:hover { background: hsla(210, 15%, 93%, 0.05); }
.btn-outline-primary {
  background: transparent; color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-outline-primary:hover { background: var(--primary); color: var(--primary-fg); }

/* ===== TRUST BADGES ===== */
.trust-badges { padding: 3rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.trust-item svg { margin: 0 auto 0.5rem; width: 1.5rem; height: 1.5rem; color: var(--primary); }
.trust-item .value { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 700; }
.trust-item .label { font-size: 0.875rem; color: var(--muted); }

/* ===== ABOUT ===== */
.about { padding: 6rem 0; }
.about-grid { display: grid; gap: 4rem; align-items: center; max-width: 72rem; margin: 0 auto; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about .label { color: var(--primary); font-size: 0.875rem; font-weight: 500; margin-bottom: 0.75rem; }
.about h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; margin-bottom: 1.5rem; }
.about h2 span { color: var(--primary); }
.about p { color: var(--muted); line-height: 1.7; margin-bottom: 1rem; }
.about p:last-of-type { margin-bottom: 2rem; }
.steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.step-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  transition: border-color 0.3s;
}
.step-card:hover { border-color: hsla(170, 75%, 45%, 0.3); }
.step-num { color: hsla(170, 75%, 45%, 0.3); font-family: 'Outfit', sans-serif; font-size: 1.75rem; font-weight: 700; }
.step-card h4 { font-family: 'Outfit', sans-serif; font-weight: 600; margin-top: 0.5rem; margin-bottom: 0.25rem; }
.step-card p { font-size: 0.875rem; color: var(--muted); margin: 0; }

/* ===== SERVICES ===== */
.services { padding: 6rem 0; background: hsla(210, 22%, 8%, 0.5); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header .label { color: var(--primary); font-size: 0.875rem; font-weight: 500; margin-bottom: 0.75rem; }
.section-header h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem; max-width: 72rem; margin: 0 auto;
}
.service-card {
  background: hsla(210, 18%, 12%, 0.3);
  border: 1px solid hsla(210, 18%, 14%, 0.5);
  border-radius: var(--radius); padding: 1.5rem;
  transition: all 0.3s;
}
.service-card:hover {
  background: hsla(210, 18%, 12%, 0.6);
  border-color: hsla(170, 75%, 45%, 0.2);
}
.service-card svg { width: 2rem; height: 2rem; color: var(--primary); margin-bottom: 1rem; transition: transform 0.3s; }
.service-card:hover svg { transform: scale(1.1); }
.service-card h3 { font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* ===== TESTIMONIALS ===== */
.testimonials { padding: 6rem 0; }
.testimonials-grid { display: grid; gap: 1.5rem; max-width: 64rem; margin: 0 auto; }
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: 1fr 1fr; } }
.testimonial-card {
  background: var(--bg-card); border: 1px solid hsla(210, 18%, 14%, 0.5);
  border-radius: var(--radius); padding: 2rem; position: relative;
}
.testimonial-card .quote-icon {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 2rem; height: 2rem; color: hsla(170, 75%, 45%, 0.2);
}
.stars { display: flex; gap: 0.125rem; margin-bottom: 1rem; }
.stars svg { width: 1rem; height: 1rem; fill: var(--primary); color: var(--primary); }
.testimonial-card .text { color: hsla(210, 15%, 93%, 0.8); line-height: 1.7; margin-bottom: 1.5rem; }
.testimonial-card .name { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.875rem; }

/* ===== CONTACT ===== */
.contact { padding: 6rem 0; background: hsla(210, 22%, 8%, 0.5); }
.contact-grid { display: grid; gap: 3rem; max-width: 64rem; margin: 0 auto; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 2fr 3fr; } }
.contact .label { color: var(--primary); font-size: 0.875rem; font-weight: 500; margin-bottom: 0.75rem; }
.contact h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; margin-bottom: 1rem; }
.contact .desc { color: var(--muted); line-height: 1.7; }
.contact-info { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-info-item { display: flex; align-items: center; gap: 0.75rem; }
.contact-info-icon {
  width: 2.5rem; height: 2.5rem; background: hsla(170, 75%, 45%, 0.1);
  border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-icon svg { width: 1rem; height: 1rem; color: var(--primary); }
.contact-info-item span, .contact-info-item a {
  font-size: 0.875rem; color: hsla(210, 15%, 93%, 0.8); transition: color 0.2s;
}
.contact-info-item a:hover { color: var(--primary); }
.contact-form {
  background: var(--bg-card); border: 1px solid hsla(210, 18%, 14%, 0.5);
  border-radius: var(--radius); padding: 2rem;
}
.form-row { display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 640px) { .form-row.two-col { grid-template-columns: 1fr 1fr; } }
.form-input, .form-textarea {
  width: 100%; background: hsla(210, 18%, 12%, 0.5);
  border: 1px solid hsla(210, 18%, 14%, 0.5);
  border-radius: 0.5rem; padding: 0.75rem 1rem;
  color: var(--fg); font-family: 'DM Sans', sans-serif; font-size: 0.875rem;
  transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus {
  outline: none; border-color: var(--primary);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); }
.form-textarea { resize: none; min-height: 8rem; }
.btn-full { width: 100%; justify-content: center; }

/* ===== FOOTER ===== */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 0; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-brand .logo { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.25rem; margin-bottom: 0.5rem; }
.footer-brand .logo span { color: var(--primary); }
.footer-brand p { font-size: 0.875rem; color: var(--muted); max-width: 20rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 3rem; }
.footer-col h4 { font-family: 'Outfit', sans-serif; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.75rem; }
.footer-col a { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--muted); margin-bottom: 0.5rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }
.footer-col a svg { width: 0.75rem; height: 0.75rem; }
.footer-bottom {
  border-top: 1px solid var(--border); margin-top: 2.5rem; padding-top: 1.5rem; text-align: center;
  font-size: 0.75rem; color: var(--muted);
}

/* ===== SVG Icons Inline ===== */
.icon { display: inline-block; width: 1em; height: 1em; vertical-align: middle; }
