/* ==========================================================================
   TrulyCertify — Main Stylesheet
   Globally Verified ISO Certification
   ========================================================================== */

:root {
  /* Brand palette */
  --primary: #0d4a4e;
  --primary-dark: #062528;
  --primary-light: #1a6166;
  --accent: #1ea889;
  --accent-dark: #168568;
  --accent-light: #2dc89e;
  --warm-white: #f8f6f0;
  --warm-white-2: #f1ede2;
  --text: #1a2e35;
  --text-muted: #5a6e74;
  --text-soft: #8a9aa0;
  --border: #e2e8e6;
  --border-strong: #c8d4d0;
  --success: #1ea889;
  --warning: #d97706;
  --danger: #b91c1c;
  --white: #ffffff;
  --black: #000000;

  /* Typography */
  --font-serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container: 1200px;
  --container-wide: 1320px;
  --container-narrow: 880px;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(6, 37, 40, 0.05);
  --shadow: 0 4px 12px rgba(6, 37, 40, 0.06), 0 2px 4px rgba(6, 37, 40, 0.04);
  --shadow-md: 0 10px 30px rgba(6, 37, 40, 0.08);
  --shadow-lg: 0 20px 50px rgba(6, 37, 40, 0.12);

  /* Transitions */
  --t-fast: 0.15s ease;
  --t: 0.25s ease;
  --t-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
}

/* ===== Reset / Base ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: var(--accent); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent-dark); }

button { font-family: inherit; cursor: pointer; }

ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.3rem; }

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.18;
  color: var(--primary-dark);
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -0.022em;
}
h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  font-weight: 500;
}
h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 500;
}
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.0625rem; font-weight: 600; }
h6 { font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

p { color: var(--text); line-height: 1.7; }
.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-muted);
  font-weight: 400;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-family: var(--font-sans);
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 1.5rem; }

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-bg { background: var(--warm-white); }
.section-dark {
  background: var(--primary-dark);
  color: var(--warm-white);
}
.section-dark h1, .section-dark h2, .section-dark h3,
.section-dark h4, .section-dark h5, .section-dark h6 {
  color: var(--white);
}
.section-dark p { color: rgba(248, 246, 240, 0.85); }

/* Section heading block */
.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.section-heading.left-aligned { text-align: left; margin: 0 0 3rem; }

/* ===== Decorative elements ===== */
.divider-line {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 0.5rem auto 1.25rem;
  border-radius: 2px;
}
.section-heading.left-aligned .divider-line { margin-left: 0; margin-right: 0; }

/* ===== Skip Link (a11y) ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary-dark);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { top: 0; color: var(--white); }

/* ===== Focus outlines ===== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ===== Page hero ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: var(--white);
  padding: clamp(5rem, 12vw, 8rem) 0 clamp(3.5rem, 7vw, 5rem);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(30, 168, 137, 0.18), transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(30, 168, 137, 0.10), transparent 50%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  color: var(--white);
  max-width: 800px;
  margin-bottom: 1.25rem;
}
.page-hero .lead {
  color: rgba(248, 246, 240, 0.85);
  max-width: 700px;
}
.page-hero .eyebrow { color: var(--accent-light); }

/* ===== Breadcrumbs ===== */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.5rem;
  list-style: none;
  padding: 0;
}
.breadcrumb li { margin: 0; }
.breadcrumb li::after {
  content: '→';
  margin-left: 0.5rem;
  color: var(--text-soft);
  opacity: 0.5;
}
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.page-hero .breadcrumb { color: rgba(248, 246, 240, 0.7); }
.page-hero .breadcrumb a { color: rgba(248, 246, 240, 0.7); }
.page-hero .breadcrumb a:hover { color: var(--accent-light); }

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ===== Selection ===== */
::selection { background: var(--accent); color: var(--white); }
::-moz-selection { background: var(--accent); color: var(--white); }

/* ===== Scrollbar (subtle, non-intrusive) ===== */
@media (pointer: fine) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: var(--warm-white); }
  ::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 5px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--text-soft); }
}

/* ===== Reduce motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
