
:root{
  --bg:#fff;--ink:#0f172a;--muted:#6b7280;--brand:#0ea5e9;--brand-2:#7c3aed;
  --accent1:#7c3aed; --accent2:#0ea5e9; --accent3:#22c55e;
  --surface:#f8fafc;--radius:14px;--shadow:0 10px 30px rgba(0,0,0,.08);
}
*{box-sizing:border-box} html,body{margin:0;padding:0}
body{font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Inter,Roboto,Arial;color:var(--ink);
  background: radial-gradient(1200px 300px at 50% -50px, rgba(124,58,237,.06), transparent 60%), linear-gradient(180deg,#ffffff, #fbfbff);
  line-height:1.5}
a{color:var(--brand);text-decoration:none}a:hover{text-decoration:underline}
.container{max-width:1200px;margin-inline:auto;padding:clamp(16px,2vw,24px)}

.top-accent{position:sticky;top:0;z-index:60;height:4px;background:linear-gradient(90deg,var(--accent1),var(--accent2),var(--accent3))}

.site-header{position:sticky;top:4px;z-index:50;background:rgba(255,255,255,.85);backdrop-filter:saturate(180%) blur(12px);box-shadow:0 1px 0 rgba(0,0,0,.06)}
.site-header::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:linear-gradient(90deg,transparent 0%, var(--accent1) 20%, var(--accent2) 60%, transparent 100%);opacity:.65}
.site-header .inner{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.logo{position:relative;display:inline-flex;align-items:center;gap:.5rem}
.logo::before{content:"";position:absolute;inset:-3px;border-radius:10px;background:linear-gradient(135deg,#f58529,#dd2a7b,#8134af,#515bd4);opacity:0;transition:opacity .25s ease;filter:blur(3px)}
.logo:hover::before{opacity:.45}
.logo::after{content:"";width:18px;height:18px;margin-left:6px;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop offset='0%' stop-color='%23f58529'/><stop offset='50%' stop-color='%23dd2a7b'/><stop offset='100%' stop-color='%23515bd4'/></linearGradient><rect x='2' y='2' width='20' height='20' rx='5' stroke='url(%23g)' stroke-width='2'/><circle cx='12' cy='12' r='5' stroke='url(%23g)' stroke-width='2'/><circle cx='17.5' cy='6.5' r='1.5' fill='url(%23g)'/></svg>");background-size:contain;background-repeat:no-repeat;background-position:center;opacity:0;transform:translateX(-6px) scale(.9);transition:all .25s ease}
.logo:hover::after{opacity:1;transform:translateX(0) scale(1)}
.logo img{height:38px;position:relative;z-index:1}
.nav{display:flex;gap:.25rem;align-items:center}
.nav a{position:relative;font-weight:600;color:#0f172a;border-radius:999px;padding:.5rem .9rem;transition:background .2s ease,color .2s ease}
.nav a:hover{background:rgba(15,23,42,.06)}
.nav a::after{content:""; position:absolute; left:14px; right:14px; bottom:6px; height:2px; background:linear-gradient(90deg,var(--accent1),var(--accent2)); transform:scaleX(0); transform-origin:left; transition:transform .25s ease; border-radius:2px}
.nav a:hover::after,.nav a.active::after,.nav a[aria-current="page"]::after{transform:scaleX(1)}
.mobile-toggle{display:none}
@media (max-width:880px){.mobile-toggle{display:inline-flex} .nav{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;padding:1rem;border-bottom:1px solid #e5e7eb}.nav.open{display:flex;flex-direction:column}.nav.open a{padding:.8rem 1rem} .logo img{height:34px}}

.frontgrid{display:grid;grid-template-columns:280px 1fr 320px;gap:1rem;margin-top:1rem;align-items:start}
@media (max-width:1100px){.frontgrid{grid-template-columns:240px 1fr} .rightcol{display:none}}
@media (max-width:760px){.frontgrid{grid-template-columns:1fr; gap:.75rem} .leftcol{order:2} .centercol{order:1} .rightcol{order:3; display:block}}

.widget{background:#fff;border:1px solid #eef2f7;border-radius:14px;box-shadow:var(--shadow);overflow:hidden}
.widget h3{margin:0;padding:.85rem 1rem;border-bottom:1px solid #eef2f7}
.list{padding:.5rem}
.item{display:grid;grid-template-columns:56px 1fr;gap:.5rem;padding:.5rem;border-radius:10px}
.item:hover{background:#f8fafc}
.item .thumb{width:56px;height:56px;background:#eef2ff;border-radius:8px}
.item .title{font-weight:600}
.item .meta{color:var(--muted);font-size:.85rem}
@media (max-width:760px){.item{grid-template-columns:64px 1fr;padding:.65rem}.item .thumb{width:64px;height:64px}}

/* Hero + carousel */
.centercol .hero-card{background:#fff;border:1px solid #eef2f7;border-radius:16px;box-shadow:var(--shadow);overflow:hidden}
.hero-carousel{position:relative;overflow:hidden;background:#000;color:#fff}
.hero-carousel .track{display:flex;gap:0;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scroll-behavior:smooth}
.hero-carousel .slide{position:relative;min-width:100%;height:58vh;scroll-snap-align:start;display:grid;align-items:end;background:#000}
.hero-carousel .slide img,
.hero-carousel .slide video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.hero-carousel .shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.1),rgba(0,0,0,.45))}
.hero-carousel .inner{position:relative;z-index:2;padding:clamp(16px,4vw,48px)}
.cta-overlay h2{margin:0;font-size:clamp(22px,5.5vw,36px);line-height:1.1;font-weight:900;text-shadow:0 1px 2px rgba(0,0,0,.35)}
.hero-carousel .controls{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;pointer-events:none}
.hero-carousel .btn-ctrl{pointer-events:auto;border:none;border-radius:999px;background:rgba(255,255,255,.85);width:42px;height:42px;display:grid;place-items:center;font-size:22px;font-weight:700;color:#111;margin:0 8px}
.hero-carousel .dots{position:absolute;left:50%;transform:translateX(-50%);bottom:10px;display:flex;gap:10px;pointer-events:auto;z-index:3}
.hero-carousel .dot{width:12px;height:12px;border-radius:50%;background:rgba(255,255,255,.5);cursor:pointer}
.hero-carousel .dot.active{background:#fff}
@media (max-width:760px){.hero-carousel .slide{height:46vh}.hero-carousel .btn-ctrl{width:44px;height:44px;font-size:24px}}

/* Cover row */
.cover-row{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:1rem}
.cover-card{background:#fff;border:1px solid #eef2f7;border-radius:14px;overflow:hidden;box-shadow:var(--shadow)}
.cover-card img{width:100%;height:120px;object-fit:cover;display:block}
.cover-card .body{padding:.75rem}.cover-card .meta{color:var(--muted);font-size:.85rem}
@media (max-width:900px){.cover-row{grid-template-columns:1fr}.cover-card img{height:160px}}

/* Weather */
.weather{padding:.75rem 1rem}
.weather .row{display:flex;align-items:center;justify-content:space-between}
.weather .big{font-size:40px;font-weight:800}
.weather .cond{color:var(--muted)}
.weather .days{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem;margin-top:.75rem}
.day{background:#f8fafc;border:1px solid #eef2f7;border-radius:10px;padding:.5rem;text-align:center}
.day .hi{font-weight:700}
@media (max-width:760px){.weather .days{grid-template-columns:repeat(2,1fr)}.weather .big{font-size:36px}}

/* Mobile-only Yahoo-style UI */
@media (max-width:760px){
  .frontgrid{display:block}
  .leftcol,.rightcol{display:none}
  .centercol{display:block}
  .hero-card{border-radius:18px; overflow:hidden}
  .hero-carousel .slide{height:54vh}
  .hero-carousel .dots{bottom:14px}
  .hero-carousel .controls{display:none}
  .m-hero-title{position:absolute;left:16px;right:16px;bottom:24px;color:#fff;font-weight:800;font-size:28px;line-height:1.15;text-shadow:0 1px 2px rgba(0,0,0,.35)}
  .m-badge{position:absolute;right:12px;top:12px;background:rgba(0,0,0,.55);color:#fff;font-size:12px;padding:6px 8px;border-radius:999px}
  .m-top{padding-top:.25rem}
  .m-search{display:flex;align-items:center;gap:.5rem;background:#fff;border:1px solid #e5e7eb;border-radius:999px;padding:.6rem 1rem;box-shadow:0 6px 20px rgba(0,0,0,.05)}
  .m-search svg{width:20px;height:20px;color:#64748b;flex:none}
  .m-search input{border:0;outline:0;flex:1;font-size:16px}
  .m-cards{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:.75rem;margin-top:.75rem;overflow-x:auto;padding-bottom:.25rem}
  .m-card{display:flex;gap:.6rem;align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:.75rem;box-shadow:0 8px 24px rgba(0,0,0,.05);min-width:58%}
  .m-card-icon{font-size:28px}
  .m-card-title{font-weight:700}
  .m-card-sub{font-size:13px;color:#64748b}
  .cover-row{grid-template-columns:1fr}
  .cover-card{border-radius:18px}
  .cover-card img{height:220px}
}

/* Mobile weather mini-chips */
@media (max-width:760px){
  .m-mini-days{display:flex; gap:.5rem; overflow-x:auto; padding:.5rem .25rem .25rem 0; -webkit-overflow-scrolling:touch;}
  .m-mini-day{flex:0 0 auto; display:flex; align-items:center; gap:.35rem; background:#fff; border:1px solid #e5e7eb; border-radius:999px; padding:.35rem .6rem; box-shadow:0 6px 18px rgba(0,0,0,.05); font-size:13px; color:#0f172a;}
  .m-mini-day .when{font-weight:700}
  .m-mini-day .icon{min-width:18px; text-align:center}
  .m-mini-day .temps{color:#64748b}
}

.site-footer{margin-top:3rem;padding:2rem;background:#0b1020;color:#cbd5e1}
.site-footer .grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:1rem}
.site-footer a{color:#cbd5e1}.site-footer h4{margin:.25rem 0 1rem;color:#fff}
@media (max-width:880px){.site-footer .grid{grid-template-columns:1fr 1fr}}
:focus-visible{outline:4px solid rgba(124,58,237,.25);outline-offset:2px}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}


/* Services grid + subpage */
.section{margin-top:2rem}
.section-title{margin:0 0 .25rem;font-size:clamp(22px,3vw,30px);font-weight:800}
.section-sub{color:var(--muted);margin:.25rem 0 1rem}
.service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
@media (max-width:900px){.service-grid{grid-template-columns:1fr}}
.service-card{background:#fff;border:1px solid #eef2f7;border-radius:14px;padding:1rem;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:.5rem}
.service-card .btn{display:inline-block;border:1px solid #e5e7eb;border-radius:9999px;padding:.5rem .9rem;font-weight:700;color:#0f172a;background:#f8fafc}
.subpage .backlink{display:inline-block;margin-bottom:.75rem}
.prose p{margin:.5rem 0;color:#334155}
.prose ul{margin:.25rem 0 .75rem 1rem}

/* IV subpage layout */
.iv-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
@media (max-width:980px){ .iv-grid{grid-template-columns:1fr} }
.iv-card{background:#fff;border:1px solid #eef2f7;border-radius:14px;padding:1rem;box-shadow:var(--shadow)}
.iv-card h3{ margin:.5rem 0 .25rem; font-size:18px; letter-spacing:.3px }
.iv-card img{width:120px;height:120px;object-fit:contain;display:block;margin:.25rem auto .5rem}
.iv-price{ font-weight:800; margin:.1rem 0 .35rem }
.iv-note{margin-top:1rem; background:#f3f9ff; border:1px solid #d9ecff;border-radius:12px; padding:12px; color:#0f172a}
