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

:root {
  --sun-50: #FBF7EC;
  --sun-100: #F5EBCC;
  --sun-200: #EBD9A0;
  --sun-400: #D4AF37;
  --sun-500: #C19A2B;
  --sun-600: #9E7B1F;
  --sun-700: #7A5E16;
  --gray-50: #FAFAF9;
  --gray-100: #F5F5F4;
  --gray-200: #E7E5E4;
  --gray-400: #A8A29E;
  --gray-600: #57534E;
  --gray-700: #44403C;
  --gray-800: #1A1A1A;
  --gray-900: #0A0A0A;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 48px rgba(0,0,0,0.16);
  --radius: 12px;
  --radius-lg: 16px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--gray-50);
}

.section-gradient {
  background: linear-gradient(135deg, var(--gray-900) 0%, #1a1410 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  background: var(--sun-100);
  color: var(--sun-700);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-header p {
  font-size: 17px;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto;
}

/* ========== NAV ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

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

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav.scrolled .nav-logo {
  color: var(--gray-900);
}

.hero ~ .nav .nav-logo,
.nav .nav-logo {
  color: var(--gray-900);
}

.nav-logo-icon {
  flex-shrink: 0;
}

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

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  background: var(--sun-500);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px;
}

.btn-sm:hover {
  background: var(--sun-600);
  box-shadow: 0 4px 16px rgba(212,175,55,0.3);
}

.btn-lg {
  background: linear-gradient(135deg, var(--sun-500) 0%, var(--sun-600) 100%);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 16px;
}

.btn-lg:hover {
  background: linear-gradient(135deg, var(--sun-600) 0%, var(--sun-700) 100%);
  box-shadow: 0 8px 24px rgba(212,175,55,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 16px;
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  border-color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.1);
}

.btn-full {
  width: 100%;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, var(--sun-100) 0%, transparent 60%),
    linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px at 80% 20%, rgba(212,175,55,0.18) 0%, transparent 60%),
    radial-gradient(400px at 20% 60%, rgba(212,175,55,0.10) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--sun-500) 0%, var(--sun-700) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--sun-600);
}

.stat-label {
  font-size: 14px;
  color: var(--gray-600);
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-200);
}

/* ========== SERVICES ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sun-200);
}

.service-icon {
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ========== BENEFITS ========== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.benefit {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: transform 0.3s, box-shadow 0.3s;
}

.benefit:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.benefit-icon-orange {
  background: var(--sun-100);
  color: var(--sun-600);
}

.benefit-icon-yellow {
  background: var(--sun-50);
  color: var(--sun-500);
}

.benefit h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.benefit p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ========== WHY US ========== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  counter-reset: why-counter;
}

.why-item {
  counter-increment: why-counter;
  padding-top: 24px;
  border-top: none;
}

.why-number {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--sun-200) 0%, var(--sun-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 12px;
  line-height: 1;
}

.why-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.why-item p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ========== QUOTE SECTION ========== */
.quote-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  color: var(--white);
  max-width: 1080px;
  margin: 0 auto;
}

.quote-text h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--white);
  margin: 16px 0 12px;
  line-height: 1.2;
}

.quote-text p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 32px;
}

.quote-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  padding: 8px 0;
}

.quote-feature svg {
  flex-shrink: 0;
}

/* ========== QUOTE FORM ========== */
.quote-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-xl);
  color: var(--gray-800);
}

.quote-form h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 24px;
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--gray-800);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sun-400);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
  background: var(--white);
}

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

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

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

.form-success svg {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: #22C55E;
}

.form-success h3 {
  font-size: 20px;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.form-success p {
  font-size: 15px;
  color: var(--gray-600);
}

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

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

.footer-brand p {
  font-size: 14px;
  margin-top: 12px;
  line-height: 1.7;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-links ul li,
.footer-contact ul li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--sun-400);
}

.footer-contact ul li {
  font-size: 14px;
}

.footer-bottom {
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--gray-600);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--gray-900);
    border-left: 1px solid rgba(212,175,55,0.2);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-toggle {
    display: flex;
    z-index: 100;
  }

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

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

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

  .hero-stats {
    gap: 20px;
  }

  .stat-divider {
    display: none;
  }

  .quote-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

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

