/* ==========================================================================
   RP Nauticals - Premium Static Site Stylesheet
   Palette: Royal Blue / Navy / Cyan / White
   ========================================================================== */

:root {
  /* Color palette */
  --navy-950: #05122e;
  --navy-900: #071a3d;
  --navy-800: #0b2657;
  --navy-700: #10357a;
  --royal-600: #1e4bd6;
  --royal-500: #2f66ff;
  --royal-400: #5c88ff;
  --cyan-500: #22d3ee;
  --cyan-400: #67e8f9;
  --cyan-300: #a5f3fc;
  --white: #ffffff;
  --off-white: #f6f9ff;
  --slate-100: #eef3fb;
  --slate-200: #dbe4f3;
  --slate-500: #64748b;
  --slate-700: #334155;
  --ink: #0a1633;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, var(--royal-500) 0%, var(--cyan-500) 100%);
  --grad-hero: radial-gradient(1200px 700px at 15% 10%, rgba(47,102,255,.35), transparent 60%),
               radial-gradient(900px 600px at 90% 20%, rgba(34,211,238,.28), transparent 60%),
               linear-gradient(180deg, #05122e 0%, #071a3d 60%, #0b2657 100%);
  --grad-soft: linear-gradient(180deg, #ffffff 0%, #eef3fb 100%);

  /* Shadows */
  --shadow-sm: 0 4px 14px rgba(11, 38, 87, .08);
  --shadow-md: 0 12px 40px rgba(11, 38, 87, .12);
  --shadow-lg: 0 30px 80px rgba(11, 38, 87, .18);
  --shadow-glow: 0 20px 60px rgba(47, 102, 255, .35);

  /* Radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-full: 999px;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", "Inter", sans-serif;

  /* Layout */
  --container: 1200px;
  --nav-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 600; }
p  { color: var(--slate-700); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--royal-600);
  padding: 8px 14px; border-radius: var(--r-full);
  background: rgba(47,102,255,.08); border: 1px solid rgba(47,102,255,.18);
}
.eyebrow.on-dark { color: var(--cyan-300); background: rgba(103,232,249,.1); border-color: rgba(103,232,249,.25); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head p { font-size: 1.05rem; }

.text-grad {
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav.scrolled {
  background: rgba(255,255,255,.75);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 rgba(11,38,87,.08);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--navy-900);
}
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad-primary);
  display: grid; place-items: center; color: white;
  box-shadow: var(--shadow-glow);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand small { display: block; font-size: .68rem; font-weight: 500; color: var(--slate-500); letter-spacing: .18em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  padding: 10px 14px; border-radius: var(--r-full);
  font-weight: 500; font-size: .95rem; color: var(--navy-900);
  transition: all .2s ease;
}
.nav.on-hero .nav-links a { color: rgba(255,255,255,.9); }
.nav.on-hero.scrolled .nav-links a { color: var(--navy-900); }
.nav-links a:hover, .nav-links a.active { background: rgba(47,102,255,.1); color: var(--royal-600); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; padding: 10px; border-radius: 12px; color: var(--navy-900); }
.nav.on-hero .nav-toggle { color: white; }
.nav.on-hero.scrolled .nav-toggle { color: var(--navy-900); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--r-full);
  font-weight: 600; font-size: .95rem;
  transition: transform .2s ease, box-shadow .3s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--grad-primary); color: white; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 25px 70px rgba(47,102,255,.5); }
