/* ============================================================
   MERIDIAN — Premium Corporate CA Template
   Light, clean, professional. Original design system.
   All business content is CMS-driven; only presentation here.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --bg-tint: #eef2f7;
  --brand: #16527a;
  --brand-d: #0e3c5c;
  --brand-l: #2f7bb0;
  --accent: #e0a33e;
  --accent-d: #c9882a;
  --text: #1c2733;
  --muted: #647489;
  --line: #e3e8ef;
  --shadow-sm: 0 2px 10px rgba(15,42,72,0.06);
  --shadow-md: 0 14px 34px rgba(15,42,72,0.10);
  --shadow-lg: 0 26px 60px rgba(15,42,72,0.14);
  --radius: 10px;
  --radius-lg: 18px;
  --container: 1240px;
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 0.35s var(--ease);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
iframe, table { max-width: 100%; border: 0; }
a { color: var(--brand); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent-d); }
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--brand-d);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border-radius: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
}
.btn i { transition: transform var(--t); }
.btn:hover i { transform: translateX(4px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 22px rgba(22,82,122,0.28); }
.btn-primary:hover { background: var(--brand-d); transform: translateY(-3px); color: #fff; }
.btn-accent { background: var(--accent); color: #2a1c00; box-shadow: 0 10px 22px rgba(224,163,62,0.32); }
.btn-accent:hover { background: var(--accent-d); color: #2a1c00; transform: translateY(-3px); }
.btn-ghost { background: transparent; border-color: var(--brand); color: var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff; transform: translateY(-3px); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Eyebrow / titles ---------- */
.eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 700;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-d); margin-bottom: 14px;
}
.section-title { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.section-sub { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 auto 48px; }

/* ============================================================
   TOP STRIP
   ============================================================ */
.topstrip { background: var(--brand-d); color: rgba(255,255,255,0.85); font-size: 13.5px; }
.topstrip .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 9px; padding-bottom: 9px; }
.topstrip a { color: rgba(255,255,255,0.85); }
.topstrip a:hover { color: var(--accent); }
.ts-left { display: flex; gap: 22px; flex-wrap: wrap; }
.ts-left span { display: inline-flex; align-items: center; gap: 8px; }
.ts-social { display: flex; gap: 12px; }
.ts-social a { font-size: 14px; }

/* ============================================================
   HEADER
   ============================================================ */
.mer-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t), background var(--t);
}
.mer-header.scrolled { box-shadow: var(--shadow-sm); }
.mer-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { height: 68px; width: auto; object-fit: contain; border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--brand-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-d); font-weight: 600; }
.mer-nav { display: flex; align-items: center; gap: 2px; }
.mer-nav a {
  padding: 8px 10px; font-family: var(--font-head); font-weight: 600; font-size: 14px;
  color: var(--text); border-radius: 6px; transition: color var(--t), background var(--t);
}
.mer-nav a:hover, .mer-nav a.active { color: var(--brand); background: var(--bg-tint); }
.mer-nav a.active { box-shadow: inset 0 -2px 0 var(--accent); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 10px; }
.burger span { width: 26px; height: 2.5px; background: var(--brand-d); border-radius: 3px; transition: var(--t); }

/* Drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(8,20,33,0.5); z-index: 1990; opacity: 0; visibility: hidden; transition: var(--t); }
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; left: 0; height: 100vh; width: 84%; max-width: 360px;
  background: var(--brand-d); color: #fff; z-index: 2000;
  transform: translateX(-100%); transition: transform var(--t); padding: 90px 26px 40px; overflow-y: auto;
  visibility: hidden;
}
.drawer.open { visibility: visible; }
.drawer.open { transform: translateX(0); }
.drawer a { display: block; padding: 16px 8px; color: rgba(255,255,255,0.9); font-family: var(--font-head); font-weight: 600; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.drawer a:hover { color: var(--accent); }
.drawer .btn { margin-top: 24px; width: 100%; justify-content: center; }
.drawer-close { position: absolute; top: 24px; right: 24px; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f7fafe 0%, #eaf1f8 100%); }
.hero::before {
  content: ""; position: absolute; width: 720px; height: 720px; right: -220px; top: -260px;
  background: radial-gradient(circle, rgba(22,82,122,0.16), transparent 65%);
  animation: drift 16s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; width: 520px; height: 520px; left: -200px; bottom: -240px;
  background: radial-gradient(circle, rgba(224,163,62,0.16), transparent 60%);
  animation: drift 20s ease-in-out infinite alternate-reverse;
}
@keyframes drift { from { transform: translate(0,0); } to { transform: translate(40px,40px); } }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding-top: 84px; padding-bottom: 84px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); color: var(--brand); padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 13px; letter-spacing: 0.04em; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.hero-eyebrow i { color: var(--accent); }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); color: var(--brand-d); margin-bottom: 20px; }
.hero h1 .hl { color: var(--accent-d); position: relative; white-space: nowrap; }
.hero p.lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media .frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.hero-media .frame img { width: 100%; height: 440px; object-fit: cover; }
.hero-media .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(14,60,92,0.35)); }
.hero-chip {
  position: absolute; background: #fff; border-radius: 14px; padding: 16px 20px;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 14px; border: 1px solid var(--line);
}
.hero-chip .ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-tint); color: var(--brand); font-size: 20px; }
.hero-chip .v { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--brand-d); line-height: 1; }
.hero-chip .l { font-size: 12.5px; color: var(--muted); }
.hero-chip.c1 { top: 24px; left: -34px; animation: floaty 6s ease-in-out infinite; }
.hero-chip.c2 { bottom: 28px; right: -30px; animation: floaty 7s ease-in-out infinite reverse; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Ribbon */
.ribbon { background: var(--brand-d); color: #fff; display: flex; align-items: center; overflow: hidden; }
.ribbon .tag { background: var(--accent); color: #2a1c00; padding: 11px 20px; font-weight: 700; font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.ribbon .track { padding: 11px 0; white-space: nowrap; overflow: hidden; flex: 1; }
.ribbon .track a { color: rgba(255,255,255,0.88); margin: 0 30px; font-size: 14px; }
.ribbon .track a:hover { color: var(--accent); }

/* ============================================================
   WELCOME
   ============================================================ */
.welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.welcome-text h2 { font-size: clamp(28px, 3.4vw, 40px); }
.welcome-text .body { color: var(--muted); font-size: 17px; }
.welcome-text .body p { margin: 0 0 14px; }
.feature-list { list-style: none; margin: 24px 0 30px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; color: var(--text); }
.feature-list li i { color: var(--accent); }
.welcome-media { position: relative; }
.welcome-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }
.welcome-media::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 2px solid var(--accent); border-radius: var(--radius-lg); z-index: -1; }

/* ============================================================
   SERVICES — unique index cards
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.svc-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 30px 30px; overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
  box-shadow: 0 4px 20px rgba(15,42,72,0.03);
}
.svc-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--brand), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.svc-card:hover { transform: translateY(-12px) scale(1.03); box-shadow: 0 20px 40px rgba(15,42,72,0.12); border-color: transparent; }
.svc-card:hover::before { transform: scaleX(1); }
.svc-num { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--accent); letter-spacing: 0.1em; }
.svc-ic { width: 58px; height: 58px; border-radius: 14px; background: var(--bg-tint); color: var(--brand); display: grid; place-items: center; font-size: 24px; margin: 14px 0 18px; transition: background var(--t), color var(--t); }
.svc-card:hover .svc-ic { background: var(--brand); color: #fff; }
.svc-card h3 { font-size: 21px; margin-bottom: 10px; }
.svc-card p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.svc-link { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--brand); display: inline-flex; align-items: center; gap: 8px; }
.svc-link:hover { gap: 14px; color: var(--accent-d); }

/* ============================================================
   STATS (CMS-gated, dark emphasis)
   ============================================================ */
