/* ============================================================
   DAVANJI EHS Solutions — Public site stylesheet v2
   Palette: navy + orange (primary), yellow + red (accents)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600&display=swap');

:root {
  /* Brand */
  --navy: #0F2A47;
  --navy-light: #1E3F66;
  --navy-deep: #081A2E;
  --orange: #F47B20;
  --orange-dark: #D8651A;
  --orange-soft: #FFF1E3;
  --yellow: #FCC419;
  --yellow-soft: #FFF8DB;
  --red: #D32F2F;
  --red-soft: #FEEBEB;
  --green: #0E8F6E;          /* used only for "success" UI states */

  /* Neutrals */
  --steel: #7A8898;
  --cream: #FAFAF7;
  --white: #ffffff;
  --gray-50: #F8FAFC;
  --gray-100: #F1F4F8;
  --gray-200: #E1E7EF;
  --gray-300: #C6D0DC;
  --gray-400: #94A2B3;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  /* Effects */
  --shadow-sm: 0 1px 3px rgba(15,42,71,.08);
  --shadow:    0 4px 14px rgba(15,42,71,.10), 0 1px 3px rgba(15,42,71,.06);
  --shadow-lg: 0 24px 48px rgba(15,42,71,.14);
  --radius: 8px;
  --radius-lg: 12px;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Source Serif 4', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  letter-spacing: -.015em;
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.2;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { margin: 0 0 1rem; }
a  { color: var(--orange-dark); text-decoration: none; transition: color .15s; }
a:hover { color: var(--orange); }