.btn-ghost { background: rgba(255,255,255,.1); color: white; border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-outline { border: 1.5px solid var(--slate-200); color: var(--navy-900); background: white; }
.btn-outline:hover { border-color: var(--royal-500); color: var(--royal-600); }
.btn-sm { padding: 10px 18px; font-size: .88rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 80px) 0 120px;
  background: var(--grad-hero);
  color: white;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  pointer-events: none;
}
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; pointer-events: none;
  animation: float 12s ease-in-out infinite;
}
.hero-blob.b1 { width: 480px; height: 480px; background: var(--royal-500); top: -120px; left: -120px; }
.hero-blob.b2 { width: 420px; height: 420px; background: var(--cyan-500); bottom: -140px; right: -100px; animation-delay: -6s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.05); }
}
.hero-inner { position: relative; text-align: center; max-width: 900px; margin: 0 auto; }
.hero h1 { color: white; margin-bottom: 24px; }
.hero h1 span { background: linear-gradient(135deg, #a5f3fc, #ffffff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: rgba(255,255,255,.8); font-size: 1.15rem; max-width: 620px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 80px; position: relative;
}
.stat-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 28px 20px; border-radius: var(--r-lg); text-align: center;
  transition: transform .3s ease, background .3s ease;
}
.stat-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.1); }
.stat-card .num {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 700;
  background: linear-gradient(135deg, var(--cyan-300), white);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-card .lbl { color: rgba(255,255,255,.75); font-size: .9rem; margin-top: 4px; }

/* ---------- Page Header (non-home) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 80px) 0 90px;
  background: var(--grad-hero);
  color: white; text-align: center;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}
.page-hero h1 { color: white; position: relative; }
.page-hero p { color: rgba(255,255,255,.8); position: relative; max-width: 640px; margin: 12px auto 0; }
.breadcrumbs { position: relative; display: flex; gap: 8px; justify-content: center; margin-top: 20px; font-size: .88rem; color: rgba(255,255,255,.65); }
.breadcrumbs a:hover { color: var(--cyan-300); }
.breadcrumbs .sep { opacity: .5; }

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

.card {
  background: white; border-radius: var(--r-lg);
  padding: 30px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-100);
  transition: transform .35s ease, box-shadow .35s ease, border-color .3s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(47,102,255,.2); }
.card-3d { perspective: 1000px; }
.card-3d:hover { transform: translateY(-6px) rotateX(2deg) rotateY(-2deg); }

.icon-tile {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center; color: white;
  background: var(--grad-primary); box-shadow: var(--shadow-glow);
  margin-bottom: 18px;
}
.icon-tile svg { width: 26px; height: 26px; }

.feature-card h3 { margin-bottom: 8px; }
.feature-card p { margin: 0; font-size: .96rem; }

/* Service tiles */
.service-tile {
  display: flex; flex-direction: column; height: 100%;
  padding: 28px; border-radius: var(--r-lg);
  background: white; border: 1px solid var(--slate-100);
  box-shadow: var(--shadow-sm);
  transition: all .35s ease;
}
.service-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(47,102,255,.25); }
.service-tile .icon-tile { margin-bottom: 16px; }
.service-tile h3 { font-size: 1.15rem; margin-bottom: 8px; }
.service-tile p { font-size: .92rem; margin: 0 0 18px; flex: 1; }
.service-tile .link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--royal-600); font-size: .9rem;
}
.service-tile .link::after { content: "→"; transition: transform .2s ease; }
.service-tile:hover .link::after { transform: translateX(4px); }

/* ---------- Timeline (Approach) ---------- */
.timeline {
  position: relative; padding: 20px 0;
}
.timeline::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, transparent, var(--royal-500), var(--cyan-500), transparent);
  transform: translateX(-50%);
}
.tl-item {
  position: relative; width: 50%; padding: 20px 40px;
}
.tl-item:nth-child(odd) { left: 0; text-align: right; }
.tl-item:nth-child(even) { left: 50%; }
.tl-item .dot {
  position: absolute; top: 34px; width: 18px; height: 18px; border-radius: 50%;
  background: white; border: 3px solid var(--royal-500); box-shadow: 0 0 0 6px rgba(47,102,255,.15);
}
.tl-item:nth-child(odd) .dot { right: -9px; }
.tl-item:nth-child(even) .dot { left: -9px; }
.tl-card {
  background: white; padding: 24px; border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--slate-100);
  transition: all .3s ease;
}
.tl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tl-anchor { font-size: .78rem; font-weight: 700; color: var(--royal-600); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 6px; }
.tl-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.tl-card p { margin: 0; font-size: .93rem; }

