/* ==========================================================
   Compliant Communications — style.css
   Rebuilt from Webflow (Homura template, adapted)
   ========================================================== */

/* ---------- Self-hosted Poppins (SIL OFL, see fonts/LICENSE-Poppins.txt) ---------- */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/poppins-latin-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-latin-600-normal.woff2') format('woff2');
}

:root {
  --teal: #16716a;
  --teal-dark: #10554f;
  --ink: #1c1c1c;
  --body: #5c6066;
  --bg: #ffffff;
  --bg-soft: #F3F5F1;
  --bg-card: #efefec;
  --line: #e3e3df;
  --footer-bg: #0d1b2a;
  --footer-bg-2: #14283c;

  --font: 'Poppins', 'Segoe UI', Arial, sans-serif;

  --container: 1140px;
  --radius: 6px;
  --header-h: 64px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  color: var(--ink);
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 90px 0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* Anchor targets clear the sticky header */
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--ink);
  transition: color 0.15s ease;
}

.site-nav a:hover { color: var(--teal); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(244, 244, 241, 0.95) 0%,
    rgba(244, 244, 241, 0.75) 35%,
    rgba(244, 244, 241, 0) 65%
  );
}

.hero-content {
  position: relative;
  width: 100%;
}

.hero h1 {
  max-width: 550px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
}

.hero-byline {
  color: var(--ink);
  font-size: 0.95rem;
}

/* ---------- Intro ---------- */
.statement {
  color: var(--teal);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 500;
  line-height: 1.35;
}

.intro-text p { font-size: 0.95rem; }

/* ---------- Full-width image band ---------- */
.band-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

/* ---------- Brand band ---------- */
.brand-band {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 56px 60px;
  align-items: center;
}

.brand-title {
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin: 0;
}

.brand-band p { font-size: 0.95rem; }

/* ---------- About ---------- */
.teal-heading {
  color: var(--teal);
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  font-weight: 600;
}

.about-text p { font-size: 0.95rem; }

.about-photo {
  display: flex;
  justify-content: center;
}

.about-photo img {
  width: min(100%, 420px);
  border-radius: 50%;
}

/* ---------- Services ---------- */
.services { background: var(--bg-soft); }

.services-title {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 56px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 24px;
  align-items: start;
}

.service-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.why-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
}

.why-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 18px;
}

.why-card ul {
  margin: 0;
  padding-left: 20px;
  font-size: 0.9rem;
}

.why-card li { margin-bottom: 8px; }

/* Accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.accordion-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.accordion-trigger span { flex: 1; }

.caret {
  width: 16px;
  height: 16px;
  color: var(--ink);
  transition: transform 0.25s ease;
  flex: 0 0 auto;
}

.accordion-trigger[aria-expanded="true"] .caret {
  transform: rotate(90deg);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.accordion-item.open .accordion-panel {
  grid-template-rows: 1fr;
}

.accordion-body {
  overflow: hidden;
  min-height: 0;
  padding: 0 22px;
  font-size: 0.9rem;
}

.accordion-item.open .accordion-body {
  padding-bottom: 22px;
}

.accordion-body ul {
  margin: 0;
  padding-left: 20px;
}

.accordion-body li { margin-bottom: 6px; }

/* ---------- CTA / Contact ---------- */
.cta h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
}

.cta > .container > div > p { font-size: 0.95rem; }

.contact-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 36px 40px;
}

.contact-card h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.contact-icon { width: 20px; height: 20px; }

.contact-line a {
  text-decoration: none;
  color: var(--ink);
}

.contact-line a:hover { color: var(--teal); }

/* ---------- Footer ---------- */
.site-footer {
  color: #ffffff;
  /* TODO: swap for the real footer background image exported from Webflow:
     background: var(--footer-bg) url('../images/footer-bg.jpg') center/cover no-repeat; */
  background:
    linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 40%),
    linear-gradient(120deg, var(--footer-bg) 0%, var(--footer-bg-2) 55%, var(--footer-bg) 100%);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  padding-bottom: 50px;
}

.footer-logo {
  width: 190px;
  margin-bottom: 10px;
  /* One logo file for the whole site: rendered white here.
     If CompliantCom_logo.svg is already white, delete this filter. */
  filter: brightness(0) invert(1);
}

.footer-by {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-linkedin {
  color: #ffffff;
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: right;
}

.footer-tagline strong { color: #ffffff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .accordion-panel, .caret, .nav-toggle-bar { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .section { padding: 64px 0; }

  .two-col,
  .services-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .brand-band { padding: 40px 32px; }

  /* Portrait above text when the About section stacks */
  .about .about-photo { order: -1; }

  .footer-tagline { text-align: left; }

  .hero { min-height: 440px; }

  .hero-overlay {
    background: linear-gradient(
      90deg,
      rgba(244, 244, 241, 0.92) 0%,
      rgba(244, 244, 241, 0.65) 60%,
      rgba(244, 244, 241, 0.35) 100%
    );
  }
}

@media (max-width: 680px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }

  .site-nav.open { display: flex; }

  .site-nav a { padding: 12px 0; }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
  }
}
