/* ==============================================
   Bustamante LLC — Main Stylesheet
   Unique Color Scheme: Deep Slate + Crimson + Warm Stone
   ============================================== */

:root {
  --dark: #14141f;
  --accent: #d94f3c;
  --accent-hover: #b83e2e;
  --accent-light: #fdf3f1;
  --light: #f7f6f4;
  --section-alt: #edebe6;
  --white: #ffffff;
  --text-light: #e0ddd7;
  --text-dark: #1c1b1a;
  --text-muted: #8a8681;
  --border: #34333e;
  --border-light: #d9d5ce;
  --card-bg: #1d1d2a;
  --card-hover: #242434;
  --footer: #0c0c12;
  --footer-text: #929198;
  --font-main: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: Georgia, 'Times New Roman', Times, serif;
  --transition: 0.25s ease;
  --container: 1200px;
  --radius: 10px;
  --radius-sm: 6px;
}

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

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

body {
  font-family: var(--font-main);
  font-size: 16px;
  background: var(--dark);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

/* ===== SITE NAVIGATION — class selector, NOT bare nav{} ===== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 40px;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
  background: transparent;
}

.site-nav.nav-scrolled {
  background: rgba(20, 20, 31, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
  padding: 0 40px;
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.nav-brand span {
  color: var(--accent);
}

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

.nav-links li a {
  font-size: 0.925rem;
  font-weight: 500;
  color: #FFFFFF;
  position: relative;
  padding: 6px 0;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a:focus {
  color: var(--white);
}

.nav-links li a:hover::after,
.nav-links li a:focus::after {
  width: 100%;
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
}

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

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
  background: linear-gradient(160deg, #14141f 0%, #1a1a2e 40%, #1d1d2a 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,79,60,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,79,60,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.18;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-content p {
  font-size: 1.15rem;
  color: #FFFFFF;
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: var(--font-main);
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217,79,60,0.35);
}

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

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

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-graphic {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(217,79,60,0.18) 0%, rgba(217,79,60,0.04) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid rgba(217,79,60,0.15);
}

.hero-graphic::before {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(217,79,60,0.25) 0%, rgba(217,79,60,0.06) 100%);
  border: 1px solid rgba(217,79,60,0.2);
}

.hero-graphic-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 4rem;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  padding: 100px 40px;
  background: var(--light);
  color: var(--text-dark);
}

.about-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.about-content h2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.about-content p {
  font-size: 1.05rem;
  color: #555150;
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.02rem;
  color: #4a4746;
}

.about-list li::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 8px;
}

.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 400px;
}

.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.about-card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.about-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.about-card p {
  font-size: 0.9rem;
  color: #6e6b69;
  line-height: 1.5;
}

.about-card:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  background: linear-gradient(135deg, #fefcfb 0%, #f9f5f3 100%);
}

.about-card:nth-child(2) {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.about-card:nth-child(3) {
  grid-column: 1 / 3;
  grid-row: 2 / 3;
}

/* ===== SERVICES SECTION ===== */
.services-section {
  padding: 100px 40px;
  background: var(--dark);
}

.services-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
}

.services-header .section-label {
  display: inline-block;
}

.services-header h2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

.services-header p {
  font-size: 1.08rem;
  color: #FFFFFF;
  max-width: 600px;
  margin: 0 auto;
}

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

.service-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 40px 32px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(217,79,60,0.3));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
  border: 1px solid rgba(217,79,60,0.25);
  background: var(--card-hover);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  color: #FFFFFF;
  line-height: 1.7;
}

/* ===== COUNTERS SECTION ===== */
.counters-section {
  padding: 80px 40px;
  background: linear-gradient(160deg, #181825 0%, #14141f 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.counters-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.counter-item {
  padding: 24px;
}

.counter-value {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.counter-label {
  font-size: 0.95rem;
  color: #FFFFFF;
  font-weight: 500;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  padding: 100px 40px;
  background: var(--light);
  color: var(--text-dark);
}

.contact-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.contact-info > p {
  font-size: 1.05rem;
  color: #555150;
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.contact-detail-text p,
.contact-detail-text a {
  font-size: 0.92rem;
  color: #6e6b69;
}

.contact-detail-text a:hover {
  color: var(--accent);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid var(--border-light);
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-main);
  color: var(--text-dark);
  background: var(--light);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217,79,60,0.1);
  background: var(--white);
}

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

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-main);
}

.form-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217,79,60,0.3);
}

.form-submit:disabled {
  background: #43434e;
  cursor: not-allowed;
  transform: none;
}

/* ===== SITE FOOTER ===== */
.site-footer {
  background: var(--footer);
  padding: 60px 40px 32px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand h3 span {
  color: var(--accent);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--footer-text);
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--footer-text);
}

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

.footer-bottom {
  max-width: var(--container);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--footer-text);
}

/* ===== SCROLL REVEAL ===== */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

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

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

  .counters-inner {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    padding: 80px 32px 32px;
    transition: right 0.35s ease;
    gap: 24px;
    box-shadow: -8px 0 32px rgba(0,0,0,0.4);
  }

  .nav-links.nav-open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  body.nav-open {
    overflow: hidden;
  }

  .hero-section {
    padding: 100px 24px 60px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .about-section,
  .services-section,
  .contact-section {
    padding: 64px 24px;
  }

  .counters-section {
    padding: 48px 24px;
  }

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

  .counters-inner {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

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

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

  .about-visual {
    height: auto;
  }

  .about-content h2,
  .services-header h2,
  .contact-info h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.85rem;
  }

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

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

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

  .counter-value {
    font-size: 2.2rem;
  }

  .contact-form {
    padding: 24px;
  }
}
