/*============================================
   CosmoCast — Canyon Dusk Palette
   NO rgba() / opacity on text — solid hex only
   Body font-size: 16px (literal)
   ============================================*/

:root {
  --deep: #2B2024;
  --terracotta: #B87D5C;
  --sage: #8BA78A;
  --cream: #FBF6F1;
  --white: #FFFEFD;
  --charcoal: #1B1B1F;
  --warm-gray: #F0EBE4;
  --sand: #E8DFD5;
  --deep-alt: #3D2E34;
  --muted: #6B5E63;
  --terracotta-dark: #9E5D3E;
  --sage-dark: #6B876A;
  --heading-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --body-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--terracotta-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--deep);
  line-height: 1.25;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ========== NAVIGATION ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--deep);
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35em;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  background-color: var(--terracotta);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  color: var(--white);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  color: #CEC6C0;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.925em;
  font-weight: 500;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-links .btn-nav {
  background-color: var(--terracotta);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
}

.nav-links .btn-nav:hover {
  background-color: var(--terracotta-dark);
  color: var(--white);
}

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

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

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

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

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

/* ========== HERO ========== */
.hero {
  background-color: var(--deep);
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -120px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background-color: #3D2E34;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background-color: #37272C;
  z-index: 0;
}

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

.hero-content h1 {
  font-size: 3em;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

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

.hero-content p {
  font-size: 1.15em;
  color: #CEC6C0;
  margin-bottom: 32px;
  max-width: 500px;
  line-height: 1.75;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.975em;
  cursor: pointer;
  border: none;
  transition: background-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}

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

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

.btn-primary:hover {
  background-color: var(--terracotta-dark);
  box-shadow: 0 6px 24px rgba(184,125,92,0.35);
}

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

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.06);
}

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

.hero-card {
  background-color: #3D2E34;
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}

.hero-card-icon {
  width: 56px;
  height: 56px;
  background-color: var(--terracotta);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6em;
  margin-bottom: 20px;
}

.hero-card h3 {
  color: var(--white);
  font-size: 1.3em;
  margin-bottom: 12px;
}

.hero-card p {
  color: #CEC6C0;
  font-size: 0.95em;
  line-height: 1.7;
  margin-bottom: 24px;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.stat-item {
  background-color: #2B2024;
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.stat-number {
  font-size: 1.6em;
  font-weight: 700;
  color: var(--terracotta);
}

.stat-label {
  font-size: 0.8em;
  color: #A89E93;
  margin-top: 4px;
}

/* ========== SECTION STYLES ========== */
.section {
  padding: 88px 0;
}

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

.section-header .badge {
  display: inline-block;
  background-color: var(--sand);
  color: var(--terracotta);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 2.3em;
  font-weight: 800;
  color: var(--deep);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.section-header p {
  font-size: 1.05em;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
}

.bg-warm {
  background-color: var(--warm-gray);
}

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

.service-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid var(--sand);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 52px;
  height: 52px;
  background-color: var(--warm-gray);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4em;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.15em;
  margin-bottom: 10px;
  color: var(--deep);
}

.service-card p {
  color: var(--muted);
  font-size: 0.925em;
  line-height: 1.65;
}

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  background-color: var(--deep);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  position: relative;
  overflow: hidden;
}

.about-image-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.about-image-icon {
  font-size: 4em;
  margin-bottom: 16px;
  display: block;
}

.about-image-text {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}

.about-image::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background-color: #3D2E34;
  top: -60px;
  right: -40px;
}

.about-content h2 {
  font-size: 2.1em;
  font-weight: 800;
  color: var(--deep);
  margin-bottom: 20px;
}

.about-content p {
  color: var(--muted);
  font-size: 1.02em;
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-features {
  list-style: none;
  margin-top: 24px;
}

.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95em;
  color: var(--charcoal);
}

.about-features li::before {
  content: '';
  width: 22px;
  height: 22px;
  background-color: var(--sage);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.7em;
  font-weight: 700;
}

