/*
Theme Name: NTX Contractors
Theme URI: https://ntxcontractors.com
Author: NTX Contractors
Author URI: https://ntxcontractors.com
Description: Professional handyman services theme for NTX Contractors.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ntx-contractors
*/

/* ===== RESET & BASE ===== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Playfair+Display:wght@600;700;800&display=swap');

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

:root {
  --background: hsl(210, 20%, 98%);
  --foreground: hsl(215, 25%, 15%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(215, 25%, 15%);
  --primary: hsl(215, 65%, 28%);
  --primary-foreground: hsl(210, 40%, 98%);
  --secondary: hsl(38, 80%, 55%);
  --secondary-foreground: hsl(215, 25%, 15%);
  --muted: hsl(210, 15%, 93%);
  --muted-foreground: hsl(215, 12%, 50%);
  --border: hsl(214, 20%, 88%);
  --input: hsl(214, 20%, 88%);
  --ring: hsl(215, 65%, 28%);
  --radius: 0.5rem;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); }

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: hsla(0, 0%, 100%, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between; height: 4rem;
}
.navbar-brand { display: flex; align-items: center; gap: 0.5rem; }
.navbar-brand svg { width: 1.5rem; height: 1.5rem; color: var(--secondary); }
.navbar-brand span { font-size: 1.25rem; font-family: var(--font-heading); font-weight: 700; color: var(--foreground); }
.navbar-links { display: none; align-items: center; gap: 2rem; }
.navbar-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground);
  transition: color 0.2s;
}
.navbar-links a:hover { color: var(--foreground); }
.btn-quote {
  background: var(--secondary); color: var(--secondary-foreground);
  padding: 0.5rem 1.25rem; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600; border: none; cursor: pointer;
  transition: opacity 0.2s;
}
.btn-quote:hover { opacity: 0.9; }
@media (min-width: 768px) { .navbar-links { display: flex; } }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, hsla(215, 65%, 28%, 0.95), hsla(215, 65%, 28%, 0.8), hsla(215, 65%, 28%, 0.4));
}
.hero-content {
  position: relative; max-width: 42rem; padding-top: 5rem;
}
.hero-label {
  color: var(--secondary); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.15em; font-size: 0.875rem; margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 700;
  color: var(--primary-foreground); line-height: 1.1;
}
.hero-desc {
  margin-top: 1.5rem; font-size: clamp(1rem, 2vw, 1.25rem);
  color: hsla(210, 40%, 98%, 0.8); max-width: 32rem; line-height: 1.7;
}
.hero-buttons { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.btn-hero {
  background: var(--secondary); color: var(--secondary-foreground);
  padding: 0.75rem 2rem; border-radius: var(--radius);
  font-size: 1rem; font-weight: 600; border: none; cursor: pointer;
  transition: opacity 0.2s;
}
.btn-hero:hover { opacity: 0.9; }
.btn-hero-outline {
  background: transparent; color: var(--primary-foreground);
  padding: 0.75rem 2rem; border-radius: var(--radius);
  font-size: 1rem; font-weight: 600;
  border: 2px solid hsla(210, 40%, 98%, 0.3); cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-hero-outline:hover {
  background: hsla(210, 40%, 98%, 0.1);
  border-color: hsla(210, 40%, 98%, 0.5);
}
.hero-stats { margin-top: 3rem; display: flex; gap: 2.5rem; }
.hero-stats .stat-value {
  font-size: 1.875rem; font-family: var(--font-heading); font-weight: 700; color: var(--secondary);
}
.hero-stats .stat-label {
  color: hsla(210, 40%, 98%, 0.6); font-size: 0.875rem; margin-top: 0.25rem;
}

/* ===== SECTION COMMON ===== */
.section { padding: 5rem 0; }
.section-bg-muted { background: var(--muted); }
.section-bg-primary { background: var(--primary); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-label {
  color: var(--secondary); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.15em; font-size: 0.875rem; margin-bottom: 0.75rem;
}
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--foreground); }
.section-desc { margin-top: 1rem; color: var(--muted-foreground); max-width: 42rem; margin-left: auto; margin-right: auto; font-size: 1.125rem; }

