/* ================================================
   CODANEO — Design System
   Sand palette · White veil · Smooth transitions
   ================================================ */

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
  /* Sand palette */
  --sand-50:  #fdf8f0;
  --sand-100: #faf0e0;
  --sand-200: #f3e0c2;
  --sand-300: #e8cda0;
  --sand-400: #d9b47c;
  --sand-500: #c99b5e;
  --sand-600: #b8844a;
  --sand-700: #9a6c3a;
  --sand-800: #7d5630;
  --sand-900: #5e3f24;

  /* Accent */
  --accent:     #c99b5e;
  --accent-glow: rgba(201, 155, 94, .35);

  /* Neutrals */
  --white:       #ffffff;
  --white-90:    rgba(255, 255, 255, .90);
  --white-70:    rgba(255, 255, 255, .70);
  --white-50:    rgba(255, 255, 255, .50);
  --white-30:    rgba(255, 255, 255, .30);
  --white-15:    rgba(255, 255, 255, .15);
  --white-08:    rgba(255, 255, 255, .08);
  --dark:        #2a1f14;
  --dark-80:     rgba(42, 31, 20, .80);

  /* Veil */
  --veil-bg:     rgba(255, 255, 255, .06);
  --veil-border: rgba(255, 255, 255, .12);

  /* Typography */
  --font: 'Outfit', system-ui, -apple-system, sans-serif;

  /* Layout */
  --container:   1140px;
  --gap:         2rem;
  --radius:      16px;
  --radius-sm:   10px;

  /* Transitions */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --speed: .4s;
}

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

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

body {
  font-family: var(--font);
  color: var(--white);
  background: var(--sand-800);
  background: linear-gradient(165deg, var(--sand-700) 0%, var(--sand-800) 40%, var(--sand-900) 100%);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ---------- UTILITY ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* Veil overlay — translucent white layer */
.veil {
  position: absolute;
  inset: 0;
  background: var(--veil-bg);
  backdrop-filter: blur(1px);
  pointer-events: none;
  z-index: 0;
}

.section { position: relative; }
.section > .container { position: relative; z-index: 1; }

.section-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2.5rem;
  max-width: 700px;
}

/* ---------- RECT-O (rectangular O via Orbitron font) ---------- */
.rect-o {
  font-family: 'Orbitron', sans-serif;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 600;
  font-size: .95rem;
  padding: .85rem 2.2rem;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  transition: all var(--speed) var(--ease);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--accent);
  color: var(--dark);
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn--primary:hover {
  background: var(--sand-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

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

.btn--wide { width: 100%; max-width: 320px; }

/* ================================================
   HEADER
   ================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease),
              padding var(--speed) var(--ease);
}

#site-header.scrolled {
  background: rgba(42, 31, 20, .85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 40px rgba(0,0,0,.25);
  padding: .6rem 0;
}

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

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--white);
  transition: color var(--speed) var(--ease);
}

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

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

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .04em;
  position: relative;
  transition: color var(--speed) var(--ease);
}

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

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--white-15);
  padding: .5rem 1.4rem !important;
  border-radius: 60px;
  border: 1px solid var(--white-30);
  backdrop-filter: blur(8px);
}

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

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

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s var(--ease);
}

/* ================================================
   HERO
   ================================================ */
.section--hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 80px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(201,155,94,.15) 0%, transparent 70%),
    linear-gradient(175deg, var(--sand-700) 0%, var(--sand-900) 100%);
}

.section--hero .veil {
  background: rgba(255,255,255,.03);
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: .15em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--white) 30%, var(--sand-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 300;
  color: var(--white-70);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ================================================
   ABOUT
   ================================================ */
.section--about {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--sand-900) 0%, var(--sand-800) 100%);
}

.section--about .veil {
  background: rgba(255,255,255,.04);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  color: var(--white-70);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.about-text strong { color: var(--accent); }

.about-stats {
  display: grid;
  gap: 1.2rem;
}

.stat-card {
  background: var(--white-08);
  border: 1px solid var(--white-15);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.8rem;
  backdrop-filter: blur(6px);
  transition: transform var(--speed) var(--ease), background var(--speed) var(--ease);
}

.stat-card:hover {
  transform: translateY(-3px);
  background: var(--white-15);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.stat-label {
  font-size: .85rem;
  color: var(--white-50);
  font-weight: 500;
}

/* ================================================
   MISSION (Description 2)
   ================================================ */
.section--mission {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--sand-800) 0%, var(--sand-700) 100%);
}

.section--mission .veil {
  background: rgba(255,255,255,.05);
}