.about-features li:nth-child(1)::before { content: '1'; }
.about-features li:nth-child(2)::before { content: '2'; }
.about-features li:nth-child(3)::before { content: '3'; }
.about-features li:nth-child(4)::before { content: '4'; }

/* ========== STATS BAR ========== */
.stats-bar {
  background-color: var(--deep);
  padding: 56px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-card {
  text-align: center;
}

.stat-card .stat-value {
  font-size: 2.8em;
  font-weight: 800;
  color: var(--terracotta);
  line-height: 1.1;
}

.stat-card .stat-desc {
  font-size: 0.9em;
  color: #CEC6C0;
  margin-top: 8px;
  font-weight: 500;
}

/* ========== PROCESS ========== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--sage);
  color: var(--white);
  font-size: 1.2em;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.process-step h4 {
  font-size: 1.05em;
  margin-bottom: 8px;
  color: var(--deep);
}

.process-step p {
  font-size: 0.9em;
  color: var(--muted);
  line-height: 1.6;
}

/* ========== TECH STACK ========== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.tech-item {
  background-color: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tech-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.tech-item-icon {
  font-size: 2em;
  margin-bottom: 10px;
  display: block;
}

.tech-item span:last-child {
  font-size: 0.85em;
  font-weight: 600;
  color: var(--deep);
}

/* ========== CTA ========== */
.cta {
  background-color: var(--terracotta);
  padding: 72px 0;
  text-align: center;
}

.cta h2 {
  font-size: 2.2em;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
}

.cta p {
  font-size: 1.08em;
  color: #FFE8DB;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.cta .btn {
  background-color: var(--white);
  color: var(--terracotta);
}

.cta .btn:hover {
  background-color: #F5EFE8;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.5em;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

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

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background-color: var(--warm-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
  flex-shrink: 0;
}

.contact-detail-text strong {
  display: block;
  font-size: 0.9em;
  color: var(--deep);
}

.contact-detail-text span {
  font-size: 0.9em;
  color: var(--muted);
}

.contact-form {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--sand);
}

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

.form-group label {
  display: block;
  font-size: 0.875em;
  font-weight: 600;
  color: var(--deep);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--sand);
  border-radius: var(--radius);
  font-family: var(--body-font);
  font-size: 0.95em;
  color: var(--charcoal);
  background-color: var(--cream);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(184,125,92,0.15);
}

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

.form-submit {
  width: 100%;
  padding: 14px;
  background-color: var(--terracotta);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.form-submit:hover {
  background-color: var(--terracotta-dark);
}

.form-feedback {
  margin-top: 14px;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 0.9em;
  font-weight: 500;
  display: none;
}

.form-feedback.success {
  display: block;
  background-color: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #A5D6A7;
}

.form-feedback.error {
  display: block;
  background-color: #FFEBEE;
  color: #C62828;
  border: 1px solid #EF9A9A;
}

/* ========== FOOTER ========== */
.site-footer {
  background-color: var(--deep);
  padding: 48px 0 36px;
  color: #CEC6C0;
}

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

.footer-brand h4 {
  font-size: 1.2em;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9em;
  line-height: 1.7;
  color: #B8AFAA;
}

.footer-col h5 {
  font-size: 0.95em;
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.885em;
  color: #B8AFAA;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid #3D2E34;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85em;
  color: #8A7E7A;
}

.footer-bottom a {
  color: var(--terracotta);
  font-weight: 500;
}

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

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

/* ========== COUNTER ========== */
.counter {
  display: inline;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content p {
    max-width: 100%;
  }

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

  .hero-visual {
    order: -1;
  }

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

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

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--deep-alt);
    flex-direction: column;
    gap: 0;
    padding: 88px 24px 24px;
    transition: right 0.35s ease;
    z-index: 999;
  }

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

  .nav-links a {
    display: block;
    padding: 14px 16px;
    border-bottom: 1px solid #4A3B41;
  }

  .nav-toggle {
    display: flex;
  }

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

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

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

  .hero {
    padding: 110px 0 70px;
  }

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

  .section-header h2 {
    font-size: 1.8em;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }
}

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

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

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