/* ══════════════════════════════════════════
   Pinnacle Advisory — Main Stylesheet
   ══════════════════════════════════════════ */

/* ── CSS VARIABLES ── */
:root {
  --blue: #1a4f8a;
  --blue-mid: #2563ab;
  --blue-light: #e8f0fb;
  --white: #ffffff;
  --grey-light: #f2f4f7;
  --grey-mid: #d1d8e4;
  --text-dark: #1a1f2e;
  --text-mid: #4a5568;
  --text-light: #718096;
}

/* ── RESET ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--white);
  color: var(--text-dark);
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--blue);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.02em;
}
.nav-logo-text em {
  font-style: normal;
  color: var(--text-dark);
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue); }

/* ── SECTIONS general ── */
section { width: 100%; }
.stripe-white { background: var(--white); }
.stripe-grey  { background: var(--grey-light); }

.section-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 90px 5%;
}
.section-label {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 18px;
  line-height: 1.25;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 52px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 14px 34px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--blue);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  font-family: 'Source Sans 3', sans-serif;
}
.btn-primary:hover { background: #fff; color: var(--blue); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--blue);
  padding: 14px 34px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--blue);
  margin-left: 14px;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  font-family: 'Source Sans 3', sans-serif;
}
.btn-outline:hover { background: var(--blue); color: #fff; }

.btn-white {
  display: inline-block;
  background: #fff;
  color: var(--blue);
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid #fff;
  transition: background 0.2s, color 0.2s;
  font-family: 'Source Sans 3', sans-serif;
}
.btn-white:hover { background: transparent; color: #fff; }

/* ── HERO ── */
#home {
  background: var(--white);
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 5% 60px;
}
.hero-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
/* Default desktop order */
.hero-text   { order: 0; }
.hero-visual { order: 1; }
.hero-badge {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 2px;
  margin-bottom: 20px;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.hero-title em { color: var(--blue); font-style: normal; }
.hero-desc {
  font-size: 1.08rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-visual {
  background: var(--blue-light);
  border-left: 5px solid var(--blue);
  padding: 44px 40px;
}
.stat-row { display: flex; gap: 32px; }
.stat {
  flex: 1;
  padding: 22px 18px;
  background: var(--white);
  border-bottom: 3px solid var(--blue);
  text-align: center;
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--blue);
}
.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-top: 4px;
}
.hero-quote {
  margin-top: 28px;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-mid);
  border-left: 3px solid var(--blue);
  padding-left: 18px;
  line-height: 1.7;
}

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-text p { font-size: 1rem; color: var(--text-mid); line-height: 1.8; margin-bottom: 18px; }
.about-list { margin-top: 24px; list-style: none; }
.about-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--grey-mid);
  font-size: 0.97rem;
  color: var(--text-dark);
  display: flex; align-items: center; gap: 12px;
}
.about-list li::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}
.about-callout {
  background: var(--blue);
  color: #fff;
  padding: 44px 36px;
}
.about-callout h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.about-callout p { font-size: 0.97rem; line-height: 1.75; opacity: 0.9; margin-bottom: 28px; }

/* ── SERVICES ── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-top: 4px solid var(--blue);
  padding: 34px 28px;
  transition: box-shadow 0.2s;
}
.service-card:hover { box-shadow: 0 6px 28px rgba(26,79,138,0.1); }
.service-icon {
  width: 46px; height: 46px;
  background: var(--blue-light);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 24px; height: 24px; stroke: var(--blue); fill: none; stroke-width: 2; }
.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.service-card p { font-size: 0.93rem; color: var(--text-mid); line-height: 1.7; }

/* ── TEAM ── */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.team-card { text-align: center; }
.team-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--blue);
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #fff;
  font-weight: 700;
}
.team-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.team-card .role {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 10px;
}
.team-card p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.6; }

