/* ============================================================
   Ace Accountancy Tuition — styles
   Dark, premium look (Bifrost-inspired) with Claude orange accent
   ============================================================ */

:root {
  /* Claude orange palette */
  --orange:        #D97757;
  --orange-bright: #E8855C;
  --orange-soft:   #F0A988;
  --orange-glow:   rgba(217, 119, 87, 0.45);

  /* Neutrals (warm near-black) */
  --bg:        #0B0A0A;
  --bg-2:      #111010;
  --bg-card:   #161413;
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.14);

  --text:      #F5F3F1;
  --muted:     #A8A29E;
  --muted-2:   #756F6B;

  --whatsapp:  #25D366;

  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1140px;

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.3rem; }

.grad {
  background: linear-gradient(120deg, var(--orange-bright), var(--orange-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head);
  font-weight: 600; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; fill: currentColor; }

.btn--primary {
  background: linear-gradient(120deg, var(--orange-bright), var(--orange));
  color: #1a0f0a;
  box-shadow: 0 6px 24px -6px var(--orange-glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -8px var(--orange-glow); }

.btn--whatsapp { background: var(--whatsapp); color: #04210f; }
.btn--whatsapp:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -8px rgba(37,211,102,.4); }

.btn--ghost { background: transparent; border-color: var(--border-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange-soft); }

.btn--sm { padding: 9px 16px; font-size: 0.85rem; }
.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 10, 10, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 700; }
.brand__logo {
  width: 40px; height: 40px; border-radius: 11px;
  box-shadow: 0 4px 16px -4px var(--orange-glow);
}
.brand__mark {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--orange-bright), var(--orange));
  color: #1a0f0a; font-size: 1.25rem; font-weight: 700;
  box-shadow: 0 4px 16px -4px var(--orange-glow);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; font-size: 1.05rem; }
.brand__sub { font-size: 0.72rem; font-weight: 500; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.nav__links { display: flex; gap: 30px; }
.nav__links a { color: var(--muted); font-size: 0.92rem; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--text); }

.nav__actions { display: flex; align-items: center; gap: 12px; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 160px 0 90px; text-align: center; overflow: hidden; }
.hero__glow {
  position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px; pointer-events: none;
  background: radial-gradient(ellipse at center, var(--orange-glow), transparent 65%);
  filter: blur(40px); opacity: .55;
}
.hero__inner { position: relative; max-width: 880px; }

.pill {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  background: rgba(217,119,87,.12); border: 1px solid rgba(217,119,87,.3);
  color: var(--orange-soft); font-size: 0.85rem; font-weight: 500; margin-bottom: 26px;
}
.hero__tagline {
  font-family: var(--font-head); font-weight: 600;
  font-size: 0.95rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--orange-soft); margin-bottom: 18px;
}
.hero__title { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: 22px; }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 640px; margin: 0 auto 36px; }
.hero__sub strong { color: var(--text); }

.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

