/* =============================================
   Radici Digitali — CSS
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
  --green-dark:  #1b4332;
  --green:       #2d6a4f;
  --green-mid:   #40916c;
  --green-light: #74c69d;
  --green-pale:  #d8f3dc;

  /* New accent palette */
  --gold:        #c8a96e;
  --gold-light:  #f0d9b5;
  --gold-pale:   #fdf6ec;
  --coral:       #e8735a;
  --coral-pale:  #fdf0ed;
  --indigo:      #4f46e5;
  --indigo-pale: #eef2ff;

  --white:       #ffffff;
  --off-white:   #f8faf9;
  --text:        #1a1a2e;
  --muted:       #6b7280;
  --border:      #e5e7eb;
  --font-body:   'Inter', sans-serif;
  --font-head:   'Playfair Display', serif;
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 8px 32px rgba(0,0,0,.10);
  --shadow-sm:   0 2px 12px rgba(0,0,0,.06);
  --max:         1100px;

  /* Animation */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── SCROLL REVEAL ──────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Stagger delays */
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }

/* ── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all .25s var(--ease-out);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background .2s;
}
.btn:hover::after { background: rgba(255,255,255,.08); }

.btn-primary {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(45,106,79,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45,106,79,.45);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--green-dark);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.btn-white:hover {
  background: var(--green-pale);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #e8c07a 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(200,169,110,.4);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,169,110,.5); }

/* ── NAV ────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(229,231,235,.6);
  height: 82px;
  display: flex;
  align-items: center;
  transition: background .3s, box-shadow .3s;
}
nav.scrolled {
  background: rgba(255,255,255,.98);
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 72px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform .25s var(--ease-out);
  transform-origin: left;
}
.nav-links a:hover { color: var(--green); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { margin-left: 16px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

/* ── HERO ───────────────────────────────────── */
.hero {
  padding: 150px 0 110px;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 50%, #1d6348 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Animated orbs */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}
.hero::before {
  width: 500px; height: 500px;
  background: rgba(200,169,110,.18);
  top: -100px; right: -100px;
  animation-delay: 0s;
}
.hero::after {
  width: 400px; height: 400px;
  background: rgba(116,198,157,.2);
  bottom: -80px; left: -80px;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(.96); }
}

/* Grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 28px;
  text-transform: uppercase;
  animation: fadeSlideDown .8s var(--ease-out) both;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeSlideUp .8s var(--ease-out) .1s both;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(16px, 2vw, 20px);
  opacity: .88;
  max-width: 560px;
  margin: 0 auto 44px;
  animation: fadeSlideUp .8s var(--ease-out) .2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeSlideUp .8s var(--ease-out) .3s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 72px;
  padding-top: 44px;
  border-top: 1px solid rgba(255,255,255,.18);
  flex-wrap: wrap;
  animation: fadeSlideUp .8s var(--ease-out) .4s both;
}

.hero-stat { text-align: center; }
.hero-stat strong {
  display: block;
  font-size: 34px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gold-light);
}
.hero-stat span { font-size: 13px; opacity: .75; text-transform: uppercase; letter-spacing: .5px; }

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── TRUST BAR ──────────────────────────────── */
.trust-bar {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.trust-item .icon {
  width: 32px; height: 32px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

/* ── SERVICES ───────────────────────────────── */
.services {
  padding: 110px 0;
  background: var(--off-white);
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--green);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--green);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
  margin-bottom: 18px;
}

.section-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 64px;
  line-height: 1.7;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  position: relative;
  transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out), border-color .3s;
}
.pricing-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-6px);
  border-color: var(--green-light);
}

.pricing-card.featured {
  border-color: var(--green);
  border-width: 2px;
  background: linear-gradient(180deg, #fff 0%, #f0faf4 100%);
}
.pricing-card.featured:hover { border-color: var(--green-dark); }

.card-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(45,106,79,.35);
}

.card-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--green-pale) 0%, #c3efd4 100%);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  transition: transform .3s;
}
.pricing-card:hover .card-icon { transform: scale(1.1) rotate(-5deg); }

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

.pricing-card .price {
  font-family: var(--font-head);
  font-size: 46px;
  color: var(--green-dark);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-card .price sub { font-size: 18px; font-family: var(--font-body); }
.pricing-card .price-note { font-size: 13px; color: var(--muted); margin-bottom: 28px; }

.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.card-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.card-features li::before {
  content: '✓';
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--green-pale) 0%, #b7e4c7 100%);
  color: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── HOW IT WORKS ───────────────────────────── */
.how {
  padding: 110px 0;
  background: var(--white);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 48px;
  position: relative;
}

/* Connector line between steps on desktop */
@media (min-width: 768px) {
  .steps::before {
    content: '';
    position: absolute;
    top: 28px; left: 28px; right: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--green-pale), var(--green-light), var(--green-pale));
    z-index: 0;
  }
}