/* ===== SERVICES ===== */
.services-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  background: var(--card); border-radius: var(--radius); padding: 2rem;
  border: 1px solid var(--border); transition: box-shadow 0.3s, border-color 0.3s;
}
.service-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-color: hsla(38, 80%, 55%, 0.4); }
.service-icon {
  width: 3.5rem; height: 3.5rem; border-radius: var(--radius);
  background: hsla(215, 65%, 28%, 0.1); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; transition: background 0.3s;
}
.service-card:hover .service-icon { background: hsla(38, 80%, 55%, 0.2); }
.service-icon svg { width: 1.75rem; height: 1.75rem; color: var(--primary); transition: color 0.3s; }
.service-card:hover .service-icon svg { color: var(--secondary); }
.service-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.service-card p { color: var(--muted-foreground); line-height: 1.7; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card {
  background: var(--card); border-radius: var(--radius); padding: 2rem;
  border: 1px solid var(--border);
}
.testimonial-stars { display: flex; gap: 0.25rem; margin-bottom: 1rem; }
.testimonial-stars svg { width: 1.25rem; height: 1.25rem; color: var(--secondary); fill: var(--secondary); }
.testimonial-text { color: var(--muted-foreground); line-height: 1.7; margin-bottom: 1.5rem; font-style: italic; }
.testimonial-name { font-weight: 600; color: var(--foreground); }
.testimonial-project { font-size: 0.875rem; color: var(--muted-foreground); }

/* ===== SERVICE AREAS ===== */
.areas-content { max-width: 42rem; margin: 0 auto; text-align: center; }
.areas-badge { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 1rem; }
.areas-badge svg { width: 1.5rem; height: 1.5rem; color: var(--secondary); }
.areas-badge span { font-size: 1.125rem; font-weight: 600; color: var(--foreground); }
.areas-text { color: var(--muted-foreground); font-size: 1.125rem; line-height: 1.7; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-label { color: var(--secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.875rem; margin-bottom: 0.75rem; }
.contact-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--primary-foreground); margin-bottom: 1.5rem; }
.contact-desc { color: hsla(210, 40%, 98%, 0.8); font-size: 1.125rem; margin-bottom: 2.5rem; line-height: 1.7; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-item { display: flex; align-items: center; gap: 1rem; }
.contact-info-icon {
  width: 3rem; height: 3rem; border-radius: var(--radius);
  background: hsla(38, 80%, 55%, 0.2); display: flex; align-items: center; justify-content: center;
}
.contact-info-icon svg { width: 1.25rem; height: 1.25rem; color: var(--secondary); }
.contact-info-label { color: hsla(210, 40%, 98%, 0.6); font-size: 0.875rem; }
.contact-info-value { color: var(--primary-foreground); font-weight: 600; }

.contact-form {
  background: var(--card); border-radius: var(--radius); padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.contact-form label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--foreground); margin-bottom: 0.375rem; }
.contact-form input, .contact-form textarea {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--input);
  background: var(--background); padding: 0.75rem 1rem; font-size: 0.875rem;
  color: var(--foreground); font-family: var(--font-body);
  transition: box-shadow 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; box-shadow: 0 0 0 2px var(--ring);
}
.contact-form textarea { resize: none; }
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.btn-submit {
  width: 100%; background: var(--secondary); color: var(--secondary-foreground);
  padding: 0.75rem 2rem; border-radius: var(--radius);
  font-size: 1rem; font-weight: 600; border: none; cursor: pointer;
  transition: opacity 0.2s; font-family: var(--font-body);
}
.btn-submit:hover { opacity: 0.9; }

/* ===== FOOTER ===== */
.footer { background: var(--foreground); padding: 3rem 0; }
.footer .container {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1.5rem;
}
@media (min-width: 768px) { .footer .container { flex-direction: row; } }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; }
.footer-brand svg { width: 1.25rem; height: 1.25rem; color: var(--secondary); }
.footer-brand span { font-size: 1.125rem; font-family: var(--font-heading); font-weight: 700; color: var(--background); }
.footer a { color: hsla(210, 20%, 98%, 0.7); font-size: 0.875rem; transition: color 0.2s; }
.footer a:hover { color: var(--background); }
.footer-copy { color: hsla(210, 20%, 98%, 0.5); font-size: 0.875rem; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
