/* Marcon Groupe — marcongrp.com
   Refined minimalism. Navy/silver palette. Restrained typography. */

/* ---------- Reset and base ---------- */

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

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

body {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #1a2332;
  background-color: #fafaf8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4, h5, h6,
.nav-link, .button, .tab-button,
.eyebrow, .footer-link {
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #0f1a2b;
  margin-bottom: 1.5rem;
}

h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0f1a2b;
  margin-bottom: 1.25rem;
}

h3 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #4a5568;
  margin-bottom: 0.75rem;
}

h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.4;
  color: #0f1a2b;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.25rem;
  max-width: 64ch;
}

a {
  color: #1a3a5c;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: #2c5a8a;
}

strong {
  font-weight: 600;
  color: #0f1a2b;
}

/* ---------- Layout primitives ---------- */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section-tight {
  padding: 4rem 0;
}

.section + .section {
  border-top: 1px solid #e8e6e0;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 1.25rem;
  display: inline-block;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e8e6e0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #0f1a2b;
  text-decoration: none;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.brand img {
  display: block;
  height: 40px;
  width: auto;
}

.brand:hover {
  color: #1a3a5c;
  opacity: 0.85;
}

.nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  font-size: 0.9375rem;
  color: #1a2332;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0;
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #1a3a5c;
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: #1a3a5c;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #1a2332;
  font-size: 1.5rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fafaf8;
    border-bottom: 1px solid #e8e6e0;
    padding: 1rem 2rem 2rem;
  }

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

  .nav-link {
    padding: 0.875rem 0;
    border-bottom: 1px solid #ece9e1;
    width: 100%;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-toggle {
    display: block;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 7rem 0 5rem;
  position: relative;
  overflow: hidden;
}

/* Hero with background image — used on homepage and service pages */
.hero-with-image,
.page-hero-with-image {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 55%;
  z-index: -2;
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.95;
}

.hero-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Gradient from cream on the left fading to transparent on the right
     so hero text on the left stays fully legible */
  background: linear-gradient(
    to right,
    rgba(250, 250, 248, 1) 0%,
    rgba(250, 250, 248, 0.85) 25%,
    rgba(250, 250, 248, 0.4) 55%,
    rgba(250, 250, 248, 0.1) 100%
  );
  z-index: 1;
}

.hero-with-image .hero-content,
.page-hero-with-image .hero-content {
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .hero-image {
    width: 100%;
    opacity: 0.18;
  }
  .hero-image::after {
    background: linear-gradient(
      to bottom,
      rgba(250, 250, 248, 0.7) 0%,
      rgba(250, 250, 248, 0.85) 100%
    );
  }
}

.hero-eyebrow {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 1.75rem;
}

.hero h1 {
  max-width: 22ch;
  margin-bottom: 1.75rem;
}

.hero p {
  font-size: 1.1875rem;
  line-height: 1.65;
  color: #2d3a4f;
  max-width: 56ch;
  margin-bottom: 2.5rem;
}

.hero-narrow .hero-content {
  max-width: 760px;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  background: #0f1a2b;
  color: #fafaf8;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid #0f1a2b;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  background: #1a3a5c;
  border-color: #1a3a5c;
  color: #fafaf8;
}

.button-arrow {
  transition: transform 0.2s ease;
  font-size: 1.125rem;
  line-height: 1;
}

.button:hover .button-arrow {
  transform: translateX(3px);
}

.button-secondary {
  background: transparent;
  color: #0f1a2b;
  border-color: #0f1a2b;
}

.button-secondary:hover {
  background: #0f1a2b;
  color: #fafaf8;
}

/* ---------- Persona tabs ---------- */

.persona-tabs {
  margin-top: 1rem;
}

.tab-buttons {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #d4d0c4;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tab-button {
  background: none;
  border: none;
  padding: 1rem 1.75rem 1rem 0;
  margin-right: 2rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #6b7280;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
  font-family: 'Inter Tight', sans-serif;
}

.tab-button:hover {
  color: #1a3a5c;
}

.tab-button.is-active {
  color: #0f1a2b;
}

.tab-button.is-active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 1.75rem;
  height: 2px;
  background: #0f1a2b;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease forwards;
}

.tab-pane.is-active {
  display: block;
}

.tab-pane p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #2d3a4f;
  max-width: 64ch;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Three column (DBO) ---------- */

.dbo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.dbo-item h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
  color: #0f1a2b;
  margin-bottom: 1rem;
}

.dbo-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: #2d3a4f;
}

