/* ===========================================================
   Draft & File — Chartered Accountants & Company Secretaries
   =========================================================== */

:root {
  --navy-900: #0c1e3e;
  --navy-800: #142c54;
  --navy-700: #1c3a6b;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-50: #eef4ff;
  --gold-500: #b88e3c;
  --gold-400: #d4b877;
  --gray-900: #101828;
  --gray-700: #344054;
  --gray-600: #4b5563;
  --gray-400: #98a2b3;
  --gray-200: #e4e7ec;
  --gray-100: #f2f4f7;
  --white: #ffffff;

  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 8px 24px rgba(8, 21, 46, 0.10);
  --shadow-lg: 0 20px 40px rgba(8, 21, 46, 0.16);
  --container: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

h1, h2, h3, h4 {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  color: var(--navy-900);
  font-weight: 600;
  line-height: 1.25;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold-500);
  display: inline-block;
}

.section { padding: 88px 0; }
.section-alt { background: var(--blue-50); position: relative; overflow: hidden; }
.section-alt::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.08), transparent 70%);
  top: -180px; right: -120px;
}
.section-alt::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,75,0.10), transparent 70%);
  bottom: -140px; left: -100px;
}
.section-alt .container { position: relative; z-index: 1; }
.section-navy { background: var(--navy-900); color: var(--gray-400); }
.section-navy h2, .section-navy h3 { color: var(--white); }

.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { margin-top: 14px; color: var(--gray-600); font-size: 1.02rem; }
.section-navy .section-head p { color: var(--gray-400); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--blue-600); color: var(--white); }
.btn-primary:hover { background: var(--navy-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-navy { background: var(--navy-900); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ===================== Header ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gray-200);
}
.topbar {
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
  color: var(--gray-400);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.topbar-links { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-links a:hover { color: var(--white); }
.topbar-social { display: flex; gap: 14px; }
.topbar-social a { color: var(--gray-400); }
.topbar-social a:hover { color: var(--gold-500); }

.navbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy-900); }
.brand-logo { height: 46px; width: auto; flex-shrink: 0; }
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-600), var(--navy-700));
  display: flex; align-items: center; justify-content: center;
  font-family: "Lora", serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  flex-shrink: 0;
}
.brand-text .name { font-family: "Lora", serif; font-size: 1.25rem; font-weight: 700; line-height: 1.1; color: var(--navy-900); }
.brand-text .tag { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-500); }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  color: var(--gray-700);
  font-size: 0.94rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy-900); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold-500);
}
.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-900); border-radius: 2px; }

/* ===================== Hero ===================== */
.hero {
  position: relative;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(59,130,246,0.45), transparent 60%), linear-gradient(160deg, var(--navy-800), var(--navy-700) 75%);
  color: var(--white);
  padding: 110px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 75%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 4vw, 3.1rem); max-width: 620px; }
.hero h1 span { color: var(--gold-500); }
.hero p.lead { margin-top: 20px; color: var(--gray-400); font-size: 1.08rem; max-width: 520px; }
.hero-cta { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }

.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 56px; max-width: 520px; }
.hero-stats div { border-left: 2px solid var(--gold-500); padding-left: 14px; }
.hero-stats .num { font-family: "Lora", serif; font-size: 1.7rem; color: var(--white); font-weight: 700; }
.hero-stats .lbl { font-size: 0.82rem; color: var(--gray-400); }

.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px;
  color: var(--gray-900);
  box-shadow: var(--shadow-lg);
}
.hero-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.hero-card p.sub { color: var(--gray-600); font-size: 0.9rem; margin-bottom: 22px; }
.hero-card .field { margin-bottom: 14px; }
.hero-card label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.hero-card input, .hero-card select, .hero-card textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--gray-200); border-radius: 8px;
  font-family: inherit; font-size: 0.92rem; color: var(--gray-900); background: var(--gray-100);
}
.hero-card input:focus, .hero-card select:focus, .hero-card textarea:focus { outline: 2px solid var(--blue-500); background: var(--white); }

/* Trust strip */
.trust-strip { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 26px 0; }
.trust-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.trust-strip p { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-400); font-weight: 700; }
.trust-badges { display: flex; gap: 30px; flex-wrap: wrap; }
.trust-badges span { font-family: "Lora", serif; font-weight: 700; color: var(--navy-800); font-size: 1.02rem; opacity: 0.85; }

