/* FARVELLA DIGITAL — 3D Demo (preview only)
   Design system: UI/UX Pro Max — Scroll-Triggered Storytelling pattern,
   Glassmorphism / Liquid Glass style (blur 10–20px, translucent layers,
   1px light borders), Classic Elegant type pairing (Playfair + Inter/Montserrat).
   Brand palette fixed by owner: emerald void, champagne gold, mint. */

:root{
  --bg-0:#03150F;
  --bg-1:#07332A;
  --bg-2:#0A4234;
  --gold:#D4AF37;
  --gold-bright:#F0D488;
  --mint:#3ED6B0;
  --ivory:#F5EFE2;
  --ink:#0B1F18;
  --glass-bg:rgba(255,255,255,.07);
  --glass-bg-strong:rgba(10,50,38,.55);
  --glass-border:rgba(255,255,255,.16);
  --blur:14px;
  --float-amp:9px;
  --serif:'Playfair Display',Georgia,serif;
  --sans:'Montserrat','Inter',system-ui,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
html,body{overflow-x:clip}
body{
  font-family:var(--sans);
  color:var(--ivory);
  background:
    radial-gradient(1200px 800px at 85% -10%, rgba(62,214,176,.14), transparent 60%),
    radial-gradient(1000px 700px at -10% 30%, rgba(212,175,55,.10), transparent 55%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 55%, #020D09 100%);
  background-color:var(--bg-0);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
::selection{background:var(--gold);color:var(--ink)}
a{color:var(--mint)}
:focus-visible{outline:2px solid var(--gold-bright);outline-offset:3px;border-radius:4px}
.gold{color:var(--gold-bright)}
.eyebrow{
  font-size:.72rem;letter-spacing:.34em;font-weight:600;color:var(--gold);
  text-transform:uppercase;margin-bottom:1rem;
}

/* ---------- progress + header ---------- */
.scroll-progress{
  position:fixed;top:0;left:0;height:3px;width:0%;
  background:linear-gradient(90deg,var(--gold),var(--mint));
  z-index:120;
}
.site-header{
  position:fixed;top:0;left:0;right:0;z-index:110;
  display:flex;align-items:center;gap:1.2rem;
  padding:.8rem clamp(1rem,4vw,2.5rem);
  background:rgba(3,21,15,.55);
  backdrop-filter:blur(var(--blur));-webkit-backdrop-filter:blur(var(--blur));
  border-bottom:1px solid rgba(255,255,255,.08);
}
.brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:var(--ivory)}
.brand-mark{
  font-family:var(--serif);font-size:1.5rem;color:var(--gold);
  border:1px solid rgba(212,175,55,.5);border-radius:50%;
  width:2.3rem;height:2.3rem;display:grid;place-items:center;line-height:1;
}
.brand-text{font-family:var(--serif);letter-spacing:.14em;font-size:1rem}
.brand-text em{font-style:normal;color:var(--gold);letter-spacing:.3em;font-size:.72rem;display:block}
.main-nav{display:flex;gap:1.4rem;margin-left:auto}
.main-nav a{color:var(--ivory);text-decoration:none;font-size:.85rem;font-weight:500;letter-spacing:.06em}
.main-nav a:hover{color:var(--gold-bright)}
.header-cta{
  text-decoration:none;color:var(--ink);background:linear-gradient(135deg,var(--gold-bright),var(--gold));
  font-weight:700;font-size:.82rem;padding:.55rem 1.05rem;border-radius:999px;white-space:nowrap;
}
.demo-badge{
  position:fixed;top:4.6rem;left:50%;transform:translateX(-50%);z-index:105;
  background:rgba(3,21,15,.72);border:1px solid rgba(212,175,55,.55);color:var(--gold-bright);
  backdrop-filter:blur(var(--blur));-webkit-backdrop-filter:blur(var(--blur));
  font-size:.68rem;font-weight:600;letter-spacing:.18em;text-transform:uppercase;
  padding:.4rem .9rem;border-radius:999px;white-space:nowrap;max-width:94vw;text-align:center;
}

/* ---------- hero ---------- */
.hero{
  position:relative;min-height:100svh;display:flex;align-items:center;justify-content:center;
  overflow:hidden;padding:8.5rem 1.25rem 5rem;text-align:center;
}
#heroCanvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:pan-y}
.hero-vignette{
  position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(ellipse at center, transparent 45%, rgba(3,21,15,.55) 100%);
}
.hero-content{position:relative;z-index:3;max-width:60rem;pointer-events:none}
.hero-content a{pointer-events:auto}
.hero-title{
  font-family:var(--serif);font-weight:600;
  font-size:clamp(2.6rem,7.5vw,5.6rem);line-height:1.08;letter-spacing:.01em;
  text-shadow:0 6px 40px rgba(0,0,0,.45);
}
.hero-sub{max-width:38rem;margin:1.4rem auto 0;font-size:clamp(1rem,2.2vw,1.2rem);color:rgba(245,239,226,.88)}
.hero-actions{display:flex;gap:.9rem;justify-content:center;flex-wrap:wrap;margin-top:2.2rem}
.btn{
  display:inline-block;text-decoration:none;font-weight:700;font-size:.92rem;
  padding:.85rem 1.7rem;border-radius:999px;min-height:44px;cursor:pointer;
  transition:transform .25s ease, box-shadow .25s ease;
}
.btn:hover{transform:translateY(-2px)}
.btn-gold{background:linear-gradient(135deg,var(--gold-bright),var(--gold));color:var(--ink);box-shadow:0 10px 30px rgba(212,175,55,.28)}
.btn-glass{
  background:var(--glass-bg);color:var(--ivory);border:1px solid var(--glass-border);
  backdrop-filter:blur(var(--blur));-webkit-backdrop-filter:blur(var(--blur));
}
.btn-sm{padding:.6rem 1.2rem;font-size:.82rem}
.btn-lg{padding:1rem 2.2rem;font-size:1.02rem}

.float-panel{
  position:absolute;z-index:2;display:flex;flex-direction:column;gap:.15rem;text-align:left;
  background:var(--glass-bg);border:1px solid var(--glass-border);border-radius:16px;
  backdrop-filter:blur(var(--blur));-webkit-backdrop-filter:blur(var(--blur));
  padding:.8rem 1.1rem;box-shadow:0 18px 40px rgba(0,0,0,.35);
  animation:levitate 7s ease-in-out infinite;
}
.panel-k{font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;color:rgba(245,239,226,.75)}
.panel-v{font-family:var(--serif);font-size:1.15rem;color:var(--gold-bright)}
.panel-a{top:21%;left:6%;animation-delay:0s}
.panel-b{top:30%;right:6%;animation-delay:1.4s}
.panel-c{bottom:16%;left:9%;animation-delay:2.6s}
.scroll-hint{
  position:absolute;bottom:1.6rem;left:50%;transform:translateX(-50%);z-index:3;
  font-size:.66rem;letter-spacing:.3em;text-transform:uppercase;color:rgba(245,239,226,.65);
  display:flex;flex-direction:column;align-items:center;gap:.45rem;
}
.scroll-hint span{width:1px;height:2.2rem;background:linear-gradient(180deg,var(--gold),transparent);display:block;animation:hintDrop 2.2s ease-in-out infinite}
@keyframes hintDrop{0%,100%{transform:scaleY(.4);opacity:.4}50%{transform:scaleY(1);opacity:1}}

/* ---------- levitation (owner rule: everything floats; gentle mode calms, never removes) ---------- */
@keyframes levitate{
  0%,100%{transform:translateY(calc(var(--float-amp) * -1))}
  50%{transform:translateY(var(--float-amp))}
}
.levitate{animation:levitate 6.5s ease-in-out infinite;animation-delay:var(--d,0s)}
body.gentle{--float-amp:3px}
body.gentle .levitate, body.gentle .float-panel{animation-duration:11s}

/* ---------- sections ---------- */
.section{position:relative;padding:clamp(4.5rem,10vw,7.5rem) clamp(1.25rem,5vw,3rem);max-width:76rem;margin:0 auto}
.section-head{text-align:center;max-width:44rem;margin:0 auto 3rem}
.section-head h2,.contact h2{font-family:var(--serif);font-weight:600;font-size:clamp(2rem,5vw,3.2rem);line-height:1.15}
.section-sub{color:rgba(245,239,226,.82);margin-top:.9rem}

.services-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(17rem,1fr));gap:1.3rem}
.service-card{
  font-family:var(--sans);text-align:left;color:var(--ivory);cursor:pointer;
  background:var(--glass-bg);border:1px solid var(--glass-border);border-radius:20px;
  backdrop-filter:blur(var(--blur));-webkit-backdrop-filter:blur(var(--blur));
  padding:1.7rem 1.5rem;display:flex;flex-direction:column;gap:.55rem;min-height:44px;
  box-shadow:0 16px 36px rgba(0,0,0,.30);
  transition:border-color .25s ease, background .25s ease;
}
.service-card:hover{border-color:rgba(212,175,55,.55);background:rgba(255,255,255,.10)}
.svc-icon{color:var(--gold);width:2rem;height:2rem}
.svc-icon svg{width:100%;height:100%}
.service-card h3{font-family:var(--serif);font-size:1.35rem;font-weight:600}
.service-card p{font-size:.92rem;color:rgba(245,239,226,.82);flex:1}
.svc-price{font-weight:700;color:var(--mint);font-size:.95rem}
.svc-open{font-size:.8rem;font-weight:600;letter-spacing:.08em;color:var(--gold-bright)}

