/* ============================================================
   CoreDeo — Main Stylesheet
   Color Scheme: Slate & Marigold (UNIQUE)
   ============================================================ */

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

:root {
  --dark: #1C2030;
  --accent: #D4893B;
  --accent-hover: #C0782A;
  --secondary: #7A9B7E;
  --light: #F5F0E9;
  --white: #FFFFFF;
  --text: #1C2030;
  --text-muted: #5E5E6E;
  --text-light: #8A8A98;
  --footer-bg: #141722;
  --border: #E0DBD2;
  --card-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* ----- UTILITY ----- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ----- 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);
}

/* ----- MAIN NAVIGATION (class selector — NEVER bare nav) ----- */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--dark);
  padding: 0 24px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.main-nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.18);
}

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

.main-nav .nav-logo {
  font-size: 1.6em;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--white);
}

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

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

.main-nav .nav-links a {
  color: #C8CCD4;
  font-size: 0.94em;
  font-weight: 500;
  transition: color 0.25s ease;
  padding: 6px 0;
}

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

.main-nav .nav-links .nav-cta {
  background-color: var(--accent);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.main-nav .nav-links .nav-cta:hover,
.main-nav .nav-links .nav-cta:focus {
  background-color: var(--accent-hover);
  color: var(--white);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.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: 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);
}

/* ----- HOMEPAGE HERO ----- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1C2030 0%, #252B3D 50%, #1C2030 100%);
  color: var(--white);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -120px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,137,59,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122,155,126,0.10) 0%, transparent 70%);
  pointer-events: none;
}

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

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

.hero-text h1 .highlight {
  color: var(--accent);
}

.hero-text .hero-subtitle {
  font-size: 1.15em;
  color: #B0B8C8;
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 520px;
}

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

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

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

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

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

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

.hero-card-stack {
  position: relative;
  width: 340px;
  height: 340px;
}

.hero-card-stack .card-piece {
  position: absolute;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
}

.hero-card-stack .card-piece:nth-child(1) {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--accent), #E09D4F);
  top: 0;
  right: 0;
}

.hero-card-stack .card-piece:nth-child(2) {
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, var(--secondary), #8EAD90);
  bottom: 0;
  left: 0;
}

.hero-card-stack .card-piece:nth-child(3) {
  width: 140px;
  height: 140px;
  background: var(--white);
  top: 100px;
  left: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2em;
  color: var(--dark);
}

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

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #1C2030, #2D3448);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1em;
  font-weight: 600;
}

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

.about-content h2 {
  font-size: 2.2em;
  font-weight: 800;
  line-height: 1.25;
  color: var(--dark);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

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

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.about-stat {
  background-color: var(--white);
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  border-left: 3px solid var(--accent);
}

.about-stat .stat-number {
  font-size: 2em;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

.about-stat .stat-label {
  font-size: 0.9em;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ----- SERVICES SECTION ----- */
.services-section {
  padding: 100px 0;
  background-color: var(--white);
}

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

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

.services-header h2 {
  font-size: 2.2em;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.services-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.02em;
  line-height: 1.8;
}

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

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

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}

.service-card .service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6em;
  margin-bottom: 20px;
}

.service-card .service-icon.icon-dark {
  background-color: var(--dark);
  color: var(--white);
}

.service-card .service-icon.icon-accent {
  background-color: var(--accent);
  color: var(--white);
}

.service-card .service-icon.icon-secondary {
  background-color: var(--secondary);
  color: var(--white);
}

.service-card h3 {
  font-size: 1.25em;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95em;
  line-height: 1.75;
}

/* ----- FEATURES / PROCESS SECTION ----- */
.features-section {
  padding: 100px 0;
  background-color: var(--dark);
  color: var(--white);
}

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

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

.features-header h2 {
  font-size: 2.2em;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.features-header p {
  color: #A0A8B8;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.02em;
  line-height: 1.8;
}

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

.feature-item {
  text-align: center;
  padding: 32px 20px;
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
}

.feature-item .feature-number {
  font-size: 2.4em;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}

.feature-item h4 {
  font-size: 1.05em;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-item p {
  color: #9098A8;
  font-size: 0.9em;
  line-height: 1.65;
}

/* ----- COUNTER / STATS BAR ----- */
.stats-bar {
  padding: 60px 0;
  background-color: var(--light);
}

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

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

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

.stat-item .count-label {
  font-size: 0.95em;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 500;
}

/* ----- TESTIMONIALS SECTION ----- */
.testimonials-section {
  padding: 100px 0;
  background-color: var(--white);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 56px;
}

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

.testimonials-header h2 {
  font-size: 2.2em;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}

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

.testimonial-card {
  background-color: var(--light);
  border-radius: 14px;
  padding: 32px 28px;
  border: 1px solid var(--border);
}

.testimonial-card .testimonial-text {
  font-size: 0.98em;
  color: var(--text-muted);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-card .testimonial-author {
  font-weight: 700;
  font-size: 0.95em;
  color: var(--dark);
}

.testimonial-card .testimonial-role {
  font-size: 0.85em;
  color: var(--text-light);
  margin-top: 2px;
}

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

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

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

.contact-info h2 {
  font-size: 2.2em;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 1.02em;
  line-height: 1.8;
  margin-bottom: 32px;
}

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

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.98em;
  color: var(--dark);
  font-weight: 500;
}

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

.contact-form-wrapper {
  background-color: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
}

.contact-form-wrapper h3 {
  font-size: 1.35em;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
}

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

.contact-form label {
  display: block;
  font-size: 0.9em;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 0.98em;
  font-family: inherit;
  color: var(--text);
  background-color: var(--white);
  transition: border-color 0.3s ease;
}

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

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

.contact-form .btn {
  width: 100%;
}

.form-feedback {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.93em;
  font-weight: 500;
  display: none;
}

.form-feedback.success {
  display: block;
  background-color: #EDF7EE;
  color: #2D6A35;
  border: 1px solid #C3E6C8;
}

.form-feedback.error {
  display: block;
  background-color: #FDEDED;
  color: #8B2E2E;
  border: 1px solid #F5C6C6;
}

/* ----- FOOTER ----- */
.site-footer {
  background-color: var(--footer-bg);
  color: #A0A8B8;
  padding: 60px 0 32px;
}

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

.footer-brand .footer-logo {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

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

.footer-brand p {
  font-size: 0.93em;
  line-height: 1.7;
  color: #868E9E;
}

.footer-column h4 {
  font-size: 0.95em;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.footer-column ul li a {
  font-size: 0.93em;
  color: #868E9E;
  transition: color 0.25s ease;
}

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

.footer-bottom {
  border-top: 1px solid #2A2E3A;
  padding-top: 28px;
  text-align: center;
  font-size: 0.88em;
  color: #6A707E;
}

.footer-bottom a {
  color: #868E9E;
  transition: color 0.25s ease;
}

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

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

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

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

  .hero-visual {
    display: none;
  }

  .hero-text h1 {
    font-size: 2.6em;
  }

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

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

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

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

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

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

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

@media (max-width: 768px) {
  .main-nav .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background-color: var(--dark);
    flex-direction: column;
    padding: 32px 24px;
    gap: 20px;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.30);
  }

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

  .nav-toggle {
    display: flex;
  }

  .hero-text h1 {
    font-size: 2em;
  }

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

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

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

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

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

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

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

  .about-section,
  .services-section,
  .features-section,
  .testimonials-section,
  .contact-section {
    padding: 60px 0;
  }

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

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

  .about-content h2,
  .services-header h2,
  .features-header h2,
  .testimonials-header h2,
  .contact-info h2 {
    font-size: 1.6em;
  }

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