/* ===== Ember & Stone Palette ===== */
:root {
  --deep-slate: #181c26;
  --slate: #1e2230;
  --card-slate: #232839;
  --border-slate: #2d3242;
  --warm-ivory: #f7f4ef;
  --soft-white: #faf8f5;
  --dark-text: #2a2a2a;
  --muted-text: #5c5f6b;
  --light-muted: #8a8d95;
  --copper: #c87a3e;
  --copper-hover: #d98f52;
  --sage: #5b8a6f;
  --sage-hover: #6a9c7e;
  --dusty-rose: #b8685a;
  --teal: #4a7d82;
  --creme: #ede6d8;
  --border-light: #e5e0d8;
  --success: #4a9b6b;
  --error: #c94b4b;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark-text);
  background-color: var(--soft-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 { line-height: 1.25; font-weight: 700; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ===== Site Navigation (class-based, NOT bare nav selector) ===== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--deep-slate);
  padding: 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.scrolled {
  background-color: #151820;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

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

.nav-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--warm-ivory);
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: var(--copper);
}

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

.nav-links a {
  color: #c4c6cd;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: color 0.2s ease;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--copper);
  border-bottom-color: var(--copper);
}

.nav-cta {
  background-color: var(--copper) !important;
  color: #ffffff !important;
  padding: 10px 22px !important;
  border-radius: 6px;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  transition: background-color 0.25s ease !important;
  border-bottom: none !important;
}

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

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background-color: var(--warm-ivory);
  margin: 6px 0;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

/* ===== Homepage Hero ===== */
.hero-section {
  background-color: var(--deep-slate);
  background-image:
    radial-gradient(ellipse at 80% 20%, rgba(200, 122, 62, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 70%, rgba(91, 138, 111, 0.06) 0%, transparent 60%);
  color: var(--warm-ivory);
  padding: 160px 0 100px;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-tagline {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--copper);
  margin-bottom: 20px;
  padding: 6px 16px;
  border: 1px solid rgba(200, 122, 62, 0.3);
  border-radius: 20px;
}

.hero-section h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-section h1 span {
  color: var(--copper);
}

.hero-section .hero-subtitle {
  font-size: 17px;
  color: #aeb0b8;
  margin-bottom: 36px;
  max-width: 500px;
  line-height: 1.7;
}

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

.btn-primary {
  display: inline-block;
  background-color: var(--copper);
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 8px;
  transition: background-color 0.25s ease, transform 0.15s ease;
  letter-spacing: 0.3px;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--copper-hover);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  background-color: transparent;
  color: var(--warm-ivory);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 8px;
  border: 2px solid #3a3e4d;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
  letter-spacing: 0.3px;
}

.btn-outline:hover {
  border-color: var(--copper);
  color: var(--copper);
  transform: translateY(-2px);
}

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

.hero-card {
  background: linear-gradient(135deg, var(--slate), #252a3d);
  border: 1px solid var(--border-slate);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.hero-card .stat-row {
  display: flex;
  gap: 32px;
  margin-bottom: 28px;
}

.hero-card .stat-item h3 {
  font-size: 32px;
  font-weight: 800;
  color: var(--copper);
  margin-bottom: 2px;
}

.hero-card .stat-item p {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--light-muted);
}

.hero-card .card-line {
  height: 1px;
  background: var(--border-slate);
  margin: 24px 0;
}

.hero-card .card-detail {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--light-muted);
}

.hero-card .card-detail strong {
  color: var(--sage);
}

/* ===== About Section ===== */
.about-section {
  background-color: var(--soft-white);
  color: var(--dark-text);
  padding: 100px 0;
}

.about-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--sage);
  margin-bottom: 16px;
  padding: 6px 16px;
  background-color: #eaf1ec;
  border-radius: 20px;
}

.about-section h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.about-section h2 span {
  color: var(--copper);
}

.about-section .about-text {
  font-size: 16px;
  color: var(--muted-text);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}

.about-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.about-feature-item .feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: #ebf2ee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.about-feature-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--dark-text);
}

.about-feature-item p {
  font-size: 13px;
  color: var(--muted-text);
  line-height: 1.5;
}

.about-visual {
  position: relative;
}

.about-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.about-card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--copper), #d4844a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.about-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.about-card .card-desc {
  font-size: 14px;
  color: var(--muted-text);
  line-height: 1.6;
  margin-bottom: 20px;
}

