/* =========================================================
   IDI (Intelligent Document Imaging) — stylesheet
   ========================================================= */

:root {
  /* ── IDI brand palette (aubergine + orange) ───────────────
     Values confirmed against the logo/ad — change here only. */
  --c-aubergine:      #4E425A;   /* primary aubergine — sampled from logo */
  --c-aubergine-deep: #4E425A;   /* nav, hero, footer — matches the printed ad ground */
  --c-orange:         #F65623;   /* brand orange — sampled from logo */
  --c-orange-mid:     #FA7D52;   /* lighter orange — eyebrows/labels on dark */
  --c-orange-dark:    #DA4A18;   /* button hover */

  /* legacy names repointed to the brand palette so existing
     rules keep working without touching every reference */
  --c-navy:      var(--c-aubergine);
  --c-navy-deep: var(--c-aubergine-deep);
  --c-amber:     var(--c-orange);
  --c-amber-mid: var(--c-orange-mid);

  --c-cream:      #f7f6f3;
  --c-white:      #ffffff;
  --c-text:       #1c1c2e;
  --c-text-mid:   #4a4a5a;
  --c-border:     #e0ddd8;

  --ff-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ff-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-w:       1100px;
  --section-pad: 5rem 1.5rem;
  --radius:      4px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: var(--ff-body); color: var(--c-text); line-height: 1.7; background: var(--c-white); }
img   { max-width: 100%; display: block; }
a     { color: var(--c-amber); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--ff-heading); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.05rem; font-family: var(--ff-body); font-weight: 600; }
p  { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

/* ── Layout ──────────────────────────────────────────────── */
.container    { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section      { padding: var(--section-pad); }
.section--cream { background: var(--c-cream); }
.section--navy  { background: var(--c-navy-deep); color: var(--c-white); }

/* ── Navigation ──────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-aubergine-deep);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.site-nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-nav__brand {
  font-family: var(--ff-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.site-nav__brand span { color: var(--c-orange); }
.site-nav__logo { height: 38px; width: auto; display: block; }
.site-nav__links { display: flex; gap: 2rem; list-style: none; }
.site-nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
.site-nav__links a:hover { color: var(--c-orange); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-white);
  transition: 0.2s;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: var(--c-navy-deep);
  color: var(--c-white);
  padding: 7rem 1.5rem 6rem;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--c-amber);
}
.hero__inner { max-width: 740px; }
.hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--c-amber-mid);
  margin-bottom: 1.25rem;
}
.hero h1 { color: var(--c-white); margin-bottom: 1rem; line-height: 0; }
.hero__logo { width: min(440px, 88%); height: auto; }
.hero__sub {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(255,255,255,0.82);
  margin-bottom: 0.75rem;
  line-height: 1.55;
}
.hero__support {
  font-size: 1rem;
  color: rgba(255,255,255,0.58);
  margin-bottom: 2.5rem;
}

/* ── Button ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
}
.btn--amber { background: var(--c-amber); color: var(--c-white); }
.btn--amber:hover {
  background: var(--c-orange-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ── Section labels & headings ───────────────────────────── */
.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--c-amber);
  margin-bottom: 0.6rem;
}
.section-heading { margin-bottom: 1.25rem; color: var(--c-navy); }
.section-intro {
  font-size: 1.0625rem;
  color: var(--c-text-mid);
  max-width: 680px;
  margin-bottom: 2.75rem;
  line-height: 1.7;
}

/* ── Services grid ───────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 0;
}
.service-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-top: 3px solid var(--c-amber);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.service-card h3 { margin-bottom: 0.5rem; color: var(--c-navy); }
.service-card p  { font-size: 0.9375rem; color: var(--c-text-mid); }

.services-note {
  margin-top: 1.75rem;
  font-size: 0.9375rem;
  color: var(--c-text-mid);
  font-style: italic;
}

/* ── Why us ──────────────────────────────────────────────── */
.entity-callout {
  display: block;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-navy);
  border-radius: var(--radius);
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  color: var(--c-text-mid);
  margin-top: 2rem;
  font-style: italic;
}
.entity-callout strong { color: var(--c-text); font-style: normal; }