/* ── WHY US ── */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.why-items { display: flex; flex-direction: column; gap: 28px; }
.why-item { display: flex; gap: 18px; align-items: flex-start; }
.why-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  min-width: 48px;
  border-bottom: 3px solid var(--blue);
  padding-bottom: 2px;
}
.why-item h4 { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 5px; }
.why-item p { font-size: 0.93rem; color: var(--text-mid); line-height: 1.65; }
.why-visual {
  background: var(--blue-light);
  padding: 44px 36px;
}
.why-visual blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--text-dark);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 24px;
}
.why-visual cite {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  font-style: normal;
  font-weight: 700;
}

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; }
.contact-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 18px;
}
.contact-info p { font-size: 0.97rem; color: var(--text-mid); line-height: 1.75; margin-bottom: 30px; }
.contact-detail { display: flex; flex-direction: column; gap: 14px; }
.cd-item { display: flex; gap: 14px; align-items: center; }
.cd-icon {
  width: 38px; height: 38px;
  background: var(--blue);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cd-icon svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; }
.cd-text { font-size: 0.93rem; color: var(--text-dark); font-weight: 600; }
.cd-sub { font-size: 0.82rem; color: var(--text-light); }

/* ── CONTACT FORM ── */
.contact-form {
  background: var(--white);
  padding: 44px 40px;
  border-top: 4px solid var(--blue);
}
.contact-form h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--text-dark);
  margin-bottom: 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 0; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mid);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--grey-mid);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.97rem;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit { width: 100%; }

.form-success {
  display: none;
  background: var(--blue-light);
  border: 1.5px solid var(--blue);
  padding: 16px 20px;
  color: var(--blue);
  font-weight: 600;
  margin-top: 16px;
  font-size: 0.95rem;
}

/* ── CONTACT PAGE HERO ── */
.page-hero {
  background: var(--blue);
  padding: 120px 5% 60px;
  text-align: center;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}
.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── MAP PLACEHOLDER ── */
.map-placeholder {
  width: 100%;
  height: 240px;
  background: var(--blue-light);
  border: 1.5px solid var(--grey-mid);
  display: flex; align-items: center; justify-content: center;
  margin-top: 36px;
}
.map-placeholder span {
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--grey-mid);
  padding: 0 18px;
}
.faq-item:nth-child(odd)  { background: var(--white); }
.faq-item:nth-child(even) { background: var(--grey-light); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 0;
  text-align: left;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--blue); }
.faq-question .faq-icon { font-size: 1.3rem; color: var(--blue); transition: transform 0.2s; }
.faq-question.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.75;
  padding-bottom: 18px;
}
.faq-answer.open { display: block; }

/* ── FOOTER ── */
footer {
  background: var(--text-dark);
  color: #c8d3e8;
  padding: 44px 5%;
  text-align: center;
}
footer .f-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}
footer p { font-size: 0.88rem; line-height: 1.7; }
footer a { color: #90b4e8; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .f-links {
  display: flex; justify-content: center; gap: 28px;
  margin-top: 18px; flex-wrap: wrap;
}
footer .f-links a {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #90b4e8;
}
footer .divider { border: none; border-top: 1px solid #334; margin: 22px 0; }

/* ── HAMBURGER BUTTON ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 200;
  width: 38px;
  height: 38px;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner,
  .about-grid,
  .why-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }

  /* Photo first on tablet: visual moves above text */
  .hero-visual { order: -1; display: block; border-left: none; border-top: 5px solid var(--blue); }
  .hero-text   { order: 0; }

  /* Team card row wraps on tablet */
  .team-card-row { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
}

@media (max-width: 600px) {
  /* Nav */
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--blue);
    flex-direction: column;
    gap: 0;
    padding: 0;
    z-index: 99;
    box-shadow: 0 8px 24px rgba(26,79,138,0.12);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--grey-mid); }
  .nav-links a {
    display: block;
    padding: 16px 5%;
    font-size: 1rem;
  }
  .nav-links a::after { display: none; }

  /* Layout */
  .services-grid,
  .team-grid { grid-template-columns: 1fr; }

  /* Hero: photo appears first on mobile */
  #home { padding: 90px 5% 40px; min-height: auto; }
  .hero-visual { order: -1; display: block; padding: 28px 20px; border-left: none; border-top: 5px solid var(--blue); }
  .hero-text   { order: 0; }
  .hero-visual img { height: 260px !important; }

  /* Buttons */
  .btn-outline { margin-left: 0; margin-top: 12px; display: block; text-align: center; }
  .hero-ctas { display: flex; flex-direction: column; gap: 12px; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline { text-align: center; }

  /* Section inner */
  .section-inner { padding: 60px 5%; }

  /* Gallery: single column on phones */
  .gallery-grid {
    grid-template-columns: 1fr !important;
    grid-auto-rows: 220px;
  }
  .gallery-grid .gallery-item:nth-child(1),
  .gallery-grid .gallery-item.span2 { grid-column: span 1 !important; }

  /* Team card row */
  .team-card-row { flex-direction: column; align-items: center; text-align: center; gap: 20px; max-width: 100%; }

  /* About */
  .about-callout { padding: 30px 22px; }
  .about-photo { height: 280px; }

  /* Contact form */
  .contact-form { padding: 28px 20px; }

  /* Why visual */
  .why-visual { padding: 28px 22px; }

  /* Footer phone spacing */
  footer { padding: 36px 5%; }
  footer .f-links { gap: 16px; }
}


