/* ==========================================================================
   COProject 365 — styles.css
   Archetype: Mouse-Reactive Gradient (dark, type-driven, one warm accent)
   ========================================================================== */

:root {
  --bg: #0b0b0d;
  --bg-2: #151518;
  --line: #2a2a2f;
  --ink: #f7f5f2;
  --mute: #a6a3a0;
  --accent: #ff8a3d;
  --accent-ink: #1a0d04;
  --g1: #ff3d7f;
  --g2: #7b3dff;
  --g3: #1fb6ff;
  --radius: 18px;
  --pad: clamp(20px, 5vw, 72px);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
h1, h2, h3 { font-weight: 400; margin: 0; }
h2 { font-family: var(--serif); font-size: clamp(2.2rem, 5.5vw, 4.4rem); line-height: 1.02; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 600; }

/* ----- Nav ----- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  background: rgba(11, 11, 13, 0.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: rgba(11, 11, 13, 0.96); }
}
.nav-logo { font-weight: 600; text-decoration: none; letter-spacing: 0.02em; font-size: 1.05rem; }
.nav-logo span { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.2em; color: var(--accent); margin: 0 1px; }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 0.95rem; }
.nav-links a { text-decoration: none; color: var(--mute); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-cta { color: var(--ink); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; }
.nav-links .nav-cta:hover { border-color: var(--accent); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 26px; border-radius: 999px;
  font: 500 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ffa066; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-whatsapp { background: #25d366; color: #062b14; margin-top: 8px; }

/* ----- Hero ----- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--pad) 80px;
  overflow: hidden;
}
.hero-gradient {
  position: absolute; inset: -10%; z-index: -1;
  background:
    radial-gradient(circle 520px at var(--mx, 70%) var(--my, 40%), var(--g1) 0%, transparent 60%),
    radial-gradient(circle 700px at calc(var(--mx, 70%) - 25%) calc(var(--my, 40%) + 20%), var(--g2) 0%, transparent 60%),
    radial-gradient(circle 600px at calc(var(--mx, 70%) + 10%) calc(var(--my, 40%) + 45%), var(--g3) 0%, transparent 60%),
    var(--bg);
  filter: blur(60px) saturate(140%);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}
.hero::after { /* legibility layer */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,11,13,0.25) 0%, rgba(11,11,13,0.1) 50%, var(--bg) 100%);
}
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-3%, 2%, 0) scale(1.08); } }

