/* ============================================================
   Subull · cross-locale typography + mobile menu + form a11y
   ============================================================ */

/* ============= Fluid container · scales with viewport =============
   The base design ships with --container: 1280px which leaves big
   empty gutters on wide monitors (1440 / 1680 / 1920 / 2560). We
   widen the container progressively as the viewport grows so the
   layout fills the screen on large displays without distorting
   on laptops. */
@media (min-width: 1440px) {
  :root { --container: 1360px; }
}
@media (min-width: 1600px) {
  :root { --container: 1480px; }
}
@media (min-width: 1800px) {
  :root { --container: 1600px; }
}
@media (min-width: 2000px) {
  :root { --container: 1760px; }
}
@media (min-width: 2400px) {
  :root { --container: 1920px; }
}

/* Tighter spacing between Hero and Services Pillars sections. */
.hero { padding-bottom: 64px; }
.pillars { padding-top: 56px; }

/* Compact footer · reduce overall vertical bulk */
.site-footer { padding-top: 56px; font-size: 14px; }
.footer-top {
  gap: 40px;
  padding-bottom: 36px;
}
.footer-brand .logo { height: 44px; margin-bottom: 14px; }
.footer-tagline {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.footer-wa { padding: 8px 14px; font-size: 13px; }
.footer-col h4 {
  font-size: 13px;
  margin: 0 0 14px;
}
.footer-links { gap: 8px; }
.footer-links a { font-size: 13.5px; }
.footer-contact { gap: 12px; }
.footer-contact li { grid-template-columns: 18px 1fr; gap: 10px; }
.footer-contact svg { width: 16px; height: 16px; margin-top: 2px; }
.footer-contact-label { font-size: 11px; margin-bottom: 1px; }
.footer-contact-value { font-size: 13.5px; line-height: 1.5; }
.footer-bottom {
  padding: 16px 0 18px;
  font-size: 12.5px;
}
.footer-copyright { font-size: 12.5px; }


/* Header nav links — bolder weight for a stronger hierarchy. */
.nav a {
  font-weight: 700;
  font-size: 16px;
  opacity: 0.92;
}
.nav a:hover { opacity: 1; }
.nav a.active { opacity: 1; color: var(--navy); }

/* On ultra-wide displays let the hero visual breathe so the device
   collage doesn't sit far from the copy column. */
@media (min-width: 1600px) {
  .hero-grid { gap: 100px; }
  .hero { padding: 112px 0 72px; }
}
@media (min-width: 1800px) {
  .hero-headline { font-size: clamp(48px, 4.6vw, 84px); }
  .hero-sub { font-size: 20px; max-width: 640px; }
}


/* Per-locale font selection. Cairo handles Arabic gorgeously;
   Inter handles Latin. Hindi needs Devanagari support — fall back
   to Noto Sans Devanagari. */
.locale-en, .locale-fr {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.locale-hi {
  font-family: 'Noto Sans Devanagari', 'Inter', system-ui, sans-serif;
}
.locale-en .hero-headline,
.locale-fr .hero-headline,
.locale-hi .hero-headline {
  font-family: inherit;
  font-weight: 800;
}

/* In LTR locales, flip the hero device offsets (kept centered) */
[dir="ltr"] .hero-visual { margin-inline-start: 0; margin-inline-end: 0; margin-left: auto; margin-right: 0; }

/* Skip link for keyboard a11y */
.skip {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  z-index: 100;
}
.skip:focus { inset-inline-start: 16px; top: 16px; outline: 2px solid var(--bronze); }

/* ============= Mobile menu drawer ============= */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: rgba(250, 250, 247, 0.98);
  backdrop-filter: blur(14px);
  padding: 12px 20px 20px;
}
.mobile-nav[hidden] { display: none !important; }
.mobile-nav.is-open { display: block; }
.mobile-nav nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav nav a {
  display: block;
  padding: 12px 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--border-soft);
}
.mobile-nav nav a:last-child { border-bottom: 0; }
.mobile-nav-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.mobile-nav-langs a {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink);
}
.mobile-nav-langs a.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ============= Form a11y / errors / success ============= */
.field-error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #b91c1c;
}
.cta-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
}

/* ============= Responsive guard-rails ============= */
@media (max-width: 900px) {
  .nav { display: none !important; }
  .menu-btn { display: inline-flex !important; }
  .header-actions .btn-primary { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-headline { font-size: clamp(32px, 8vw, 44px); }
  .hero-sub { font-size: 16px; }
  .hero-visual { max-width: 100%; aspect-ratio: 4/3; }
  .pillars { padding: 56px 0 64px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar { border-inline-end: 0; border-bottom: 1px solid var(--border); }
  .pillar:last-child { border-bottom: 0; }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Improve very small screens */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .hero-eyebrow { font-size: 12px; }
  .header-inner { gap: 8px; }
  .logo-img { height: 36px !important; }
  .btn { padding: 9px 14px; font-size: 14px; }
}

/* Tablet/iPad portrait fixes */
@media (min-width: 641px) and (max-width: 1024px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(2n) { border-inline-end: 0; }
  .pillar:nth-child(3n) { border-inline-end: 1px solid var(--border); }
  .pillar { border-bottom: 1px solid var(--border); }
}

/* Footer columns reflow */
@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* Lock body when mobile menu open */
body.menu-open { overflow: hidden; }
