/* ============================================================
   AVETRUS – Shared Stylesheet
   RTO LLND Compliance Platform
   Colours: navy #1B2B5E | blue #2356B2 | blue-mid #3672CC
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy:       #1B2B5E;
  --navy-dark:  #111e42;
  --blue:       #2356B2;
  --blue-mid:   #3672CC;
  --blue-light: #5B9BD5;
  --sky:        #E8F1FB;
  --white:      #ffffff;
  --off-white:  #F5F8FF;
  --grey-100:   #F0F4FA;
  --grey-200:   #DDE5F0;
  --grey-400:   #8A9BBF;
  --grey-600:   #4A5568;
  --text:       #1A2340;
  --text-muted: #5A6A8A;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(27,43,94,0.10);
  --shadow-lg:  0 12px 48px rgba(27,43,94,0.15);
  --ease:       0.25s ease;
  --max-w:      1200px;
  --header-h:   72px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { font-family: inherit; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(1.9rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--text-muted); font-size: 1.05rem; }

/* ── Layout ─────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section    { padding: 80px 0; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px; font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  border: 2px solid transparent; transition: all var(--ease);
  white-space: nowrap; text-align: center;
}
.btn-primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-primary:hover { background: var(--navy); border-color: var(--navy); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(35,86,178,0.35); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline-dark:hover { background: var(--blue); color: var(--white); }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white); border-bottom: 1px solid var(--grey-200);
  box-shadow: 0 2px 16px rgba(27,43,94,0.07);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.logo-wrap img { height: 42px; width: auto; }

/* Desktop nav */
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 8px 13px; border-radius: 6px;
  font-weight: 500; font-size: 0.9rem; color: var(--grey-600);
  transition: all var(--ease);
}
.site-nav a:hover, .site-nav a.active { color: var(--blue); background: var(--sky); }
.nav-btn { padding: 10px 20px !important; margin-left: 6px; color: var(--white) !important; }
.nav-btn:hover { color: var(--white) !important; background: var(--navy) !important; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 40px; height: 40px; padding: 8px;
  background: none; border: none; cursor: pointer; border-radius: 8px;
  transition: background var(--ease);
}
.hamburger:hover { background: var(--sky); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: all 0.3s ease; transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none; flex-direction: column;
  background: var(--white); border-top: 1px solid var(--grey-200);
  padding: 12px 20px 20px; gap: 2px;
}
.mobile-nav a {
  padding: 13px 16px; border-radius: 8px; font-weight: 500;
  font-size: 1rem; color: var(--grey-600); transition: all var(--ease);
  border-bottom: 1px solid var(--grey-100);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--blue); background: var(--sky); }
.mobile-nav a.active { color: var(--blue); }
.mobile-nav .mobile-cta {
  margin-top: 10px; background: var(--blue); color: var(--white) !important;
  border-radius: 8px; text-align: center; font-weight: 600; border-bottom: none !important;
}
.mobile-nav .mobile-cta:hover { background: var(--navy); }
.mobile-nav.open { display: flex; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.3fr; gap: 48px; }
.footer-logo { height: 40px; width: auto; margin-bottom: 16px; }
.footer-tagline { font-size: 0.88rem; line-height: 1.7; margin-bottom: 24px; color: rgba(255,255,255,0.6); }
.footer-col h4 {
  color: var(--white); font-family: 'Syne', sans-serif;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 0.88rem; color: rgba(255,255,255,0.6); transition: color var(--ease); }
