/* Accredify theme palette + homepage redesign (2026-09) */
:root {
  --ink:          oklch(22% 0.04 245);
  --ink-muted:    oklch(42% 0.05 245);
  --ink-faint:    oklch(58% 0.03 245);
  --brand:        oklch(38% 0.20 255);
  --brand-mid:    oklch(48% 0.20 255);
  --brand-pale:   oklch(95% 0.03 255);
  --brand-dark:   oklch(25% 0.18 255);
  --amber:        oklch(72% 0.14 70);
  --amber-pale:   oklch(96% 0.04 70);
  --surface:      oklch(97.5% 0.005 245);
  --card:         oklch(99.5% 0.003 245);
  --border:       oklch(91% 0.008 245);

  --text-xs:   clamp(0.75rem,  0.7rem  + 0.2vw, 0.85rem);
  --text-sm:   clamp(0.875rem, 0.85rem + 0.2vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.5vw,  1.375rem);
  --text-xl:   clamp(1.375rem, 1.1rem  + 1vw,    1.875rem);
  --text-2xl:  clamp(1.75rem,  1.3rem  + 2vw,    2.75rem);
  --text-3xl:  clamp(2.25rem,  1.6rem  + 2.5vw,  3.75rem);
  --text-hero: clamp(2.5rem,   1.8rem  + 3.5vw,  5rem);
}

/* ---------------------------------------------------------------------
   SITE-WIDE THEME: retint the shared header/footer (main.css reads these
   variables) so every page's nav, headings, links, and footer match the
   homepage brand colors, without touching layout/structure or linkage.
--------------------------------------------------------------------- */
:root {
  --accent-color: var(--brand);
  --heading-color: var(--ink);
  --nav-color: var(--ink-muted);
  --nav-hover-color: var(--brand);
  --nav-dropdown-background-color: var(--card);
  --nav-dropdown-color: var(--ink-muted);
  --nav-dropdown-hover-color: var(--brand);
  --nav-mobile-background-color: var(--card);
}

body { font-family: 'Source Sans 3', system-ui, sans-serif; }
h1, h2, h3, h4, h5, h6 { font-family: 'Bitter', serif; }

.btn-getstarted { background: var(--brand) !important; }
.btn-getstarted:hover { background: var(--brand-mid) !important; }

/* Site-wide flat nav (matches public_html/layout/header.php markup) */
#header.header { background: var(--card); padding: 0; box-shadow: none; border-bottom: 1px solid var(--border); }
/* Neutralize legacy main.css ".hero::before" full-cover white overlay (meant for the old
   ".hero-content" carousel markup) which otherwise paints over our new hero content. */