@media (max-width: 768px) {
  .timeline::before { left: 12px; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; left: 0; text-align: left; padding: 16px 0 16px 40px; }
  .tl-item:nth-child(odd) .dot, .tl-item:nth-child(even) .dot { left: 3px; right: auto; }
}

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.team-card {
  background: white; border-radius: var(--r-xl); padding: 36px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--slate-100);
  position: relative; overflow: hidden;
  transition: all .35s ease;
}
.team-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: var(--grad-primary);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-role { font-size: .78rem; font-weight: 700; color: var(--royal-600); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; }
.team-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--navy-900); margin-bottom: 16px; }
.team-quote {
  font-style: italic; color: var(--slate-700); font-size: 1rem; line-height: 1.7;
  padding-left: 18px; border-left: 3px solid var(--cyan-500);
}

/* ---------- Testimonials ---------- */
.tst-track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 12px 4px 30px; scrollbar-width: none;
}
.tst-track::-webkit-scrollbar { display: none; }
.tst-card {
  flex: 0 0 380px; scroll-snap-align: start;
  padding: 32px; border-radius: var(--r-xl);
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all .3s ease;
}
.tst-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tst-card .quote-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad-primary); color: white;
  display: grid; place-items: center; margin-bottom: 16px;
  font-family: Georgia, serif; font-size: 1.6rem;
}
.tst-card blockquote { margin: 0 0 20px; font-size: 1rem; color: var(--slate-700); line-height: 1.7; }
.tst-author { display: flex; align-items: center; gap: 12px; }
.tst-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad-primary); color: white;
  display: grid; place-items: center; font-weight: 700;
}
.tst-name { font-weight: 700; color: var(--navy-900); font-size: .96rem; }
.tst-role { font-size: .82rem; color: var(--slate-500); }
.tst-stars { color: #f59e0b; margin-bottom: 10px; letter-spacing: 2px; font-size: .9rem; }

/* ---------- Articles ---------- */
.category-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 48px; }
.chip {
  padding: 10px 20px; border-radius: var(--r-full);
  background: white; border: 1px solid var(--slate-200);
  font-size: .88rem; font-weight: 500; color: var(--slate-700);
  transition: all .2s ease;
}
.chip:hover, .chip.active { background: var(--grad-primary); color: white; border-color: transparent; box-shadow: var(--shadow-glow); }

.article-card {
  background: white; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--slate-100); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; height: 100%;
  transition: all .35s ease;
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.article-thumb {
  aspect-ratio: 16/10; background: var(--grad-primary);
  position: relative; overflow: hidden;
}
.article-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.3), transparent 60%);
}
.article-thumb .badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  padding: 6px 12px; border-radius: var(--r-full);
  font-size: .72rem; font-weight: 600; color: var(--royal-600);
  text-transform: uppercase; letter-spacing: .08em;
}
.article-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.article-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.article-body p { font-size: .92rem; margin: 0 0 16px; flex: 1; }
.article-meta { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--slate-500); }
.article-meta .read-more { color: var(--royal-600); font-weight: 600; }

/* Article page body */
.article-body-content { max-width: 780px; margin: 0 auto; padding: 60px 24px; }
.article-body-content h2 { margin-top: 40px; }
.article-body-content p { font-size: 1.05rem; line-height: 1.8; }
.article-body-content ul { padding-left: 20px; color: var(--slate-700); }
.article-body-content li { margin-bottom: 8px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-info-card {
  background: var(--grad-hero); color: white;
  padding: 40px; border-radius: var(--r-xl);
  position: sticky; top: 100px;
}
.contact-info-card h3 { color: white; }
.contact-info-card p { color: rgba(255,255,255,.8); }
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin: 20px 0; }
.contact-item .icon-tile { flex: 0 0 46px; width: 46px; height: 46px; margin: 0; }
.contact-item .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--cyan-300); }
.contact-item .val { color: white; font-weight: 500; }