.step { position: relative; z-index: 1; }
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 6px 20px rgba(45,106,79,.3);
  transition: transform .3s, box-shadow .3s;
}
.step:hover .step-num {
  transform: scale(1.1);
  box-shadow: 0 10px 28px rgba(45,106,79,.4);
}

.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.7; }

/* ── WHY US ─────────────────────────────────── */
.why {
  padding: 110px 0;
  background: linear-gradient(160deg, var(--green-dark) 0%, #0f2c1e 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.why::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(200,169,110,.06);
  top: -200px; right: -200px;
  pointer-events: none;
}
.why::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(116,198,157,.06);
  bottom: -150px; left: -100px;
  pointer-events: none;
}

.why .section-label { color: var(--gold); }
.why .section-label::before { background: var(--gold); }
.why .section-title { color: var(--white); }
.why .section-sub { color: rgba(255,255,255,.65); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  position: relative; z-index: 1;
}

.why-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 32px;
  transition: background .3s, border-color .3s, transform .3s;
  cursor: default;
}
.why-card:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(200,169,110,.3);
  transform: translateY(-4px);
}

.why-icon {
  font-size: 32px;
  margin-bottom: 18px;
  display: block;
  transition: transform .3s;
}
.why-card:hover .why-icon { transform: scale(1.2) rotate(-5deg); }
.why-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--white); }
.why-card p { font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.8; }

/* ── HIGHLIGHT STRIP ────────────────────────── */
.highlight-strip {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--gold-pale) 0%, #fff8ee 100%);
  border-top: 1px solid var(--gold-light);
  border-bottom: 1px solid var(--gold-light);
}
.highlight-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}
.highlight-num {
  font-family: var(--font-head);
  font-size: 52px;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}
.highlight-label { font-size: 15px; color: var(--muted); font-weight: 500; }

/* ── FAQ ────────────────────────────────────── */
.faq { padding: 110px 0; background: var(--off-white); }

.faq-list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.faq-item:hover { border-color: var(--green-light); box-shadow: var(--shadow-sm); }
.faq-item.open { border-color: var(--green); }

.faq-q {
  width: 100%;
  text-align: left;
  padding: 22px 24px;
  font-size: 16px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--text);
  transition: color .2s;
}
.faq-item.open .faq-q { color: var(--green-dark); }
.faq-q .arrow {
  transition: transform .35s var(--ease-out);
  font-size: 18px;
  color: var(--green);
  flex-shrink: 0;
}
.faq-item.open .arrow { transform: rotate(180deg); }

.faq-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 24px 24px; }

/* ── CTA STRIP ──────────────────────────────── */
.cta-strip {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 50%, var(--green-mid) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: rgba(200,169,110,.1);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: .6; }
}
.cta-strip > * { position: relative; z-index: 1; }
.cta-strip h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: 16px;
}
.cta-strip p { font-size: 18px; opacity: .88; margin-bottom: 40px; }
.cta-strip .btn-white { font-size: 16px; padding: 18px 40px; }

/* ── FOOTER ─────────────────────────────────── */
footer {
  background: #0d2119;
  color: rgba(255,255,255,.6);
  padding: 64px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo { margin-bottom: 10px; }
.footer-brand .nav-logo img { height: 72px; }
.footer-brand p { font-size: 14px; max-width: 240px; line-height: 1.7; }

.footer-links h4 { color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 16px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 768px) {
  nav { height: 64px; }

  .nav-logo img { height: 52px; }

  .nav-links { display: none; }
  .nav-cta {
    display: inline-flex;
    margin-left: auto;
    margin-right: 12px;
    padding: 9px 16px;
    font-size: 13px;
  }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    padding: 28px 24px;
    border-bottom: 1px solid var(--border);
    gap: 24px;
    align-items: flex-start;
    z-index: 99;
    box-shadow: 0 8px 32px rgba(0,0,0,.08);
  }

  .hero { padding: 120px 0 80px; }
  .hero-stats { gap: 28px; }
  .trust-bar-inner { gap: 24px; }
  .steps::before { display: none; }
  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── ANIMATED GRADIENT TEXT ─────────────────── */
.gradient-text {
  background: linear-gradient(90deg, var(--green-mid), var(--gold), var(--green-light), var(--gold));
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
