/* ============================================================
   Catalyst Taxology — Photo-forward design
   Real imagery · navy + emerald · Poppins + Inter
   Stock photos (Unsplash) are placeholders — swap for the
   client's own office/team photos where marked in the HTML.
   ============================================================ */

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

:root {
    --bg: #f6f8f9;
    --white: #ffffff;

    --navy: #0d2438;
    --navy-2: #133251;

    --ink: #10222f;
    --muted: #5c6b78;

    --emerald: #0f7a5a;
    --emerald-deep: #0b5c43;
    --emerald-tint: #e5f2ee;
    --gold: #c8992e;

    /* Grey action buttons (client preference) */
    --btn-grey: #59636d;
    --btn-grey-deep: #434c55;

    --line: #e2e8ec;
    --line-2: #d2dbe0;

    --sh-sm: 0 2px 10px -5px rgba(13, 36, 56, 0.2);
    --sh-md: 0 22px 46px -26px rgba(13, 36, 56, 0.42);
    --sh-lg: 0 40px 80px -34px rgba(13, 36, 56, 0.5);

    --r: 18px;
    --r-lg: 26px;
    --maxw: 1180px;
    --nav-h: 78px;

    --display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; color: var(--ink); letter-spacing: -0.02em; line-height: 1.14; }

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

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--emerald); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--gold); }
.eyebrow.light { color: #fff; }
.eyebrow.light::before { background: var(--gold); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--sans); font-weight: 600; font-size: 0.97rem;
    padding: 15px 28px; border-radius: 12px; text-decoration: none; cursor: pointer;
    border: 1.5px solid transparent;
    transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s ease; }