.form-card {
  background: white; padding: 40px; border-radius: var(--r-xl);
  box-shadow: var(--shadow-md); border: 1px solid var(--slate-100);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy-900); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid var(--slate-200); background: var(--off-white);
  font-family: inherit; font-size: .95rem; color: var(--ink);
  transition: all .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--royal-500);
  background: white; box-shadow: 0 0 0 4px rgba(47,102,255,.12);
}
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-950); color: rgba(255,255,255,.7);
  padding: 80px 0 30px; margin-top: 80px;
  position: relative; overflow: hidden;
}
.footer::before {
  content: ""; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: var(--royal-500); filter: blur(120px); opacity: .3;
}
.footer .container { position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer h4 { color: white; font-size: 1rem; margin-bottom: 18px; font-family: var(--font-sans); font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: rgba(255,255,255,.65); font-size: .92rem; transition: color .2s ease; }
.footer ul a:hover { color: var(--cyan-400); }
.footer .brand { color: white; }
.footer .brand small { color: rgba(255,255,255,.5); }
.footer .about-blurb { font-size: .92rem; margin: 16px 0 20px; }
.socials { display: flex; gap: 10px; }
.social {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  display: grid; place-items: center; color: white;
  transition: all .2s ease;
}
.social:hover { background: var(--grad-primary); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }
.footer-bottom {
  padding-top: 30px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .85rem; color: rgba(255,255,255,.5);
}

/* ---------- Chatbot Placeholder ---------- */
.chatbot-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--grad-primary); color: white;
  display: grid; place-items: center; box-shadow: var(--shadow-glow);
  transition: transform .3s ease;
  animation: pulse-glow 3s ease-in-out infinite;
}
.chatbot-fab:hover { transform: scale(1.08); }
.chatbot-fab svg { width: 26px; height: 26px; }
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 20px 60px rgba(47,102,255,.35); }
  50% { box-shadow: 0 20px 80px rgba(47,102,255,.55); }
}
.chatbot-panel {
  position: fixed; bottom: 100px; right: 24px; z-index: 91;
  width: 340px; max-width: calc(100vw - 32px); height: 460px;
  background: white; border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); border: 1px solid var(--slate-100);
  display: none; flex-direction: column; overflow: hidden;
  transform-origin: bottom right; animation: pop .25s ease;
}
.chatbot-panel.open { display: flex; }
@keyframes pop { from { opacity: 0; transform: scale(.9) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.cb-head { padding: 18px 20px; background: var(--grad-primary); color: white; }
.cb-head strong { display: block; font-size: 1rem; }
.cb-head small { opacity: .8; font-size: .8rem; }
.cb-body { flex: 1; padding: 20px; overflow-y: auto; background: var(--off-white); }
.cb-msg { padding: 12px 16px; border-radius: 14px; margin-bottom: 10px; max-width: 85%; font-size: .9rem; }
.cb-msg.bot { background: white; border: 1px solid var(--slate-100); }
.cb-msg.user { background: var(--grad-primary); color: white; margin-left: auto; }
.cb-foot { padding: 14px; border-top: 1px solid var(--slate-100); display: flex; gap: 8px; }
.cb-foot input { flex: 1; padding: 10px 14px; border-radius: var(--r-full); border: 1.5px solid var(--slate-200); font-family: inherit; }
.cb-foot button { padding: 10px 16px; border-radius: var(--r-full); background: var(--grad-primary); color: white; font-weight: 600; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: white; flex-direction: column; align-items: stretch;
    padding: 16px; gap: 6px; box-shadow: var(--shadow-md);
    transform: translateY(-120%); transition: transform .3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 18px; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-cta .btn { display: none; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .tst-card { flex-basis: 88%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   RP Nauticals - Enhancements (branding, hero shrink, success stories)
   ========================================================================== */

/* Screen-reader only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Banner logo in nav & footer */
.brand-logo { display: inline-flex; align-items: center; }
.brand-logo img { height: 46px; width: auto; display: block; }
.nav .brand-logo img { height: 44px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.15)); }
.footer .brand-logo img { height: 52px; filter: brightness(0) invert(1); opacity: .95; }
@media (max-width: 720px) {
  .nav .brand-logo img { height: 36px; }
}

/* Default (non-scrolled) navbar contrast fix — glassy white for readability
   on light backgrounds. Kept as-is when on hero or scrolled. */
.nav {
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(11,38,87,.06);
}
.nav.on-hero:not(.scrolled) {
  background: linear-gradient(180deg, rgba(5,18,46,.55), rgba(5,18,46,0));
  backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none;
}

/* Reduced sub-page hero (approx 25vh) */
.page-hero {
  padding: calc(var(--nav-h) + 28px) 0 32px;
  min-height: 25vh;
  display: flex; flex-direction: column; justify-content: center;
}
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 4px; }
.page-hero p { font-size: 1rem; margin-top: 14px; }
.breadcrumbs { margin-top: 10px; }

/* --- Success Stories cards --- */
.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 960px) { .stories-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .stories-grid { grid-template-columns: 1fr; } }

.story-card {
  background: white; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--slate-100); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.story-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--slate-200); }
