/* ===== GRC Solutions — Brand Stylesheet ===== */

@import url('https://fonts.googleapis.com/css2?family=Abhaya+Libre:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600&display=swap');

:root {
  --blue: #052540;
  --off-white: #FCFBF7;
  --muted-blue: #2F7797;
  --sage: #7BAA92;
  --beige: #E9E4DC;
  --yellow: #FFEB99;

  --blue-soft: rgba(5, 37, 64, 0.06);
  --muted-blue-soft: rgba(47, 119, 151, 0.1);
  --rule: rgba(5, 37, 64, 0.12);

  --serif: 'Abhaya Libre', serif;
  --sans: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--off-white);
  color: var(--blue);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--blue);
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-blue);
  display: block;
  margin-bottom: 18px;
}

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 251, 247, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}

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

.logo-mark {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-text {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  color: var(--muted-blue);
}

.logo-text .sub {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--blue);
  margin-top: 1px;
}

.logo-divider {
  width: 1px;
  height: 38px;
  background: var(--muted-blue);
  opacity: 0.5;
}

.logo-tagline {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue);
  line-height: 1.55;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
}

nav a {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--blue);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.15s ease;
}

nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--muted-blue);
}

nav a:hover { color: var(--muted-blue); }

.nav-cta {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: var(--off-white) !important;
  background: var(--blue);
  padding: 12px 24px;
  border-radius: 3px;
  transition: background 0.15s ease;
}

.nav-cta:hover { background: var(--muted-blue); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue);
  margin: 5px 0;
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  background: var(--blue);
  color: var(--off-white);
  padding: 15px 30px;
  border-radius: 3px;
  transition: background 0.15s ease;
}
.btn-primary:hover { background: var(--muted-blue); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--blue);
  padding: 15px 4px;
  border-bottom: 1.5px solid var(--blue);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.btn-secondary:hover { color: var(--muted-blue); border-color: var(--muted-blue); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 110px 0 50px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(44px, 6.2vw, 72px);
  line-height: 1.06;
  max-width: 880px;
  margin-bottom: 30px;
}

.hero h1 .accent { color: var(--muted-blue); }

.hero-lede {
  font-size: 20px;
  font-weight: 400;
  color: var(--blue);
  opacity: 0.78;
  max-width: 600px;
  margin-bottom: 42px;
  line-height: 1.6;
}

.hero-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }

.hero-seal {
  position: absolute;
  top: 50%;
  right: -60px;
  transform: translateY(-50%);
  width: 480px;
  height: 480px;
  opacity: 0.05;
  pointer-events: none;
}

/* ===== Page header (About/Contact) ===== */
.page-header {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--rule);
}
.page-header h1 {
  font-size: clamp(36px, 4.6vw, 50px);
}

/* ===== Sections ===== */
section { padding: 90px 0; }
section.bordered { border-bottom: 1px solid var(--rule); }

.section-head {
  margin-bottom: 56px;
  max-width: 760px;
}
.section-head h2 {
  font-size: clamp(36px, 4.6vw, 50px);
  line-height: 1.12;
}

/* ===== Services grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.service-card {
  background: var(--off-white);
  padding: 52px 44px;
}

.service-card h3 {
  font-size: 26px;
  margin-bottom: 16px;
}

.service-card p {
  font-size: 16px;
  color: var(--blue);
  opacity: 0.78;
  line-height: 1.75;
}

/* ===== Why section (dark band) ===== */
.why-band {
  background: var(--blue);
  color: var(--off-white);
  padding: 100px 0;
}
.why-band .eyebrow { color: var(--yellow); font-size: 15px; }
.why-band h2 {
  color: var(--off-white);
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.1;
}
.why-band p {
  font-size: 19px;
  font-weight: 400;
  color: rgba(252,251,247,0.85);
  max-width: 760px;
  line-height: 1.75;
}
.why-band p + p { margin-top: 22px; }

/* ===== About page ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-body p {
  font-size: 16.5px;
  color: var(--blue);
  opacity: 0.85;
  margin-bottom: 22px;
  max-width: 600px;
}

.about-body p:last-child { margin-bottom: 0; }

.credential-panel {
  background: var(--beige);
  border-radius: 4px;
  padding: 36px;
}

.credential-panel .eyebrow { margin-bottom: 20px; }

.credential-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.credential-role {
  font-size: 14px;
  color: var(--blue);
  opacity: 0.7;
  margin-bottom: 24px;
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.cert-pill {
  background: var(--off-white);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 10px 14px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--muted-blue);
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--blue);
  border-bottom: 1.5px solid var(--blue);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.linkedin-link:hover { color: var(--muted-blue); border-color: var(--muted-blue); }

/* ===== Contact page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contact-intro {
  font-size: 16.5px;
  color: var(--blue);
  opacity: 0.8;
  max-width: 460px;
  margin-bottom: 40px;
  line-height: 1.65;
}

.contact-detail-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-line {
  display: flex;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

.contact-line .label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-blue);
  width: 110px;
  flex-shrink: 0;
  padding-top: 2px;
}

.contact-line a, .contact-line span {
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--blue);
}
.contact-line a:hover { color: var(--muted-blue); }

.form-panel {
  background: var(--beige);
  border-radius: 4px;
  padding: 40px;
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--rule);
  background: var(--off-white);
  padding: 13px 15px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 400;
  color: var(--blue);
  border-radius: 3px;
  transition: border-color 0.15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--muted-blue);
}
.field textarea { resize: vertical; min-height: 110px; }

.form-submit {
  width: 100%;
  margin-top: 6px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  background: var(--blue);
  color: var(--off-white);
  padding: 15px 26px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.form-submit:hover { background: var(--muted-blue); }

.form-status {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted-blue);
  display: none;
}
.form-status.visible { display: block; }

/* ===== Footer ===== */
footer {
  background: var(--blue);
  color: rgba(252,251,247,0.65);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(252,251,247,0.14);
  margin-bottom: 24px;
}

.footer-brand .logo-text { color: var(--off-white); }
.footer-brand .logo-text .sub { color: rgba(252,251,247,0.75); }
.footer-brand p {
  font-size: 13.5px;
  margin-top: 16px;
  max-width: 280px;
  line-height: 1.6;
  color: rgba(252,251,247,0.6);
}

.footer-col h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: 16px;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 14px;
  color: rgba(252,251,247,0.7);
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--off-white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== Responsive ===== */
@media (max-width: 880px) {
  nav ul { display: none; }
  .mobile-toggle { display: block; }
  .nav-row { height: 78px; }
  .nav-cta { display: none; }
  .logo-tagline { display: none; }
  .logo-divider { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-seal { display: none; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
  .hero { padding: 70px 0 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

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