/* ============================================================
   Genius Nexus Solutions — styles.css
   All styling for the static template. No frameworks required.
   ============================================================ */

/* ---------- Colours & tokens (from the Genius Nexus logo) ---------- */
:root {
  --primary: #1d6cb5;
  --primary-deep: #0255a1;
  --primary-foreground: #ffffff;
  --background: #f8fafd;
  --foreground: #0e1624;
  --card: #ffffff;
  --navy: #0d1a32;
  --navy-foreground: #eef2f9;
  --secondary: #e2f0ff;
  --secondary-foreground: #0255a1;
  --muted-bg: #edf4fc;
  --muted-foreground: #5d646f;
  --border: #dbe2e9;
  --gradient-primary: linear-gradient(135deg, #1d6cb5, #0255a1);
  --gradient-overlay: linear-gradient(90deg, rgba(13, 26, 50, 0.88) 0%, rgba(13, 26, 50, 0.55) 55%, rgba(13, 26, 50, 0.1) 100%);
  --shadow-card: 0 10px 30px -12px rgba(20, 45, 90, 0.25);
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --font-display: "Sora", system-ui, sans-serif;
  --font-sans: "Manrope", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font-sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
p, figure, blockquote { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; background: none; color: inherit; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }

.icon { width: 1em; height: 1em; display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; transition: transform .2s; }
.icon-star { fill: var(--primary); stroke: var(--primary); }
.muted { color: var(--muted-foreground); }
.small { font-size: .875rem; }
.bold { font-weight: 700; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1rem; }
.section { padding-block: 5rem; }
.section-muted { background: var(--muted-bg); }
.center { text-align: center; margin-inline: auto; max-width: 42rem; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.mt-2 { margin-top: .5rem; } .mt-3 { margin-top: .75rem; } .mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; } .mt-12 { margin-top: 3rem; }
.narrow { max-width: 48rem; margin-inline: auto; }
.two-col { display: grid; gap: 3rem; align-items: center; }
.two-col.top { align-items: start; }
@media (min-width: 1024px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* ---------- Section titles ---------- */
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--primary); }
.section-title h2 { font-size: 1.9rem; font-weight: 700; margin-top: .5rem; }
.section-title .lead { margin-top: .75rem; color: var(--muted-foreground); }
@media (min-width: 768px) { .section-title h2 { font-size: 2.25rem; } }

/* ---------- Buttons ---------- */
.btn { display: inline-block; border-radius: 9999px; padding: .75rem 1.5rem; font-weight: 700; text-align: center; transition: filter .2s, background-color .2s, color .2s, border-color .2s; }
.btn-primary { background-image: var(--gradient-primary); color: var(--primary-foreground); box-shadow: var(--shadow-card); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-outline-light { border: 1px solid rgba(238, 242, 249, .4); color: var(--navy-foreground); }
.btn-outline-light:hover { background: rgba(238, 242, 249, .1); }
.btn-white { background: var(--card); color: var(--primary); }
.text-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--primary); }
.badge { display: inline-block; width: fit-content; border-radius: 9999px; background: var(--primary); padding: .25rem .75rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary-foreground); }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-2xl); box-shadow: var(--shadow-card); overflow: hidden; }
.card-body { padding: 1.5rem; }
.card h3, .card h2 { font-weight: 700; }
.card-img { width: 100%; height: 11rem; object-fit: cover; transition: transform .5s; }
.card-img.tall { height: 14rem; }
a.card:hover .card-img { transform: scale(1.05); }
a.card:hover .card-title { color: var(--primary); }
.card-title { transition: color .2s; }
.lift { transition: transform .25s, border-color .25s; }
.lift:hover { transform: translateY(-4px); border-color: var(--primary); }