/* ===================== Cards / Grids ===================== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.icon-box {
  width: 54px; height: 54px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--blue-50), #dbe8ff);
  color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.icon-box svg { width: 26px; height: 26px; }

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--gold-500));
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease;
}
.card:hover::before { transform: scaleX(1); }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.card p { color: var(--gray-600); font-size: 0.95rem; }
.card .link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; font-size: 0.88rem; color: var(--blue-600); }

.service-card { position: relative; }
.service-card .num {
  position: absolute; top: 28px; right: 28px;
  font-family: "Lora", serif; font-size: 1.6rem; font-weight: 700; color: var(--gray-200);
}

/* Why choose us / feature list */
.feature-row { display: flex; gap: 18px; margin-bottom: 30px; }
.feature-row .icon-box { flex-shrink: 0; margin-bottom: 0; width: 46px; height: 46px; border-radius: 10px; }
.feature-row h4 { font-size: 1.02rem; margin-bottom: 6px; }
.feature-row p { color: var(--gray-600); font-size: 0.92rem; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; }
.step { text-align: center; padding: 0 10px; }
.step .step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy-900); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: "Lora", serif; font-weight: 700; font-size: 1.1rem;
  margin: 0 auto 18px;
  box-shadow: 0 0 0 6px var(--blue-50);
}
.step h4 { font-size: 1rem; margin-bottom: 8px; }
.step p { font-size: 0.88rem; color: var(--gray-600); }

/* Testimonials */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.testimonial-card .stars { color: var(--gold-500); font-size: 0.95rem; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card p.quote { color: var(--gray-700); font-size: 0.96rem; font-style: italic; margin-bottom: 22px; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.avatar-circle {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-800); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: "Lora", serif; font-weight: 700; font-size: 0.95rem;
}
.testimonial-person .who strong { display: block; font-size: 0.9rem; color: var(--navy-900); }
.testimonial-person .who span { font-size: 0.8rem; color: var(--gray-600); }

/* Team */
.team-card { text-align: center; }
.team-photo {
  width: 100%; aspect-ratio: 1/1; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--blue-50), var(--gray-200));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; overflow: hidden;
}
.team-photo svg { width: 46%; color: var(--navy-700); opacity: 0.55; }
.team-card h3 { font-size: 1.08rem; margin-bottom: 4px; }
.team-card .role { color: var(--blue-600); font-weight: 600; font-size: 0.86rem; margin-bottom: 12px; }
.team-card p.bio { font-size: 0.88rem; color: var(--gray-600); margin-bottom: 16px; }
.team-social { display: flex; justify-content: center; gap: 12px; }
.team-social a {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center; color: var(--gray-600);
}
.team-social a:hover { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }

/* Credentials / badges row */
.credential-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.credential-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: 999px;
  padding: 10px 18px; font-size: 0.86rem; font-weight: 600; color: var(--navy-800);
}
.credential-pill svg { width: 16px; height: 16px; color: var(--gold-500); }

/* Timeline (about) */
.timeline { position: relative; padding-left: 30px; border-left: 2px solid var(--gray-200); }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute; left: -37px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--blue-600); border: 3px solid var(--blue-50);
}
.timeline-item .year { font-weight: 700; color: var(--blue-600); font-size: 0.85rem; margin-bottom: 4px; }
.timeline-item h4 { font-size: 1rem; margin-bottom: 6px; }
.timeline-item p { font-size: 0.9rem; color: var(--gray-600); }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--blue-600), var(--blue-400));
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(500px 240px at 90% 0%, rgba(255,255,255,0.22), transparent 65%);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.85); }

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(120deg, var(--navy-800), var(--blue-600) 160%);
  color: var(--white);
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 80%);
}
.page-hero .container { position: relative; }
.breadcrumb { font-size: 0.85rem; color: var(--gray-400); margin-bottom: 14px; }
.breadcrumb a { color: var(--gray-400); }
.breadcrumb a:hover { color: var(--white); }
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.5rem); max-width: 640px; }
.page-hero p { color: var(--gray-400); margin-top: 12px; max-width: 560px; }