.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.8rem; color: var(--mute); margin: 0 0 28px; }
.hero-title {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(2.4rem, 7vw, 6.4rem); line-height: 0.98; letter-spacing: -0.035em;
  max-width: 20ch;
}
.hero-title em { color: var(--accent); letter-spacing: -0.01em; }
.hero-title .line { display: block; opacity: 0; transform: translateY(0.4em); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-title .line:nth-child(2) { animation-delay: .12s; }
.hero-title .line:nth-child(3) { animation-delay: .24s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-sub { max-width: 52ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #d8d5d1; margin: 32px 0 40px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ----- Reveal (with safety net) ----- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal, .reveal[data-split] { opacity: 1; transform: none; }
.reveal { animation: reveal-fallback 0s 6s forwards; }
.reveal.is-in { animation: none; }
@keyframes reveal-fallback { to { opacity: 1; transform: none; } }

/* ----- Sections ----- */
section { padding: clamp(80px, 12vw, 160px) var(--pad); }
.label { display: inline-block; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; color: var(--accent); margin-bottom: 18px; }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 900px; }

.manifesto { max-width: 1100px; margin: 0 auto; }
.manifesto p { font-size: clamp(1.4rem, 3vw, 2.3rem); line-height: 1.3; letter-spacing: -0.015em; margin: 0; color: #e9e6e2; }
.manifesto em { color: var(--accent); }

/* ----- Services accordion ----- */
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service { border-bottom: 1px solid var(--line); }
.service-row {
  width: 100%; display: grid; grid-template-columns: 64px 1fr auto 32px; align-items: center; gap: 20px;
  padding: 30px 0; background: none; border: 0; color: var(--ink); text-align: left; cursor: pointer; font: inherit;
}
.service-num { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--mute); }
.service-name { font-size: clamp(1.4rem, 3.4vw, 2.6rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; transition: color .25s, transform .35s; }
.service-tag { font-size: 0.85rem; color: var(--mute); white-space: nowrap; }
.service-icon { position: relative; width: 22px; height: 22px; justify-self: end; }
.service-icon::before, .service-icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; background: currentColor; transition: transform .35s; }
.service-icon::after { transform: rotate(90deg); }
.service-row:hover .service-name { color: var(--accent); transform: translateX(8px); }
.service.is-open .service-icon::after { transform: rotate(0deg); }
.service.is-open .service-name { color: var(--accent); }
.service-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2,.7,.2,1); }
.service-body > div { overflow: hidden; padding-left: 84px; max-width: 900px; }
.service.is-open .service-body { grid-template-rows: 1fr; }
.service-body p { margin: 0 0 16px; color: #d8d5d1; font-size: 1.08rem; }
.service-body ul { margin: 0 0 32px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.service-body li { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 0.9rem; color: var(--ink); }

/* ----- Stats ----- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: 72px; padding-bottom: 72px; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-family: var(--serif); font-size: clamp(3.2rem, 7vw, 6rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-label { color: var(--mute); font-size: 0.95rem; }

/* ----- Packages ----- */
.package-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.package {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 36px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
  transition: border-color .3s, transform .3s;
}
.package:hover { border-color: #45454d; transform: translateY(-4px); }
.package h3 { font-family: var(--serif); font-weight: 400; font-size: 2.4rem; }
.package-for { color: var(--mute); margin: 0; }
.package ul { list-style: none; margin: 8px 0 20px; padding: 0; flex: 1; }
.package li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.98rem; }
.package li::before { content: "→ "; color: var(--accent); }
.package-featured { border-color: var(--accent); background: linear-gradient(160deg, rgba(255,138,61,0.12), var(--bg-2) 55%); }
.package-badge { position: absolute; top: 20px; right: 20px; background: var(--accent); color: var(--accent-ink); font-size: 0.75rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; }

/* ----- Process ----- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step-num { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font-family: var(--serif); font-size: 1.6rem; margin-bottom: 22px; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--mute); margin: 0; }

/* ----- Contact ----- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; background: var(--bg-2); border-top: 1px solid var(--line); }
.contact-intro p { color: var(--mute); margin: 18px 0 28px; }
.contact-intro { display: flex; flex-direction: column; align-items: flex-start; }
.contact-mail {
  font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.6rem); text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .4s; padding-bottom: 4px; margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.contact-mail:hover { background-size: 100% 2px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 0.88rem; color: var(--mute); }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; transition: border-color .2s; width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.hidden-field { position: absolute; left: -9999px; }

/* ----- Footer ----- */
.footer { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 32px var(--pad); color: var(--mute); font-size: 0.88rem; border-top: 1px solid var(--line); }
.footer-social { display: flex; gap: 20px; }
.footer-social a { text-decoration: none; }
.footer-social a:hover { color: var(--accent); }

/* ----- Thank-you page ----- */
.thanks { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px; }

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .package-grid, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .contact { grid-template-columns: 1fr; }
  .service-tag { display: none; }
  .service-row { grid-template-columns: 44px 1fr 24px; }
  .service-body > div { padding-left: 0; }
}
@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .contact-form { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

/* ----- Language switch ----- */
.nav-links .nav-lang { font-weight: 600; letter-spacing: 0.08em; font-size: 0.85rem; color: var(--ink); padding: 6px 10px; border-radius: 8px; }
.nav-links .nav-lang:hover { color: var(--accent); }
@media (max-width: 640px) { .nav-links .nav-lang { display: inline-block !important; } .nav-links { gap: 14px; } }