/* ══════════════════════════════════════════
   ANIMATIONS — Intermediate Level
   ══════════════════════════════════════════ */

/* ── KEYFRAMES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-44px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(44px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes underlineGrow {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(26,79,138,0.18); }
  70%  { box-shadow: 0 0 0 12px rgba(26,79,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(26,79,138,0); }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes borderDraw {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}

/* ── NAV: slide in on load ── */
nav {
  animation: navSlideDown 0.55s cubic-bezier(0.22,1,0.36,1) both;
}

/* Nav link underline on hover */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  height: 2px;
  width: 0;
  background: var(--blue);
  transition: width 0.28s cubic-bezier(0.22,1,0.36,1);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* ── SCROLL-REVEAL base state ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1),
              transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.reveal.reveal-left {
  transform: translateX(-40px);
}
.reveal.reveal-right {
  transform: translateX(40px);
}
.reveal.reveal-scale {
  transform: scale(0.9);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1),
              transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.reveal-stagger.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(5) { opacity:1; transform:none; transition-delay: 0.45s; }
.reveal-stagger.visible > *:nth-child(6) { opacity:1; transform:none; transition-delay: 0.55s; }

/* ── HERO: staggered entrance ── */
.hero-badge  { animation: fadeUp 0.6s 0.15s cubic-bezier(0.22,1,0.36,1) both; }
.hero-title  { animation: fadeUp 0.7s 0.3s  cubic-bezier(0.22,1,0.36,1) both; }
.hero-desc   { animation: fadeUp 0.7s 0.45s cubic-bezier(0.22,1,0.36,1) both; }
.hero-ctas   { animation: fadeUp 0.7s 0.6s  cubic-bezier(0.22,1,0.36,1) both; }
.hero-visual { animation: slideInRight 0.8s 0.5s cubic-bezier(0.22,1,0.36,1) both; }

/* ── STAT CARDS: float and pulse ── */
.stat {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26,79,138,0.12);
}
.stat-number {
  animation: countUp 0.7s 0.8s cubic-bezier(0.22,1,0.36,1) both;
}

/* ── BUTTONS: lift + ripple effect ── */
.btn-primary, .btn-outline, .btn-white {
  position: relative;
  overflow: hidden;
  transition: background 0.25s, color 0.25s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover, .btn-outline:hover, .btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,79,138,0.22);
}
.btn-primary:active, .btn-outline:active, .btn-white:active {
  transform: translateY(0);
  box-shadow: none;
}
/* Ripple pseudo-element */
.btn-primary::before, .btn-outline::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}
.btn-primary:hover::before, .btn-outline:hover::before {
  width: 300px; height: 300px; opacity: 1;
}

