/* Govanta Compliance - Design System
   Palette: deep teal / cream / charcoal / brass accent
   Type: Fraunces (serif display) + Inter (sans body)
*/

:root {
  --navy-900: #0B1F47;
  --navy-800: #142A5C;
  --navy-700: #1E3A73;
  --teal: #2FB5B5;
  --teal-bright: #40C9C9;
  --cream: #F5F1E8;
  --cream-light: #FBF8F1;
  --charcoal: #1F2933;
  --charcoal-soft: #3B4653;
  --muted: #6B7280;
  --line: #E3DDCF;
  --white: #FFFFFF;
  --radius: 6px;
  --max: 1160px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 71, 0.05);
  --shadow-md: 0 4px 24px rgba(11, 31, 71, 0.1);

  /* Legacy aliases kept so nothing breaks */
  --teal-900: var(--navy-900);
  --teal-700: var(--navy-700);
  --teal-600: var(--teal);
  --brass: var(--teal);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--cream-light);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; font-weight: 600; font-family: 'Inter', sans-serif; letter-spacing: -0.005em; }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--teal-700); font-family: 'Inter', sans-serif; font-weight: 600; }

p { margin: 0 0 1.1em; color: var(--charcoal-soft); }
a { color: var(--teal-700); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--teal-900); }

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

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--cream-light);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(251, 248, 241, 0.92);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.brand {
  font-family: 'Fraunces', serif;
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--navy-900);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}
.brand-footer-text {
  font-family: 'Fraunces', serif;
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 16px;
  line-height: 1.1;
}
.brand-footer-text em {
  font-style: normal;
  color: var(--teal-bright);
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--charcoal);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a.active { color: var(--teal-900); }
.nav-cta {
  background: var(--teal-900);
  color: var(--cream) !important;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid var(--teal-900);
  transition: all .2s ease;
}
.nav-cta:hover {
  background: var(--teal-700);
  color: var(--cream) !important;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  transition: all .2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--teal-900);
  color: var(--cream);
  border-color: var(--teal-900);
}
.btn-primary:hover { background: var(--teal-700); color: var(--cream); }
.btn-outline {
  background: transparent;
  color: var(--teal-900);
  border-color: var(--teal-900);
}
.btn-outline:hover { background: var(--teal-900); color: var(--cream); }

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 80px;
  background:
    radial-gradient(ellipse at top right, rgba(11, 31, 71, 0.06), transparent 60%),
    var(--cream-light);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--teal-700);
  padding: 6px 14px;
  border: 1px solid var(--teal-700);
  border-radius: 999px;
  margin-bottom: 24px;
  background: rgba(11, 31, 71, 0.04);
}
.hero h1 { margin-bottom: 24px; color: var(--teal-900); }
.hero h1 em { font-style: italic; color: var(--teal-700); font-weight: 400; }
.hero-lead {
  font-size: 1.15rem;
  color: var(--charcoal-soft);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-trust {
  display: flex;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}
.hero-trust strong { color: var(--teal-900); font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 500; display: block; }

.hero-visual {
  background: var(--teal-900);
  border-radius: 10px;
  padding: 40px;
  color: var(--cream);
  position: relative;
  overflow: hidden;
  min-height: 380px;
  box-shadow: var(--shadow-md);
}
.hero-visual::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(47, 181, 181, 0.12);
}
.hero-visual-inner { position: relative; z-index: 2; }
.hero-visual h4 { color: var(--brass); margin-bottom: 16px; }
.hero-visual-quote {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  line-height: 1.5;
  margin-bottom: 28px;
  color: var(--cream);
}
.hero-visual-attr {
  font-size: 0.9rem;
  color: rgba(245, 241, 232, 0.75);
  border-top: 1px solid rgba(47, 181, 181, 0.3);
  padding-top: 16px;
}

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .eyebrow { margin-bottom: 16px; }
.section-head p { font-size: 1.1rem; }

/* ---------- Trust bar ---------- */
.trust-bar {
  padding: 36px 0;
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.trust-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 600;
}
.trust-sectors {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  color: var(--teal-900);
}
.trust-sectors span { position: relative; }
.trust-sectors span:not(:last-child)::after {
  content: '·';
  position: absolute;
  right: -22px;
  color: var(--brass);
}

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px 28px;
  transition: all .2s ease;
  position: relative;
}
.service-card:hover {
  border-color: var(--teal-700);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.service-number {
  font-family: 'Fraunces', serif;
  font-size: 0.85rem;
  color: var(--brass);
  margin-bottom: 14px;
  display: block;
  letter-spacing: 0.05em;
}
.service-card h3 { margin-bottom: 12px; color: var(--teal-900); }
.service-card p { font-size: 0.95rem; margin-bottom: 16px; }
.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 0.9rem;
}
.service-card ul li {
  padding: 4px 0 4px 18px;
  position: relative;
  color: var(--charcoal-soft);
}
.service-card ul li::before {
  content: '-';
  position: absolute;
  left: 0;
  color: var(--brass);
}