.story-media {
  aspect-ratio: 4/3; background: var(--grad-primary); position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-media .initials {
  font-family: var(--font-display); font-size: 3rem; font-weight: 700;
  color: white; letter-spacing: .04em;
}
.story-badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,.92); color: var(--navy-900);
  padding: 6px 12px; border-radius: var(--r-full);
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.story-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.story-body h3 { margin: 0 0 4px; }
.story-role { color: var(--royal-600); font-size: .88rem; font-weight: 600; margin-bottom: 10px; }
.story-body p { font-size: .94rem; margin: 0 0 18px; flex: 1; }
.story-cta {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  color: var(--royal-600); font-weight: 600; font-size: .92rem;
}
.story-cta::after { content: "→"; transition: transform .2s ease; }
.story-cta:hover::after { transform: translateX(4px); }

/* --- Story detail page --- */
.story-hero-img {
  width: 100%; max-width: 520px; aspect-ratio: 4/5; margin: 0 auto;
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md);
  background: var(--grad-primary); display: grid; place-items: center;
}
.story-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.story-hero-img .initials { font-family: var(--font-display); font-size: 5rem; color: white; font-weight: 700; }
.story-article { max-width: 780px; margin: 0 auto; }
.story-article h2 { margin-top: 40px; }
.story-article .meta-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 28px; }
.story-article .chip {
  padding: 6px 12px; border-radius: var(--r-full); background: var(--slate-100);
  color: var(--navy-800); font-size: .8rem; font-weight: 500;
}
.story-photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0; }
.story-photo-grid > div { aspect-ratio: 4/3; border-radius: var(--r-md); background: var(--grad-soft); border: 1px dashed var(--slate-200); display: grid; place-items: center; color: var(--slate-500); font-size: .85rem; }