@media (max-width: 768px) {
  .dbo-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ---------- Logo band ---------- */

.logo-band {
  background: #f4f1ea;
  padding: 5rem 0;
}

.logo-band-eyebrow {
  text-align: center;
  margin-bottom: 3rem;
}

.logo-band-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2.5rem 3rem;
  align-items: center;
  justify-items: center;
}

.logo-band-item {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #4a5568;
  text-align: center;
  line-height: 1.3;
  padding: 0.5rem;
}

@media (max-width: 1024px) {
  .logo-band-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .logo-band-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }
}

/* ---------- Service list (hub page) ---------- */

.service-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-list-item {
  padding-bottom: 2rem;
  border-bottom: 1px solid #e8e6e0;
}

.service-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.service-list-item h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.01em;
  color: #0f1a2b;
  margin-bottom: 0.5rem;
}

.service-list-item h3 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.service-list-item h3 a:hover {
  border-bottom-color: #1a3a5c;
  color: #1a3a5c;
}

.service-list-item p {
  font-size: 1rem;
  line-height: 1.65;
  color: #2d3a4f;
  max-width: 72ch;
  margin-bottom: 0;
}

/* ---------- Service page sections ---------- */

.service-content h2 {
  margin-top: 4rem;
  margin-bottom: 1.5rem;
}

.service-content h2:first-child {
  margin-top: 0;
}

.service-content h4 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.service-content p + h4 {
  margin-top: 2.5rem;
}

/* ---------- Footer CTA ---------- */

.footer-cta {
  background: #0f1a2b;
  color: #e8e6e0;
  padding: 5rem 0;
  margin-top: 0;
}

.footer-cta h2 {
  color: #fafaf8;
  margin-bottom: 1.25rem;
  max-width: 28ch;
}

.footer-cta p {
  color: #b8c5d6;
  font-size: 1.125rem;
  margin-bottom: 2.25rem;
  max-width: 56ch;
}

.footer-cta .button {
  background: #fafaf8;
  color: #0f1a2b;
  border-color: #fafaf8;
}

.footer-cta .button:hover {
  background: transparent;
  color: #fafaf8;
  border-color: #fafaf8;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #f4f1ea;
  padding: 4rem 0 2.5rem;
  border-top: 1px solid #e8e6e0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #d4d0c4;
}

.footer-brand-block .brand {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 1.375rem;
}

.footer-brand-block .brand img {
  height: 80px;
  width: auto;
}

.footer-brand-block p {
  font-size: 0.9375rem;
  color: #4a5568;
  margin-bottom: 0.25rem;
}

.footer-brand-block a {
  color: #1a3a5c;
}

.footer-nav {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.footer-link {
  font-size: 0.9375rem;
  color: #1a2332;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #1a3a5c;
}

.footer-bottom {
  font-size: 0.8125rem;
  color: #6b7280;
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ---------- Form ---------- */

.contact-form {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 640px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #1a2332;
}

.form-field .required {
  color: #8b6f47;
  font-weight: 400;
  margin-left: 0.25rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #1a2332;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border: 1px solid #d4d0c4;
  border-radius: 2px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #0f1a2b;
  box-shadow: 0 0 0 3px rgba(15, 26, 43, 0.08);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
  font-family: 'Source Serif 4', Georgia, serif;
}

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%231a2332' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.contact-form .button {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.direct-contact {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e8e6e0;
  font-size: 1rem;
  color: #4a5568;
}

.direct-contact a {
  font-weight: 500;
  color: #0f1a2b;
}

/* ---------- Page hero variant ---------- */

.page-hero {
  padding: 6rem 0 4rem;
  border-bottom: 1px solid #e8e6e0;
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  max-width: 18ch;
}

.page-hero p {
  font-size: 1.1875rem;
  line-height: 1.65;
  color: #2d3a4f;
  max-width: 56ch;
  margin-bottom: 2.5rem;
}

.page-hero .container-narrow,
.page-hero .container {
  position: relative;
  z-index: 2;
}

/* ---------- Stagger reveal on load (subtle) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(8px);
  animation: reveal 0.7s ease forwards;
}

.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.15s; }
.reveal-3 { animation-delay: 0.25s; }
.reveal-4 { animation-delay: 0.35s; }

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Utilities ---------- */

.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;
}

.text-muted {
  color: #4a5568;
}

/* ---------- Print ---------- */

@media print {
  .site-header,
  .footer-cta,
  .nav-toggle {
    display: none;
  }

  body {
    background: #ffffff;
    color: #000000;
  }
}