/* ---------- Announcement bar ---------- */
.topbar { overflow: hidden; background: var(--navy); color: var(--navy-foreground); }
.topbar-track { display: flex; width: max-content; gap: 3rem; padding-block: .5rem; font-size: .75rem; font-weight: 500; animation: marquee 30s linear infinite; }
.topbar-track span { display: flex; align-items: center; gap: .5rem; white-space: nowrap; }
.topbar-track span::before { content: ""; width: .375rem; height: .375rem; border-radius: 9999px; background: var(--primary); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.header { background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: .75rem; }
.logo img { height: 2.5rem; width: auto; }
@media (min-width: 768px) { .logo img { height: 3rem; } }

.main-nav { display: none; align-items: center; gap: 2rem; }
.nav-link { font-size: .875rem; font-weight: 600; color: rgba(14, 22, 36, .8); display: flex; align-items: center; gap: .25rem; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.has-dropdown { position: relative; }
.dropdown { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); width: 16rem; padding-top: .75rem; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; }
.dropdown-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: .5rem; box-shadow: var(--shadow-card); }
.dropdown-panel a { display: block; border-radius: .5rem; padding: .5rem .75rem; font-size: .875rem; font-weight: 500; }
.dropdown-panel a:hover { background: var(--secondary); color: var(--secondary-foreground); }
.header-cta { display: none; padding: .625rem 1.25rem; font-size: .875rem; }
.menu-toggle { border-radius: .5rem; padding: .5rem; margin-right: -.5rem; display: inline-flex; }
.menu-toggle .icon { width: 1.5rem; height: 1.5rem; }
@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .header-cta { display: inline-block; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* Mobile (hamburger) menu */
.mobile-menu { display: none; border-top: 1px solid var(--border); background: var(--card); padding: 1rem; }
.mobile-menu.open { display: flex; flex-direction: column; gap: .25rem; }
.mobile-menu > a:not(.btn), .submenu-toggle, .mobile-submenu a { display: flex; align-items: center; justify-content: space-between; width: 100%; border-radius: .5rem; padding: .625rem .5rem; font-size: .875rem; font-weight: 600; text-align: left; color: rgba(14, 22, 36, .8); }
.mobile-menu a:not(.btn):hover, .submenu-toggle:hover { color: var(--primary); }
.mobile-submenu { display: none; margin-left: .75rem; border-left: 1px solid var(--border); padding-left: .75rem; flex-direction: column; gap: .25rem; }
.mobile-submenu.open { display: flex; }
.mobile-menu .btn { margin-top: .75rem; font-size: .875rem; }
.mobile-contact { margin-top: .75rem; border-top: 1px solid var(--border); padding-top: .75rem; display: flex; flex-direction: column; gap: .375rem; }
.mobile-contact a { display: flex; align-items: center; gap: .5rem; padding: .25rem 0; font-size: .75rem; color: var(--muted-foreground); }

/* ---------- Home slider ---------- */
.slider { position: relative; height: 78vh; min-height: 520px; overflow: hidden; background: var(--navy); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s; pointer-events: none; }
.slide.active { opacity: 1; pointer-events: auto; }
.slide > img { height: 100%; width: 100%; object-fit: cover; }
.overlay { position: absolute; inset: 0; background-image: var(--gradient-overlay); }
.slide-content { position: absolute; inset: 0; display: flex; align-items: center; color: var(--navy-foreground); }
.slide-content h1 { margin-top: 1.25rem; max-width: 42rem; font-size: 2.25rem; font-weight: 800; line-height: 1.15; }
.slide-content p { margin-top: 1.25rem; max-width: 36rem; font-size: 1.125rem; opacity: .85; }
.slide-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.slider-controls { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: .75rem; z-index: 2; }
.slider-arrow { display: flex; border-radius: 9999px; background: rgba(255, 255, 255, .2); padding: .5rem; color: var(--navy-foreground); }
.slider-arrow:hover { background: var(--primary); }
.slider-arrow .icon { width: 1.25rem; height: 1.25rem; }
.slider-dot { width: .5rem; height: .5rem; border-radius: 9999px; background: rgba(238, 242, 249, .6); transition: width .3s, background .3s; }
.slider-dot.active { width: 2rem; background: var(--primary); }
@media (min-width: 768px) { .slide-content h1 { font-size: 3.75rem; } }

/* ---------- Inner page banner ---------- */
.page-hero { position: relative; overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; }
.page-hero-inner { position: relative; padding-block: 6rem; color: var(--navy-foreground); }
.page-hero-inner h1 { margin-top: 1rem; max-width: 42rem; font-size: 2.25rem; font-weight: 700; }
.page-hero-inner p { margin-top: 1rem; max-width: 36rem; font-size: 1.125rem; opacity: .85; }
@media (min-width: 768px) { .page-hero-inner { padding-block: 8rem; } .page-hero-inner h1 { font-size: 3rem; } }

/* ---------- Service page banner ---------- */
.service-hero { background-image: var(--gradient-primary); color: var(--primary-foreground); }
.service-hero-inner { display: grid; align-items: center; gap: 2.5rem; padding-block: 4rem; }
.service-hero .eyebrow { color: var(--primary-foreground); opacity: .8; }
.service-hero h1 { margin-top: .75rem; font-size: 2.25rem; font-weight: 800; }
.service-hero p { margin-top: 1rem; max-width: 32rem; font-size: 1.125rem; opacity: .9; }
.service-hero img { height: 20rem; width: 100%; border-radius: var(--radius-2xl); object-fit: cover; box-shadow: var(--shadow-card); }
@media (min-width: 1024px) { .service-hero-inner { grid-template-columns: 1fr 1fr; } .service-hero h1 { font-size: 3rem; } }

/* ---------- Home blocks ---------- */
.pillar { border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--card); padding: 1.25rem; box-shadow: var(--shadow-card); }
.pillar .icon { width: 1.5rem; height: 1.5rem; color: var(--primary); }
.pillar h3 { margin-top: .75rem; font-weight: 700; font-size: 1rem; }
.pillar p { margin-top: .25rem; font-size: .875rem; color: var(--muted-foreground); }