.hero__stats { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.stat {
  display: flex; flex-direction: column; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 26px; min-width: 120px;
}
.stat__num { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: var(--orange-soft); }
.stat__label { font-size: 0.82rem; color: var(--muted); }

/* ---------- Trust carousel ---------- */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); padding: 34px 0; }
.trust__label { text-align: center; font-size: 0.8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 26px; }
.rating-cards { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.rcard {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 24px; min-width: 290px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.rcard:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: 0 16px 38px -24px rgba(0,0,0,.7); }
.rcard__logo { width: 42px; height: 42px; flex: none; display: grid; place-items: center; }
.rcard__logo svg { width: 100%; height: 100%; }
.rcard__logo--jd {
  border-radius: 11px; color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  background: linear-gradient(135deg, #00b3a4, #00798a);
}
.rcard__body { display: flex; flex-direction: column; gap: 2px; }
.rcard__top { display: flex; align-items: center; gap: 10px; }
.rcard__num { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--text); line-height: 1; }
.rcard__stars { color: #FFB400; letter-spacing: 1px; font-size: 0.95rem; }
.rcard__name { color: var(--muted); font-size: 0.86rem; }
.rcard__arrow { width: 18px; height: 18px; color: var(--muted-2); margin-left: auto; flex: none; transition: color .2s, transform .2s; }
.rcard:hover .rcard__arrow { color: var(--orange-soft); transform: translate(2px, -2px); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-2); }
.section__head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section__lead { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: 0.78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 14px;
}

/* ---------- About ---------- */
.about__head { text-align: center; max-width: 720px; margin: 0 auto; }
.about__lead { color: var(--muted); margin-top: 18px; font-size: 1.08rem; }
.about__lead strong { color: var(--text); }
.about__points {
  list-style: none; margin: 46px auto 0; max-width: 760px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.about__points li {
  display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 500;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 18px;
  transition: border-color .2s ease, transform .2s ease;
}
.about__points li:hover { border-color: var(--border-2); transform: translateY(-2px); }
.tick {
  flex: none; width: 26px; height: 26px; border-radius: 7px;
  background: rgba(217,119,87,.15); color: var(--orange-soft);
  display: grid; place-items: center; font-size: 0.8rem;
}

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: 0 18px 40px -22px var(--orange-glow); }
.card__icon { font-size: 2rem; margin-bottom: 16px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.96rem; }
.card__tags { display: flex; gap: 8px; margin-top: 18px; }
.card__tags span {
  font-size: 0.76rem; font-weight: 600; padding: 4px 11px; border-radius: 999px;
  background: rgba(217,119,87,.1); color: var(--orange-soft); border: 1px solid rgba(217,119,87,.22);
}

/* ---------- Results ---------- */
.results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.result {
  text-align: center; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 18px;
}
.result__num { display: block; font-family: var(--font-head); font-size: 2.8rem; font-weight: 700; color: var(--orange-soft); line-height: 1; }
.result__label { display: block; margin-top: 12px; color: var(--muted); font-size: 0.92rem; }

/* ---------- Timings / hours ---------- */
.batches { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 52px; }
.batch {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 30px;
  display: flex; flex-direction: column; gap: 14px;
}
.batch--featured {
  border-color: rgba(217,119,87,.4);
  box-shadow: 0 18px 50px -28px var(--orange-glow);
  background: linear-gradient(180deg, rgba(217,119,87,.06), var(--bg-card));
}
.batch__tag {
  align-self: flex-start;
  font-family: var(--font-head); font-weight: 600;
  font-size: 0.72rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--orange-soft); background: rgba(217,119,87,.12);
  border: 1px solid rgba(217,119,87,.28); padding: 5px 12px; border-radius: 999px;
}
.batch h3 { font-size: 1.55rem; }
.batch__commence { color: var(--text); font-size: 1.05rem; }
.batch__commence strong { color: var(--orange-soft); }
.batch__desc { color: var(--muted); font-size: 0.96rem; }
.batch .btn { align-self: flex-start; margin-top: auto; }
.batch__sched { list-style: none; display: flex; flex-direction: column; margin: 2px 0 6px; }
.batch__sched li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 0; border-bottom: 1px solid var(--border);
}
.batch__sched li:last-child { border-bottom: 0; }
.batch__day { color: var(--text); font-weight: 500; }
.batch__time { font-family: var(--font-head); color: var(--orange-soft); font-size: 0.95rem; }

.batch__tba {
  align-self: flex-start;
  font-family: var(--font-head); font-size: 0.9rem; color: var(--muted);
  background: var(--bg); border: 1px dashed var(--border-2);
  padding: 10px 16px; border-radius: var(--radius-sm);
}
.timings__note { text-align: center; margin-top: 40px; color: var(--muted); font-size: 0.95rem; }
.timings__note a { color: var(--orange-soft); font-weight: 600; }

/* ---------- Courses (row layout) ---------- */
.courses-list { border-top: 1px solid var(--border); }
.course-row {
  display: grid; grid-template-columns: 40px 56px 1fr auto;
  align-items: center; gap: 26px;
  padding: 28px 10px; border-bottom: 1px solid var(--border);
  transition: background .2s ease, padding-left .25s ease;
}
.course-row:hover { background: rgba(217,119,87,.04); padding-left: 22px; }
.course-row__index {
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  color: var(--orange); opacity: .55;
}
.course-row__icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(217,119,87,.1); border: 1px solid rgba(217,119,87,.22);
  color: var(--orange-soft);
}
.course-row__icon svg { width: 28px; height: 28px; }
.course-row__body h3 { margin-bottom: 6px; }
.course-row__body p { color: var(--muted); font-size: 0.98rem; max-width: 580px; }
.course-row__tags { display: flex; gap: 8px; }
.course-row__tags span {
  font-size: 0.76rem; font-weight: 600; padding: 4px 11px; border-radius: 999px;
  background: rgba(217,119,87,.1); color: var(--orange-soft); border: 1px solid rgba(217,119,87,.22);
  white-space: nowrap;
}