/* --- Gallery placeholders --- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item {
  aspect-ratio: 1/1; border-radius: var(--r-md); position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(47,102,255,.12), rgba(34,211,238,.14));
  border: 1px solid var(--slate-100);
  display: grid; place-items: center; color: var(--navy-800); font-weight: 600;
  font-size: .88rem; text-align: center; padding: 10px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gallery-item::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.4) 1px, transparent 1px);
  background-size: 14px 14px; opacity: .5; pointer-events: none;
}
.gallery-item span { position: relative; }

/* Chatbot FAB: use WhatsApp green when it's the WA CTA */
.chatbot-fab {
  background: linear-gradient(135deg, #25D366, #128C7E) !important;
  box-shadow: 0 20px 60px rgba(37,211,102,.4) !important;
}
@keyframes pulse-glow { 0%,100%{box-shadow:0 20px 60px rgba(37,211,102,.4);} 50%{box-shadow:0 20px 80px rgba(37,211,102,.6);} }

/* ==========================================================================
   Responsive audit fixes — preserve design, prevent overflow & clipping
   ========================================================================== */

/* Prevent any element from forcing horizontal scroll */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video, canvas { max-width: 100%; height: auto; }

/* Long links / emails / URLs should wrap on narrow screens */
a, .val, .contact-item .val, .footer li, blockquote, p { overflow-wrap: anywhere; word-break: break-word; }

/* Trigger mobile nav earlier so tablet widths (721-960) don't cram links */
@media (max-width: 900px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: white; flex-direction: column; align-items: stretch;
    padding: 16px; gap: 6px; box-shadow: var(--shadow-md);
    transform: translateY(-120%); transition: transform .3s ease;
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 18px; color: var(--navy-900) !important; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-cta .btn { display: none; }
  .nav.on-hero .nav-toggle,
  .nav.on-hero.scrolled .nav-toggle { color: var(--navy-900); }
}

/* Nav logo scaling on smaller screens */
@media (max-width: 540px) {
  .nav .brand-logo img { height: 34px; }
  .brand small { display: none; }
}
@media (max-width: 380px) {
  .nav .brand-logo img { height: 30px; }
}

/* Tighter container padding on very small screens */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
}

/* Card / form padding at mobile so contents don't overflow */
@media (max-width: 640px) {
  .contact-info-card,
  .form-card { padding: 24px; }
  .card { padding: 22px; }
  .service-tile { padding: 22px; }
  .team-card { padding: 24px; }
  .tst-card { padding: 24px; flex-basis: 86%; }
  .contact-info-card { border-radius: var(--r-lg); }
}
@media (max-width: 380px) {
  .contact-info-card,
  .form-card { padding: 18px; }
  .card, .service-tile, .team-card { padding: 18px; }
}