/* Service detail tabs */
.service-tabs { display: flex; gap: 12px; margin-bottom: 44px; flex-wrap: wrap; }
.service-tab {
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--gray-200);
  font-weight: 600; font-size: 0.9rem; color: var(--gray-700); background: var(--white);
}
.service-tab.active, .service-tab:hover { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; }
.contact-info-card { background: linear-gradient(160deg, var(--navy-800), var(--blue-600) 150%); color: var(--white); border-radius: var(--radius-lg); padding: 40px; }
.contact-info-card h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 8px; }
.contact-info-card p.sub { color: var(--gray-400); font-size: 0.92rem; margin-bottom: 30px; }
.contact-info-row { display: flex; gap: 14px; margin-bottom: 24px; }
.contact-info-row .icon-box { background: rgba(255,255,255,0.08); color: var(--gold-500); width: 44px; height: 44px; margin-bottom: 0; flex-shrink: 0; }
.contact-info-row h5 { color: var(--white); font-size: 0.92rem; margin-bottom: 4px; }
.contact-info-row p { color: var(--gray-400); font-size: 0.88rem; }
.contact-form-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--gray-700); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gray-200); border-radius: 8px;
  font-family: inherit; font-size: 0.94rem; color: var(--gray-900); background: var(--gray-100);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue-500); background: var(--white); }
.field.full { grid-column: 1 / -1; }
.form-note { font-size: 0.8rem; color: var(--gray-400); margin-top: 14px; }
.form-success {
  display: none; align-items: center; gap: 12px;
  background: #ecfdf3; border: 1px solid #abefc6; color: #067647;
  padding: 14px 18px; border-radius: 10px; font-size: 0.9rem; font-weight: 600; margin-bottom: 18px;
}
.form-success.show { display: flex; }

.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-200); margin-top: 40px; height: 340px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--gray-200); padding: 22px 0; }
.faq-q { display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 20px; }
.faq-q h4 { font-size: 1rem; color: var(--navy-900); }
.faq-q .plus { font-size: 1.3rem; color: var(--blue-600); flex-shrink: 0; transition: transform 0.25s ease; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding-top: 14px; color: var(--gray-600); font-size: 0.92rem; }
.faq-item.open .faq-a { max-height: 200px; }

/* Footer */
.site-footer { background: var(--navy-900); color: var(--gray-400); padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand p { font-size: 0.9rem; margin: 16px 0 20px; max-width: 280px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; color: var(--gray-400);
}
.footer-social a:hover { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-500); }
.site-footer h5 { color: var(--white); font-size: 0.92rem; margin-bottom: 20px; letter-spacing: 0.03em; }
.footer-links li { margin-bottom: 12px; font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 16px; font-size: 0.88rem; }
.footer-contact svg { width: 17px; height: 17px; color: var(--gold-500); flex-shrink: 0; margin-top: 2px; }
.footer-bottom { display: flex; justify-content: space-between; padding: 22px 0; font-size: 0.82rem; flex-wrap: wrap; gap: 10px; }
.footer-bottom a:hover { color: var(--white); }

/* Utility */
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }

/* ===================== Motion / Animation System ===================== */
body { animation: pageFade 0.6s ease forwards; }
@keyframes pageFade { from { opacity: 0; } to { opacity: 1; } }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(.16,.84,.44,1), transform 0.8s cubic-bezier(.16,.84,.44,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.reveal-left { opacity: 0; transform: translateX(-36px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.16,.84,.44,1); }
.reveal-left.in-view { opacity: 1; transform: translateX(0); }

.reveal-right { opacity: 0; transform: translateX(36px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.16,.84,.44,1); }
.reveal-right.in-view { opacity: 1; transform: translateX(0); }

.reveal-scale { opacity: 0; transform: scale(0.9); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.34,1.56,.64,1); }
.reveal-scale.in-view { opacity: 1; transform: scale(1); }

.grid-3 > .reveal:nth-child(1), .grid-4 > .reveal:nth-child(1), .steps > .reveal:nth-child(1) { transition-delay: .05s; }
.grid-3 > .reveal:nth-child(2), .grid-4 > .reveal:nth-child(2), .steps > .reveal:nth-child(2) { transition-delay: .15s; }
.grid-3 > .reveal:nth-child(3), .grid-4 > .reveal:nth-child(3), .steps > .reveal:nth-child(3) { transition-delay: .25s; }
.grid-3 > .reveal:nth-child(4), .grid-4 > .reveal:nth-child(4), .steps > .reveal:nth-child(4) { transition-delay: .35s; }
.grid-3 > .reveal:nth-child(5) { transition-delay: .45s; }
.grid-3 > .reveal:nth-child(6) { transition-delay: .55s; }