/* ---------- Reviews ---------- */
.review {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .2s ease, border-color .2s ease;
}
.review:hover { transform: translateY(-3px); border-color: var(--border-2); }
.review__head { display: flex; align-items: center; gap: 12px; }
.review__avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  color: #1c100a; background: linear-gradient(135deg, var(--orange-bright), var(--orange));
}
.review__meta { display: flex; flex-direction: column; gap: 2px; }
.review__name { font-family: var(--font-head); font-weight: 600; font-size: 0.96rem; }
.review__stars { color: var(--orange); letter-spacing: 2px; font-size: 0.82rem; }
.review__source {
  margin-left: auto; font-size: 0.72rem; color: var(--muted-2);
  border: 1px solid var(--border); padding: 3px 10px; border-radius: 999px;
}
.review__text { color: var(--text); font-size: 0.98rem; }
.reviews__cta { text-align: center; margin-top: 40px; }

/* ---------- Location ---------- */
.location { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.location__addr { font-style: normal; color: var(--muted); font-size: 1.1rem; line-height: 1.8; margin: 22px 0 28px; }
.location__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.location__map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-2); height: 380px; }
.location__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.2) contrast(1.05); }

/* ---------- Contact / CTA ---------- */
.section--cta { position: relative; overflow: hidden; background: var(--bg-2); }
.contact__glow {
  position: absolute; bottom: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse at center, var(--orange-glow), transparent 65%);
  filter: blur(50px); opacity: .4; pointer-events: none;
}
.contact { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.contact__intro p { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }
.contact__direct { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.contact__line {
  font-family: var(--font-head); font-weight: 600; color: var(--text);
  padding: 12px 18px; border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  transition: border-color .2s, color .2s; width: fit-content;
}
.contact__line:hover { border-color: var(--orange); color: var(--orange-soft); }

/* ---------- Form ---------- */
.form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--muted); margin-bottom: 16px; }
.form input, .form select, .form textarea {
  width: 100%; margin-top: 7px;
  background: var(--bg); border: 1px solid var(--border-2); color: var(--text);
  border-radius: var(--radius-sm); padding: 12px 14px; font: inherit;
  transition: border-color .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--orange); }
.form textarea { resize: vertical; }
.form__hp { position: absolute; left: -9999px; }
.form__note { color: var(--whatsapp); font-weight: 600; text-align: center; margin-top: 14px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg); padding-top: 56px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__logo { width: 44px; height: 44px; border-radius: 12px; }
.footer__name { font-family: var(--font-head); font-weight: 700; }
.footer__tag { font-size: 0.85rem; color: var(--muted); }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.footer__links a { color: var(--muted); font-size: 0.9rem; transition: color .2s; }
.footer__links a:hover { color: var(--orange-soft); }
.footer__contact { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.footer__cline {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; color: var(--text);
  transition: color .2s;
}
.footer__cline:hover { color: var(--orange-soft); }
.footer__ic {
  width: 30px; height: 30px; padding: 7px; flex: none; fill: var(--orange-soft);
  background: rgba(217,119,87,.12); border: 1px solid rgba(217,119,87,.25); border-radius: 8px;
}
.footer__ic--wa { fill: var(--whatsapp); background: rgba(37,211,102,.12); border-color: rgba(37,211,102,.25); }
.footer__addr { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }
.footer__bottom { border-top: 1px solid var(--border); padding: 22px 24px; text-align: center; color: var(--muted-2); font-size: 0.85rem; }

/* ---------- Floating WhatsApp ---------- */
.fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--whatsapp); display: grid; place-items: center;
  box-shadow: 0 8px 26px -6px rgba(37,211,102,.55);
  transition: transform .2s;
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .location, .contact { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .results { grid-template-columns: 1fr 1fr; }
  .timings { grid-template-columns: 1fr; }
  .footer__contact { align-items: flex-start; }
}

@media (max-width: 680px) {
  .nav__links {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(11,10,10,.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 10px 24px; transform: translateY(-120%); transition: transform .3s ease;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav__toggle { display: flex; }
  .cards, .results, .timings, .batches, .form__row, .about__points { grid-template-columns: 1fr; }
  .rating-cards { flex-direction: column; }
  .rcard { min-width: 0; width: 100%; }

  .course-row { grid-template-columns: 48px 1fr; gap: 16px; padding: 22px 4px; }
  .course-row:hover { padding-left: 4px; }
  .course-row__index { display: none; }
  .course-row__icon { width: 48px; height: 48px; }
  .course-row__icon svg { width: 24px; height: 24px; }
  .course-row__tags { grid-column: 1 / -1; }
  .section { padding: 72px 0; }
  .hero { padding: 130px 0 70px; }
}