/* ========== TEXSHADE OVERRIDES ========== */

/* Black header zone (top bar + nav) matching brand logo aesthetic */
.top-bar {
  background: var(--gray-900);
  color: var(--sun-400);
  padding: 10px 0;
  font-size: 14px;
}

/* Make the main nav black to match logo background */
.nav {
  background: var(--gray-900);
  border-bottom: 1px solid rgba(212,175,55,0.2);
}

.nav.scrolled {
  background: rgba(10,10,10,0.96) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212,175,55,0.3);
}

/* Nav text on dark background */
.nav-logo,
.nav-logo:hover,
.nav.scrolled .nav-logo,
.hero ~ .nav .nav-logo {
  color: var(--sun-400);
}

.nav-links a {
  color: var(--sun-100);
}

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

/* Hamburger lines need to be gold on dark nav */
.nav-toggle span {
  background: var(--sun-400);
}

.top-bar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.top-bar-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-400);
  font-weight: 500;
}

.top-bar-phone {
  color: var(--sun-400);
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.top-bar-phone:hover {
  color: var(--sun-200);
}

.top-bar-divider {
  color: rgba(212,175,55,0.4);
  font-weight: 300;
}

/* Push nav down to account for top bar */
.nav {
  top: 42px;
}

/* Logo image sizing */
.nav-logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.footer .nav-logo-img {
  height: 56px;
}

/* The nav-logo wrapper just needs to align nicely with the image */
.nav-logo {
  gap: 10px;
}

/* Hero needs to clear both top bar and nav */
.hero {
  padding-top: 160px;
}

/* Hero phone alternative line */
.hero-phone-alt {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--gray-600);
}

.hero-phone-alt a {
  color: var(--sun-600);
  font-weight: 600;
  border-bottom: 1px solid rgba(212,175,55,0.3);
}

.hero-phone-alt a:hover {
  color: var(--sun-700);
  border-bottom-color: var(--sun-600);
}

/* Quote feature links */
.quote-feature a {
  color: var(--sun-600);
  font-weight: 600;
}

.quote-feature a:hover {
  color: var(--sun-700);
  text-decoration: underline;
}

/* Phone number link in nav */
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600 !important;
  color: var(--sun-400) !important;
  letter-spacing: 0.02em;
}

.nav-phone:hover {
  color: var(--sun-500) !important;
}

.nav-phone::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun-400);
  box-shadow: 0 0 8px rgba(212,175,55,0.6);
}

/* Logo brand text */
.nav-logo-text {
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Make CTA buttons gold-on-black for stronger brand feel */
.btn-sm {
  background: var(--sun-400);
  color: var(--gray-900);
  font-weight: 700;
}

.btn-sm:hover {
  background: var(--sun-500);
  color: var(--gray-900);
}

.btn-lg {
  background: linear-gradient(135deg, var(--sun-400) 0%, var(--sun-500) 100%);
  color: var(--gray-900);
  font-weight: 700;
}

.btn-lg:hover {
  background: linear-gradient(135deg, var(--sun-500) 0%, var(--sun-600) 100%);
  color: var(--gray-900);
}

/* Phone shown in hero buttons should be outlined */
.hero .btn-outline {
  color: var(--gray-900);
  border-color: var(--gray-900);
}

.hero .btn-outline:hover {
  background: var(--gray-900);
  color: var(--sun-400);
}

/* Dark footer to match the brand badge aesthetic */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
}

.footer .nav-logo,
.footer .nav-logo:hover {
  color: var(--sun-400);
}

.footer h4 {
  color: var(--sun-400);
}

.footer a {
  color: var(--gray-400);
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--sun-400);
}

/* Subtle gold accent under the nav */
.nav.scrolled {
  border-bottom: 1px solid rgba(212,175,55,0.2);
}

/* Mobile: stack top bar items, hide intro text */
@media (max-width: 640px) {
  .top-bar {
    padding: 8px 0;
    font-size: 13px;
  }
  .top-bar-text svg {
    display: none;
  }
  .top-bar-text {
    display: none;
  }
  .top-bar-container {
    gap: 10px;
  }
  .nav {
    top: 36px;
  }
  .nav-logo-img {
    height: 42px;
  }
  .hero {
    padding-top: 130px;
  }
}