.stats { background: var(--brand-d); color: #fff; }
.stats .section-title, .stats .eyebrow { color: #fff; }
.stats .section-sub { color: rgba(255,255,255,0.8); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 30px 16px; border-right: 1px solid rgba(255,255,255,0.1); }
.stat:last-child { border-right: none; }
.stat .n { font-family: var(--font-head); font-weight: 700; font-size: 46px; line-height: 1; color: #fff; }
.stat .n .plus { color: var(--accent); }
.stat .l { font-size: 14px; color: rgba(255,255,255,0.78); margin-top: 10px; letter-spacing: 0.03em; }

/* ============================================================
   WHY US
   ============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.why-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15,42,72,0.03);
}
.why-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.why-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(15,42,72,0.12);
  border-color: transparent;
}
.why-card:hover::after {
  opacity: 1;
}
.why-ic {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-l));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 26px;
  margin-bottom: 22px;
  box-shadow: 0 8px 16px rgba(22,82,122,0.2);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.4s ease, box-shadow 0.4s ease;
}
.why-card:hover .why-ic {
  transform: scale(1.15) rotate(8deg);
  background: linear-gradient(135deg, var(--accent), var(--accent-d));
  box-shadow: 0 10px 20px rgba(224,163,62,0.3);
}
.why-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--brand-d);
  transition: color 0.3s ease;
}
.why-card:hover h3 {
  color: var(--brand);
}
.why-card p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   INSIGHTS (news + notifications) — CMS only
   ============================================================ */
.insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.insight-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.insight-head { display: flex; align-items: center; gap: 12px; padding: 20px 24px; background: var(--brand); color: #fff; }
.insight-head i { color: var(--accent); font-size: 20px; }
.insight-head h3 { color: #fff; font-size: 18px; margin: 0; }
.insight-body { padding: 14px 24px 22px; max-height: 320px; overflow: hidden; }
.ins-date { font-size: 12.5px; font-weight: 700; color: var(--accent-d); margin: 14px 0 6px; letter-spacing: 0.03em; }
.ins-link { display: block; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; color: var(--text); transition: var(--t); }
.ins-link:hover { color: var(--brand); padding-left: 6px; }
.ins-empty { color: var(--muted); padding: 30px; text-align: center; font-size: 14.5px; }

/* ============================================================
   CTA BAND (dark emphasis)
   ============================================================ */
.cta-band { background: linear-gradient(120deg, var(--brand-d), var(--brand)); color: #fff; text-align: center; }
.cta-band .container { max-width: 760px; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.85); font-size: 18px; margin-bottom: 30px; }
.cta-band .hero-actions { justify-content: center; }

/* ============================================================
   INNER PAGE HERO
   ============================================================ */
.page-hero { background: linear-gradient(120deg, var(--brand-d), var(--brand)); color: #fff; padding: 64px 0 58px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; background: rgba(224,163,62,0.16); border-radius: 50%; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 46px); margin: 0; }
.breadcrumb { font-size: 14px; color: rgba(255,255,255,0.78); margin-top: 12px; }
.breadcrumb a { color: rgba(255,255,255,0.9); }
.breadcrumb a:hover { color: var(--accent); }

/* ============================================================
   CONTENT LAYOUT
   ============================================================ */
.layout { display: grid; grid-template-columns: 1fr 330px; gap: 40px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-sm); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.panel h1, .panel h2 { margin-top: 0; }
.panel .lead { font-size: 18px; color: var(--muted); }
.panel p { color: var(--muted); }
.panel .body p { color: var(--muted); }

/* Sidebar widget */
.widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 26px; }
.widget-head { background: var(--brand); color: #fff; padding: 16px 20px; display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 16px; }
.widget-head i { color: var(--accent); }
.widget-body { padding: 8px 20px 16px; max-height: 320px; overflow: hidden; }
.w-date { font-size: 12.5px; font-weight: 700; color: var(--accent-d); margin: 14px 0 6px; }
.w-link { display: block; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; color: var(--text); }
.w-link:hover { color: var(--brand); padding-left: 6px; }

/* Cards / grids for listings */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.mini-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); transition: var(--t); }
.mini-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.mini-card h3 { font-size: 19px; margin-bottom: 8px; }
.mini-card p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.team-card { text-align: center; }
.team-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); margin-bottom: 14px; }
.team-name { font-size: 18px; margin-bottom: 2px; }
.team-role { color: var(--accent-d); font-size: 13.5px; font-weight: 600; }

/* Link lists */
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: 16px; }
.link-list li i { color: var(--accent); width: 22px; text-align: center; }
.link-list li a { color: var(--text); font-weight: 500; }
.link-list li a:hover { color: var(--brand); }

/* Contact cards */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.contact-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; transition: var(--t); }
.contact-box:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.contact-ic { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 22px; }
.contact-box h4 { font-size: 17px; margin-bottom: 6px; }
.contact-box p { color: var(--muted); font-size: 15px; margin: 0; }

/* ============================================================
   FORMS
   ============================================================ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 4px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--brand-d); }
.form-control { width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 8px; font-family: var(--font-body); font-size: 15px; color: var(--text); background: #fff; transition: var(--t); }
.form-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(22,82,122,0.12); }
textarea.form-control { resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ============================================================
   FOOTER (Premium Horizontal Layout)
   ============================================================ */
.mer-footer.horizontal-only {
  background: linear-gradient(135deg, #0a253a 0%, #051420 100%);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 32px;
  position: relative;
  border-top: 3px solid var(--accent);
  overflow: hidden;
}

/* Subtle background glowing orb */
.mer-footer.horizontal-only::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 250px;
  background: radial-gradient(circle, rgba(224, 163, 62, 0.08), transparent 70%);
  pointer-events: none;
}

.mer-footer.horizontal-only .container {
  position: relative;
  z-index: 2;
}

/* Elegant horizontal links container */
.mer-footer.horizontal-only .footer-nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 32px;
}

/* Clean, modern styling for links */
.mer-footer.horizontal-only .footer-nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14.5px;
  text-decoration: none;
  padding: 4px 8px;
  position: relative;
  transition: color 0.3s var(--ease), text-shadow 0.3s var(--ease);
}