/* ── Information handling ────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.info-card {
  padding: 1.35rem 1.5rem;
  background: var(--c-cream);
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
}
.info-card__heading {
  font-weight: 600;
  color: var(--c-navy);
  margin-bottom: 0.45rem;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.info-card__heading::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--c-amber);
  border-radius: 50%;
  flex-shrink: 0;
}
.info-card p { font-size: 0.9rem; color: var(--c-text-mid); }
.info-note {
  font-size: 0.9375rem;
  color: var(--c-text-mid);
  font-style: italic;
  margin-top: 0.5rem;
}

/* ── Sectors ─────────────────────────────────────────────── */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.sector-item {
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.88);
}
.section--navy .section-heading { color: var(--c-white); }
.section--navy .section-label   { color: rgba(255,255,255,0.45); }
.section--navy p                { color: rgba(255,255,255,0.72); }

/* ── Contact ─────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.contact-intro p { font-size: 1rem; color: var(--c-text-mid); }
.contact-email {
  display: inline-block;
  margin-top: 1.1rem;
  font-weight: 600;
  color: var(--c-navy);
  font-size: 1rem;
}
.contact-email:hover { color: var(--c-amber); text-decoration: none; }

/* ── Form ────────────────────────────────────────────────── */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group   { display: flex; flex-direction: column; gap: 0.3rem; }
.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.875rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: 0.9375rem;
  color: var(--c-text);
  background: var(--c-white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--c-aubergine);
  box-shadow: 0 0 0 3px rgba(68,58,78,0.12);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-submit { margin-top: 0.25rem; }
.form-message {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: none;
}
.form-message--success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.form-message--error   { background: #fce4ec; color: #b71c1c; border: 1px solid #f8bbd0; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--c-navy-deep);
  color: rgba(255,255,255,0.5);
  padding: 2rem 1.5rem;
  font-size: 0.8125rem;
  text-align: center;
  line-height: 1.7;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.6rem;
}
.site-footer a { color: rgba(255,255,255,0.65); }
.site-footer a:hover { color: var(--c-white); text-decoration: none; }

/* ── Privacy page ────────────────────────────────────────── */
.privacy-page { max-width: 740px; margin: 0 auto; padding: 4rem 1.5rem; }
.privacy-page h1 { color: var(--c-navy); margin-bottom: 0.5rem; font-size: 2rem; }
.privacy-page .updated { font-size: 0.875rem; color: var(--c-text-mid); margin-bottom: 2.5rem; }
.privacy-page h2 { font-size: 1.15rem; color: var(--c-navy); margin: 2rem 0 0.6rem; }
.privacy-page p  { color: var(--c-text-mid); font-size: 0.9375rem; }
.privacy-page a  { color: var(--c-navy); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --section-pad: 3.5rem 1.25rem; }

  .nav-toggle { display: flex; }
  .site-nav { position: sticky; }
  .site-nav__links {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--c-aubergine-deep);
    border-bottom: 1px solid rgba(255,255,255,0.10);
    flex-direction: column;
    gap: 0;
  }
  .site-nav__links.is-open { display: flex; }
  .site-nav__links li { border-bottom: 1px solid rgba(255,255,255,0.10); }
  .site-nav__links a  { display: block; padding: 0.85rem 1.5rem; }

  .hero { padding: 4.5rem 1.25rem 3.5rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .sectors-grid  { grid-template-columns: 1fr; }
  .info-grid     { grid-template-columns: 1fr; }
}

/* ── Print ───────────────────────────────────────────────── */
@media print {
  .site-nav, .btn, .contact-form, .nav-toggle { display: none !important; }
  .hero { background: none; color: var(--c-text); padding: 1rem 0; }
  .hero::after { display: none; }
  .hero h1, .hero__sub, .hero__support { color: var(--c-text); }
  .section--navy { background: none; color: var(--c-text); }
  .sector-item   { border-color: var(--c-border); color: var(--c-text); }
  .section--navy .section-heading,
  .section--navy p { color: var(--c-text); }
}