.btn-block { width: 100%; }
.btn-solid { background: var(--btn-grey); color: #fff; box-shadow: 0 12px 28px -14px rgba(30, 41, 51, 0.55); }
.btn-solid:hover { background: var(--btn-grey-deep); transform: translateY(-2px); }
.btn-solid:hover svg { transform: translateX(4px); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn-ghost-light { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }

/* ============================================================
   Navigation
   ============================================================ */
.navbar {
    position: fixed; inset: 0 0 auto 0; height: var(--nav-h);
    display: flex; align-items: center; z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s ease;
}
.navbar.scrolled { box-shadow: var(--sh-sm); }
.nav-wrapper { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 46px; width: auto; }

.nav-menu { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-link { text-decoration: none; color: var(--muted); font-size: 0.94rem; font-weight: 500; position: relative; padding: 4px 0; transition: color .2s ease; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--gold); transition: width .3s ease; }
.nav-link:hover, .nav-link.active { color: var(--emerald); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-cta { display: inline-flex; align-items: center; padding: 11px 22px; border-radius: 10px; background: var(--btn-grey); color: #fff; font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: background .25s ease, transform .25s ease; }
.nav-cta:hover { background: var(--btn-grey-deep); transform: translateY(-2px); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamburger span { width: 25px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s ease, opacity .3s ease; }

/* ============================================================
   Hero — full-bleed background photo
   ============================================================ */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 80px; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(105deg, rgba(9, 26, 41, 0.94) 0%, rgba(9, 26, 41, 0.78) 42%, rgba(9, 26, 41, 0.42) 100%);
}
.hero-inner { position: relative; z-index: 2; color: #fff; max-width: 660px; }
.hero-title { color: #fff; font-size: clamp(2.5rem, 5.6vw, 4.1rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 1.4rem; }
.hero-title em { font-style: normal; color: var(--gold); }
.hero-lead { font-size: 1.16rem; color: rgba(255,255,255,0.82); max-width: 540px; margin-bottom: 2.2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 2.6rem; flex-wrap: wrap; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.2); }
.hero-stats strong { display: block; font-family: var(--display); font-size: 1.9rem; font-weight: 700; color: #fff; line-height: 1; }
.hero-stats span { font-size: 0.86rem; color: rgba(255,255,255,0.62); }

/* ============================================================
   Section shell
   ============================================================ */
.section { padding: clamp(78px, 9vw, 124px) 0; }
.section-head { max-width: 640px; margin-bottom: 3.2rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-title { font-size: clamp(2rem, 3.9vw, 2.9rem); color: var(--ink); font-weight: 600; margin-bottom: 0.9rem; }
.section-title.light { color: #fff; }
.section-subtitle { font-size: 1.06rem; color: var(--muted); }

/* ============================================================
   About / intro — photo + text split
   ============================================================ */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-media { position: relative; }
.about-media .media-main { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); aspect-ratio: 4/3.4; }
.about-media .media-main img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
    position: absolute; right: -22px; bottom: -26px;
    background: var(--navy); color: #fff;
    border-radius: 18px; padding: 1.4rem 1.6rem;
    box-shadow: var(--sh-lg); max-width: 210px;
}
.about-badge strong { display: block; font-family: var(--display); font-size: 2.2rem; font-weight: 700; color: var(--gold); line-height: 1; }
.about-badge span { font-size: 0.88rem; color: rgba(255,255,255,0.75); }
.about-copy p.lead { font-size: 1.1rem; color: var(--muted); margin-bottom: 1.6rem; }
.about-points { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-top: 1.6rem; }
.about-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; color: var(--ink); }
.about-points li svg { width: 22px; height: 22px; color: var(--emerald); flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   Services — photo cards
   ============================================================ */
.services { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.service-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: var(--line-2); }
.service-photo { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .service-photo img { transform: scale(1.06); }
.service-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(9,26,41,0.5)); }
.service-badge {
    position: absolute; top: 14px; left: 14px; z-index: 1;
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(4px);
    color: var(--emerald); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    padding: 6px 12px; border-radius: 999px;
}
.service-body { padding: 1.7rem 1.6rem 1.9rem; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { font-size: 1.28rem; margin-bottom: 0.5rem; }
.service-body p { color: var(--muted); font-size: 0.96rem; margin-bottom: 1.2rem; }
.service-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--emerald); font-weight: 600; font-size: 0.94rem; text-decoration: none; transition: gap .25s ease; }
.service-link svg { width: 17px; height: 17px; }
.service-link:hover { gap: 13px; color: var(--emerald-deep); }

/* ============================================================
   Stats band — photo background
   ============================================================ */
.stats { position: relative; padding: clamp(70px, 8vw, 104px) 0; overflow: hidden; }
.stats-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.stats-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(120deg, rgba(11,92,67,0.94), rgba(13,36,56,0.9)); }
.stats-inner { position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stats-grid .stat strong { display: block; font-family: var(--display); font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 700; color: #fff; line-height: 1; margin-bottom: 8px; }
.stats-grid .stat span { color: rgba(255,255,255,0.78); font-size: 0.96rem; font-weight: 500; }

/* ============================================================
   Why Us — photo + list
   ============================================================ */
.why { background: var(--bg); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.why-media { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); aspect-ratio: 5/5.4; }
.why-media img { width: 100%; height: 100%; object-fit: cover; }
.why-media .why-quote {
    position: absolute; left: 18px; right: 18px; bottom: 18px;
    background: rgba(13, 36, 56, 0.72); backdrop-filter: blur(8px);
    color: #fff; border-radius: 16px; padding: 1.2rem 1.4rem;
    display: flex; align-items: center; gap: 12px;
}
.why-quote .wq-star { color: var(--gold); display: flex; }
.why-quote .wq-star svg { width: 20px; height: 20px; }
.why-quote strong { font-family: var(--display); font-weight: 700; }
.why-quote span { display: block; font-size: 0.84rem; color: rgba(255,255,255,0.72); }
.why-list { display: flex; flex-direction: column; }
.why-item { display: flex; gap: 1.3rem; padding: 1.7rem 0; border-bottom: 1px solid var(--line); }
.why-item:first-child { padding-top: 0; }
.why-item:last-child { border-bottom: none; }
.why-ico { flex-shrink: 0; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--emerald-tint); color: var(--emerald); }
.why-ico svg { width: 27px; height: 27px; }
.why-item h3 { font-size: 1.24rem; margin-bottom: 0.35rem; }
.why-item p { color: var(--muted); font-size: 0.96rem; }

/* ============================================================
   Contact
   ============================================================ */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; margin-bottom: 2.6rem; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 2rem 1.6rem; text-align: center; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: var(--line-2); }
.contact-ico { width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; margin: 0 auto 1.1rem; background: var(--emerald-tint); color: var(--emerald); }
.contact-ico svg { width: 26px; height: 26px; }
.contact-card h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.contact-card p { color: var(--ink); font-weight: 600; margin-bottom: 0.2rem; word-break: break-word; }
.contact-card a { color: var(--emerald); text-decoration: none; }
.contact-card a:hover { color: var(--gold); }
.contact-detail { display: block; font-size: 0.84rem; color: var(--muted); margin-top: 0.4rem; }

.cta { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 0; box-shadow: var(--sh-lg); }
.cta-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cta-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(115deg, rgba(13,36,56,0.95), rgba(11,92,67,0.82)); }
.cta-inner { position: relative; z-index: 2; padding: 3.4rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta h3 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.4rem; }
.cta p { color: rgba(255,255,255,0.8); font-size: 1.05rem; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--navy); color: rgba(255,255,255,0.72); padding: 4.2rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1.2fr 1.2fr; gap: 2.6rem; margin-bottom: 3rem; }
.footer-logo { display: flex; align-items: center; gap: 11px; margin-bottom: 1.2rem; }
.footer-logo img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.footer-logo span { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: #fff; }
.footer-col > p { font-size: 0.95rem; max-width: 300px; color: rgba(255,255,255,0.58); }
.footer-col h4 { font-family: var(--sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); margin-bottom: 1.2rem; font-weight: 700; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.7rem; font-size: 0.95rem; }
.footer-col ul li a { color: rgba(255,255,255,0.72); text-decoration: none; transition: color .2s ease; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.12); }
.footer-bottom p { font-size: 0.87rem; color: rgba(255,255,255,0.52); margin: 0; }
.footer-bottom a { color: rgba(255,255,255,0.88); text-decoration: none; font-weight: 600; }
.footer-bottom a:hover { text-decoration: underline; }

/* WhatsApp float */
.whatsapp-float { position: fixed; bottom: 26px; right: 26px; width: 60px; height: 60px; background: #25D366; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(37,211,102,0.7); z-index: 1000; transition: transform .3s ease; }
.whatsapp-float::after { content: ''; position: absolute; inset: 0; border-radius: 50%; animation: ripple 2.6s ease-out infinite; }
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 36px; height: 36px; position: relative; }
@keyframes ripple { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); } 100% { box-shadow: 0 0 0 20px rgba(37,211,102,0); } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1024px) {
    .about-grid, .why-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-media, .why-media { max-width: 520px; margin: 0 auto; width: 100%; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.4rem; }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-menu { position: fixed; top: var(--nav-h); left: 0; width: 100%; flex-direction: column; background: rgba(255,255,255,0.98); border-top: 1px solid var(--line); box-shadow: var(--sh-md); padding: 1.6rem 0; gap: 1.2rem; transform: translateX(-100%); transition: transform .3s ease; }
    .nav-menu.active { transform: translateX(0); }
    .nav-menu .nav-link { color: var(--muted); }
    .nav-cta { display: none; }
    .hamburger { display: flex; }
    .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .services-grid, .contact-grid { grid-template-columns: 1fr; }
    .cta-inner { flex-direction: column; text-align: center; padding: 2.4rem 1.6rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; align-items: center; }
}
@media (max-width: 520px) {
    .hero-actions .btn { flex: 1; }
    .hero-stats { gap: 1.6rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .about-badge { right: 12px; bottom: -18px; padding: 1.1rem 1.2rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-logo { justify-content: center; }
    .footer-col > p { margin: 0 auto; }
}
