/* ============================================
   Gtown Window Tinting
   Mobile-first responsive CSS — green/gold theme
   ============================================ */

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

:root {
  --bg: #0a0a0a;
  --bg-alt: #111111;
  --bg-card: #1a1a1a;
  --bg-form: #141414;
  --text: #ffffff;
  --text-muted: #a0a0a0;
  --text-dim: #666666;
  --accent: #C5A944;
  --accent-hover: #D4B84A;
  --accent-glow: rgba(197, 169, 68, 0.3);
  --border: #2a2a2a;
  --border-form: #333333;
  --radius: 12px;
  --radius-sm: 8px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --max-width: 1200px;
  --header-h: 60px;
  --sticky-h: 60px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--accent-hover); }

ul { list-style: none; }
address { font-style: normal; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-align: center;
  line-height: 1.3;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #000;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

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

.btn-outline:hover {
  background: var(--accent);
  color: #000;
}

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

.btn-full { width: 100%; }

.btn-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 12px rgba(197, 169, 68, 0); }
}

/* ---------- Section Basics ---------- */
section {
  padding: 60px 0;
}

section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1rem;
}

/* ---------- Scroll Animations ---------- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.logo:hover { color: var(--text); }

.logo-img {
  height: 32px;
  width: auto;
}

.logo-words {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.header-cta:hover { color: var(--accent-hover); }
.header-cta svg { flex-shrink: 0; }

/* ============================================
   HERO — Split Layout
   ============================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 16px) 0 32px;
  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(10, 10, 10, 0.88) 0%,
    rgba(10, 10, 10, 0.7) 50%,
    rgba(10, 10, 10, 0.85) 100%
  );
  z-index: 1;
}

.hero-split {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column-reverse;
  gap: 20px;
}

.hero-left {
  text-align: center;
}

.hero h1 {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Hide trust bar on mobile */
.trust-bar {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.trust-stars {
  color: #f5c518;
  letter-spacing: 1px;
}

.hero-right {
  width: 100%;
}

.hero-form-card {
  background: var(--bg-form);
  border: 1px solid var(--border-form);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.form-title {
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.form-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 14px;
}

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font);
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 60px;
  line-height: 1.4;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #e74c3c;
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 10px;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
  background: var(--bg-alt);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.step {
  text-align: center;
}

.step-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(197, 169, 68, 0.1);
  color: var(--accent);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 300px;
  margin: 0 auto;
}

/* ============================================
   SERVICES
   ============================================ */
.services { background: var(--bg); }

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.3s, transform 0.2s;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.service-icon {
  color: var(--accent);
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.service-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.service-cta:hover { color: var(--accent-hover); }

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio { background: var(--bg-alt); }

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.portfolio-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 3/2;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-us { background: var(--bg); }

.why-us-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1rem;
  line-height: 1.7;
}

.why-us-intro strong {
  color: var(--accent);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.benefit {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.benefit-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-value svg { color: var(--accent); }

.benefit-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--text);
}

.benefit p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.why-us-authority {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  font-style: italic;
  color: var(--text);
  margin-bottom: 24px;
}

.why-us-cta {
  text-align: center;
}

/* ============================================
   REVIEWS
   ============================================ */
.reviews { background: var(--bg-alt); }

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.review-stars {
  color: #f5c518;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.review-author strong { color: var(--text); }

.reviews-cta { text-align: center; }

/* ============================================
   SERVICE AREA
   ============================================ */
.service-area { background: var(--bg-alt); }

.area-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.area-map iframe {
  border-radius: var(--radius);
  width: 100%;
}

.area-cities h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.cities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cities-grid li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
  background: var(--bg);
  text-align: center;
  padding: 80px 0;
}

.final-cta h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.final-cta > .container > p:first-of-type {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.final-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.final-cta-buttons .btn {
  width: 100%;
  max-width: 340px;
}

.final-hours {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #050505;
  border-top: 1px solid var(--border);
  padding-bottom: calc(var(--sticky-h) + 16px);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 48px 20px 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  margin-bottom: 16px;
}

.footer-info address {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
  line-height: 1.5;
}

.footer-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-info p a { color: var(--accent); }

.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  color: var(--text);
}

.footer-links ul li { margin-bottom: 6px; }

.footer-links ul li a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links ul li a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}

.footer-bottom p {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ============================================
   STICKY BOTTOM BAR (Mobile)
   ============================================ */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--sticky-h);
  display: flex;
  z-index: 99;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-bar.visible {
  transform: translateY(0);
}

.sticky-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.sticky-text {
  background: var(--accent);
}

.sticky-text:hover { color: #000; }

/* ============================================
   SUCCESS MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  transform: scale(0.9);
  transition: transform 0.3s;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-icon {
  margin-bottom: 16px;
}

.modal-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.modal-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.modal-card p strong {
  color: var(--accent);
}

.modal-sms-body {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: left;
  white-space: pre-line;
  margin-bottom: 20px;
  line-height: 1.5;
}

.modal-close-btn {
  display: block;
  margin-top: 10px;
  width: 100%;
}

/* ============================================
   RESPONSIVE - Tablet (600px+)
   ============================================ */
@media (min-width: 600px) {
  .hero h1 {
    font-size: 2.5rem;
  }

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

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

  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

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

  .area-content {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .final-cta-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .final-cta-buttons .btn { width: auto; }

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

  section h2 {
    font-size: 2rem;
  }
}

/* ============================================
   RESPONSIVE - Desktop (900px+)
   ============================================ */
@media (min-width: 900px) {
  section {
    padding: 80px 0;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--header-h) + 32px) 0 40px;
  }

  .hero-split {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }

  .hero-left {
    flex: 1 1 55%;
    text-align: left;
  }

  .hero-right {
    flex: 0 0 380px;
  }

  .trust-bar {
    display: flex;
    justify-content: flex-start;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero-sub {
    font-size: 1.15rem;
    margin-bottom: 20px;
  }

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

  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  section h2 {
    font-size: 2.25rem;
  }

  .final-cta h2 {
    font-size: 2.5rem;
  }

  .sticky-bar {
    display: none;
  }

  .site-footer {
    padding-bottom: 0;
  }
}

/* ============================================
   RESPONSIVE - Large (1100px+)
   ============================================ */
@media (min-width: 1100px) {
  .container {
    padding: 0 40px;
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .hero-right {
    flex: 0 0 420px;
  }
}

/* ---------- Focus styles ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Selection ---------- */
::selection {
  background: var(--accent);
  color: #000;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-pulse { animation: none; }
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .modal-overlay, .modal-card { transition: none; }
}
