/* ══════════════════════════════════════
   NEMETH ADVISORY — exact match to WP/Kadence site
   Font: Manrope | Primary: #2e4fbf | Dark: #2f2f2f
   ══════════════════════════════════════ */

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

/* ── Tokens ── */
:root {
  --blue:        #2e4fbf;
  --dark:        #2f2f2f;
  --muted:       #8e949a;
  --border:      #cdd3d7;
  --bg-body:     #F7FAFC;
  --white:       #ffffff;
  --nav-h:       70px;
  --max-w:       1290px;
  --radius:      3px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography defaults (matching Kadence) ── */
h1 { font-size: 32px;  font-weight: 700; line-height: 1.5; color: var(--dark); }
h2 { font-size: 28px;  font-weight: 700; line-height: 1.5; color: var(--dark); }
h3 { font-size: 24px;  font-weight: 700; line-height: 1.5; color: var(--dark); }
h4 { font-size: 22px;  font-weight: 700; line-height: 1.5; color: var(--dark); }
h5 { font-size: 20px;  font-weight: 700; line-height: 1.5; color: var(--dark); }
h6 { font-size: 18px;  font-weight: 700; line-height: 1.5; color: var(--muted); }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

p { margin: 0; }

/* ── Container ── */
.site-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ══════════════════════════════════════
   HEADER / NAV
   ══════════════════════════════════════ */
#masthead {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  max-width: 1536px;
}

/* Logo in nav — icon + wordmark */
.brand-link {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}
.brand-link:hover { text-decoration: none; }

.brand-logo {
  display: block;
  height: 26px;
  width: auto;
}

.brand-name {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
  white-space: nowrap;
}

/* Nav links */
.primary-nav {
  display: flex;
  gap: 0;
}

.primary-nav a {
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--dark);
  padding: 0.6em calc(1.2em / 2);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: calc(1.2em / 2);
  right: calc(1.2em / 2);
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.primary-nav a:hover {
  color: var(--dark);
  text-decoration: none;
}

.primary-nav a:hover::after {
  transform: scaleX(1);
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 0.4em 0.6em;
  font-size: 14px;
  line-height: 1;
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--white);
  padding: 1.5rem;
}

.mobile-drawer[hidden] { display: none; }

.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--dark);
  padding: 0.15em;
  margin-bottom: 1rem;
}

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
}

.mobile-drawer nav a {
  font-size: 14px;
  font-weight: 400;
  color: var(--dark);
  padding: 1em 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  text-decoration: none;
}

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-image: url('hero-bg.jpg');
  background-size: cover;
  background-position: 49% 5%;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: #000000;
  opacity: 0.40;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 10rem 1.5rem 3rem;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.5rem;
  font-family: 'Manrope', sans-serif;
}

.hero-content h2 {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--white);
  margin-bottom: 2.5rem;
  font-family: 'Manrope', sans-serif;
}

/* Hero button */
.kb-button {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.6em 1.6em;
  border-radius: var(--radius);
  text-decoration: none;
  transition: box-shadow 0.2s;
}

.kb-button:hover {
  box-shadow: 0px 15px 25px -7px rgba(0,0,0,0.1);
  text-decoration: none;
  color: var(--white);
}

/* ══════════════════════════════════════
   ABOUT
   ══════════════════════════════════════ */
#about {
  background: var(--white);
  padding: 1.5rem 1.5rem 0.5rem;
}

.about-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

#about h2 {
  color: var(--dark);
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

#about p {
  color: var(--dark);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 1rem;
}

#about h3 {
  color: var(--blue);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

/* ══════════════════════════════════════
   SERVICES
   ══════════════════════════════════════ */
.services-wrap {
  padding: 1.5rem 0 1.5rem;
  background: var(--white);
}

/* The dark card with bg image */
.services-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 2rem;
  background-image: url('section-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Dark overlay on services card */
.services-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--dark);
  opacity: 0.5;
  z-index: 0;
}

/* "Core Services" title */
.services-title {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  padding-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Carousel wrapper (relative for arrow positioning) */
.services-carousel {
  position: relative;
  z-index: 1;
}

/* 4-column grid (desktop) — becomes a carousel track on small screens */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 1.75rem;
  row-gap: 1.75rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2.5rem 2.5rem;
}

.service-slide {
  display: flex;
}