/* ---------- Why section ---------- */
.why {
  background: var(--teal-900);
  color: var(--cream);
}
.why h2, .why h3 { color: var(--cream); }
.why .eyebrow { color: var(--brass); border-color: var(--brass); background: transparent; }
.why p { color: rgba(245, 241, 232, 0.85); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 20px;
}
.why-item {
  padding-top: 24px;
  border-top: 1px solid rgba(47, 181, 181, 0.35);
}
.why-item h3 { margin-bottom: 12px; color: var(--cream); font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.3rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 72px 0;
}
.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { margin: 0; max-width: 640px; color: var(--teal-900); }
.cta-banner p { margin: 8px 0 0; max-width: 640px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(245, 241, 232, 0.7);
  padding: 64px 0 28px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.site-footer h4 { color: var(--brass); margin-bottom: 18px; font-size: 0.78rem; }
.site-footer a { color: rgba(245, 241, 232, 0.75); display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--cream); }
.footer-brand .brand { color: var(--cream); margin-bottom: 16px; }
.footer-brand .brand-mark { background: var(--cream); color: var(--teal-900); }
.footer-brand p { color: rgba(245, 241, 232, 0.65); font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(245, 241, 232, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(245, 241, 232, 0.5);
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  padding: 70px 0 60px;
  background:
    radial-gradient(ellipse at top left, rgba(11, 31, 71, 0.08), transparent 60%),
    var(--cream-light);
  border-bottom: 1px solid var(--line);
}
.page-header .eyebrow { margin-bottom: 18px; }
.page-header h1 {
  color: var(--teal-900);
  max-width: 820px;
  margin-bottom: 18px;
}
.page-header p {
  font-size: 1.12rem;
  max-width: 680px;
}

/* ---------- Services page detail ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.service-detail:last-of-type { border-bottom: none; }
.service-detail-label { }
.service-detail-label .service-number { font-size: 1rem; }
.service-detail-label h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  color: var(--teal-900);
  font-weight: 500;
  margin: 0;
}
.service-detail-body p:first-child { font-size: 1.08rem; color: var(--charcoal); }
.service-detail-body ul {
  padding: 0;
  list-style: none;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
}
.service-detail-body ul li {
  padding-left: 18px;
  position: relative;
  font-size: 0.94rem;
  color: var(--charcoal-soft);
}
.service-detail-body ul li::before {
  content: '-';
  position: absolute;
  left: 0;
  color: var(--brass);
}

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 64px;
  align-items: start;
}
.about-body h2 { color: var(--teal-900); margin-top: 40px; }
.about-body h2:first-child { margin-top: 0; }
.about-body p { font-size: 1.02rem; }
.about-sidebar {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px 28px;
  position: sticky;
  top: 110px;
}
.about-sidebar h4 { color: var(--teal-700); margin-bottom: 18px; }
.credential-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.credential-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--charcoal);
}
.credential-list li:last-child { border-bottom: none; }
.credential-list strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  color: var(--teal-900);
  font-weight: 500;
  margin-bottom: 2px;
}

/* ---------- Founder section ---------- */
.founder-section {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.founder-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 72px;
  align-items: center;
}
.founder-visual { position: relative; }
.founder-photo {
  width: 340px;
  height: 400px;
  background:
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.founder-photo::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -40%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(47, 181, 181, 0.25) 0%, transparent 60%);
}
.founder-photo span {
  font-family: 'Fraunces', serif;
  font-size: 6rem;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
}
.founder-badge {
  background: var(--white);
  color: var(--navy-900);
  padding: 10px 18px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: absolute;
  bottom: -16px;
  left: 24px;
  right: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.founder-content h2 {
  color: var(--navy-900);
  margin-bottom: 8px;
}
.founder-content .lead {
  color: var(--teal);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 24px;
}
.founder-content p { font-size: 1rem; }
.founder-content .btn { margin-top: 12px; }

/* ---------- Sectors grid ---------- */
.sectors-section { background: var(--cream-light); }
.sectors-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.sectors-grid li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--navy-900);
  text-align: left;
  position: relative;
  transition: all .15s ease;
}
.sectors-grid li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 10px;
  vertical-align: middle;
}
.sectors-grid li:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-info h3 { margin-top: 28px; color: var(--teal-900); font-family: 'Fraunces', serif; font-size: 1.2rem; font-weight: 500; }
.contact-info h3:first-child { margin-top: 0; }
.contact-info p { font-size: 0.98rem; margin-bottom: 8px; }
.contact-info a { font-weight: 500; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.contact-form h3 {
  font-family: 'Fraunces', serif;
  color: var(--teal-900);
  font-weight: 500;
  font-size: 1.35rem;
  margin-bottom: 20px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.98rem;
  font-family: inherit;
  background: var(--cream-light);
  color: var(--charcoal);
  transition: border-color .15s ease, background .15s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal-700);
  background: var(--white);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 14px;
}

/* ---------- Utility ---------- */
.lead { font-size: 1.18rem; color: var(--charcoal); }
.text-center { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 60px 0 50px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: auto; padding: 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-detail { grid-template-columns: 1fr; gap: 20px; padding: 40px 0; }
  .service-detail-body ul { grid-template-columns: 1fr; }
  .nav-links { gap: 18px; }
  .nav-links li:not(.nav-cta-wrap) { display: none; }
  section { padding: 60px 0; }
  .trust-sectors { gap: 24px; font-size: 0.95rem; }
  .trust-sectors span:not(:last-child)::after { right: -16px; }
  .hero-trust { flex-wrap: wrap; gap: 20px; }
  .founder-grid { grid-template-columns: 1fr; gap: 48px; }
  .founder-photo { width: 100%; max-width: 340px; margin: 0 auto; }
  .founder-badge { left: 50%; transform: translateX(-50%); right: auto; white-space: nowrap; }
  .sectors-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .sectors-grid { grid-template-columns: 1fr; }
}
