/* ================================
   Inter-Arc Consultants Ltd
   Design tokens
   ================================ */
:root {
  --ink: #0c0c29;
  --ink-soft: #171725;
  --paper: #FBFAF7;
  --panel: #EDEEE9;
  --panel-line: #DBDCD5;
  --arc-red: #1c6dd6;
  --arc-red-dark: #144f9e;
  --steel: #7C8683;
  --gold: #4176d9;
  --white: #FFFFFF;
  --brand-dark: #0c0c29;
  --surface: var(--white);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container: 1180px;
  --radius: 4px;
}

/* ============ DARK MODE ============
   --brand-dark and --white are intentionally left unchanged here:
   the hero, footer, CTA band, mobile menu, and preloader are a fixed
   dark-navy brand element in both themes, with white text on them.
   Only the *content* surfaces (page background, cards, text) flip. */
html[data-theme="dark"] {
  --ink: #F2F1EC;
  --ink-soft: #C9CCC5;
  --paper: #0B0B14;
  --panel: #15151F;
  --panel-line: #2A2A3A;
  --steel: #9096A0;
  --surface: #15151F;
}
html[data-theme="dark"] .site-header {
  background: rgba(11, 11, 20, 0.92);
}

/* ============ LOGO THEME SWAP ============
   The header/nav sits on a surface that flips with the theme, so its
   logo swaps between the dark-text mark (light mode) and white-text
   mark (dark mode). The preloader, mobile menu and footer are always
   on the fixed dark-navy brand background, so they always use the
   white-text mark regardless of theme. */
.brand .logo-dark { display: none; }
html[data-theme="dark"] .brand .logo-light { display: none; }
html[data-theme="dark"] .brand .logo-dark { display: block; }

/* ============ PRELOADER ============ */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--brand-dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .4s ease, visibility .4s ease;
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-inner {
  text-align: center;
}
.preloader-logo {
  height: 48px;
  margin-bottom: 24px;
}
.preloader-bar {
  width: 120px;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
}
.preloader-fill {
  width: 100%;
  height: 100%;
  background: var(--arc-red);
  animation: preloaderSlide 1s ease-in-out infinite;
  transform-origin: left;
}
@keyframes preloaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.4rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--arc-red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--arc-red);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color .2s ease;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--arc-red); color: var(--white); }
.btn-primary:hover { background: var(--arc-red-dark); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

@media (max-width: 640px) {
  .btn {
    padding: 10px 18px;
    font-size: 0.85rem;
    gap: 6px;
  }
}
.btn-ghost { border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }

/* ============ NAV ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--panel-line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
  font-size: 0.93rem;
  font-weight: 500;
}
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--arc-red);
  transition: width .2s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-toggle { display: none; }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--panel-line);
  border-radius: 50%;
  background: none;
  color: var(--ink);
  cursor: pointer;
  margin-left: 12px;
  transition: border-color .2s ease, transform .15s ease;
}
.theme-toggle:hover { border-color: var(--arc-red); transform: translateY(-1px); }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle {
    display: block; background: none; border: none; cursor: pointer;
  }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  background: var(--brand-dark);
  color: var(--paper);
  overflow: hidden;
  padding: 100px 0 0;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-arc {
  position: absolute;
  right: -160px;
  top: -220px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  border: 90px solid var(--arc-red);
  opacity: 0.9;
  z-index: 1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--white);
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--arc-red);
}
.hero p.lead {
  font-size: 1.15rem;
  color: #D3D6D0;
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 32px;
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 2;
}
.hero-panel .badge-row {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero-panel ul { list-style: none; }
.hero-panel li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 0.95rem;
}
.hero-panel li:last-child { border-bottom: none; }
.hero-panel li span:first-child { color: #B9BDB6; }
.hero-panel li span:last-child { font-weight: 600; color: var(--white); }

.stat-strip {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 28px 0;
  position: relative;
  z-index: 2;
}
.stat-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-item .num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--white);
  font-weight: 600;
}
.stat-item .label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 4px;
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .stat-strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .hero-arc { width: 420px; height: 420px; border-width: 60px; right: -140px; top: -140px; }
}

/* ============ SECTION shared ============ */
section { padding: 96px 0; }
.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin-top: 12px; }
.panel-bg { background: var(--panel); }

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.about-copy p { color: var(--ink-soft); margin-bottom: 18px; }
.accred-box {
  border: 1px solid var(--panel-line);
  border-left: 4px solid var(--arc-red);
  padding: 20px 22px;
  background: var(--surface);
  border-radius: var(--radius);
  margin-top: 24px;
}
.accred-box .eyebrow { margin-bottom: 8px; }

.pillar-list { display: flex; flex-direction: column; gap: 0; }
.pillar {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--panel-line);
}
.pillar:first-child { padding-top: 0; }
.pillar-mark {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--arc-red);
  border: 1px solid var(--arc-red);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.pillar h4 { font-family: var(--font-body); font-size: 1.08rem; font-weight: 700; margin-bottom: 6px; }
.pillar p { color: var(--ink-soft); font-size: 0.96rem; }