.photo-wrap { position: relative; }
.photo-wrap > img { width: 100%; border-radius: var(--radius-2xl); object-fit: cover; box-shadow: var(--shadow-card); }
.exp-badge { position: absolute; bottom: -1.5rem; left: -1.5rem; border-radius: var(--radius-2xl); background-image: var(--gradient-primary); padding: 1.5rem; color: var(--primary-foreground); box-shadow: var(--shadow-card); }
.exp-badge strong { display: block; font-family: var(--font-display); font-size: 1.875rem; font-weight: 800; line-height: 1.1; }
.exp-badge span { font-size: .875rem; }

.why-card { border: 1px solid var(--border); border-radius: var(--radius-2xl); background: var(--card); padding: 1.5rem; text-align: center; }
.why-icon { display: flex; width: 3.5rem; height: 3.5rem; margin-inline: auto; align-items: center; justify-content: center; border-radius: 9999px; background: var(--secondary); }
.why-icon .icon { width: 1.75rem; height: 1.75rem; color: var(--primary); }
.why-card h3 { margin-top: 1rem; font-weight: 700; font-size: 1rem; }
.why-card p { margin-top: .5rem; font-size: .875rem; color: var(--muted-foreground); }

.zigzag { margin-top: 3.5rem; display: grid; gap: 4rem; }
.zigzag-row { display: grid; gap: 2.5rem; align-items: center; }
.zigzag-row img { height: 18rem; width: 100%; border-radius: var(--radius-2xl); object-fit: cover; box-shadow: var(--shadow-card); }
.step-no { display: block; font-family: var(--font-display); font-size: 3.75rem; font-weight: 800; line-height: 1; color: rgba(29, 108, 181, .2); }
.zigzag-row h3 { margin-top: -.75rem; font-size: 1.5rem; font-weight: 700; }
.zigzag-row p { margin-top: .75rem; color: var(--muted-foreground); }
@media (min-width: 768px) {
  .zigzag-row { grid-template-columns: 1fr 1fr; }
  .zigzag-row.reverse .zz-media { order: 2; }
  .zigzag-row img { height: 20rem; }
}