/* ── SERVICE CARDS: lift + border slide ── */
.service-card {
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.3s cubic-bezier(0.22,1,0.36,1),
              border-top-color 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 3px; width: 0;
  background: var(--blue);
  transition: width 0.4s cubic-bezier(0.22,1,0.36,1);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(26,79,138,0.13);
}
.service-card:hover::after { width: 100%; }

/* Service icon spin on hover */
.service-icon {
  transition: background 0.3s, transform 0.3s;
}
.service-card:hover .service-icon {
  background: var(--blue);
  transform: rotate(8deg) scale(1.08);
}
.service-card:hover .service-icon svg {
  stroke: #fff;
  transition: stroke 0.3s;
}

/* ── TEAM CARDS: scale + ring pulse ── */
.team-card {
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.team-card:hover {
  transform: translateY(-5px);
}
.team-avatar {
  transition: box-shadow 0.3s, transform 0.3s;
}
.team-card:hover .team-avatar {
  animation: pulse-ring 1s ease-out;
  transform: scale(1.06);
}

/* ── WHY-US numbers: colour shift ── */
.why-item {
  transition: transform 0.3s ease;
}
.why-item:hover {
  transform: translateX(6px);
}
.why-num {
  transition: color 0.3s, border-color 0.3s;
}
.why-item:hover .why-num {
  color: var(--blue-mid);
}

/* ── CONTACT DETAIL items ── */
.cd-item {
  transition: transform 0.25s ease;
}
.cd-item:hover {
  transform: translateX(5px);
}
.cd-icon {
  transition: transform 0.25s, background 0.25s;
}
.cd-item:hover .cd-icon {
  transform: scale(1.12);
  background: var(--blue-mid);
}

/* ── FORM INPUTS: animated label border ── */
.form-group input,
.form-group select,
.form-group textarea {
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,79,138,0.1);
  transform: translateY(-1px);
}

/* ── SECTION LABEL: animated underline ── */
.section-label {
  position: relative;
  display: inline-block;
}

/* ── ABOUT CALLOUT: subtle float animation ── */
.about-callout {
  animation-name: none;
}
.about-callout.visible {
  animation: floatY 4s ease-in-out 1s infinite;
}

/* ── HERO VISUAL STATS: shimmer on numbers ── */
.stat-number {
  background: linear-gradient(90deg, var(--blue) 25%, #2563ab 50%, var(--blue) 75%);
  background-size: 400px 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── PAGE HERO (contact page): animated gradient ── */
.page-hero {
  background: linear-gradient(135deg, var(--blue) 0%, #1e5fa8 60%, #1a4f8a 100%);
  background-size: 200% 200%;
  animation: heroGradient 6s ease infinite;
}
@keyframes heroGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.page-hero h1 { animation: fadeUp 0.7s 0.2s cubic-bezier(0.22,1,0.36,1) both; }
.page-hero p  { animation: fadeUp 0.7s 0.4s cubic-bezier(0.22,1,0.36,1) both; }

/* ── FAQ smooth slide animation ── */
.faq-answer {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.22,1,0.36,1),
              opacity 0.35s ease,
              padding-bottom 0.3s ease;
  padding-bottom: 0;
}
.faq-answer.open {
  max-height: 300px;
  opacity: 1;
  padding-bottom: 18px;
}
.faq-item {
  transition: background 0.25s;
}
.faq-item:hover {
  background: rgba(26,79,138,0.06) !important;
}
.faq-question {
  transition: color 0.2s, padding-left 0.25s;
}
.faq-question:hover {
  padding-left: 6px;
}
.faq-question.open {
  color: var(--blue);
}

/* ── FOOTER links ── */
footer .f-links a {
  position: relative;
  transition: color 0.2s;
}
footer .f-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  height: 1px; width: 0;
  background: #90b4e8;
  transition: width 0.25s ease;
}
footer .f-links a:hover::after { width: 100%; }

/* ── SECTION DIVIDER LINE animation ── */
.section-inner::before {
  content: none;
}

/* ── NAV scrolled shadow ── */
nav.scrolled {
  box-shadow: 0 4px 20px rgba(26,79,138,0.1);
  transition: box-shadow 0.3s ease;
}

/* ── Reduce motion for accessibility ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}