/* Hero refinements at tablet/mobile */
@media (max-width: 720px) {
  .hero { padding: calc(var(--nav-h) + 48px) 0 72px; }
  .hero-stats { margin-top: 48px; gap: 14px; }
  .stat-card { padding: 22px 14px; }
  .stat-card .num { font-size: 1.9rem; }
  .hero-actions .btn { padding: 12px 22px; }
}
@media (max-width: 480px) {
  .hero { padding: calc(var(--nav-h) + 32px) 0 56px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Page-hero on mobile: prevent min-height clipping */
@media (max-width: 720px) {
  .page-hero { min-height: 0; padding: calc(var(--nav-h) + 40px) 0 40px; }
}

/* CTA card on home shouldn't hug the edges */
@media (max-width: 640px) {
  .card[style*="grad-hero"] { padding: 32px 22px !important; }
}

/* Footer alignment on tablet+mobile */
@media (max-width: 720px) {
  .footer { padding: 56px 0 24px; margin-top: 56px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* Story hero image shouldn't overflow narrow viewports */
.story-hero-img { max-width: min(520px, 100%); }

/* Gallery: single column on very narrow */
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* Form: single column stacking already handled at 720; enforce input width */
.field input, .field select, .field textarea { min-width: 0; }
.form-row { min-width: 0; }

/* Breadcrumbs: allow wrap */
.breadcrumbs { flex-wrap: wrap; padding: 0 16px; }

/* Chatbot FAB shouldn't cover content on very small screens */
@media (max-width: 380px) {
  .chatbot-fab { width: 52px; height: 52px; bottom: 16px; right: 16px; }
}

/* Timeline: keep 40px indent working from 720 down without collision */
@media (max-width: 480px) {
  .tl-item, .tl-item:nth-child(even) { padding: 14px 0 14px 32px; }
}

/* Testimonials track: ensure it doesn't leak horizontal scroll on body */
.tst-track { max-width: 100%; }

/* Ensure mobile nav panel is fully hidden when closed (transform alone can leave
   a peek visible when the panel is taller than 120% of nav offset). */
@media (max-width: 900px) {
  .nav-links:not(.open) {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
  .nav-links.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
}

/* ============ FAQs page ============ */
.faq-toolbar { display: grid; gap: 16px; margin-bottom: 32px; }
.faq-toolbar #faq-search {
  width: 100%; padding: 16px 20px; font: inherit;
  border: 1px solid var(--slate-200); border-radius: 14px;
  background: white; box-shadow: var(--shadow-sm); outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-toolbar #faq-search:focus { border-color: var(--royal-600); box-shadow: 0 0 0 4px rgba(47,102,255,.15); }
.faq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: white; border: 1px solid var(--slate-200); border-radius: 14px;
  padding: 4px 20px; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, border-color .2s ease;
}
.faq-item[open] { border-color: var(--royal-600); box-shadow: var(--shadow-md); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; font-weight: 600; color: var(--navy-900); cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  width: 28px; height: 28px; border-radius: 50%; background: var(--royal-50);
  color: var(--royal-600); display: grid; place-items: center; font-size: 20px;
  flex-shrink: 0; transition: transform .2s ease, background .2s ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--royal-600); color: white; }
.faq-answer { padding: 0 0 20px; color: var(--slate-700); line-height: 1.7; border-top: 1px solid var(--slate-100); padding-top: 16px; }
.faq-empty { text-align: center; padding: 40px 20px; color: var(--slate-500); }

/* ============ Team page ============ */
.team-members { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-member {
  background: white; border: 1px solid var(--slate-200); border-radius: 20px;
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
}
.team-member:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-photo {
  width: 96px; height: 96px; border-radius: 50%; margin-bottom: 20px;
  background: var(--grad-hero); display: grid; place-items: center; color: white;
}
.team-photo .initials { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: 1px; }
.team-role { font-size: .8rem; font-weight: 600; color: var(--royal-600); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 6px; }
.team-info h3 { margin: 0 0 10px; }
.team-info p { color: var(--slate-700); line-height: 1.6; margin: 0; }
@media (max-width: 900px) { .team-members { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-members { grid-template-columns: 1fr; } }

/* ============ Approvals page ============ */
.approval-badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--royal-50); color: var(--royal-600);
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .6px;
  margin-bottom: 14px;
}

/* ============================================================
   Final round — mobile logo switch, adaptive nav, media styles
   ============================================================ */

/* 1. CSS-only logo switching: horizontal on desktop, square on mobile */
.nav .brand-logo .logo-mark { display: none; }
.nav .brand-logo .logo-full { display: block; }
@media (max-width: 640px) {
  .nav .brand-logo .logo-full { display: none; }
  .nav .brand-logo .logo-mark {
    display: block; height: 40px; width: 40px;
    object-fit: cover; border-radius: 10px;
    box-shadow: 0 2px 8px rgba(11,38,87,.16);
  }
}

/* 2. Adaptive navigation "More" dropdown */
.nav-more { position: relative; list-style: none; }
.nav-more[hidden] { display: none !important; }
.nav-more > button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: var(--r-full);
  font-weight: 500; font-size: .95rem; color: var(--navy-900);
  background: transparent; border: 0; cursor: pointer;
  font-family: inherit; transition: all .2s ease;
}
.nav.on-hero:not(.scrolled) .nav-more > button { color: rgba(255,255,255,.9); }
.nav-more > button:hover, .nav-more.open > button { background: rgba(47,102,255,.1); color: var(--royal-600); }
.nav-more > button svg { width: 14px; height: 14px; }
.nav-more-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 200px;
  background: rgba(255,255,255,.98);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border: 1px solid var(--slate-100); border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 8px; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav-more.open .nav-more-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-more-menu li { list-style: none; }
.nav-more-menu a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--navy-900) !important; white-space: nowrap; }
@media (max-width: 900px) { .nav-more { display: none !important; } }

