/* DataWisdom — datawisdom.pro */
:root {
  --forest: #065F46;
  --gold: #CA8A04;
  --parchment: #FAFAF9;
  --stone: #78716C;
  --teal: #0F766E;
  --white: #ffffff;
  --dark: #134E4A;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --max: 1200px;
  --radius: 8px;
  --shadow: 0 4px 28px rgba(6, 95, 70, 0.1);
  --fade-duration: 1s;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--stone);
  background: var(--parchment);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--forest);
  line-height: 1.2;
  margin-top: 0;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Header — parchment */
.site-header {
  background: var(--parchment);
  color: var(--forest);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(6, 95, 70, 0.12);
  border-bottom: 1px solid rgba(6, 95, 70, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  max-width: var(--max);
  margin: 0 auto;
  gap: 1rem;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: 0.02em;
}
.logo span { color: var(--gold); }
.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--forest);
  color: var(--forest);
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.35rem;
}
.main-nav a {
  color: var(--forest);
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a:hover,
.main-nav a.active { color: var(--teal); }
.nav-cta {
  margin-left: 0.5rem;
}

/* Buttons — forest outline, hover gold */
.btn {
  display: inline-block;
  padding: 0.75rem 1.55rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-family: var(--font-body);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  text-align: center;
  font-size: 0.95rem;
}
.btn-forest-outline {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn-forest-outline:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}
.btn-gold-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-gold-outline:hover {
  background: var(--gold);
  color: var(--white);
}
.btn-teal {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-teal:hover {
  background: var(--forest);
  border-color: var(--forest);
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--forest) 0%, var(--teal) 55%, #047857 100%);
  color: var(--parchment);
  padding: 3.5rem 0 4.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: center;
}
.hero h1 { color: var(--parchment); font-weight: 700; }
.hero .tagline {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
  font-style: italic;
}
.hero p { color: rgba(250, 250, 249, 0.92); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero .btn-forest-outline {
  border-color: var(--parchment);
  color: var(--parchment);
}
.hero .btn-forest-outline:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}
.hero-dashboard {
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  border: 3px solid var(--gold);
}

/* Bands */
.band { padding: 3.75rem 0; }
.band-white { background: var(--white); }
.band-parchment { background: var(--parchment); }
.band-forest { background: var(--forest); color: var(--parchment); }
.band-forest h2, .band-forest h3 { color: var(--parchment); }
.band-teal { background: linear-gradient(135deg, var(--teal), var(--forest)); color: var(--parchment); }
.band-teal h2 { color: var(--parchment); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--stone); }
.band-forest .section-head p,
.band-teal .section-head p { color: rgba(250, 250, 249, 0.88); }

/* Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pillar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}
.pillar-card h3 { margin-bottom: 0.5rem; }
.pillar-icon {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.75rem;
}

/* Elegant image block */
.elegant-image {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
}

/* Solutions list */
.solutions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  border: 1px solid rgba(6, 95, 70, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.solutions-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid rgba(6, 95, 70, 0.08);
}
.solutions-list li:last-child { border-bottom: none; }
.solutions-list li:hover { background: rgba(202, 138, 4, 0.06); }
.sol-id {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
  min-width: 4.5rem;
}
.sol-title { font-family: var(--font-display); font-size: 1.2rem; color: var(--forest); font-weight: 600; }
.sol-desc { font-size: 0.92rem; color: var(--stone); margin: 0; }

/* Services rows */
.service-rows { display: grid; gap: 0; }
.service-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(6, 95, 70, 0.1);
}
.service-row:last-child { border-bottom: none; }
.service-row img {
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.service-row h3 { margin-bottom: 0.5rem; }

/* Large testimonial */
.testimonial-large {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 5px solid var(--gold);
}
.testimonial-large blockquote {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-style: italic;
  color: var(--forest);
  line-height: 1.45;
}
.testimonial-large cite {
  font-style: normal;
  font-weight: 700;
  color: var(--teal);
  font-size: 0.95rem;
  font-family: var(--font-body);
}

/* FAQ accordion */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(6, 95, 70, 0.08);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.15rem 1.5rem;
  background: var(--white);
  border: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--forest);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-question:hover { color: var(--teal); }