/* White service card */
.service-col {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 2.25rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Icon */
.service-icon {
  margin-bottom: 1rem;
}

.service-icon svg {
  width: 26px;
  height: 26px;
  color: var(--blue);
  stroke: var(--blue);
}

/* Service heading */
.service-col h5 {
  color: var(--dark);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

/* HR dividers */
.service-divider {
  border: none;
  border-top: 1px solid var(--border);
  width: 100%;
  margin: 0.9rem 0;
}

/* Service items */
.service-col p {
  color: var(--dark);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

/* ── Carousel controls (hidden on desktop, shown ≤1024px) ── */
.carousel-arrow {
  display: none;
  position: absolute;
  top: calc(50% - 0.75rem);
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.carousel-arrow:hover { background: rgba(0, 0, 0, 0.55); }
.carousel-arrow svg { width: 20px; height: 20px; }
.carousel-prev { left: 4px; }
.carousel-next { right: 4px; }

.carousel-dots {
  display: none;
  justify-content: center;
  gap: 10px;
  padding: 0.75rem 0 0.25rem;
}
.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.carousel-dot.active { background: #fff; }

/* ══════════════════════════════════════
   APPROACH + CONTACT
   ══════════════════════════════════════ */
.approach-contact-wrap {
  background: var(--white);
  padding-bottom: 1.5rem;
}

.approach-contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 45fr) minmax(0, 10fr) minmax(0, 45fr);
  max-width: 1200px;
  padding-top: 0;
  padding-bottom: 1.5rem;
  column-gap: 0;
}

/* Approach */
.approach-col {
  padding-top: 1.5rem;
}

.approach-col h2 {
  color: var(--dark);
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
}

.approach-col p {
  color: var(--dark);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Divider column */
.approach-contact-divider {
  /* visually empty spacer */
}

/* Contact */
.contact-col {
  padding-top: 1.5rem;
}

.contact-col h2 {
  color: var(--dark);
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-item {
  display: grid;
  grid-template-columns: minmax(0, 15fr) minmax(0, 85fr);
  align-items: center;
  gap: 0;
}

.contact-icon {
  display: flex;
  align-items: center;
}

.contact-icon a {
  display: flex;
  align-items: center;
  color: var(--blue);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--blue);
}

.contact-text {
  font-size: 17px;
  color: var(--dark);
}

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

.contact-text a:hover {
  text-decoration: underline;
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
#colophon {
  background: var(--dark);
  border-top: 6px solid var(--blue);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 30px;
  padding-bottom: 30px;
  gap: 14px;
  text-align: center;
}

.footer-logo-wrap {
  width: 100%;
  text-align: center;
}

.footer-logo-wrap a {
  display: inline-block;
  max-width: 90%;
}

.footer-logo {
  display: block;
  width: 243px;
  max-width: 100%;
  height: auto;
  opacity: 1;
}

.footer-address {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.6;
}

.footer-copy {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--white);
  line-height: 1.5;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 1024px) {
  /* Services turn into a 1-at-a-time swipe carousel (matches original) */
  .services-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    column-gap: 0;
    row-gap: 0;
    max-width: 100%;
    padding: 1.25rem 0 1.5rem;
  }
  .services-grid::-webkit-scrollbar { display: none; }

  .service-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    justify-content: center;
    padding: 0 3.75rem;
  }

  .service-col {
    max-width: 440px;
    margin: 0 auto;
  }

  .carousel-arrow { display: flex; }
  .carousel-dots { display: flex; }

  .services-card { margin: 0 1rem; }

  .approach-contact-inner { grid-template-columns: 1fr; }
  .approach-contact-divider { display: none; }

  /* Center Approach & Contact once they stack */
  .approach-col,
  .contact-col {
    text-align: center;
  }
  /* Each contact row centered as its own balanced unit */
  .contact-items {
    align-items: center;
    gap: 0.9rem;
  }
  .contact-item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.55rem;
  }
}

@media (max-width: 767px) {
  .primary-nav { display: none; }
  .mobile-toggle { display: flex; }

  /* Hamburger mode: hide the wordmark next to the logo */
  .brand-name { display: none; }

  /* Center the hamburger menu items horizontally */
  .mobile-drawer nav a { text-align: center; }

  .hero-content h1 { font-size: 2.2rem; }

  .services-card {
    margin: 0;
    border-radius: 0;
  }

  .services-title { font-size: 1.75rem; }

  .service-slide { padding: 0 2.75rem; }

  #about h2,
  .approach-col h2,
  .contact-col h2 { font-size: 1.875rem; }
}