.footer-col ul a:hover { color: var(--white); }
.footer-contact-item { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; margin-bottom: 14px; color: rgba(255,255,255,0.6); }
.footer-contact-item svg { flex-shrink: 0; color: var(--blue-light); }
.footer-contact-item a { color: rgba(255,255,255,0.75); transition: color var(--ease); }
.footer-contact-item a:hover { color: var(--white); }
.footer-btn { font-size: 0.85rem !important; padding: 10px 20px !important; margin-top: 4px; }
.footer-partners { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-partners img { height: 28px; width: auto; filter: brightness(0) invert(1); opacity: 0.65; }
.footer-partners img:hover { opacity: 0.9; }
.footer-bottom {
  margin-top: 48px; padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: rgba(255,255,255,0.35);
  flex-wrap: wrap; gap: 8px;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--blue) 100%);
  color: var(--white); padding: 96px 0 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 800px 600px at 80% 50%, rgba(91,155,213,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 10% 80%, rgba(47,125,225,0.15) 0%, transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; position: relative; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px; padding: 6px 16px; font-size: 0.8rem;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.9); margin-bottom: 20px;
}
.hero h1  { color: var(--white); margin-bottom: 18px; }
.hero-desc { color: rgba(255,255,255,0.82) !important; font-size: 1.08rem !important; margin-bottom: 32px !important; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-card {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg); padding: 28px; backdrop-filter: blur(10px);
  width: 100%; max-width: 400px;
}
.hero-card h3 { color: var(--white); margin-bottom: 18px; font-size: 0.95rem; letter-spacing: 0.02em; }
.stat-row { display: flex; flex-direction: column; gap: 12px; }
.stat-item {
  background: rgba(255,255,255,0.07); border-radius: 10px;
  padding: 14px 18px; border-left: 3px solid var(--blue-light);
}
.stat-item strong { display: block; font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 2px; }
.stat-item span   { font-size: 0.82rem; color: rgba(255,255,255,0.6); }

/* ── Page Hero (inner pages) ────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--blue) 100%);
  padding: 72px 0; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 700px 400px at 50% 120%, rgba(91,155,213,0.2) 0%, transparent 70%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero p  { color: rgba(255,255,255,0.78); max-width: 640px; margin: 0 auto; font-size: 1.08rem; }

/* ── Section Labels ─────────────────────────────────────────── */
.section-label {
  display: inline-block; background: var(--sky); color: var(--blue);
  font-weight: 700; font-size: 0.73rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 5px 13px; border-radius: 100px; margin-bottom: 14px;
}
.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }
.section-header h2 { margin-bottom: 12px; }
.section-header p  { max-width: 620px; }
.section-header.center p { margin: 0 auto; }

/* ── Feature Cards ──────────────────────────────────────────── */
.card-grid   { display: grid; gap: 22px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.feature-card {
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg); padding: 30px;
  transition: all var(--ease); position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  opacity: 0; transition: opacity var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-light); }
.feature-card:hover::before { opacity: 1; }
.card-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--sky); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 1.35rem; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p  { font-size: 0.93rem; }

/* ── Highlight Band ─────────────────────────────────────────── */
.highlight-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-mid) 100%);
  color: var(--white); border-radius: var(--radius-lg);
  padding: 52px 48px; position: relative; overflow: hidden;
}
.highlight-band::after {
  content: ''; position: absolute; right: -60px; bottom: -60px;
  width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,0.05);
}
.highlight-band h2 { color: var(--white); margin-bottom: 14px; }
.highlight-band > p, .highlight-band p { color: rgba(255,255,255,0.82); margin-bottom: 24px; }