/* Floating gradient blobs (hero decoration) */
.blob { position: absolute; border-radius: 50%; filter: blur(70px); z-index: 1; pointer-events: none; animation: floatBlob 13s ease-in-out infinite; }
.blob-1 { width: 360px; height: 360px; background: radial-gradient(circle, rgba(59,130,246,0.65), transparent 70%); top: -100px; right: 6%; }
.blob-2 { width: 280px; height: 280px; background: radial-gradient(circle, rgba(201,162,75,0.55), transparent 70%); bottom: -60px; right: 30%; animation-delay: -5s; animation-duration: 16s; }
.blob-3 { width: 220px; height: 220px; background: radial-gradient(circle, rgba(59,130,246,0.4), transparent 70%); top: 20%; left: -60px; animation-delay: -8s; animation-duration: 15s; }
@keyframes floatBlob {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-24px, 26px) scale(1.08); }
}

/* Hero background image layer */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(12,32,68,0.92) 20%, rgba(15,42,92,0.78) 55%, rgba(37,99,235,0.42));
}
.hero .container { z-index: 2; }

/* Button shine sweep */
.btn { position: relative; overflow: hidden; }
.btn::before {
  content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg); transition: left 0.65s ease; pointer-events: none;
}
.btn:hover::before { left: 130%; }

/* Nav link underline on hover */
.nav-links a { overflow: hidden; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--gold-500); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* Card + icon hover motion */
.icon-box { transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), background 0.3s ease, color 0.3s ease; }
.card:hover .icon-box { transform: scale(1.1) rotate(-6deg); background: var(--navy-900); color: var(--white); }
.card .link { transition: gap 0.25s ease; }
.card:hover .link { gap: 11px; }

/* Testimonial lift */
.testimonial-card { transition: transform 0.35s ease, box-shadow 0.35s ease; }
.testimonial-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }

/* Step number pulse on hover */
.step .step-num { transition: transform 0.35s ease, box-shadow 0.35s ease; }
.step:hover .step-num { transform: scale(1.1); box-shadow: 0 0 0 8px var(--blue-50); }

/* Photo frames (About / Team) */
.img-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.img-frame img { width: 100%; display: block; aspect-ratio: 4/5; object-fit: cover; transition: transform 0.6s ease; }
.img-frame:hover img { transform: scale(1.05); }
.floating-badge {
  position: absolute; bottom: -22px; left: -22px;
  background: var(--white); border-radius: var(--radius-md); padding: 16px 20px;
  box-shadow: var(--shadow-md); display: flex; gap: 12px; align-items: center;
  animation: floatBadge 4.5s ease-in-out infinite;
}
.floating-badge .icon-box { margin-bottom: 0; flex-shrink: 0; }
.floating-badge strong { display: block; font-size: 1.05rem; color: var(--navy-900); font-family: "Lora", serif; }
.floating-badge span { font-size: 0.78rem; color: var(--gray-600); }
@keyframes floatBadge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.about-photo-col { margin-left: 22px; }