.quote-card { border: 1px solid var(--border); border-radius: var(--radius-2xl); background: var(--card); padding: 1.5rem; box-shadow: var(--shadow-card); }
.quote-card > .icon { width: 2rem; height: 2rem; color: var(--primary); }
.stars { display: flex; gap: .25rem; margin-top: .75rem; }
.stars .icon { width: 1rem; height: 1rem; }
.quote-card blockquote { margin-top: .75rem; font-size: .875rem; color: var(--muted-foreground); }
.quote-card figcaption { margin-top: 1.25rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.quote-card figcaption small { display: block; font-size: .75rem; color: var(--muted-foreground); }

.stats-band { background: var(--navy); color: var(--navy-foreground); padding-block: 5rem; }
.stats-band h2 { margin-top: .5rem; font-size: 1.9rem; font-weight: 700; }
.stats-grid { margin-top: 3rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.stat { border: 1px solid rgba(238, 242, 249, .1); border-radius: var(--radius-2xl); padding: 1.5rem; text-align: center; }
.stat strong { display: block; font-family: var(--font-display); font-size: 2.25rem; font-weight: 800; color: var(--primary); }
.stat span { display: block; margin-top: .5rem; font-size: .875rem; opacity: .8; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } .stats-band h2 { font-size: 2.25rem; } }

/* ---------- About ---------- */
.value-card { border: 1px solid var(--border); border-top: 4px solid var(--primary); border-radius: var(--radius-2xl); background: var(--card); padding: 2rem; box-shadow: var(--shadow-card); }
.value-card .icon { width: 2rem; height: 2rem; color: var(--primary); }
.value-card h3 { margin-top: 1rem; font-size: 1.25rem; font-weight: 700; }
.value-card p { margin-top: .5rem; color: var(--muted-foreground); }
.team-card { border: 1px solid var(--border); border-radius: var(--radius-2xl); background: var(--card); padding: 1.5rem; text-align: center; }
.avatar { display: flex; width: 5rem; height: 5rem; margin-inline: auto; align-items: center; justify-content: center; border-radius: 9999px; background-image: var(--gradient-primary); color: var(--primary-foreground); font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.team-card .name { margin-top: 1rem; font-weight: 700; }
.team-card .role { font-size: .875rem; color: var(--muted-foreground); }

/* ---------- Blog ---------- */
.post-meta { display: flex; align-items: center; gap: .75rem; font-size: .75rem; }
.tag { border-radius: 9999px; background: var(--secondary); color: var(--secondary-foreground); padding: .25rem .75rem; font-weight: 700; }

/* ---------- Service details ---------- */
.offering { border: 1px solid var(--border); border-bottom: 4px solid var(--primary); border-radius: var(--radius-2xl); background: var(--card); padding: 1.5rem; box-shadow: var(--shadow-card); }
.offering .icon { width: 1.75rem; height: 1.75rem; color: var(--primary); }
.offering h3 { margin-top: 1rem; font-weight: 700; font-size: 1rem; }
.offering p { margin-top: .5rem; font-size: .875rem; color: var(--muted-foreground); }
.step-card { border-radius: var(--radius-2xl); background: var(--card); padding: 1.5rem; text-align: center; box-shadow: var(--shadow-card); }
.step-num { display: flex; width: 3rem; height: 3rem; margin-inline: auto; align-items: center; justify-content: center; border-radius: 9999px; background: var(--primary); color: var(--primary-foreground); font-weight: 700; }
.step-card p { margin-top: 1rem; font-weight: 600; }
.chips { margin-top: 3rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.chip { border: 1px solid var(--border); border-radius: 9999px; padding: .5rem 1rem; font-size: .875rem; font-weight: 600; transition: color .2s, border-color .2s; }
.chip:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: .75rem; max-width: 48rem; margin-inline: auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--card); }
.faq-question { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; text-align: left; font-weight: 600; }
.faq-question .icon { width: 1.25rem; height: 1.25rem; color: var(--primary); }
.faq-answer { display: none; padding: 0 1.25rem 1.25rem; font-size: .875rem; color: var(--muted-foreground); }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-question .icon { transform: rotate(180deg); }

/* ---------- Contact ---------- */
.contact-card { border: 1px solid var(--border); border-radius: var(--radius-2xl); background: var(--card); padding: 1.5rem; box-shadow: var(--shadow-card); }
.contact-card .icon { width: 1.5rem; height: 1.5rem; color: var(--primary); }
.contact-card .label { margin-top: .75rem; font-weight: 700; }
.contact-card p:last-child { margin-top: .25rem; font-size: .875rem; color: var(--muted-foreground); }
.map { margin-top: 3rem; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-2xl); box-shadow: var(--shadow-card); }
.map iframe { display: block; width: 100%; height: 24rem; border: 0; }