.work-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(16.5rem,1fr));gap:1.3rem}
.work-card{
  position:relative;background:var(--glass-bg);border:1px solid var(--glass-border);border-radius:20px;
  backdrop-filter:blur(var(--blur));-webkit-backdrop-filter:blur(var(--blur));
  padding:1.3rem;display:flex;flex-direction:column;gap:.5rem;overflow:hidden;
  box-shadow:0 16px 36px rgba(0,0,0,.30);
}
.work-thumb{
  height:8.5rem;border-radius:14px;display:grid;place-items:center;margin-bottom:.6rem;
  font-family:var(--serif);font-size:2.6rem;color:rgba(245,239,226,.92);
}
.t-restaurant{background:linear-gradient(135deg,#3d2c14,#7a5a22 55%,#2c1f0d)}
.t-estate{background:linear-gradient(135deg,#123524,#1f5c40 55%,#0a2417)}
.t-store{background:linear-gradient(135deg,#3a1440,#6d2a75 55%,#22092a)}
.t-clinic{background:linear-gradient(135deg,#0d3a4a,#166a86 55%,#072631)}
.t-corporate{background:linear-gradient(135deg,#12283f,#24507c 55%,#0a1826)}
.demo-chip{
  position:absolute;top:1.9rem;right:1.9rem;background:rgba(3,21,15,.75);color:var(--gold-bright);
  border:1px solid rgba(212,175,55,.6);font-size:.6rem;font-weight:700;letter-spacing:.16em;
  padding:.28rem .6rem;border-radius:999px;
}
.work-card h3{font-family:var(--serif);font-size:1.3rem;font-weight:600}
.work-meta{font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;color:var(--mint)}
.work-card p{font-size:.9rem;color:rgba(245,239,226,.82)}
.work-card .btn{margin-top:auto;align-self:flex-start}

.price-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(15.5rem,1fr));gap:1.3rem}
.price-card{
  background:var(--glass-bg);border:1px solid var(--glass-border);border-radius:20px;
  backdrop-filter:blur(var(--blur));-webkit-backdrop-filter:blur(var(--blur));
  padding:1.7rem 1.5rem;box-shadow:0 16px 36px rgba(0,0,0,.30);
}
.price-card.featured{border-color:rgba(212,175,55,.6);background:rgba(212,175,55,.08)}
.price-card h3{font-family:var(--serif);font-size:1.2rem;font-weight:600}
.price-card .price{font-family:var(--serif);font-size:2rem;color:var(--gold-bright);margin:.4rem 0}
.price-card .per{font-size:1rem;color:rgba(245,239,226,.7)}
.price-card p:last-child{font-size:.9rem;color:rgba(245,239,226,.82)}

.contact{text-align:center}
.contact-inner{
  background:var(--glass-bg-strong);border:1px solid var(--glass-border);border-radius:26px;
  backdrop-filter:blur(var(--blur));-webkit-backdrop-filter:blur(var(--blur));
  padding:clamp(2.2rem,6vw,4rem) clamp(1.4rem,5vw,3.5rem);box-shadow:0 24px 60px rgba(0,0,0,.4);
}
.contact .btn{margin-top:1.8rem}
.demo-note{margin-top:1.6rem;font-size:.85rem;color:rgba(245,239,226,.7)}
.demo-note a{color:var(--gold-bright)}

.site-footer{text-align:center;padding:3rem 1.25rem 3.5rem;border-top:1px solid rgba(255,255,255,.08)}
.foot-brand{font-family:var(--serif);letter-spacing:.14em;font-size:1.05rem;margin-bottom:.5rem}
.foot-brand em{font-style:normal;color:var(--gold);letter-spacing:.3em;font-size:.75rem}
.site-footer p{font-size:.88rem;color:rgba(245,239,226,.7)}
.foot-demo{margin-top:.8rem;font-size:.75rem;letter-spacing:.14em;text-transform:uppercase}

/* ---------- modal ---------- */
.modal-backdrop{
  position:fixed;inset:0;z-index:200;background:rgba(2,13,9,.72);
  display:flex;align-items:center;justify-content:center;padding:1.2rem;
}
.modal-backdrop[hidden]{display:none}
.modal-box{
  position:relative;width:min(30rem,100%);text-align:center;
  background:linear-gradient(180deg, rgba(10,66,52,.92), rgba(3,21,15,.95));
  border:1px solid rgba(212,175,55,.45);border-radius:24px;padding:2.4rem 2rem 2.2rem;
  box-shadow:0 30px 80px rgba(0,0,0,.55);
}
.modal-close{
  position:absolute;top:.7rem;right:.9rem;background:none;border:none;color:var(--ivory);
  font-size:1.7rem;line-height:1;cursor:pointer;width:44px;height:44px;
}
.modal-visual{height:9rem;display:grid;place-items:center;margin-bottom:1rem;perspective:600px}
.orb-scene{position:relative;width:8rem;height:8rem;transform-style:preserve-3d;animation:orbSpin 9s linear infinite}
.orb-ring{
  position:absolute;inset:0;border-radius:50%;
  border:2px solid rgba(212,175,55,.75);
  transform:rotateX(68deg);
  box-shadow:0 0 24px rgba(212,175,55,.35), inset 0 0 24px rgba(212,175,55,.25);
}
.orb-ring::after{
  content:"";position:absolute;inset:-14px;border-radius:50%;
  border:1px solid rgba(62,214,176,.5);transform:rotateX(0deg) rotateY(40deg);
}
.orb-core{
  position:absolute;inset:0;display:grid;place-items:center;
  font-family:var(--serif);font-size:2.6rem;color:var(--gold-bright);
  text-shadow:0 0 30px rgba(212,175,55,.8);
  animation:levitate 5s ease-in-out infinite;
}
@keyframes orbSpin{from{transform:rotateY(0deg)}to{transform:rotateY(360deg)}}
.modal-box h3{font-family:var(--serif);font-size:1.7rem;font-weight:600}
.modal-box p{color:rgba(245,239,226,.85);margin-top:.6rem;font-size:.95rem}
.modal-price{font-weight:700;color:var(--mint);font-size:1.05rem}
.modal-box .btn{margin-top:1.3rem}

/* ---------- responsive ---------- */
@media (max-width:760px){
  .main-nav{display:none}
  .panel-a{top:15%;left:4%}
  .panel-b{top:auto;bottom:7%;right:4%}
  .panel-c{display:none}
  .hero{padding-top:9.5rem}
  .demo-badge{top:4.4rem;font-size:.6rem;letter-spacing:.1em;white-space:normal;line-height:1.5;border-radius:16px;max-width:92vw}
}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
}
