@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

/* De Impresa Globals — refined editorial theme */
:root {
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", Arial, sans-serif;
  --premium-ink: #111111;
  --premium-charcoal: #171717;
  --premium-gold: #c6a15b;
  --premium-ivory: #f8f7f4;
}

/* Clean white navigation to frame the logo */
nav.fixed.top-0 {
  background: rgba(255,255,255,.97) !important;
  border-bottom: 1px solid rgba(198,161,91,.42) !important;
  box-shadow: 0 8px 28px rgba(17,17,17,.07) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
nav.fixed.top-0 img[alt="De Impresa Globals Logo"] {
  filter: none !important;
  drop-shadow: none !important;
}
nav.fixed.top-0 #primary-site-navigation > a {
  color: #292929 !important;
  font-weight: 700;
  transition: color .25s ease, transform .25s ease;
}
nav.fixed.top-0 #primary-site-navigation > a:hover {
  color: #a77d35 !important;
  transform: translateY(-1px);
}
nav.fixed.top-0 #de-impresa-language-toggle {
  color: #252525 !important;
  background: #f7f5f0 !important;
  border-color: rgba(198,161,91,.55) !important;
}
nav.fixed.top-0 #de-impresa-language-toggle svg { color: #a77d35 !important; }
nav.fixed.top-0 #de-impresa-mobile-menu-toggle {
  color: #222 !important;
  background: #f7f5f0 !important;
  border-color: rgba(198,161,91,.5) !important;
}
nav.fixed.top-0 #de-impresa-mobile-menu-toggle:hover { color: #9b742f !important; }
#de-impresa-mobile-menu {
  background: #fff !important;
  border-color: rgba(198,161,91,.35) !important;
}
#de-impresa-mobile-menu a { color: #262626 !important; }

/* The image-led hero sits on a deliberate charcoal canvas */
#home {
  background: #111;
}
#home > div {
  background: #111;
}
#home img {
  display: block;
}

/* Editorial typography with restrained gold details */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display) !important;
  letter-spacing: -.018em;
}
body, button, input, textarea, select {
  font-family: var(--font-body);
}
.text-gold-gradient {
  background-image: linear-gradient(110deg, #a77d35 0%, #d7b875 48%, #a77d35 100%) !important;
}

/* Selected dark sections create rhythm without making the whole site black */
#about,
#sales-proof,
#testimonials {
  background: linear-gradient(145deg, #171717 0%, #202020 58%, #151515 100%) !important;
  color: #f7f5f0 !important;
  position: relative;
  isolation: isolate;
}
#about::before,
#sales-proof::before,
#testimonials::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .22;
  background: radial-gradient(ellipse at 50% 0%, rgba(198,161,91,.22), transparent 62%);
}
#about h1, #about h2, #about h3,
#sales-proof h1, #sales-proof h2, #sales-proof h3,
#testimonials h1, #testimonials h2, #testimonials h3 {
  color: #fff !important;
}
#about p, #sales-proof p, #testimonials p {
  color: rgba(247,245,240,.76) !important;
}
#about .text-muted-foreground,
#sales-proof .text-muted-foreground,
#testimonials .text-muted-foreground {
  color: rgba(247,245,240,.68) !important;
}
#about .bg-card,
#sales-proof .bg-card,
#testimonials .bg-card {
  background: #242424 !important;
  border-color: rgba(198,161,91,.24) !important;
  color: #f7f5f0 !important;
}
#about a, #sales-proof a, #testimonials a {
  transition: color .25s ease, transform .25s ease, border-color .25s ease;
}

/* Keep the audit experience and light content areas readable and untouched */
#platforms, #audit, #services, #pricing, #team, #certifications,
#portfolio, #video-testimonials, #faq, #contact {
  scroll-margin-top: 5.5rem;
}
#services, #portfolio, #faq {
  background-color: #f8f7f4;
}
#contact { background-color: #fff; }

/* Refined cards and controls */
#platforms a, #services a, #portfolio a,
#pricing-services article, #team article {
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
#platforms a:hover, #services a:hover, #portfolio a:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(17,17,17,.10);
}
button, a {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 2px solid #c6a15b;
  outline-offset: 3px;
}

/* Footer remains the visual anchor */
footer {
  background: #101010 !important;
  border-top-color: rgba(198,161,91,.5) !important;
}