/* ---------- Booking form ---------- */
.form-card { display: grid; gap: 1rem; border: 1px solid var(--border); border-radius: var(--radius-2xl); background: var(--card); padding: 1.5rem; box-shadow: var(--shadow-card); }
.form-card h3 { font-size: 1.5rem; font-weight: 700; }
.form-row { display: grid; gap: 1rem; }
.input { width: 100%; border: 1px solid var(--border); border-radius: .5rem; background: var(--background); padding: .75rem 1rem; font-size: .875rem; outline: none; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29, 108, 181, .2); }
textarea.input { resize: vertical; }
@media (min-width: 768px) { .form-card { padding: 2rem; } .form-row { grid-template-columns: 1fr 1fr; } }

.toast-wrap { position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: .5rem; width: max-content; max-width: calc(100vw - 2rem); }
.toast { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: .5rem; padding: .75rem 1.25rem; box-shadow: var(--shadow-card); font-size: .875rem; font-weight: 600; animation: toast-in .3s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.footer-spacer { height: 6rem; }
.footer { background: var(--navy); color: var(--navy-foreground); }
.footer-cta { transform: translateY(-50%); display: flex; flex-direction: column; gap: 1rem; border-radius: var(--radius-2xl); background-image: var(--gradient-primary); padding: 2rem; color: var(--primary-foreground); box-shadow: var(--shadow-card); }
.footer-cta h3 { font-size: 1.5rem; font-weight: 700; }
.footer-cta p { margin-top: .25rem; opacity: .9; }
.footer-cta .btn { align-self: flex-start; }
@media (min-width: 768px) { .footer-cta { flex-direction: row; align-items: center; justify-content: space-between; } .footer-cta .btn { align-self: center; } }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-logo { height: 3rem; width: auto; }
.footer-about { margin-top: 1rem; font-size: .875rem; opacity: .75; }
.socials { display: flex; gap: .75rem; margin-top: 1rem; }
.socials a { display: flex; border-radius: 9999px; background: rgba(238, 242, 249, .1); padding: .5rem; }
.socials a:hover { background: var(--primary); }
.footer h4 { margin-bottom: 1rem; font-weight: 700; }
.footer-links { display: grid; gap: .5rem; font-size: .875rem; opacity: .8; }
.footer-links a:hover { color: var(--primary); }
.footer-contact { display: grid; gap: .75rem; font-size: .875rem; opacity: .8; }
.footer-contact li { display: flex; gap: .5rem; }
.footer-contact .icon { margin-top: .25rem; color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(238, 242, 249, .1); padding-block: 1.25rem; text-align: center; font-size: .75rem; opacity: .6; }

/* ---------- 404 ---------- */
.notfound { display: flex; min-height: 60vh; align-items: center; justify-content: center; text-align: center; padding: 2rem 1rem; }
.notfound .code { font-family: var(--font-display); font-size: 4.5rem; font-weight: 700; color: var(--primary); }
.notfound h2 { margin-top: 1rem; font-size: 1.25rem; }
.notfound p { margin-top: .5rem; font-size: .875rem; color: var(--muted-foreground); }
.notfound .btn { margin-top: 1.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding-block: 3.5rem; }
  .exp-badge { left: .75rem; bottom: -1.25rem; }
}