.mission-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.mission-card {
  background: var(--white-08);
  border: 1px solid var(--white-15);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  backdrop-filter: blur(6px);
  transition: transform var(--speed) var(--ease),
              background var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
}

.mission-card:hover {
  transform: translateY(-6px);
  background: var(--white-15);
  box-shadow: 0 16px 48px rgba(0,0,0,.2);
}

.mission-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1.4rem;
  color: var(--accent);
}

.mission-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: .75rem;
}

.mission-card p {
  color: var(--white-70);
  font-size: .95rem;
}

/* ================================================
   OFFERS
   ================================================ */
.section--offers {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--sand-700) 0%, var(--sand-800) 100%);
}

.section--offers .veil {
  background: rgba(255,255,255,.04);
}

.offer-block {
  background: var(--white-08);
  border: 1px solid var(--white-15);
  border-radius: var(--radius);
  padding: 3rem;
  margin-bottom: 2.5rem;
  backdrop-filter: blur(6px);
  transition: background var(--speed) var(--ease);
}

.offer-block:hover {
  background: var(--white-15);
}

.offer-block-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: .75rem;
}

.offer-block-desc {
  color: var(--white-70);
  max-width: 720px;
  margin-bottom: 2rem;
  font-size: 1.02rem;
}

/* 3-pane grid */
.panes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.pane-card {
  background: var(--white-08);
  border: 1px solid var(--white-15);
  border-radius: var(--radius-sm);
  padding: 2rem 1.6rem;
  transition: transform var(--speed) var(--ease),
              background var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
}

.pane-card:hover {
  transform: translateY(-4px);
  background: var(--white-15);
  box-shadow: 0 12px 36px rgba(0,0,0,.18);
}

.pane-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.2rem;
  color: var(--accent);
}

.pane-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: .6rem;
}

.pane-card p {
  color: var(--white-70);
  font-size: .9rem;
}

/* ================================================
   FAQ
   ================================================ */
.section--faq {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--sand-800) 0%, var(--sand-900) 100%);
}

.section--faq .veil {
  background: rgba(255,255,255,.04);
}

.faq-list {
  max-width: 760px;
}

.faq-item {
  border-bottom: 1px solid var(--white-15);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 500;
  list-style: none;
  transition: color var(--speed) var(--ease);
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; content: ''; }

.faq-question:hover { color: var(--accent); }

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--speed) var(--ease);
  color: var(--white-50);
}

details[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  padding: 0 0 1.4rem;
  color: var(--white-70);
  font-size: .95rem;
  line-height: 1.7;
  animation: faqSlideDown .35s var(--ease);
}

@keyframes faqSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================
   CONTACT
   ================================================ */
.section--contact {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--sand-900) 0%, var(--sand-800) 100%);
}

.section--contact .veil {
  background: rgba(255,255,255,.05);
}

.contact-intro {
  color: var(--white-70);
  max-width: 560px;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.contact-form {
  max-width: 640px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--white-70);
  margin-bottom: .4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--white-08);
  border: 1px solid var(--white-15);
  border-radius: var(--radius-sm);
  padding: .9rem 1.2rem;
  color: var(--white);
  font-family: var(--font);
  font-size: .95rem;
  transition: border-color var(--speed) var(--ease),
              background var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--white-30);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--white-15);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  background: var(--dark);
  border-top: 1px solid var(--white-08);
  padding: 3rem 0 2rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.footer-tagline {
  font-size: .85rem;
  color: var(--white-50);
  margin-top: .25rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: .85rem;
  color: var(--white-50);
  transition: color .3s var(--ease);
}

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

.footer-legal {
  font-size: .8rem;
  color: var(--white-30);
}

.footer-legal a {
  color: var(--white-50);
  transition: color .3s var(--ease);
}

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

/* ================================================
   SCROLL-REVEAL ANIMATIONS
   ================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.reveal-children.revealed > *:nth-child(1) { transition-delay: 0s; }
.reveal-children.revealed > *:nth-child(2) { transition-delay: .1s; }
.reveal-children.revealed > *:nth-child(3) { transition-delay: .2s; }
.reveal-children.revealed > *:nth-child(4) { transition-delay: .15s; }
.reveal-children.revealed > *:nth-child(5) { transition-delay: .2s; }

.reveal-children.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .mission-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

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

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background: rgba(42, 31, 20, .96);
    backdrop-filter: blur(20px);
    padding: 6rem 2rem 2rem;
    gap: 1.5rem;
    transition: right .4s var(--ease);
    z-index: 999;
  }

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

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

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

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

  .offer-block {
    padding: 2rem 1.5rem;
  }

  .hero-title {
    letter-spacing: .08em;
  }
}