.team-photo { position: relative; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.team-card:hover .team-photo img { transform: scale(1.08); }

/* Gradient accent text */
.text-gradient {
  background: linear-gradient(100deg, var(--gold-500), var(--gold-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===================== Blog ===================== */
.blog-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  overflow: hidden; transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex; flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); }
.blog-card-img { aspect-ratio: 16/10; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.blog-tag {
  align-self: flex-start; background: var(--blue-50); color: var(--blue-600);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.blog-card-body h3 { font-size: 1.1rem; margin-bottom: 10px; }
.blog-card-body h3 a { transition: color 0.2s ease; }
.blog-card-body h3 a:hover { color: var(--blue-600); }
.blog-card-body p { color: var(--gray-600); font-size: 0.92rem; flex: 1; }
.blog-meta { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; color: var(--gray-400); margin-top: 18px; }
.blog-meta span::before { content: "•"; margin-right: 10px; color: var(--gray-200); }
.blog-meta span:first-child::before { content: none; margin-right: 0; }

.blog-hero-card { grid-column: 1 / -1; }
.blog-hero-card .blog-card-img { aspect-ratio: 21/9; }
@media (min-width: 720px) {
  .blog-hero-card { display: grid; grid-template-columns: 1.1fr 0.9fr; }
  .blog-hero-card .blog-card-img { aspect-ratio: auto; height: 100%; }
}

/* Article prose */
.article-prose { max-width: 760px; margin: 0 auto; }
.article-prose h2 { font-size: 1.4rem; margin: 40px 0 16px; }
.article-prose h3 { font-size: 1.15rem; margin: 28px 0 12px; }
.article-prose p { color: var(--gray-700); font-size: 1.02rem; line-height: 1.75; margin-bottom: 18px; }
.article-prose ul, .article-prose ol { margin: 0 0 20px 22px; color: var(--gray-700); }
.article-prose li { margin-bottom: 10px; line-height: 1.6; }
.article-prose strong { color: var(--navy-900); }
.article-prose blockquote {
  border-left: 3px solid var(--gold-500); background: var(--blue-50);
  padding: 18px 22px; border-radius: 0 10px 10px 0; margin: 24px 0; font-style: italic; color: var(--navy-800);
}
.article-cover { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 36px; }
.article-cover img { width: 100%; aspect-ratio: 21/9; object-fit: cover; display: block; }
.article-meta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.author-box { display: flex; align-items: center; gap: 12px; }
.author-box .who strong { display: block; color: var(--white); font-size: 0.92rem; }
.author-box .who span { font-size: 0.78rem; color: var(--gray-400); }
.article-tags { display: flex; gap: 10px; flex-wrap: wrap; margin: 28px 0; }
.article-tags a {
  font-size: 0.8rem; font-weight: 600; padding: 6px 14px; border-radius: 999px;
  background: var(--blue-50); color: var(--blue-600);
}
.article-tags a:hover { background: var(--blue-600); color: var(--white); }
.article-cta { background: var(--blue-50); border-radius: var(--radius-lg); padding: 32px; text-align: center; margin: 40px 0; }
.article-cta h3 { margin-bottom: 10px; }
.article-cta p { color: var(--gray-600); margin-bottom: 20px; }
.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--gray-200); }
.share-row span { font-size: 0.85rem; font-weight: 600; color: var(--gray-600); }
.share-row a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center; color: var(--gray-600); font-size: 0.8rem; font-weight: 700;
}
.share-row a:hover { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }

/* Newsletter box */
.newsletter-box {
  background: linear-gradient(120deg, var(--navy-800), var(--blue-600));
  border-radius: var(--radius-lg); padding: 48px; text-align: center; color: var(--white);
}
.newsletter-box h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 10px; }
.newsletter-box p { color: rgba(255,255,255,0.8); margin-bottom: 24px; max-width: 480px; margin-left: auto; margin-right: auto; }
.newsletter-form { display: flex; gap: 12px; max-width: 440px; margin: 0 auto; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1; min-width: 200px; padding: 13px 16px; border-radius: 8px; border: none;
  font-family: inherit; font-size: 0.92rem;
}

/* ===================== Responsive ===================== */

/* Tablets / small laptops */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-card { max-width: 480px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info-card { max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-photo-col { margin-left: 0; margin-top: 8px; }
  .blog-hero-card { grid-template-columns: 1fr; }
  .blog-hero-card .blog-card-img { aspect-ratio: 16/9; height: auto; }
}

/* Large phones / small tablets */
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-primary-desktop { display: none; }
  .nav-toggle { display: flex; }
  .topbar { display: none; }
  .nav-cta { gap: 10px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; padding: 36px 24px; }
  .newsletter-box { padding: 36px 24px; }
  .footer-grid { grid-template-columns: 1fr; padding-bottom: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 56px 0; }

  .hero { padding: 84px 0 64px; }
  .hero-card { padding: 26px; max-width: 100%; }
  .hero-stats { gap: 14px; margin-top: 40px; }
  .hero-stats .num { font-size: 1.4rem; }

  .page-hero { padding: 44px 0 38px; }
  .article-meta-row { gap: 10px; }

  .img-frame img { aspect-ratio: 4/3; }
  .floating-badge { left: -12px; bottom: -18px; padding: 12px 16px; gap: 10px; }
  .floating-badge strong { font-size: 0.92rem; }
  .floating-badge .icon-box { width: 40px; height: 40px; }

  .article-cover img { aspect-ratio: 4/3; }
  .credential-row { gap: 10px; }
  .credential-pill { padding: 8px 14px; font-size: 0.8rem; }

  .blob-1 { width: 220px; height: 220px; }
  .blob-2 { width: 180px; height: 180px; }
  .blob-3 { width: 140px; height: 140px; }

  .nav-links.mobile-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 18px;
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.75rem; }
  .page-hero h1 { font-size: 1.5rem; }
  .section-head h2 { font-size: 1.4rem; }
  .cta-banner h3, .newsletter-box h3 { font-size: 1.2rem; }
  .card, .blog-card-body, .contact-form-card, .contact-info-card, .testimonial-card { padding: 22px; }
  .article-cta { padding: 24px; }
  .credential-row { flex-direction: column; align-items: flex-start; }
  .floating-badge { position: static; margin-top: -30px; margin-left: 12px; width: fit-content; }
}
