@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* CQV brand: charcoal + white (logo identity) */
:root {
  --ink: #2a2a2a;
  --ink-deep: #1e1e1e;
  --surface: #ffffff;
  --bg-page: #fafafa;
  --text: #262626;
  --text-muted: #5c5c5c;
  --border: #e8e8e8;
  --shadow: 0 4px 24px rgba(38, 38, 38, 0.06);
  --radius: 10px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.06em;
}

.brand:hover {
  text-decoration: none;
  opacity: 0.92;
}

.brand img {
  height: clamp(52px, 6vw, 72px);
  width: auto;
  max-height: 72px;
  object-fit: contain;
  display: block;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  align-items: center;
}

.nav-main a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav-main a:hover,
.nav-main a[aria-current="page"] {
  color: #fff;
  border-bottom-color: #fff;
  text-decoration: none;
}

main {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
  width: 100%;
}

.hero {
  background: #fff;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 3rem;
}

.hero-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero p {
  margin: 0 auto 2rem;
  max-width: 52rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Publications section */
.pub-section {
  padding: 0 0 2rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 1.25rem;
}

.pub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.pub-card {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}

.pub-card:hover {
  box-shadow: 0 12px 40px rgba(38, 38, 38, 0.13);
  transform: translateY(-2px);
}

.pub-card__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.pub-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}

.pub-card p {
  margin: 0 0 1.5rem;
  font-size: 0.925rem;
  color: var(--text-muted);
}

/* Secondary services section */
.services-secondary {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.services-secondary .section-label {
  margin-bottom: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 100%;
  margin: 0 auto;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  border-color: rgba(38, 38, 38, 0.25);
  box-shadow: 0 10px 36px rgba(38, 38, 38, 0.1);
}

.service-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

.service-card p {
  margin: 0 0 1.15rem;
  font-size: 0.925rem;
  color: var(--text-muted);
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none !important;
  border: 2px solid transparent;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.btn--primary {
  background: var(--ink);
  color: #fff !important;
  border-color: var(--ink);
}

.btn--primary:hover {
  background: var(--ink-deep);
  border-color: var(--ink-deep);
  color: #fff !important;
}

.btn--outline {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: #fff !important;
}

.btn--ghost {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--border);
}

.btn--ghost:hover {
  background: var(--ink);
  color: #fff !important;
  border-color: var(--ink);
}

/* Service pages: small CTA banner */
.service-cta-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  text-align: center;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Contact page layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  margin-top: 1.5rem;
  align-items: start;
}

.contact-info h2 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.contact-info p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.contact-info a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}

.contact-links__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 0.25rem !important;
}

/* Contact form */
.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-page);
  transition: border-color 0.2s;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--ink);
  background: var(--surface);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-success {
  background: #f0faf0;
  border: 1px solid #a8d5a8;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  color: #2d6e2d;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}

/* ─── HAMBURGER BUTTON ─── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 5px;
  border-radius: 6px;
  margin-left: auto;
  order: 2;
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s, transform 0.25s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── TABLET (≤ 900px) ─── */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── TABLET SMALL / CONTACT (≤ 768px) ─── */
@media (max-width: 768px) {
  .hero__inner {
    padding: 2.5rem 1.25rem 2rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.page-intro {
  margin-bottom: 1.5rem;
}

.page-intro h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.page-intro p {
  margin: 0;
  color: var(--text-muted);
  max-width: 40rem;
}

.newsletter-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  max-width: 640px;
  box-shadow: var(--shadow);
}

.newsletter-block p {
  margin: 0 0 1.1rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.newsletter-block p:last-of-type {
  margin-bottom: 0;
}

.newsletter-cta {
  margin-top: 2rem;
}

.placeholder-block {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
}

.site-footer {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.88);
  margin-top: 0;
}

.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  font-size: 0.9rem;
}

.site-footer h3 {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

.site-footer p,
.site-footer a {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ─── MOBILE (≤ 640px) ─── */
@media (max-width: 640px) {
  /* Header */
  .site-header__inner {
    padding: 0.85rem 1.25rem;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-main {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0 0.5rem;
    margin-top: 0.5rem;
  }

  .nav-main.is-open {
    display: flex;
  }

  .nav-main a {
    padding: 0.8rem 0;
    font-size: 0.95rem;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom-width: 1px !important;
    border-bottom-color: rgba(255, 255, 255, 0.07) !important;
  }

  .nav-main a:last-child {
    border-bottom: none !important;
  }

  .nav-main a[aria-current="page"] {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.07) !important;
  }

  /* Layout */
  main {
    padding: 1.5rem 1.25rem 2rem;
  }

  .hero__inner {
    padding: 2rem 1.25rem 1.75rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  /* Grids */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Buttons */
  .btn {
    padding: 0.75rem 1.25rem;
  }

  /* Blocks */
  .service-cta-banner {
    padding: 1.25rem 1.25rem;
  }

  .newsletter-block {
    padding: 1.75rem 1.25rem;
  }

  .contact-form-wrap {
    padding: 1.5rem 1.25rem;
  }

  .page-intro h1 {
    font-size: 1.6rem;
  }

  .footer-bottom {
    padding: 1rem 1.25rem;
  }
}