/* Gentle entrance polish; no content is hidden while animating */
@media (prefers-reduced-motion: no-preference) {
  #about h1, #sales-proof h2, #testimonials h2 {
    animation: premium-rise .7s cubic-bezier(.2,.7,.2,1) both;
  }
  @keyframes premium-rise {
    from { opacity: .55; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Mobile navigation keeps its existing two-row layout */
@media (max-width: 767px) {
  nav.fixed.top-0 { background: rgba(255,255,255,.99) !important; }
  nav.fixed.top-0 #primary-site-navigation {
    background: transparent !important;
  }
}


/* Section-by-section colour system: warm, varied surfaces with consistent contrast */
#about {
  background: linear-gradient(135deg,#eef0ff 0%,#f5f3ff 55%,#e9f4ff 100%) !important;
  color: #202b49 !important;
}
#about h1,#about h2,#about h3 { color:#202b49 !important; }
#about p,#about .text-muted-foreground { color:#56627c !important; }
#about .text-gold-gradient { background-image:linear-gradient(110deg,#4267c8,#7557c9,#278da4) !important; }

#platforms { background:linear-gradient(180deg,#f0f9fc 0%,#ffffff 100%) !important; }
#platforms h2 { color:#18394d !important; }
#platforms .text-gold-gradient { background-image:linear-gradient(110deg,#147f9c,#3e74bd) !important; }

#services { background:linear-gradient(145deg,#fff4ec 0%,#fffaf5 100%) !important; }
#services h2 { color:#453027 !important; }
#services .text-gold-gradient { background-image:linear-gradient(110deg,#c16d45,#dc9860) !important; }
#services a { background:#fff !important; border:1px solid #f0dfd4; }

#audit { background:#eaf7f7 !important; border-color:#d4e9e9 !important; }
#audit .audit-hero {
  background:linear-gradient(135deg,#e9f7f7 0%,#eff5ff 58%,#f5f1ff 100%) !important;
  color:#18394d !important;
}
#audit .audit-hero h2 { color:#18394d !important; }
#audit .audit-hero .text-gold-gradient {
  background-image:linear-gradient(100deg,#087f8c,#326fc2) !important;
}
#audit .audit-hero p { color:#526b7a !important; }
#audit .audit-hero .border-audit-gold\/40 {
  border-color:#a8d8d9 !important;
  background:#dff2f1 !important;
}
#audit .audit-hero .text-audit-gold { color:#087f8c !important; }
#audit iframe { background:transparent !important; }

#pricing {
  background:linear-gradient(145deg,#eaf6f0 0%,#f4faf6 100%) !important;
  color:#183c32 !important;
}
#pricing h2 { color:#183c32 !important; }
#pricing .text-primary { color:#197d69 !important; }
#pricing .text-gold-gradient { background-image:linear-gradient(100deg,#197d69,#3a9c85) !important; }

#team { background:linear-gradient(135deg,#f0efff 0%,#faf9ff 100%) !important; }
#team h2 { color:#29264c !important; }
#team .text-primary { color:#6258b5 !important; }

#certifications { background:linear-gradient(145deg,#edf5ff 0%,#f7faff 100%) !important; }
#certifications h2 { color:#203c5d !important; }
#certifications .text-gradient-gold,
#certifications .text-primary { color:#3973b9 !important; }

#portfolio { background:linear-gradient(145deg,#fff1e9 0%,#fff9f5 100%) !important; }
#portfolio h2 { color:#493326 !important; }
#portfolio .text-gold-gradient { background-image:linear-gradient(100deg,#c16d45,#d99662) !important; }

#video-testimonials { background:linear-gradient(135deg,#e9f6f8 0%,#f3f8ff 100%) !important; }
#video-testimonials h2 { color:#1d4054 !important; }
#video-testimonials .text-gold-gradient { background-image:linear-gradient(100deg,#087f8c,#3977bd) !important; }

#sales-proof {
  background:linear-gradient(145deg,#edf2ff 0%,#f5f0ff 100%) !important;
  color:#202b49 !important;
}
#sales-proof h1,#sales-proof h2,#sales-proof h3 { color:#202b49 !important; }
#sales-proof p,#sales-proof .text-muted-foreground { color:#56627c !important; }
#sales-proof .bg-card { background:#fff !important; color:#202b49 !important; border-color:#dfe4f4 !important; }
#sales-proof .text-gold-gradient { background-image:linear-gradient(100deg,#4267c8,#7657c9) !important; }
#sales-proof .text-primary { color:#4267c8 !important; }