/* ---------- Layout ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4.5rem 0; }
@media (max-width: 720px) { .section { padding: 3rem 0; } }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-light { background: var(--gray-50); }
.section-dark { background: var(--navy); color: rgba(255,255,255,.92); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: white; }
.section-dark a { color: var(--orange); }
.section-dark a:hover { color: white; }
.text-center { text-align: center; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 700;
  color: var(--orange-dark);
  margin-bottom: 1rem;
}
.eyebrow-light { color: var(--orange); }
.micro-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--steel);
  margin: 0 0 .5rem;
}
.lede { font-size: 1.125rem; color: var(--gray-700); line-height: 1.65; max-width: 65ch; }
.lede-light { color: rgba(255,255,255,.85); }
.serif { font-family: var(--font-display); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
  box-shadow: 0 1px 2px rgba(212,101,26,.3);
}
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: white; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(212,101,26,.25); }
.btn-navy {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-light); border-color: var(--navy-light); color: white; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--gray-300);
}
.btn-ghost:hover { background: var(--navy); color: white; border-color: var(--navy); }
.btn-ghost-light {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,.35);
}
.btn-ghost-light:hover { background: white; color: var(--navy); border-color: white; }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
.btn-lg { padding: 1rem 1.85rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; gap: 2rem; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 44px; width: auto; display: block; }
@media (max-width: 600px) { .brand img { height: 36px; } }

.nav-main { display: flex; align-items: center; gap: 1.6rem; }
.nav-main a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--gray-700);
  position: relative;
  padding: .4rem 0;
}
.nav-main a:hover { color: var(--navy); }
.nav-main a.is-active { color: var(--navy); font-weight: 600; }
.nav-main a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--orange);
}
.nav-cta {
  background: var(--orange);
  color: white !important;
  padding: .55rem 1.1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: .88rem;
  box-shadow: 0 1px 2px rgba(212,101,26,.3);
}
.nav-cta:hover { background: var(--orange-dark) !important; color: white !important; }
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--navy);
}
@media (max-width: 980px) {
  .nav-main { display: none; }
  .nav-toggle { display: block; }
  .nav-main.is-open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: white; padding: 1rem 1.5rem 1.5rem; gap: 0;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
  }
  .nav-main.is-open a { padding: .75rem 0; width: 100%; border-bottom: 1px solid var(--gray-100); }
  .nav-main.is-open .nav-cta { margin-top: .5rem; width: 100%; text-align: center; }
}

/* ---------- Hero ---------- */
.hero { padding: 5rem 0 4.5rem; background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 2rem; } }
.hero-title { margin-bottom: 1.5rem; }
.hero-title em { font-style: normal; color: var(--orange); font-family: var(--font-display); }
.hero-cta { display: flex; gap: .85rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-trust {
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
@media (max-width: 720px) { .hero-trust { grid-template-columns: 1fr; gap: .75rem; } }
.hero-trust p { margin: 0; font-size: .88rem; color: var(--gray-700); }
.hero-trust strong { color: var(--navy); display: block; font-size: 1.05rem; }
.hero-aside {
  background: var(--navy);
  color: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.hero-aside::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: var(--orange); opacity: .15; border-radius: 50%;
}
.hero-aside .micro-label { color: var(--orange); }
.hero-aside h3 { color: white; margin-bottom: 1rem; position: relative; }
.hero-aside ul { margin: 0 0 1.25rem; padding-left: 1.1rem; font-size: .92rem; color: rgba(255,255,255,.85); position: relative; }
.hero-aside li { margin-bottom: .4rem; }
.hero-aside .btn { position: relative; }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 1.25rem 0;
}
.trust-strip-inner {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 1.5rem 3rem; font-size: .82rem; color: var(--gray-600); font-weight: 500;
}
.trust-strip-inner strong { color: var(--navy); }

/* ---------- Section heads ---------- */
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards & grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all .2s ease;
}
.card:hover { border-color: var(--orange); transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover { color: inherit; }

.card-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.card-icon.is-navy { background: var(--gray-100); color: var(--navy); }
.card-icon.is-yellow { background: var(--yellow-soft); color: #92710A; }
.card-icon.is-red { background: var(--red-soft); color: var(--red); }

/* Service card */
.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.service-card-tagline { color: var(--gray-600); font-size: .93rem; margin-bottom: 1rem; flex-grow: 1; }
.service-card-link { color: var(--orange-dark); font-weight: 600; font-size: .9rem; align-self: flex-start; }
.service-card-link::after { content: ' →'; transition: transform .15s; display: inline-block; }
.service-card:hover .service-card-link::after { transform: translateX(3px); }

/* ---------- Service detail ---------- */
.service-detail {
  display: grid; grid-template-columns: 70px 1fr; gap: 2rem;
  padding-bottom: 3.5rem; margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--gray-200);
}
.service-detail:last-child { border-bottom: 0; margin-bottom: 0; }
@media (max-width: 720px) { .service-detail { grid-template-columns: 1fr; gap: 1rem; } }
.service-detail-index { font-family: var(--font-display); font-size: 2.4rem; color: var(--orange); font-weight: 600; line-height: 1; }
.service-detail-title { margin-bottom: .35rem; }
.service-detail-tagline { color: var(--gray-600); font-size: 1.05rem; margin-bottom: 1.5rem; }
.service-detail-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin: 1rem 0 1.5rem; padding: 1.5rem;
  background: var(--cream); border-radius: var(--radius);
}
@media (max-width: 820px) { .service-detail-grid { grid-template-columns: 1fr; gap: 1.25rem; } }
.service-detail-grid p { margin: 0; color: var(--gray-700); font-size: .94rem; }