.about-card .card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-card .card-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--dark-text);
  font-weight: 500;
}

.about-card .card-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--sage);
  flex-shrink: 0;
}

/* ===== Services Section ===== */
.services-section {
  background-color: var(--slate);
  color: var(--warm-ivory);
  padding: 100px 0;
}

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

.services-section .section-tag {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--copper);
  margin-bottom: 12px;
}

.services-section h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.services-section .section-subtitle {
  font-size: 16px;
  color: #9a9da8;
  max-width: 560px;
  margin: 0 auto;
}

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

.service-card {
  background-color: var(--card-slate);
  border: 1px solid var(--border-slate);
  border-radius: 14px;
  padding: 36px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

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

.service-card .s-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background-color: var(--deep-slate);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card .s-desc {
  font-size: 14px;
  color: #9a9da8;
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-card .s-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.service-card .s-link:hover {
  color: var(--copper-hover);
}

/* ===== Stats Section ===== */
.stats-section {
  background-color: var(--deep-slate);
  color: var(--warm-ivory);
  padding: 80px 0;
}

.stats-section .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-block h3 {
  font-size: 42px;
  font-weight: 800;
  color: var(--copper);
  margin-bottom: 6px;
  line-height: 1;
}

.stat-block p {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--light-muted);
}

/* ===== Why Choose Us Section ===== */
.why-section {
  background-color: var(--soft-white);
  color: var(--dark-text);
  padding: 100px 0;
}

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

.why-section .section-tag {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--sage);
  margin-bottom: 12px;
}

.why-section h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.why-section .section-subtitle {
  font-size: 16px;
  color: var(--muted-text);
  max-width: 560px;
  margin: 0 auto;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.why-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 34px 30px;
  transition: box-shadow 0.25s ease;
}

.why-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}

.why-card .w-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.why-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.why-card .w-desc {
  font-size: 14px;
  color: var(--muted-text);
  line-height: 1.7;
}

/* ===== Contact Section ===== */
.contact-section {
  background-color: var(--slate);
  color: var(--warm-ivory);
  padding: 100px 0;
}

.contact-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-section .section-tag {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--copper);
  margin-bottom: 12px;
}

.contact-section h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.contact-section .contact-info-text {
  font-size: 16px;
  color: #9a9da8;
  line-height: 1.7;
  margin-bottom: 32px;
}

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

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

.contact-detail-item .cd-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: var(--card-slate);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-detail-item h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-detail-item p {
  font-size: 14px;
  color: #9a9da8;
}

.contact-form {
  background-color: var(--card-slate);
  border: 1px solid var(--border-slate);
  border-radius: 14px;
  padding: 36px;
}

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

.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #9a9da8;
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--deep-slate);
  border: 1px solid var(--border-slate);
  border-radius: 8px;
  color: var(--warm-ivory);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--copper);
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form .btn-primary {
  width: 100%;
  text-align: center;
}

.form-success {
  display: none;
  text-align: center;
  padding: 24px;
}

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

.form-success .success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.form-success h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.form-success p {
  font-size: 14px;
  color: #9a9da8;
}

/* ===== Footer ===== */
.site-footer {
  background-color: var(--deep-slate);
  color: #9a9da8;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
  color: #7a7d88;
}

.footer-links h4 {
  color: var(--warm-ivory);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
}

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

.footer-links ul li a {
  font-size: 13px;
  color: #7a7d88;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-slate);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 13px;
  color: #6a6d78;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a {
  font-size: 13px;
  color: #7a7d88;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: var(--copper);
}

/* ===== Scroll Reveal Animation ===== */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

  .hero-section .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-visual { display: none; }

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

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

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

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

  .stats-section .container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

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

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--deep-slate);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 40px;
    gap: 24px;
    transition: right 0.35s ease;
    box-shadow: -5px 0 30px rgba(0,0,0,0.3);
  }

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

  .nav-links a {
    font-size: 16px;
  }

  .hero-section {
    padding: 120px 0 60px;
  }

  .hero-section h1 {
    font-size: 34px;
  }

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

  .section-header h2,
  .about-section h2,
  .services-section h2,
  .why-section h2,
  .contact-section h2 {
    font-size: 28px;
  }

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

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

@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 28px;
  }

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

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

  .container {
    padding: 0 16px;
  }
}