.mer-footer.horizontal-only .footer-nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 8px;
  right: 8px;
  height: 1.5px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.mer-footer.horizontal-only .footer-nav-links a:hover {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(224, 163, 62, 0.25);
}

.mer-footer.horizontal-only .footer-nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Separate items using CSS dot separators, avoiding wrapping issues */
.mer-footer.horizontal-only .footer-nav-links a:not(:last-child)::before {
  content: "•";
  position: absolute;
  right: -11px;
  color: rgba(255, 255, 255, 0.25);
  pointer-events: none;
  font-size: 12px;
}

/* Meta area styling */
.mer-footer.horizontal-only .footer-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Copyright text */
.mer-footer.horizontal-only .meta-copyright {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
}

.mer-footer.horizontal-only .meta-copyright a {
  color: var(--accent);
  font-weight: 500;
  transition: color var(--t);
}

.mer-footer.horizontal-only .meta-copyright a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Social media icons */
.mer-footer.horizontal-only .meta-socials {
  display: flex;
  gap: 10px;
}

.mer-footer.horizontal-only .meta-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform var(--t), background var(--t), color var(--t), border-color var(--t);
}

.mer-footer.horizontal-only .meta-socials a:hover {
  background: var(--accent);
  color: #2a1c00;
  border-color: var(--accent);
  transform: translateY(-3px);
}

.mer-footer.horizontal-only .meta-socials a.disabled {
  opacity: 0.3;
  pointer-events: none;
  cursor: default;
}

/* Hit Counter Styling */
.mer-footer.horizontal-only .meta-counter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mer-footer.horizontal-only .counter-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

.mer-footer.horizontal-only .counter-badge img {
  height: 24px;
  border-radius: 3px;
  opacity: 0.85;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: opacity 0.3s;
}

.mer-footer.horizontal-only .counter-badge img:hover {
  opacity: 1;
}


.back-top { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 12px; border: none; background: var(--brand); color: #fff; font-size: 17px; cursor: pointer; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(18px); transition: var(--t); z-index: 900; }
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--brand-d); }

/* ============================================================
   REVEAL & STRONG ANIMATIONS
   ============================================================ */
.reveal, .reveal-left, .reveal-right, .reveal-stagger, .reveal-scale, .reveal-rotate { 
  opacity: 0; 
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); 
  will-change: transform, opacity;
}
.reveal {
  transform: translateY(60px);
}
.reveal-left { 
  transform: translateX(-70px); 
}
.reveal-right { 
  transform: translateX(70px); 
}
.reveal-scale { 
  transform: scale(0.88) translateY(30px); 
}
.reveal-rotate {
  transform: rotate(4deg) translateY(50px) scale(0.95);
}
.in-view { 
  opacity: 1 !important; 
  transform: translate(0, 0) scale(1) rotate(0deg) !important; 
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1150px) {
  .mer-nav { display: none; }
  .header-cta .btn { display: none; }
  .burger { display: flex; }
}
@media (max-width: 1024px) {
  .welcome-grid, .insight-grid { grid-template-columns: 1fr; gap: 40px; }
  .svc-grid, .why-grid, .card-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .mer-footer.horizontal-only .footer-nav-links { gap: 12px 14px; }
  .layout { grid-template-columns: 1fr; }
  .contact-cards, .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .topstrip .ts-left { display: none; }
  .hero .container { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; gap: 40px; }
  .hero-media .frame img { height: 300px; }
  .hero-chip.c1 { left: 6px; } .hero-chip.c2 { right: 6px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .feature-list { grid-template-columns: 1fr; }
  .svc-grid, .why-grid, .card-grid, .team-grid, .stats-grid, .contact-cards { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  
  /* Redesigned horizontal footer responsive styles */
  .mer-footer.horizontal-only { padding: 36px 0 24px; }
  .mer-footer.horizontal-only .footer-nav-links { gap: 10px; }
  .mer-footer.horizontal-only .footer-nav-links a:not(:last-child)::before { display: none; } /* Hide dots on mobile for cleaner wrap grid */
  .mer-footer.horizontal-only .footer-nav-links a {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13.5px;
    border: 1px solid rgba(255,255,255,0.04);
  }
  .mer-footer.horizontal-only .footer-meta-row {
    flex-direction: column;
    text-align: center;
    gap: 18px;
    padding-top: 20px;
  }
  .mer-footer.horizontal-only .meta-counter { justify-content: center; }

  .panel { padding: 26px; }
  .welcome-media::before { display: none; }

}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .brand-name { font-size: 16px; }
  .section-title { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-left, .reveal-right, .reveal-stagger, .reveal-scale { opacity: 1; transform: none; }
}