/* 3. Imagery */
.article-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-thumb .badge { z-index: 2; }
.gallery-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-item span {
  position: relative; z-index: 2; color: #fff; padding: 8px 10px;
  align-self: end; justify-self: start; text-align: left;
  text-shadow: 0 1px 6px rgba(5,18,46,.7); font-size: .82rem;
}
.gallery-item::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(5,18,46,0) 35%, rgba(5,18,46,.72));
}
.team-photo { overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.page-cover {
  margin: 0 0 32px; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-md); aspect-ratio: 16/9;
}
.page-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-tile.has-cover { padding-top: 0; overflow: hidden; }
.course-cover { margin: -1px -1px 22px; aspect-ratio: 16/9; overflow: hidden; }
.course-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.service-tile.has-cover:hover .course-cover img { transform: scale(1.05); }

/* 4. Approvals */
.approval-card { display: block; color: inherit; }
.approval-card .link { display: inline-block; margin-top: 16px; color: var(--royal-600); font-weight: 600; font-size: .9rem; }
.approval-card:hover .link { text-decoration: underline; }
.cert-thumb { margin: 0 0 18px; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 10/7; border: 1px solid var(--slate-100); }
.cert-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cert-preview { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--slate-100); }
.cert-preview img { width: 100%; height: auto; display: block; }
.approval-details { margin: 0; display: grid; gap: 2px; }
.approval-row {
  display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
  gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--slate-100);
}
.approval-row dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-500); font-weight: 600; }
.approval-row dd { margin: 0; color: var(--navy-900); font-weight: 500; word-break: break-word; }
@media (max-width: 560px) { .approval-row { grid-template-columns: 1fr; gap: 4px; } }
@media (min-width: 901px) {
  .nav-links { flex-wrap: nowrap; }
  .nav-links > li { flex: 0 0 auto; }
  .nav-links a, .nav-more > button { white-space: nowrap; }
  .nav .brand { flex: 0 0 auto; }
  .nav-cta { flex: 0 0 auto; }
}

.story-media { position: relative; overflow: hidden; }
.story-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.story-card:hover .story-media img { transform: scale(1.05); }
.story-media .story-badge { position: relative; z-index: 2; }
.story-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,18,46,.3), rgba(5,18,46,.05)); }

/* Footer with added SEO link columns (Popular Courses / Popular Articles) */
@media (min-width: 1101px) {
  .footer-grid { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 32px; }
  .footer-grid > div:first-child { grid-row: span 1; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
}
@media (min-width: 1101px) {
  .footer-grid { grid-template-columns: 1.5fr repeat(5, minmax(0, 1fr)); }
}
.footer .brand-logo img {
  filter: none; background: #fff; padding: 6px 12px;
  border-radius: 10px; opacity: 1;
}

/* Mobile navbar: hamburger icon must always be visible and tappable */
.nav-toggle { display: none; }
.nav-toggle svg { width: 24px; height: 24px; display: block; }
@media (max-width: 900px) {
  .nav-toggle {
    display: grid !important; place-items: center;
    width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--slate-200); background: rgba(255,255,255,.9);
    color: var(--navy-900) !important;
  }
  .nav { display: block !important; }
  .nav .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .nav-cta { display: flex; align-items: center; gap: 8px; }
  body { overflow-x: hidden; }
}

/* Clickable UDYAM certificate */
.cert-preview a { display: block; }
.cert-preview a:hover img { transform: scale(1.01); }
.cert-preview img { transition: transform .3s ease; }
