/* =========================
   Finance/Accounting Theme
   ========================= */

/* ---- Theme tokens ---- */
:root{
  --bg:#F5F7FA;        /* page background */
  --card:#FFFFFF;      /* cards/nav drawers */
  --text:#0F172A;      /* main text (near-black) */
  --muted:#5B6B7A;     /* secondary text */
  --gold:#2563EB;      /* primary accent (blue) */
  --gold-2:#3B82F6;    /* gradient end */
  --ring:#93C5FD;      /* focus ring */
  --line:#00000014;    /* rgba(0,0,0,.08) */
  --shadow:0 10px 30px rgba(2,6,23,.08);

  /* timeline dot sizing */
  --dot-size: 48px;
  --dot-ring: 8px;
}

/* ---- Base ---- */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: Inter, system-ui, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img{max-width:100%;display:block}
a{color:var(--gold);text-decoration:none}
a:hover{text-decoration:underline}
a:focus{outline:3px solid var(--ring);outline-offset:2px}
.container{max-width:1100px;margin:0 auto;padding:0 1.25rem}

/* ---- Skip link ---- */
.skip-link{
  position:absolute;left:-999px;top:auto;width:1px;height:1px;overflow:hidden;
}
.skip-link:focus{
  position:fixed;left:1rem;top:1rem;background:#000;color:#fff;
  padding:.5rem .75rem;border-radius:.5rem;z-index:9999
}

/* ---- Nav (sticky) ---- */
.nav{
  position:sticky;top:0;z-index:30;
  background:rgba(255,255,255,.75);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.nav__row{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem 0;
}
.logo{font-family:Poppins, sans-serif;font-weight:700;color:var(--text)}
.logo__accent{color:var(--gold)}
.logo{display:flex;align-items:center;gap:.5rem}
.logo__icon{width:22px;height:22px;display:block}
.nav__links{display:flex;gap:1rem}
.nav__link{color:#334155;opacity:.9}
.nav__link:hover,.nav__link:focus,.nav__link.active{opacity:1}
.nav__toggle{display:none;background:none;border:none;color:var(--text);font-size:1.25rem}

/* ---- Mobile drawer ---- */
.nav__drawer{
  display:none;flex-direction:column;padding:.75rem;border-top:1px solid var(--line);background:var(--card)
}
.nav__drawer .nav__link{padding:.5rem 0}
.nav__drawer.open{display:flex}

/* ---- Buttons ---- */
.btn{
  display:inline-block;padding:.7rem 1rem;border-radius:.8rem;
  border:1px solid var(--line);color:var(--text);
  font-weight:600;transition:transform .12s ease, filter .12s ease, box-shadow .12s ease;
  text-decoration:none
}
.btn:hover{transform:translateY(-1px)}
.btn:focus{outline:3px solid var(--ring);outline-offset:2px}
.btn--ghost{background:transparent}
.btn--gold{background:linear-gradient(90deg,var(--gold),var(--gold-2));border:none;color:#fff}

/* ---- Sections / Hero ---- */
.section{padding:3rem 0;border-bottom:1px solid var(--line)}

.hero{
  position:relative;overflow:hidden;min-height:100svh;
  display:grid;align-items:center;padding:6rem 0 4rem;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.88));
}
.hero::before{
  content:"";position:absolute;inset:0;
  background:url("assets/finance-bg.svg") center/cover no-repeat;
  opacity:.40;pointer-events:none;
}

/* Larger grid on desktop */
.hero__grid{
  display:grid;grid-template-columns: 1.15fr .85fr;
  gap: clamp(1.5rem, 4vw, 3rem);align-items:start;
}
.badge{
  display:inline-block;background:#e2e8f0;border:1px solid var(--line);
  padding:.35rem .6rem;border-radius:999px;color:#334155;font-size:.9rem;margin-bottom:.5rem
}
.title{
  font-family:Poppins, sans-serif;font-weight:700;margin:.2rem 0 .6rem;
  font-size:clamp(2.8rem, 7vw, 5rem);line-height:1.05;
}
.title__accent{color:var(--gold)}
.lead{color:#475569;max-width:65ch;font-size:clamp(1rem, 1.15vw + .6rem, 1.25rem)}
.cta{display:flex;gap:.8rem;margin-top:1rem;flex-wrap:wrap}

/* Photo */
.hero__photo{justify-self:end;align-self:start;display:flex;justify-content:flex-end;align-items:flex-start}
.glow{
  position:relative;width:min(380px, 36vw);aspect-ratio:1/1;border-radius:50%;
  display:grid;place-items:center;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 28%, transparent), transparent 70%);
  box-shadow: 0 0 60px color-mix(in srgb, var(--gold) 20%, transparent);
}
.glow img{
  width:86%;aspect-ratio:1/1;border-radius:50%;
  border:3px solid color-mix(in srgb, var(--gold) 65%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--gold) 35%, transparent);
  object-fit:cover;background:transparent;
}
.section--full{min-height:100svh;display:grid;align-items:center;padding-block:clamp(3rem, 6vh, 5rem)}