.home-v2 .hero::before, .cert-v2 .hero::before { content: none; }
.home-v2 .hero, .cert-v2 .hero { background: none; }
#header .nav-inner { max-width: 1180px; margin: 0 auto; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 clamp(20px, 5vw, 48px); width: 100%; }
#header .nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
#header .nav-logo img { display: block; height: 40px; width: auto; }
#header .nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
#header .nav-links > li { position: relative; }
#header .nav-links a { font-size: var(--text-sm); font-weight: 600; color: var(--ink-muted); text-decoration: none; transition: color 0.15s; white-space: nowrap; }
#header .nav-links a:hover { color: var(--brand); }
#header .nav-links .nav-cta { background: var(--brand); color: #fff !important; padding: 10px 20px; border-radius: 6px; font-weight: 700 !important; transition: background 0.15s, transform 0.15s; }
#header .nav-links .nav-cta:hover { background: var(--brand-mid); transform: translateY(-1px); }
@media (max-width: 900px) { #header .nav-links li:not(.nav-cta-item) { display: none; } }
@media (max-width: 480px) { #header .nav-inner { gap: 10px; } #header .nav-logo img { height: 30px; } #header .nav-links .nav-cta { padding: 9px 14px; font-size: var(--text-xs); } }

/* Dropdown submenus on the flat nav (hover-based, desktop) */
#header .nav-links .has-dropdown > a { display: inline-flex; align-items: center; gap: 5px; }
#header .nav-links .has-dropdown > a::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-top: -3px; opacity: 0.6; }
#header .dropdown-menu-v2 { display: none; position: absolute; top: 100%; left: -16px; min-width: 240px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 28px rgba(20, 30, 60, 0.12); padding: 10px; margin-top: 14px; list-style: none; z-index: 200; }
#header .nav-links .has-dropdown:hover .dropdown-menu-v2 { display: block; }
#header .dropdown-menu-v2 li + li { margin-top: 2px; }
#header .dropdown-menu-v2 a { display: block; padding: 8px 10px; border-radius: 6px; font-size: var(--text-sm); font-weight: 500; color: var(--ink-muted); white-space: normal; }
#header .dropdown-menu-v2 a:hover { background: var(--brand-pale); color: var(--brand); }
#header .dropdown-menu-v2 .dropdown-view-all { font-weight: 700; color: var(--brand); border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px; }

/* Site-wide compact "Ready to start" CTA (replaces tall bright-blue call-to-action-2) */
.cta-compact { background: var(--brand-dark); padding: 28px 0; }
.cta-compact-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-compact-text h2 { font-family: 'Bitter', serif; color: #fff; font-size: clamp(1.15rem, 1rem + 1vw, 1.5rem); margin-bottom: 6px; }
.cta-compact-text p { color: oklch(78% 0.05 245); font-size: 0.9rem; margin: 0; max-width: 56ch; }
.cta-compact-text p b { color: #fff; }
.cta-compact-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }
.cta-compact-btn { background: var(--amber); color: oklch(20% 0.05 70); padding: 10px 18px; border-radius: 6px; font-weight: 700; font-size: 0.85rem; text-decoration: none; white-space: nowrap; }
.cta-compact-btn.outline { background: transparent; border: 1px solid rgba(255,255,255,0.4); color: #fff; }
@media (max-width: 860px) { .cta-compact-inner { flex-direction: column; align-items: flex-start; } }

/* Site-wide footer re-theme (matches public_html/layout/footer-section.php markup) */
.footer {
  background: var(--brand-dark);
  color: oklch(72% 0.04 245);
  padding: 56px 0 32px;
}
.footer .footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 0;
  margin-bottom: 40px;
}
.footer .footer-logo-name { font-family: 'Bitter', serif; font-size: 1.25rem; font-weight: 700; color: #fff; }
.footer .footer-tagline { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber); margin-top: 4px; }
.footer .footer-desc { font-size: var(--text-sm); line-height: 1.65; max-width: 34ch; color: oklch(72% 0.04 245); margin-top: 14px; }
.footer .footer-address { display: flex; align-items: flex-start; gap: 10px; font-style: normal; font-size: var(--text-xs); margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.footer .footer-address-icon { flex: 0 0 20px; margin-top: 2px; color: var(--amber); }
.footer .footer-col-heading { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer .footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
.footer .footer-links a { font-size: var(--text-sm); color: oklch(65% 0.04 245); text-decoration: none; transition: color 0.15s; }
.footer .footer-links a:hover { color: #fff; }
.footer .footer-bottom { border-top: 1px solid oklch(32% 0.06 255); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer .footer-legal { font-size: var(--text-xs); color: oklch(52% 0.03 245); }
@media (max-width: 960px) { .footer .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer .footer-top { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   HOMEPAGE REDESIGN — scoped to .home-v2 so it never affects the other
   ~150 pages, which keep their existing content, layout and linkage.
--------------------------------------------------------------------- */
.home-v2 { font-size: var(--text-base); line-height: 1.65; color: var(--ink); }
.home-v2 .container { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
.home-v2 section { padding: clamp(48px, 7vw, 88px) 0; }
.home-v2 .section-alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.home-v2 .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin-bottom: 16px; }
.home-v2 .eyebrow-dot { width: 6px; height: 6px; background: var(--amber); border-radius: 50%; flex-shrink: 0; }
.home-v2 .section-title { font-family: 'Bitter', serif; font-size: var(--text-2xl); font-weight: 700; color: var(--ink); letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 16px; max-width: 100%; }
.home-v2 .section-sub { font-size: var(--text-base); color: var(--ink-muted); max-width: 62ch; margin-bottom: 40px; line-height: 1.7; }

/* Reveal-on-scroll (see assets/js/main.js IntersectionObserver) */
/* Content remains readable if scripts are blocked, stale, or unavailable. */
.home-v2 .reveal { opacity: 1; transform: none; }
.home-v2 .reveal.visible { animation: home-reveal 0.5s cubic-bezier(0.16,1,0.3,1) backwards; }
@keyframes home-reveal { from { transform: translateY(20px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .home-v2 .reveal.visible { animation: none; }
}
.home-v2 .reveal-d1 { transition-delay: 80ms; }
.home-v2 .reveal-d2 { transition-delay: 160ms; }
.home-v2 .reveal-d3 { transition-delay: 240ms; }
.home-v2 .reveal-d4 { transition-delay: 320ms; }

/* HERO */
.home-v2 .hero { padding: clamp(56px, 9vw, 96px) 0 clamp(40px, 6vw, 64px); }
.home-v2 .hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.home-v2 .hero h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 22px; }
.home-v2 .hero-sub { font-size: var(--text-lg); color: var(--ink-muted); line-height: 1.6; margin-bottom: 32px; max-width: 56ch; }
.home-v2 .hero-ctas { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.home-v2 .hero-secondary { font-size: var(--text-sm); font-weight: 600; color: var(--ink-muted); text-decoration: none; }
.home-v2 .hero-secondary:hover { color: var(--brand); }
.home-v2 .hero-panel { background: var(--brand-dark); border-radius: 16px; padding: clamp(28px, 4vw, 36px); color: white; }
.home-v2 .hero-panel-label { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); margin-bottom: 18px; }
.home-v2 .hero-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.home-v2 .hero-stat b { display: block; font-family: 'Bitter', serif; font-size: var(--text-xl); font-weight: 700; }
.home-v2 .hero-stat span { font-size: var(--text-xs); color: oklch(78% 0.05 245); line-height: 1.4; }
@media (max-width: 900px) { .home-v2 .hero-grid { grid-template-columns: 1fr; } }

.home-v2 .btn-primary { background: var(--brand); color: white; padding: 15px 28px; border-radius: 6px; font-size: var(--text-base); font-weight: 700; text-decoration: none; border: none; cursor: pointer; transition: background 0.15s, transform 0.15s; display: inline-block; white-space: nowrap; }
.home-v2 .btn-primary:hover { background: var(--brand-mid); transform: translateY(-1px); }
.home-v2 .btn-amber { background: var(--amber); color: oklch(20% 0.05 70); padding: 15px 28px; border-radius: 6px; font-size: var(--text-base); font-weight: 700; text-decoration: none; border: none; cursor: pointer; transition: opacity 0.15s, transform 0.15s; display: inline-block; white-space: nowrap; }
.home-v2 .btn-amber:hover { opacity: 0.9; transform: translateY(-1px); }

/* ACCREDITATION CARDS (real UAF/IAF logos + verify links) */
.home-v2 .accred-strip { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.home-v2 .accred-card { display: flex; align-items: stretch; gap: 0; flex: 1 1 260px; min-width: 0; max-width: 340px; background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.home-v2 .accred-logo { width: 52px; height: 52px; object-fit: contain; padding: 8px; background: #fff; flex-shrink: 0; align-self: center; }
.home-v2 .accred-body { padding: 12px 14px 12px 4px; min-width: 0; }
.home-v2 .accred-status { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: #16794a; margin-bottom: 4px; }
.home-v2 .accred-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }
.home-v2 .accred-title { font-size: var(--text-sm); font-weight: 700; color: var(--ink); line-height: 1.3; }
.home-v2 .accred-sub { font-size: var(--text-xs); color: var(--brand); font-weight: 600; margin-top: 2px; }
.home-v2 .accred-link { display: inline-block; margin-top: 6px; font-size: var(--text-xs); font-weight: 600; color: var(--brand); text-decoration: underline; }
@media (max-width: 420px) { .home-v2 .accred-card { flex: 1 1 100%; max-width: 100%; } }

/* PER-FRAMEWORK PROOF STRIP */
.home-v2 .proof-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.home-v2 .proof-card { display: block; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 20px; text-align: center; text-decoration: none; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.home-v2 .proof-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(8, 37, 69, 0.08); }
.home-v2 .proof-card b { display: block; font-family: 'Bitter', serif; font-size: var(--text-xl); font-weight: 700; color: var(--brand); }
.home-v2 .proof-card span { font-size: var(--text-xs); color: var(--ink-muted); }
.home-v2 .proof-footnote { font-size: var(--text-xs); color: var(--ink-faint); margin-top: 14px; font-style: italic; }
@media (max-width: 900px) { .home-v2 .proof-strip { grid-template-columns: repeat(2, 1fr); } }

/* QUICK-START PATHWAYS */
.home-v2 .pathway-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.home-v2 .pathway-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 24px 20px; text-decoration: none; transition: border-color 0.15s, transform 0.15s; display: block; }
.home-v2 .pathway-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.home-v2 .pathway-card b { display: block; font-family: 'Bitter', serif; font-size: var(--text-base); color: var(--ink); margin-bottom: 6px; }
.home-v2 .pathway-card span { font-size: var(--text-sm); color: var(--ink-muted); }
@media (max-width: 900px) { .home-v2 .pathway-grid { grid-template-columns: 1fr 1fr; } }

/* STANDARDS GRID */
.home-v2 .standards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.home-v2 .standard-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 26px; display: flex; flex-direction: column; text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.home-v2 .standard-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.home-v2 .standard-card .std-code { font-family: 'Bitter', serif; font-weight: 700; font-size: var(--text-lg); color: var(--brand); margin-bottom: 6px; }
.home-v2 .standard-card p { font-size: var(--text-sm); color: var(--ink-muted); line-height: 1.6; margin-bottom: 16px; flex: 1; }
.home-v2 .standard-card .std-link { font-size: var(--text-sm); font-weight: 700; color: var(--brand); text-decoration: none; }
.home-v2 .standard-card:hover .std-link { text-decoration: underline; }
@media (max-width: 900px) { .home-v2 .standards-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .home-v2 .standards-grid { grid-template-columns: 1fr; } }

/* COMPLIANCE MATRIX */
.home-v2 .matrix-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.home-v2 .matrix-card { display: block; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 20px 22px; text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.home-v2 .matrix-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.home-v2 .matrix-card h4 { font-family: 'Bitter', serif; font-size: var(--text-base); color: var(--ink); margin-bottom: 8px; }
.home-v2 .matrix-card p { font-size: var(--text-sm); color: var(--ink-muted); line-height: 1.55; }
@media (max-width: 900px) { .home-v2 .matrix-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .home-v2 .matrix-grid { grid-template-columns: 1fr; } }

/* INDUSTRY PATHWAYS */
.home-v2 .industry-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.home-v2 .industry-card { display: block; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 18px; text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.home-v2 .industry-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.home-v2 .industry-card b { display: block; font-family: 'Bitter', serif; font-size: var(--text-sm); color: var(--ink); margin-bottom: 6px; }
.home-v2 .industry-card span { font-size: 12.5px; color: var(--ink-muted); line-height: 1.5; }
@media (max-width: 960px) { .home-v2 .industry-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 600px) { .home-v2 .industry-grid { grid-template-columns: 1fr 1fr; } }

/* LIFECYCLE STEPS */
.home-v2 .lifecycle { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; counter-reset: step; }
.home-v2 .lifecycle-step { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 20px 16px; position: relative; }
.home-v2 .lifecycle-step::before { counter-increment: step; content: counter(step); font-family: 'Bitter', serif; font-weight: 700; font-size: var(--text-lg); color: var(--brand-pale); background: var(--brand); width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.home-v2 .lifecycle-step b { display: block; font-size: var(--text-sm); font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.home-v2 .lifecycle-step span { font-size: 12.5px; color: var(--ink-muted); line-height: 1.5; }
@media (max-width: 1000px) { .home-v2 .lifecycle { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px) { .home-v2 .lifecycle { grid-template-columns: 1fr 1fr; } }

/* GOVERNANCE */
.home-v2 .governance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.home-v2 .governance-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 22px 24px; }
.home-v2 .governance-card h4 { font-family: 'Bitter', serif; font-size: var(--text-base); color: var(--ink); margin-bottom: 8px; }
.home-v2 .governance-card p { font-size: var(--text-sm); color: var(--ink-muted); line-height: 1.6; }
@media (max-width: 700px) { .home-v2 .governance-grid { grid-template-columns: 1fr; } }

/* TESTIMONIALS */
.home-v2 .testimonial-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.home-v2 .testimonial-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; }
.home-v2 .testimonial-stars { color: var(--amber); font-size: 14px; margin-bottom: 12px; letter-spacing: 2px; }
.home-v2 .testimonial-card p { font-size: var(--text-sm); color: var(--ink-muted); line-height: 1.65; flex: 1; margin-bottom: 16px; }
.home-v2 .testimonial-attr { font-size: var(--text-xs); font-weight: 700; color: var(--ink); }
.home-v2 .testimonial-attr span { display: block; font-weight: 400; color: var(--ink-faint); margin-top: 2px; }
.home-v2 .testimonial-card.placeholder { border-style: dashed; display: flex; align-items: center; justify-content: center; text-align: center; }
.home-v2 .testimonial-card.placeholder p { font-size: var(--text-xs); color: var(--ink-faint); font-style: italic; margin: 0; }
@media (max-width: 960px) { .home-v2 .testimonial-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .home-v2 .testimonial-grid { grid-template-columns: 1fr; } }

/* BENEFITS */
.home-v2 .benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.home-v2 .benefit-card { min-width: 0; padding: 24px; background: var(--brand-pale); border: 1px solid var(--border); border-radius: 12px; box-shadow: none; }
.home-v2 .benefit-card b { display: block; font-family: 'Bitter', serif; font-size: var(--text-base); color: var(--brand); margin-bottom: 6px; }
.home-v2 .benefit-card p { font-size: var(--text-sm); color: var(--ink-muted); line-height: 1.6; margin-bottom: 0; }
@media (max-width: 900px) { .home-v2 .benefits-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .home-v2 .benefits-grid { grid-template-columns: 1fr; } }

/* BLOG TEASER */
.home-v2 .blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.home-v2 .blog-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 22px; text-decoration: none; transition: border-color 0.15s; display: block; }
.home-v2 .blog-card:hover { border-color: var(--brand); }
.home-v2 .blog-card b { display: block; font-family: 'Bitter', serif; font-size: var(--text-base); color: var(--ink); line-height: 1.35; margin-bottom: 8px; }
.home-v2 .blog-card span { font-size: var(--text-sm); color: var(--ink-muted); line-height: 1.55; }
@media (max-width: 900px) { .home-v2 .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .home-v2 .blog-grid { grid-template-columns: 1fr; } }

/* FINAL CTA */
.home-v2 .cta-final { background: var(--brand-dark); border-radius: 16px; padding: clamp(36px, 6vw, 56px); text-align: center; }
.home-v2 .cta-final .eyebrow { color: var(--amber); justify-content: center; }
.home-v2 .cta-final h2 { font-size: var(--text-2xl); color: white; margin-bottom: 14px; }
.home-v2 .cta-final p { font-size: var(--text-base); color: oklch(78% 0.05 245); max-width: 60ch; margin: 0 auto 28px; line-height: 1.65; }
.home-v2 .cta-final-contact { margin-top: 20px; font-size: var(--text-sm); color: oklch(70% 0.04 245); }
.home-v2 .cta-final-contact a { color: var(--amber); text-decoration: none; font-weight: 600; }

/* ---------------------------------------------------------------------
   CERTIFICATE PAGE REDESIGN — scoped to .cert-v2. Used to rebuild
   certificate/*.php detail pages (ISO 9001, 27001, etc.) with the same
   visual system as the homepage, without affecting other pages.
--------------------------------------------------------------------- */
.cert-v2 { font-size: var(--text-base); line-height: 1.65; color: var(--ink); }
.cert-v2 .container { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
.cert-v2 section { padding: clamp(40px, 6vw, 76px) 0; }
.cert-v2 .section-alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cert-v2 .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin-bottom: 16px; }
.cert-v2 .eyebrow-dot { width: 6px; height: 6px; background: var(--amber); border-radius: 50%; flex-shrink: 0; }
.cert-v2 .section-title { font-family: 'Bitter', serif; font-size: var(--text-2xl); font-weight: 700; color: var(--ink); letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 16px; }
.cert-v2 .section-sub { font-size: var(--text-base); color: var(--ink-muted); max-width: 68ch; margin-bottom: 36px; line-height: 1.7; }

.cert-v2 .breadcrumb { padding: 14px 0; font-size: var(--text-xs); color: var(--ink-faint); }
.cert-v2 .breadcrumb a { color: var(--ink-faint); text-decoration: none; }
.cert-v2 .breadcrumb a:hover { color: var(--brand); }
.cert-v2 .breadcrumb .sep { margin: 0 8px; }

.cert-v2 .hero { padding: clamp(32px, 5vw, 52px) 0 clamp(32px, 5vw, 52px); }
.cert-v2 .hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.cert-v2 .hero h1 { font-family: 'Bitter', serif; font-size: clamp(1.9rem, 1.3rem + 2.8vw, 3.2rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 20px; }
.cert-v2 .hero-sub { font-size: var(--text-lg); color: var(--ink-muted); line-height: 1.6; margin-bottom: 28px; max-width: 58ch; }
.cert-v2 .hero-ctas { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.cert-v2 .hero-secondary { font-size: var(--text-sm); font-weight: 600; color: var(--brand); text-decoration: none; }
.cert-v2 .hero-secondary:hover { text-decoration: underline; }
.cert-v2 .hero-panel { background: var(--brand-dark); border-radius: 16px; padding: clamp(26px, 4vw, 34px); color: white; }
.cert-v2 .hero-panel-label { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); margin-bottom: 18px; }
.cert-v2 .hero-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.cert-v2 .hero-stat b { display: block; font-family: 'Bitter', serif; font-size: var(--text-xl); font-weight: 700; }
.cert-v2 .hero-stat span { font-size: var(--text-xs); color: oklch(78% 0.05 245); line-height: 1.4; }
@media (max-width: 900px) { .cert-v2 .hero-grid { grid-template-columns: 1fr; } }

.cert-v2 .btn-primary { background: var(--brand); color: white; padding: 15px 28px; border-radius: 6px; font-size: var(--text-base); font-weight: 700; text-decoration: none; border: none; cursor: pointer; transition: background 0.15s, transform 0.15s; display: inline-block; }
.cert-v2 .btn-primary:hover { background: var(--brand-mid); transform: translateY(-1px); }
.cert-v2 .btn-amber { background: var(--amber); color: oklch(20% 0.05 70); padding: 15px 28px; border-radius: 6px; font-size: var(--text-base); font-weight: 700; text-decoration: none; border: none; cursor: pointer; transition: opacity 0.15s, transform 0.15s; display: inline-block; }
.cert-v2 .btn-amber:hover { opacity: 0.9; transform: translateY(-1px); }

.cert-v2 .accred-strip { display: flex; gap: 16px; flex-wrap: wrap; }
.cert-v2 .accred-card { display: flex; align-items: stretch; flex: 1 1 260px; min-width: 0; max-width: 340px; background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.cert-v2 .accred-logo { width: 52px; height: 52px; object-fit: contain; padding: 8px; background: #fff; flex-shrink: 0; align-self: center; }
.cert-v2 .accred-body { padding: 12px 14px 12px 4px; min-width: 0; }
.cert-v2 .accred-status { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: #16794a; margin-bottom: 4px; }
.cert-v2 .accred-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }
.cert-v2 .accred-title { font-size: var(--text-sm); font-weight: 700; color: var(--ink); line-height: 1.3; }
.cert-v2 .accred-sub { font-size: var(--text-xs); color: var(--brand); font-weight: 600; margin-top: 2px; }
@media (max-width: 420px) { .cert-v2 .accred-card { flex: 1 1 100%; max-width: 100%; } }

.cert-v2 .usecase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cert-v2 .usecase-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.cert-v2 .usecase-card h3 { font-family: 'Bitter', serif; font-size: var(--text-base); color: var(--ink); margin-bottom: 8px; }
.cert-v2 .usecase-card p { font-size: var(--text-sm); color: var(--ink-muted); line-height: 1.6; }
@media (max-width: 900px) { .cert-v2 .usecase-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cert-v2 .usecase-grid { grid-template-columns: 1fr; } }

.cert-v2 .lifecycle { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: step; }
.cert-v2 .lifecycle-step { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 20px 16px; position: relative; }
.cert-v2 .lifecycle-step::before { counter-increment: step; content: counter(step); font-family: 'Bitter', serif; font-weight: 700; font-size: var(--text-lg); color: var(--brand-pale); background: var(--brand); width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.cert-v2 .lifecycle-step b { display: block; font-size: var(--text-sm); font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.cert-v2 .lifecycle-step span { font-size: 12.5px; color: var(--ink-muted); line-height: 1.5; }
@media (max-width: 1000px) { .cert-v2 .lifecycle { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px) { .cert-v2 .lifecycle { grid-template-columns: 1fr 1fr; } }

.cert-v2 .callout-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.cert-v2 .callout-card { background: var(--brand-pale); border: 1px solid var(--border); border-radius: 10px; padding: 20px 22px; }
.cert-v2 .callout-card h4 { font-family: 'Bitter', serif; font-size: var(--text-sm); color: var(--brand); margin-bottom: 6px; }
.cert-v2 .callout-card p { font-size: var(--text-sm); color: var(--ink-muted); line-height: 1.6; }
@media (max-width: 700px) { .cert-v2 .callout-row { grid-template-columns: 1fr; } }

.cert-v2 .plain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 8px; }
.cert-v2 .plain-col h3 { font-family: 'Bitter', serif; font-size: var(--text-lg); color: var(--ink); margin-bottom: 14px; }
.cert-v2 .plain-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
.cert-v2 .plain-col ul li { font-size: var(--text-sm); color: var(--ink-muted); line-height: 1.6; padding-left: 20px; position: relative; }
.cert-v2 .plain-col ul li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
@media (max-width: 800px) { .cert-v2 .plain-grid { grid-template-columns: 1fr; gap: 24px; } }

.cert-v2 .revision-box { background: var(--brand-dark); border-radius: 16px; padding: clamp(28px, 4vw, 40px); color: white; }
.cert-v2 .revision-box .eyebrow { color: var(--amber); }
.cert-v2 .revision-box h2 { font-family: 'Bitter', serif; font-size: var(--text-2xl); color: #fff; margin-bottom: 14px; }
.cert-v2 .revision-box p { font-size: var(--text-base); color: oklch(85% 0.03 245); line-height: 1.7; max-width: 74ch; }
.cert-v2 .revision-box p + p { margin-top: 14px; }
.cert-v2 .revision-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.cert-v2 .revision-fact { background: oklch(30% 0.15 255); border-radius: 10px; padding: 16px 18px; }
.cert-v2 .revision-fact b { display: block; font-family: 'Bitter', serif; font-size: var(--text-lg); color: var(--amber); }
.cert-v2 .revision-fact span { font-size: var(--text-xs); color: oklch(80% 0.03 245); }
@media (max-width: 800px) { .cert-v2 .revision-facts { grid-template-columns: 1fr; } }

.cert-v2 .related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cert-v2 .related-col h4 { font-family: 'Bitter', serif; font-size: var(--text-sm); color: var(--ink); margin-bottom: 12px; }
.cert-v2 .related-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; }
.cert-v2 .related-col a { font-size: var(--text-sm); color: var(--ink-muted); text-decoration: none; }
.cert-v2 .related-col a:hover { color: var(--brand); }
@media (max-width: 900px) { .cert-v2 .related-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cert-v2 .related-grid { grid-template-columns: 1fr; } }

.cert-v2 .faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.cert-v2 .faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 4px 22px; }
.cert-v2 .faq-question { font-family: 'Bitter', serif; font-size: var(--text-base); font-weight: 600; color: var(--ink); padding: 18px 28px 18px 0; cursor: pointer; list-style: none; position: relative; }
.cert-v2 .faq-question::-webkit-details-marker { display: none; }
.cert-v2 .faq-question::after { content: '+'; position: absolute; right: 0; top: 16px; font-size: 1.4rem; color: var(--brand); font-weight: 400; }
.cert-v2 details[open] .faq-question::after { content: '\2212'; }
.cert-v2 .faq-answer { padding-bottom: 18px; }
.cert-v2 .faq-answer p { font-size: var(--text-sm); color: var(--ink-muted); line-height: 1.7; }

.cert-v2 .cta-final { background: var(--brand-dark); border-radius: 16px; padding: clamp(36px, 6vw, 56px); text-align: center; }
.cert-v2 .cta-final .eyebrow { color: var(--amber); justify-content: center; }
.cert-v2 .cta-final h2 { font-family: 'Bitter', serif; font-size: var(--text-2xl); color: white; margin-bottom: 14px; }
.cert-v2 .cta-final p { font-size: var(--text-base); color: oklch(78% 0.05 245); max-width: 60ch; margin: 0 auto 28px; line-height: 1.65; }
.cert-v2 .cta-final-contact { margin-top: 20px; font-size: var(--text-sm); color: oklch(70% 0.04 245); }
.cert-v2 .cta-final-contact a { color: var(--amber); text-decoration: none; font-weight: 600; }
.cert-v2 .cta-final-lite { margin-top: 14px; }
.cert-v2 .cta-final-lite a { font-size: var(--text-sm); color: oklch(85% 0.04 70); text-decoration: underline; }
