/* Crestline Accounting and Management FZ LLC */
:root {
  --navy: #0F172A;
  --blue: #1E3A8A;
  --blue-2: #1d4f91;
  --gold: #CA8A04;
  --gold-2: #D97706;
  --gold-soft: #f6e7c1;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .16);
  --wa: #25D366;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: "Montserrat", "Inter", sans-serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .6em;
}
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .9em 1.5em;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  border: 2px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  cursor: pointer;
}
.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #fff; box-shadow: 0 8px 22px rgba(202, 138, 4, .35); }
.btn-gold:hover { box-shadow: 0 12px 28px rgba(202, 138, 4, .45); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 22px rgba(37, 211, 102, .3); }
.btn-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--blue); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 20px rgba(15,23,42,.08); border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: "Montserrat", sans-serif; font-weight: 800; color: var(--blue); font-size: 1.15rem; letter-spacing: .04em; }
.brand-text span { font-size: .62rem; font-weight: 600; color: var(--navy); letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-weight: 500; font-size: .95rem; color: var(--ink); position: relative; padding: 6px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gold); transition: width .3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--blue); }
.nav-links a.nav-cta { padding: .65em 1.2em; font-size: .9rem; color: #fff; }
.nav-links a.nav-cta::after { display: none; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .3s, opacity .3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - 76px);
  display: flex; align-items: center;
  color: #fff;
  padding: 80px 0;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  animation: kenburns 22s ease-in-out infinite alternate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(15,23,42,.94) 0%, rgba(30,58,138,.80) 55%, rgba(15,23,42,.45) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 680px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
.hero h1 .gold { color: #f2b632; }
.hero p.lead { font-size: 1.12rem; color: rgba(255,255,255,.85); max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 50px; }
.hero-badge { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: rgba(255,255,255,.85); }
.hero-badge svg { width: 22px; height: 22px; color: #f2b632; }

.page-hero { min-height: 52vh; text-align: left; }

/* growth line decoration */
.hero-lines { position: absolute; right: -60px; bottom: -20px; width: 520px; z-index: 1; opacity: .5; pointer-events: none; }
.hero-lines path { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 3.5s ease forwards .4s; }

@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-1%, -1%); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head .eyebrow { justify-content: center; }
.section-head .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-head p { color: var(--muted); }

/* ---------- Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card .thumb { position: relative; height: 190px; overflow: hidden; }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-card:hover .thumb img { transform: scale(1.08); }
.service-card .icon {
  position: absolute; left: 22px; bottom: -24px;
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 18px rgba(202,138,4,.4);
}
.service-card .icon svg { width: 26px; height: 26px; }
.service-card .body { padding: 38px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.service-card h3 { font-size: 1.2rem; }
.service-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.link-arrow { font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s; }
.link-arrow:hover svg { transform: translateX(5px); }

.cta-card {
  background: linear-gradient(150deg, var(--navy), var(--blue));
  color: #fff; border-radius: var(--radius); padding: 34px 28px;
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.cta-card::after {
  content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  border: 30px solid rgba(202,138,4,.18); right: -70px; bottom: -70px;
}
.cta-card h3 { color: #fff; font-size: 1.4rem; }
.cta-card p { color: rgba(255,255,255,.8); }
.cta-card .btn { align-self: flex-start; position: relative; z-index: 1; }

/* ---------- About / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-img { position: relative; }
.split-img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; height: 460px; object-fit: cover; }
.split-img .floating-card {
  position: absolute; right: -24px; bottom: -28px;
  background: #fff; border-radius: 12px; padding: 18px 22px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 14px;
  animation: floaty 4s ease-in-out infinite;
}
.floating-card img { width: 70px; height: auto; box-shadow: none; border-radius: 0; }
.floating-card strong { display: block; font-family: "Montserrat", sans-serif; color: var(--navy); }
.floating-card span { font-size: .82rem; color: var(--muted); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.check-list { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-item {
  text-align: center; padding: 34px 22px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  transition: border-color .3s, transform .3s;
}
.why-item:hover { border-color: var(--gold); transform: translateY(-5px); }
.why-item .icon-round {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px;
  background: var(--gold-soft); color: var(--gold-2); display: grid; place-items: center;
}
.why-item .icon-round svg { width: 28px; height: 28px; }
.why-item h4 { font-size: 1.05rem; }
.why-item p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 36px; left: 16%; right: 16%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 20px);
}
.step { text-align: center; position: relative; padding: 0 10px; }
.step-num {
  width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--navy); color: #f2b632; display: grid; place-items: center;
  font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 1.3rem;
  box-shadow: 0 0 0 8px var(--bg-alt), 0 0 0 10px rgba(202,138,4,.35);
  position: relative; z-index: 1; transition: transform .35s ease, background .35s ease;
}
.step:hover .step-num { transform: scale(1.1) rotate(-6deg); background: var(--blue); }
.step h4 { font-size: 1.15rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- Stats strip ---------- */
.stats { background: var(--navy); color: #fff; padding: 60px 0; position: relative; overflow: hidden; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; position: relative; z-index: 1; }
.stat strong { display: block; font-family: "Montserrat", sans-serif; font-size: 2.4rem; color: #f2b632; font-weight: 800; }
.stat span { color: rgba(255,255,255,.75); font-size: .95rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 40px 24px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.contact-card .c-icon { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; color: #fff; }
.contact-card .c-icon svg { width: 32px; height: 32px; }
.c-icon.wa { background: var(--wa); }
.c-icon.phone { background: var(--blue); }
.c-icon.mail { background: linear-gradient(135deg, var(--gold), var(--gold-2)); }
.contact-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.contact-card p { color: var(--muted); margin-bottom: 14px; font-size: .95rem; }
.contact-card .value { font-weight: 700; color: var(--navy); font-size: 1.05rem; word-break: break-word; }
.contact-card a.value { display: block; padding: 2px 0; transition: color .2s; }
.contact-card a.value:hover { color: var(--gold-2); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background: linear-gradient(120deg, var(--blue), var(--navy));
}
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.cta-band p { color: rgba(255,255,255,.8); max-width: 580px; margin: 0 auto 30px; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .ring { position: absolute; border-radius: 50%; border: 2px solid rgba(242,182,50,.25); animation: spin 30s linear infinite; }
.cta-band .ring.r1 { width: 420px; height: 420px; left: -140px; top: -160px; border-style: dashed; }
.cta-band .ring.r2 { width: 300px; height: 300px; right: -90px; bottom: -120px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Services page detail ---------- */
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 70px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.service-detail:last-child { border-bottom: 0; }
.service-detail.reverse .sd-img { order: 2; }
.sd-img { position: relative; }
.sd-img img { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.sd-img .num {
  position: absolute; top: -22px; left: -22px; width: 70px; height: 70px; border-radius: 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #fff;
  display: grid; place-items: center; font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 1.5rem;
  box-shadow: 0 10px 24px rgba(202,138,4,.4);
}
.service-detail.reverse .sd-img .num { left: auto; right: -22px; }
.sd-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.sd-text p { color: var(--muted); }
.sd-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.service-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }
.service-pills a {
  padding: .55em 1.1em; border-radius: 999px; font-size: .88rem; font-weight: 500;
  border: 1px solid rgba(255,255,255,.35); color: #fff; transition: background .25s, color .25s;
}
.service-pills a:hover { background: #fff; color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 70px 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-logo { background: #fff; border-radius: 12px; padding: 14px 18px; display: inline-block; margin-bottom: 18px; }
.footer-logo img { height: 92px; width: auto; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: #f2b632; }
.footer-contact li { display: flex; gap: 10px; align-items: center; }
.footer-contact svg { width: 18px; height: 18px; color: #f2b632; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 50px; padding: 22px 0; text-align: center; font-size: .85rem; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 25px rgba(37,211,102,.45);
  transition: transform .3s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; position: relative; z-index: 1; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa);
  animation: pulse 2s ease-out infinite;
}
.wa-float .tip {
  position: absolute; right: 72px; white-space: nowrap; background: #fff; color: var(--navy);
  font-size: .85rem; font-weight: 600; padding: 8px 14px; border-radius: 8px; box-shadow: var(--shadow);
  opacity: 0; transform: translateX(10px); transition: opacity .3s, transform .3s; pointer-events: none;
}
.wa-float:hover .tip { opacity: 1; transform: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s ease, transform .8s ease; }
.reveal.from-left { transform: translateX(-46px); }
.reveal.from-right { transform: translateX(46px); }
.reveal.zoom { transform: scale(.92); }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }

.hero .anim { opacity: 0; transform: translateY(26px); animation: rise .9s ease forwards; }
.hero .anim.a2 { animation-delay: .15s; }
.hero .anim.a3 { animation-delay: .3s; }
.hero .anim.a4 { animation-delay: .45s; }
.hero .anim.a5 { animation-delay: .6s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero .anim { opacity: 1; transform: none; }
  .hero-lines path { stroke-dashoffset: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px rgba(15,23,42,.08);
    max-height: 0; overflow: hidden; transition: max-height .4s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 16px 20px; }
  .nav-links a::after { display: none; }
  .nav-links .nav-cta-li { padding: 14px 20px; }
  .nav-links .nav-cta { justify-content: center; display: flex; }
  .split, .service-detail { grid-template-columns: 1fr; gap: 44px; }
  .service-detail.reverse .sd-img { order: 0; }
  .split-img img, .sd-img img { height: 320px; }
  .split-img .floating-card { right: 12px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }
  .hero-lines { width: 340px; }
}
@media (max-width: 600px) {
  section { padding: 70px 0; }
  .services-grid, .why-grid, .footer-grid { grid-template-columns: 1fr; }
  .brand-text span { display: none; }
  .hero { padding: 60px 0; min-height: auto; }
  .hero-badges { gap: 16px; margin-top: 36px; }
  .sd-img .num { left: 12px !important; right: auto !important; top: -18px; width: 56px; height: 56px; font-size: 1.2rem; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .footer-bottom { padding-bottom: 86px; }
}