/* ---- Cards / Grid ---- */
.section__title{font-family:Poppins, sans-serif;margin:0 0 1rem}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem}
.card{
  background:var(--card);border:1px solid var(--line);border-radius:1rem;padding:1rem;box-shadow:var(--shadow)
}
.card__head{display:flex;justify-content:space-between;gap:1rem;align-items:baseline;margin-bottom:.6rem}
.meta{color:var(--muted);font-size:.95rem}

/* ---- Portfolio Spin Gallery (restaurant) ---- */
.spin{
  position:relative;
  margin:1.25rem 0 0;
  padding:2.25rem 3rem; /* room for arrows */
  background:var(--card);
  border:1px solid var(--line);
  border-radius:1rem;
  box-shadow:var(--shadow);
}
.spin__stage{
  position: relative;
  width: min(520px, 86vw);
  /* default 4:5, can be overridden by JS for 9:16 videos */
  aspect-ratio: var(--ar, 4 / 5);
  height: auto;
  margin-inline: auto;
  perspective: 1200px;
  overflow: hidden;
}
.spin__item{
  position:absolute; inset:0;
  display:grid; place-items:center;
  opacity:.25;
  filter:blur(1px);
  transform:scale(.82) translateX(140px) rotateY(-40deg);
  transition: transform .6s ease, opacity .6s ease, filter .6s ease, z-index .6s ease;
  z-index:0;
}
.spin__item img,
.spin__item video{
  width: 100%;
  height: 100%;
  object-fit: contain;   /* show full frame, no cropping */
  border-radius: .9rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}

/* active / neighbors */
.spin__item.is-active{
  opacity:1;
  filter:none;
  transform:scale(1) translateX(0) rotateY(0);
  z-index:3;
}
.spin__item.is-prev{
  opacity:.55;
  filter:saturate(.95);
  transform:scale(.9) translateX(-160px) rotateY(40deg);
  z-index:2;
}
.spin__item.is-next{
  opacity:.55;
  filter:saturate(.95);
  transform:scale(.9) translateX(160px) rotateY(-40deg);
  z-index:2;
}