/* ---------- Forms ---------- */
.form-card { background: white; padding: 2rem; border-radius: var(--radius); border: 1px solid var(--gray-200); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 720px) { .form-row { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .4rem;
}
.form-field .req { color: var(--orange); }
.form-field input[type=text], .form-field input[type=email], .form-field input[type=tel],
.form-field input[type=password], .form-field input[type=url], .form-field input[type=number],
.form-field input[type=date], .form-field input[type=datetime-local],
.form-field select, .form-field textarea {
  width: 100%; padding: .75rem .9rem;
  border: 1px solid var(--gray-300); border-radius: var(--radius);
  font-family: inherit; font-size: .96rem;
  background: white; color: var(--gray-800);
  transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(244,123,32,.12);
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-checkbox label { display: flex; align-items: flex-start; gap: .55rem; font-size: .9rem; font-weight: 400; color: var(--gray-700); text-transform: none; letter-spacing: 0; cursor: pointer; }
.form-checkbox input { margin-top: .25rem; }
.form-note { font-size: .82rem; color: var(--gray-600); margin-top: .35rem; }

/* ---------- Alerts ---------- */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-size: .94rem; }
.alert-error   { background: var(--red-soft);     border-left: 4px solid var(--red);    color: #7C1010; }
.alert-success { background: #E6F7F1;             border-left: 4px solid var(--green);  color: #065F46; }
.alert-info    { background: #E8F1FB;             border-left: 4px solid var(--navy);   color: #1E3A8A; }
.alert-warning { background: var(--yellow-soft);  border-left: 4px solid var(--yellow); color: #7A5A00; }
.alert ul { margin: .35rem 0 0; padding-left: 1.25rem; }
.alert p { margin: 0; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 1100px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  background: white; border: 1px solid var(--gray-200);
  padding: 2rem 1.5rem; border-radius: var(--radius);
  display: flex; flex-direction: column;
}
.price-card.is-featured { border: 2px solid var(--orange); position: relative; box-shadow: var(--shadow); }
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: white;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: .35rem .85rem; border-radius: 999px;
}
.price-tier { font-size: 1.1rem; color: var(--navy); margin-bottom: .25rem; font-weight: 700; }
.price-amount { font-size: 2.4rem; font-weight: 800; color: var(--navy); line-height: 1; }
.price-amount small { font-size: 1rem; color: var(--gray-500); font-weight: 500; }
.price-desc { color: var(--gray-600); font-size: .9rem; margin: .65rem 0 1.5rem; }
.price-features { list-style: none; padding: 0; margin: 0 0 2rem; flex-grow: 1; }
.price-features li { padding: .4rem 0; font-size: .9rem; color: var(--gray-700); position: relative; padding-left: 1.5rem; }
.price-features li::before { content: '✓'; position: absolute; left: 0; color: var(--orange); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 4rem 0 1.5rem; margin-top: 4rem; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 2rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand-block img { height: 40px; width: auto; filter: brightness(0) invert(1); margin-bottom: .85rem; }
.footer-brand-block p { font-size: .9rem; color: rgba(255,255,255,.7); margin: 0; max-width: 280px; }
.site-footer h4 { color: white; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 .85rem; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .25rem 0; font-size: .9rem; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: var(--orange); }
.footer-bottom {
  padding-top: 1.5rem; font-size: .82rem; color: rgba(255,255,255,.5);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-legal-row { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-legal-row a { color: rgba(255,255,255,.55); }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--gray-200); border: 0; margin: 2.5rem 0; }
.text-muted { color: var(--gray-500); }
.text-orange { color: var(--orange-dark); }
.font-display { font-family: var(--font-display); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ---------- Resource cards ---------- */
.resource-card { background: white; border: 1px solid var(--gray-200); padding: 1.5rem; border-radius: var(--radius); display: flex; flex-direction: column; transition: all .2s; }
.resource-card:hover { border-color: var(--orange); transform: translateY(-2px); box-shadow: var(--shadow); }
.resource-card h3 { font-size: 1.1rem; }
.resource-card-desc { color: var(--gray-600); font-size: .9rem; margin-bottom: 1rem; flex-grow: 1; }

/* ---------- Legal pages ---------- */
.legal-page { padding: 3rem 0 5rem; }
.legal-page h1 { margin-bottom: .5rem; }
.legal-page .legal-meta { color: var(--gray-500); font-size: .85rem; margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.3rem; margin-top: 2.5rem; }
.legal-page h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.legal-page p, .legal-page li { color: var(--gray-700); }
.legal-page ul, .legal-page ol { padding-left: 1.5rem; }
.legal-page li { padding: .25rem 0; }
.legal-template-notice { background: var(--yellow-soft); border-left: 4px solid var(--yellow); padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 2rem; font-size: .92rem; color: #7A5A00; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 540px;
  margin: 0 auto; background: var(--navy); color: white;
  padding: 1rem 1.25rem; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  z-index: 100; display: none;
  font-size: .9rem;
}
.cookie-banner.is-visible { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.cookie-banner p { margin: 0; flex: 1; min-width: 200px; }
.cookie-banner .cookie-actions { display: flex; gap: .5rem; }

/* ---------- Panic page ---------- */
.panic-banner { background: var(--red); color: white; padding: 2rem 0; text-align: center; }
.panic-banner h1 { color: white; margin: 0; }
.panic-card { background: white; padding: 1.75rem; border-radius: var(--radius); border-left: 6px solid var(--red); margin-bottom: 1.25rem; }
.panic-card.is-dos { border-left-color: var(--green); }
.panic-card.is-donts { border-left-color: var(--red); }
.panic-card h3 { margin-top: 0; }
.panic-step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: white; font-weight: 700; margin-right: .65rem;
}