.faq-question::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
}
.faq-item.open .faq-answer {
  max-height: 320px;
  padding: 0 1.5rem 1.25rem;
}
.faq-answer p { margin: 0; font-size: 0.95rem; }

/* CTA gold outline */
.cta-gold {
  text-align: center;
  padding: 3.25rem 2rem;
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  background: var(--white);
  max-width: 720px;
  margin: 0 auto;
}
.cta-gold h2 { margin-bottom: 0.75rem; }
.cta-gold p { margin-bottom: 1.5rem; }
.inline-email {
  font-weight: 700;
  color: var(--teal);
  word-break: break-all;
}
.inline-email:hover { color: var(--gold); }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(6, 95, 70, 0.08);
}
.card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.card-body { padding: 1.35rem; }
.card h3 { margin-bottom: 0.5rem; }
.card .dw-id {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Split / infographic */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.infographic-wide {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  align-items: center;
}
.infographic-wide.reverse { direction: rtl; }
.infographic-wide.reverse > * { direction: ltr; }

/* Page hero */
.page-hero {
  background: linear-gradient(135deg, var(--forest), var(--teal));
  color: var(--parchment);
  padding: 2.75rem 0;
}
.page-hero h1 { color: var(--parchment); margin-bottom: 0.5rem; }
.breadcrumb { font-size: 0.85rem; opacity: 0.85; }
.breadcrumb a { color: var(--gold); }

/* Table */
.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.data-table th,
.data-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(6, 95, 70, 0.1);
}
.data-table th {
  background: var(--forest);
  color: var(--parchment);
  font-family: var(--font-display);
}
.data-table tr:nth-child(even) { background: rgba(250, 250, 249, 0.8); }
.data-table tr:hover { background: rgba(202, 138, 4, 0.08); }

/* Service blocks (inner pages) */
.service-block {
  padding: 2.25rem 0;
  border-bottom: 1px solid rgba(6, 95, 70, 0.1);
}
.service-block:last-child { border-bottom: none; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 2px solid rgba(6, 95, 70, 0.15);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.form-group .error-msg {
  color: #b45309;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: none;
}
.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea { border-color: #b45309; }
.form-group.invalid .error-msg { display: block; }

.alert-success {
  display: none;
  opacity: 0;
  transition: opacity var(--fade-duration) ease;
  background: rgba(15, 118, 110, 0.1);
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.alert-success.visible { display: block; opacity: 1; }
.alert-success h2 { color: var(--forest); margin-bottom: 0.5rem; }

/* Legal */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { margin-top: 2rem; font-size: 1.35rem; }
.legal-content h3 { font-size: 1.1rem; margin-top: 1.5rem; }

/* Footer */
.site-footer {
  background: var(--forest);
  color: var(--parchment);
  padding: 2.75rem 0 1.5rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer h4 {
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
}
.site-footer a { color: var(--parchment); }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(250, 250, 249, 0.15);
  padding-top: 1rem;
  text-align: center;
  opacity: 0.8;
}

/* Cookie */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--forest);
  color: var(--parchment);
  padding: 1rem 1.5rem;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  display: none;
}
.cookie-banner.visible { display: block; }
.cookie-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-inner p { margin: 0; flex: 1; min-width: 200px; font-size: 0.9rem; }
.cookie-inner a { color: var(--gold); text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.75rem; }
.cookie-banner .btn-forest-outline {
  border-color: var(--parchment);
  color: var(--parchment);
}

/* Scroll fade — 1.0s */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--fade-duration) ease, transform var(--fade-duration) ease;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.no-js .animate-on-scroll {
  opacity: 1;
  transform: none;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--teal);
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-label { font-weight: 700; color: var(--forest); margin-top: 0.5rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .split,
  .infographic-wide,
  .footer-grid,
  .service-row { grid-template-columns: 1fr; }
  .pillars-grid,
  .stats-grid { grid-template-columns: 1fr; }
  .solutions-list li { grid-template-columns: 1fr; gap: 0.35rem; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--parchment);
    padding: 1rem;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .nav-cta { margin-left: 0; }
  .site-header { position: relative; }
  .elegant-image { aspect-ratio: 16/10; }
}
@media (max-width: 600px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