/* arrows */
.spin__btn{
  position:absolute; top:50%; transform:translateY(-50%);
  width:40px;height:40px;border-radius:50%;
  display:grid;place-items:center;
  background:var(--card); color:var(--text);
  border:1px solid var(--line); box-shadow:var(--shadow);
  cursor:pointer; z-index:4;
  transition: background .2s ease, transform .2s ease, color .2s ease;
}
.spin__btn:hover{ background:var(--gold); color:#fff; transform:translateY(-50%) scale(1.05); }
.spin__btn--prev{ left:1rem; }
.spin__btn--next{ right:1rem; }

@media (max-width:700px){
  .spin{ padding:1.25rem 2.25rem; }
  .spin__stage{ height:320px; }
}

/* ---- Social chips/icons ---- */
.chips{display:flex;gap:.5rem;flex-wrap:wrap;padding:0;margin:1rem 0 0;list-style:none}
.chips li{background:#f1f5f9;border:1px solid var(--line);padding:.35rem .6rem;border-radius:999px;color:#0f172a}
.social{display:flex;gap:.6rem;margin-top:1rem}
.social__btn{
  width:40px;height:40px;border-radius:50%;display:grid;place-items:center;
  background:#f1f5f9;border:1px solid var(--line);color:var(--text);
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.social__btn:hover,.social__btn:focus{
  transform:translateY(-3px) scale(1.05);
  background:linear-gradient(90deg,var(--gold),var(--gold-2));
  color:#fff;box-shadow:0 8px 24px rgba(37,99,235,.25);
}

/* ========================
   Timeline
   ======================== */
.timeline{position:relative;margin-top:1.25rem;padding-left:0}
.timeline::before{
  content:"";position:absolute;inset:0 auto 0 50%;width:2px;
  background:linear-gradient(to bottom,
    color-mix(in srgb, var(--gold) 55%, transparent),
    color-mix(in srgb, var(--gold-2) 55%, transparent));
  opacity:.45;
}

/* One row = two columns (left + right) */
.timeline__item{
  position:relative;display:grid;
  grid-template-columns:1fr 1fr;gap:2rem;margin:2rem 0;align-items:start;
}

/* Center dot */
.timeline__dot{
  position:absolute;left:50%;top:1.1rem;transform:translate(-50%,-50%);
  width:var(--dot-size);height:var(--dot-size);border-radius:50%;
  background:var(--card);border:3px solid var(--gold);
  box-shadow:0 0 0 var(--dot-ring) color-mix(in srgb, var(--gold) 22%, transparent);
  display:grid;place-items:center;overflow:hidden;
}
.timeline__dot img{width:90%;height:90%;object-fit:contain;border-radius:50%;display:block;background:#fff}

/* Default card width restraint */
.timeline__item .timeline__card{max-width:520px}

/* Placement helpers (single-card items) */
.timeline__item.reveal--left  .timeline__card{grid-column:1;justify-self:end}
.timeline__item.reveal--right .timeline__card{grid-column:2;justify-self:start}

/* Paired cards (left text + right media) */
.card--left{grid-column:1;justify-self:end}
.card--right{grid-column:2;justify-self:start}

/* Media in cards */
.card__media{margin:.75rem 0;overflow:hidden;border-radius:.75rem}
.card__media img{
  display:block;max-width:100%;border-radius:.75rem;box-shadow:var(--shadow);
  transition:transform .35s ease, box-shadow .35s ease, filter .35s ease;
}
.card__media img:hover{transform:translateY(-2px) scale(1.02);box-shadow:0 14px 34px rgba(2,6,23,.12);filter:saturate(1.03)}
.media__cap{font-size:.85rem;color:var(--muted);text-align:center}

/* Media-only timeline card (standalone or right-side companion) */
.card--media-only{padding:0;background:transparent;border:none;box-shadow:none}
.timeline__item--no-dot .timeline__dot{display:none} /* optional utility */

/* ---- Reveal animation ---- */
.reveal{opacity:0;transform:translateY(14px);transition:opacity .6s ease, transform .6s ease, box-shadow .3s ease;will-change:transform,opacity}
.reveal--left{transform:translate(-18px,14px)}
.reveal--right{transform:translate(18px,14px)}
.reveal.is-visible{opacity:1;transform:translate(0,0)}
@media (prefers-reduced-motion: reduce){
  .reveal,.reveal--left,.reveal--right{transition:none;transform:none;opacity:1}
}

/* ---- Contact ---- */
.contact__row{display:flex;gap:1rem;flex-wrap:wrap}

/* ---- Footer ---- */
.footer{padding:1.5rem 0;color:#475569;text-align:center}

/* ---- Responsive ---- */
@media (max-width:900px){
  .hero__grid{grid-template-columns:1fr;gap:1.5rem;align-items:center}
  .hero__photo{justify-self:center;align-self:auto;justify-content:center;align-items:center}

  /* Enable hamburger menu on small screens */
  .nav__links{display:none}
  .nav__toggle{display:block}

  /* Timeline mobile layout: single column */
  .timeline::before{left:10px;opacity:.35}
  .timeline__item{grid-template-columns:1fr;gap:.75rem;padding-left:26px}
  .timeline__dot{left:10px}
  .timeline__item .timeline__card{max-width:unset}
  .card--left,.card--right{grid-column:1;justify-self:stretch}

  /* Spin gallery tweaks */
  .spin{ padding:1rem 2rem; }
  .spin__stage{ height:280px; }
}