#testimonials {
  background:linear-gradient(145deg,#eaf5ef 0%,#f5faf6 100%) !important;
  color:#1f4035 !important;
}
#testimonials h1,#testimonials h2,#testimonials h3 { color:#1f4035 !important; }
#testimonials p,#testimonials .text-muted-foreground { color:#536d62 !important; }
#testimonials .bg-card { background:#fff !important; color:#24463a !important; border-color:#d8e9df !important; }
#testimonials .text-gold-gradient { background-image:linear-gradient(100deg,#247d65,#5b9d79) !important; }
#testimonials .text-primary { color:#247d65 !important; }

#faq { background:linear-gradient(145deg,#fbf4e9 0%,#fffaf2 100%) !important; }
#faq h2 { color:#433729 !important; }
#faq .text-gold-gradient { background-image:linear-gradient(100deg,#b07832,#cf9250) !important; }
#faq [data-state] { background:#fff !important; border-color:#eee2d1 !important; }

#de-impresa-growth-prompt {
  background:linear-gradient(120deg,#0d6973 0%,#176f8c 55%,#365e9f 100%) !important;
  color:#fff !important;
}
#de-impresa-growth-prompt h2,
#de-impresa-growth-prompt p,
#de-impresa-growth-prompt label { color:#fff !important; }
#de-impresa-growth-prompt .de-impresa-growth-kicker { color:#d7f5f2 !important; }
#de-impresa-growth-prompt input,
#de-impresa-growth-prompt textarea,
#de-impresa-growth-prompt select { color:#18394d !important; background:#fff !important; }

#contact { background:linear-gradient(145deg,#eef6fb 0%,#f9fbfd 100%) !important; }
#contact h2 { color:#203b50 !important; }
#contact .text-gold-gradient { background-image:linear-gradient(100deg,#147f9c,#3977bd) !important; }

footer {
  background:linear-gradient(145deg,#142b3d 0%,#18394d 100%) !important;
  border-top-color:#4b91a0 !important;
}
footer .text-neutral-400 { color:#d0dce4 !important; }
footer a:hover { color:#8fe0d8 !important; }

/* Consistent focus and readable text across tinted sections */
#about *,#sales-proof *,#testimonials * { text-shadow:none; }
#about .text-primary,#sales-proof .text-primary,#testimonials .text-primary { font-weight:800; }


/* Pencil-like heading reveal: major titles are written on as they enter view */
:root { --heading-write-accent:#168b9a; }
#home { --heading-write-accent:#c6a15b; }
#about { --heading-write-accent:#6659bd; }
#platforms,#video-testimonials,#contact { --heading-write-accent:#168b9a; }
#services,#portfolio,#faq { --heading-write-accent:#c17b50; }
#pricing,#testimonials { --heading-write-accent:#27856d; }
#team,#sales-proof { --heading-write-accent:#6258b5; }
#certifications { --heading-write-accent:#3973b9; }
#de-impresa-growth-prompt { --heading-write-accent:#b8f0e8; }
footer { --heading-write-accent:#8fe0d8; }

@keyframes heading-pencil-write {
  from { clip-path:inset(0 100% 0 0); opacity:.72; }
  to { clip-path:inset(0 0 0 0); opacity:1; }
}
@keyframes heading-pencil-line {
  from { transform:translateX(-50%) scaleX(0); opacity:.45; }
  to { transform:translateX(-50%) scaleX(1); opacity:1; }
}
#home h1,
section[id] h2,
footer h2 {
  position:relative;
  animation:heading-pencil-write 1.15s steps(32,end) both;
  will-change:clip-path;
}
#home h1::after,
section[id] h2::after,
footer h2::after {
  content:"";
  position:absolute;
  height:2px;
  width:clamp(42px,18%,92px);
  left:50%;
  bottom:-.16em;
  border-radius:99px;
  pointer-events:none;
  background:linear-gradient(90deg,transparent,var(--heading-write-accent),transparent);
  transform:translateX(-50%) scaleX(0);
  transform-origin:center;
  animation:heading-pencil-line .65s ease-out .75s both;
}
@supports (animation-timeline:view()) {
  #home h1,
  section[id] h2,
  footer h2 {
    animation-timeline:view();
    animation-range:entry 0% entry 62%;
  }
  #home h1::after,
  section[id] h2::after,
  footer h2::after {
    animation-timeline:view();
    animation-range:entry 8% entry 68%;
  }
}
@media (prefers-reduced-motion:reduce) {
  #home h1,section[id] h2,footer h2 {
    animation:none !important;
    clip-path:none !important;
    will-change:auto !important;
  }
  #home h1::after,section[id] h2::after,footer h2::after {
    animation:none !important;
    transform:translateX(-50%) scaleX(1) !important;
  }
}