/* ── Check List ─────────────────────────────────────────────── */
.check-list  { display: flex; flex-direction: column; gap: 12px; }
.check-item  { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--text-muted); }
.check-icon  { flex-shrink: 0; width: 21px; height: 21px; background: var(--blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.check-icon svg { width: 11px; height: 11px; }

/* ── Two Column ─────────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.visual-block { background: linear-gradient(135deg, var(--sky), var(--grey-200)); border-radius: var(--radius-lg); padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.visual-block-item { background: var(--white); border-radius: 10px; padding: 16px 18px; border-left: 4px solid var(--blue); display: flex; align-items: center; gap: 12px; }
.visual-block-item .icon { font-size: 1.25rem; flex-shrink: 0; }
.visual-block-item span { font-weight: 500; font-size: 0.9rem; color: var(--navy); }

/* ── Partner Cards ──────────────────────────────────────────── */
.partner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.partner-card { background: var(--white); border-radius: var(--radius-lg); padding: 36px; border: 1px solid var(--grey-200); }
.partner-card img { height: 44px; width: auto; margin-bottom: 18px; }
.partner-card h3 { margin-bottom: 10px; }

/* ── Integration Grid ───────────────────────────────────────── */
.integration-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.integration-card { border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 26px 18px; text-align: center; background: var(--white); transition: all var(--ease); }
.integration-card:hover { border-color: var(--blue-light); box-shadow: var(--shadow); transform: translateY(-3px); }
.integration-card .int-icon { font-size: 1.9rem; margin-bottom: 10px; }
.integration-card h4 { font-size: 0.85rem; color: var(--navy); }
.integration-card p  { font-size: 0.78rem; margin-top: 5px; }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--grey-200); }
.faq-question {
  width: 100%; background: none; border: none; text-align: left;
  padding: 20px 0; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  font-family: 'Syne', sans-serif; font-size: 0.97rem; font-weight: 600;
  color: var(--navy); transition: color var(--ease);
}
.faq-question:hover { color: var(--blue); }
.faq-arrow { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--sky); display: flex; align-items: center; justify-content: center; transition: transform var(--ease), background var(--ease); }
.faq-item.open .faq-arrow { transform: rotate(180deg); background: var(--blue); }
.faq-item.open .faq-arrow svg { stroke: white; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer-inner { padding: 0 0 20px; }
.faq-answer-inner p { font-size: 0.95rem; line-height: 1.7; }

/* ── Contact Form ───────────────────────────────────────────── */
.contact-form-wrap { background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-full  { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-weight: 600; font-size: 0.85rem; color: var(--navy); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 15px; border: 1.5px solid var(--grey-200); border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 0.93rem; color: var(--text);
  background: var(--off-white); transition: border-color var(--ease); outline: none; width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { margin-top: 6px; }
.form-success { display: none; background: #E8F5E9; border: 1px solid #A5D6A7; border-radius: 8px; padding: 18px; color: #2E7D32; font-weight: 500; margin-top: 14px; }
.form-error   { display: none; background: #FFEBEE; border: 1px solid #FFCDD2; border-radius: 8px; padding: 14px; color: #C62828; font-weight: 500; margin-top: 14px; }

/* ── CTA Strip ──────────────────────────────────────────────── */
.cta-strip { background: linear-gradient(135deg, var(--navy) 0%, var(--blue-mid) 100%); padding: 72px 0; text-align: center; }
.cta-strip h2 { color: var(--white); margin-bottom: 12px; }
.cta-strip p  { color: rgba(255,255,255,0.75); max-width: 500px; margin: 0 auto 28px; }
.cta-actions  { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ── Misc Helpers ───────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 6px; background: var(--sky); color: var(--blue); border-radius: 100px; padding: 5px 12px; font-size: 0.78rem; font-weight: 600; }
.bg-white { background: var(--white); }
.bg-light { background: var(--off-white); }
.bg-grey  { background: var(--grey-100); }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ════════════════════════════════════════════════════════════ */

/* ── Tablet (≤1024px) ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid       { grid-template-columns: 1fr 1fr; gap: 36px; }
  .card-grid-3       { grid-template-columns: repeat(2, 1fr); }
  .integration-grid  { grid-template-columns: repeat(2, 1fr); }
  .two-col           { gap: 40px; }
}

/* ── Mobile (≤768px) ────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  section { padding: 52px 0; }

  /* Header / Nav */
  .site-nav  { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero { padding: 56px 0 48px; }
  .hero-grid   { grid-template-columns: 1fr; gap: 0; }
  .hero-visual { display: none; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; max-width: 320px; }

  /* Page hero */
  .page-hero { padding: 48px 0; }
  .page-hero h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); }

  /* Layouts */
  .two-col        { grid-template-columns: 1fr; gap: 32px; }
  .card-grid-3,
  .card-grid-2    { grid-template-columns: 1fr; }
  .partner-grid   { grid-template-columns: 1fr; }
  .integration-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  /* Highlight band */
  .highlight-band { padding: 32px 24px; }
  .highlight-band .two-col { gap: 28px; }

  /* Feature card */
  .feature-card { padding: 24px; }

  /* Visual block */
  .visual-block { padding: 24px; gap: 12px; }

  /* Contact form */
  .contact-form-wrap { padding: 24px 18px; }
  .form-grid  { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .footer-tags { display: none; }
  .footer-col--brand { order: -1; }
  .footer-partners { gap: 20px; }

  /* CTA */
  .cta-strip { padding: 52px 0; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 300px; }

  /* Section header */
  .section-header { margin-bottom: 36px; }
}

/* ── Small Mobile (≤480px) ──────────────────────────────────── */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .integration-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { max-width: 100%; }
  .cta-actions .btn  { max-width: 100%; }
  .highlight-band { padding: 28px 18px; }
  .contact-form-wrap { padding: 20px 14px; }
  .partner-card { padding: 24px 20px; }
}