.about-grid-single { grid-template-columns: 1fr; max-width: 760px; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============ SERVICES ============ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.svc-card {
  background: var(--surface);
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  padding: 30px 26px;
  transition: border-color .2s ease, transform .2s ease;
}
.svc-card:hover { border-color: var(--arc-red); transform: translateY(-4px); }
.svc-card .num { font-family: var(--font-mono); color: var(--steel); font-size: 0.8rem; margin-bottom: 18px; }
.svc-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.svc-card p { color: var(--ink-soft); font-size: 0.93rem; }
.svc-card .arc-underline {
  width: 32px; height: 3px; background: var(--arc-red); margin-top: 20px; border-radius: 2px;
}

@media (max-width: 980px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }

.svc-grid-12 { grid-template-columns: repeat(3, 1fr); }
.svc-grid-12 .svc-card h3 { font-size: 1.05rem; min-height: 52px; }
@media (max-width: 980px) { .svc-grid-12 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .svc-grid-12 { grid-template-columns: 1fr; } }

/* ============ JOBS ============ */
.jobs-controls {
  display: flex;
  gap: 14px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.jobs-controls input, .jobs-controls select {
  font-family: var(--font-body);
  padding: 12px 16px;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.93rem;
}
.jobs-controls input { flex: 1; min-width: 220px; }
.jobs-controls input::placeholder { color: var(--steel); }

.job-list { display: flex; flex-direction: column; gap: 14px; }
.job-card {
  background: var(--surface);
  border: 1px solid var(--panel-line);
  border-left: 4px solid var(--arc-red);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}
.job-card h4 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.job-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--steel); font-family: var(--font-mono);
}
.job-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--panel);
  padding: 4px 10px;
  border-radius: 20px;
  color: var(--ink-soft);
}
.job-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
.job-note {
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--steel);
  border-top: 1px dashed var(--panel-line);
  padding-top: 20px;
}

@media (max-width: 640px) {
  .job-card { grid-template-columns: 1fr; }
}

/* ============ FAQ ============ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq-item.open { border-color: var(--arc-red); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
}
.faq-icon {
  flex: none;
  width: 20px;
  height: 20px;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--arc-red);
  border-radius: 2px;
  transition: transform .25s ease;
}
.faq-icon::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-icon::after { left: 50%; top: 0; height: 100%; width: 2px; transform: translateX(-50%); }
.faq-item.open .faq-icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; }
.faq-answer p {
  padding: 0 24px 22px;
  color: var(--ink-soft);
  font-size: 0.93rem;
  max-width: 68ch;
}

/* ============ CTA BAND ============ */
.cta-band {
  background: var(--brand-dark);
  color: var(--white);
  text-align: center;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--white); margin-bottom: 16px; }
.cta-band p { color: #C9CCC5; max-width: 52ch; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-info-list { display: flex; flex-direction: column; gap: 26px; }
.contact-info-item { display: flex; gap: 16px; }
.contact-icon {
  width: 40px; height: 40px; flex: none;
  border-radius: 50%;
  background: var(--panel);
  display: flex; align-items: center; justify-content: center;
  color: var(--arc-red);
}
.contact-info-item h4 { font-family: var(--font-body); font-size: 0.95rem; margin-bottom: 4px; }
.contact-info-item p, .contact-info-item a { color: var(--ink-soft); font-size: 0.93rem; display: block; }

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft);
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.93rem;
  background: var(--surface);
  color: var(--ink);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--steel); }
.form-field textarea { resize: vertical; min-height: 110px; }
.form-status {
  margin-top: 14px;
  font-size: 0.88rem;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { color: #2E7D32; }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--brand-dark);
  color: #B9BDB6;
  padding: 56px 0 28px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand img { height: 38px; margin-bottom: 14px; }
.footer-brand p { max-width: 34ch; color: var(--steel); }
.footer-col h5 {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; padding-top: 24px;
  flex-wrap: wrap; gap: 10px; font-size: 0.82rem;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============ MOBILE MENU ============ */
.mobile-menu {
  position: fixed; inset: 0; background: var(--brand-dark); z-index: 200;
  display: none; flex-direction: column; padding: 28px 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-menu a {
  color: var(--white); font-family: var(--font-display); font-size: 1.6rem;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu .close-btn { background: none; border: none; color: var(--white); font-size: 1.8rem; cursor: pointer; }
.mobile-cta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mobile-cta .btn {
  text-align: center;
  justify-content: center;
  width: 100%;
}

/* ============ REVEAL ANIM ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--arc-red);
  outline-offset: 2px;
}


/* Visual Service Cards */
.visual-services {
display:grid;
grid-template-columns:repeat(3,1fr);
gap:28px;
}

.visual-services .svc-card {
padding:0;
overflow:hidden;
background:var(--surface);
}

.visual-services img {
width:100%;
height:220px;
object-fit:cover;
transition:transform .5s ease;
}

.visual-services .svc-card:hover img {
transform:scale(1.08);
}

.visual-services h3,
.visual-services p {
padding-left:26px;
padding-right:26px;
}

.visual-services h3 {
margin-top:22px;
}

.visual-services p {
padding-bottom:28px;
}

@media(max-width:980px){
.visual-services{grid-template-columns:1fr 1fr;}
}

@media(max-width:600px){
.visual-services{grid-template-columns:1fr;}
}

/* ============ WHATSAPP FLOAT ============ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  z-index: 900;
  animation: whatsappPulse 2.2s ease-in-out infinite;
  transition: transform .15s ease;
}
.whatsapp-float:hover {
  transform: scale(1.08);
}
.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  50% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
}

@media (max-width: 640px) {
  .whatsapp-float {
    width: 44px;
    height: 44px;
    bottom: 16px;
    right: 12px;
  }
  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}
