/* ── Variables (Neve base palette) ───────────────────────────────── */
:root {
  --nv-primary-accent:   #2b2b2b;
  --nv-secondary-accent: #fcaf3b;
  --nv-site-bg:          #ffffff;
  --nv-light-bg:         #ededed;
  --nv-dark-bg:          #14171c;
  --nv-text-color:       #14171c;
  --nv-text-dark-bg:     #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--nv-text-color);
  background: var(--nv-site-bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Typography ──────────────────────────────────────────────────── */
h1 { font-size: 39px; font-weight: 600; line-height: 1.2; }
h2 { font-size: 30px; font-weight: 600; line-height: 1.3; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
h4 { font-size: 16px; font-weight: 600; line-height: 1.3; }
h5, h6 { font-size: 14px; font-weight: 600; line-height: 1.3; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ── Container ───────────────────────────────────────────────────── */
.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ── Header ──────────────────────────────────────────────────────── */
.site-header {
  background: var(--nv-site-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--nv-text-color);
}

.site-logo img {
  width: 32px;
  height: auto;
}

.site-logo .logo-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--nv-text-color);
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* Primary nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.primary-nav a {
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--nv-text-color);
  transition: color 0.2s;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--nv-secondary-accent);
}

/* Search toggle icon */
.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--nv-text-color);
  padding: 4px;
  transition: color 0.2s;
}

.search-toggle:hover { color: var(--nv-secondary-accent); }

.mobile-search-btn {
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

/* ── Search overlay ──────────────────────────────────────────────── */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.97);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.search-overlay.open {
  opacity: 1;
  pointer-events: all;
}

body.search-open { overflow: hidden; }

.search-overlay-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: var(--nv-text-color);
  cursor: pointer;
  opacity: 0.7;
  padding: 6px;
  transition: opacity 0.2s;
}

.search-overlay-close:hover { opacity: 1; }

.search-overlay-inner {
  width: 100%;
  max-width: 700px;
  padding: 120px 24px 60px;
}

/* Pagefind UI overrides to match neve palette */
.search-overlay .pagefind-ui {
  --pagefind-ui-scale: 1;
  --pagefind-ui-primary: var(--nv-secondary-accent);
  --pagefind-ui-text: var(--nv-text-color);
  --pagefind-ui-background: transparent;
  --pagefind-ui-border: rgba(0,0,0,0.15);
  --pagefind-ui-tag: var(--nv-light-bg);
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 0;
  --pagefind-ui-font: 'Poppins', sans-serif;
}

.search-overlay .pagefind-ui__search-input {
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(0,0,0,0.2);
  border-radius: 0;
  color: var(--nv-text-color);
  font-size: 28px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  padding: 12px 4px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
}

.search-overlay .pagefind-ui__search-input::placeholder { color: rgba(0,0,0,0.3); }
.search-overlay .pagefind-ui__search-input:focus { border-bottom-color: var(--nv-secondary-accent); }

.search-overlay .pagefind-ui__search-clear {
  background: none;
  border: none;
  color: rgba(0,0,0,0.4);
  cursor: pointer;
  font-size: 20px;
}

.search-overlay .pagefind-ui__results-area { margin-top: 32px; }

.search-overlay .pagefind-ui__result {
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 20px 0;
}

.search-overlay .pagefind-ui__result-title a { color: var(--nv-text-color); font-weight: 600; font-size: 18px; }
.search-overlay .pagefind-ui__result-excerpt { color: rgba(20,23,28,0.65); font-size: 15px; }
.search-overlay .pagefind-ui__message { color: rgba(20,23,28,0.6); font-size: 15px; margin-top: 16px; }

/* Mobile hamburger */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--nv-text-color);
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--nv-text-color);
  margin: 5px 0;
  transition: 0.3s;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  background: var(--nv-site-bg);
  padding: 16px 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,.1);
}

.mobile-nav.open { display: block; }

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-nav a {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--nv-text-color);
}


/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  padding: 16px 35px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, background 0.2s;
}

.btn-primary {
  background: var(--nv-secondary-accent);
  color: var(--nv-text-color);
  border-color: var(--nv-secondary-accent);
}

.btn-primary:hover { opacity: 0.88; }

.btn-secondary {
  background: var(--nv-primary-accent);
  color: var(--nv-text-dark-bg);
  border: 2px solid var(--nv-primary-accent);
}

.btn-secondary:hover { opacity: 0.85; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-group.center { justify-content: center; }
.btn-group.left   { justify-content: flex-start; }

/* ── Full-width Sections ─────────────────────────────────────────── */
.section {
  width: 100%;
}

.section-site-bg  { background: var(--nv-site-bg); }
.section-light-bg { background: var(--nv-light-bg); }
.section-dark-bg  { background: var(--nv-dark-bg); }

.section-inner {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Spacers ─────────────────────────────────────────────────────── */
.spacer-20  { height: 20px; }
.spacer-30  { height: 30px; }
.spacer-40  { height: 40px; }
.spacer-80  { height: 80px; }
.spacer-140 { height: 140px; }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('/img/hero.jpg');
  background-size: cover;
  background-position: 50% 64%;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  color: #121212;
  white-space: nowrap;
  margin-bottom: 20px;
}

.hero p {
  color: #121212;
  font-size: 17px;
  margin-bottom: 30px;
}

/* ── Columns ─────────────────────────────────────────────────────── */
.cols {
  display: flex;
  gap: 40px;
  align-items: center;
}

.cols.cols-3 { gap: 30px; }

.col { flex: 1; }
.col-50 { flex: 0 0 50%; max-width: 50%; }

/* ── Icon Features (3-col) ───────────────────────────────────────── */
.features-3col {
  padding: 80px 0;
}

.feature-item {
  text-align: center;
}

.feature-item img {
  margin: 0 auto 20px;
  width: 48px;
  height: 48px;
}

.feature-item img.rounded {
  border-radius: 50%;
}

.feature-item h3 {
  color: var(--nv-text-color);
  margin-bottom: 12px;
}

.feature-item p {
  color: var(--nv-text-color);
  text-align: center;
}

/* ── Two-column content sections ─────────────────────────────────── */
.content-section {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 80px 0 40px;
}

.content-section .col-text h2 { margin-bottom: 16px; }
.content-section .col-text p  { margin-bottom: 24px; }

.content-section .col-image img { width: 100%; }

/* text on dark bg */
.text-dark-bg     { color: var(--nv-text-dark-bg); }
.text-dark-bg h2  { color: var(--nv-text-dark-bg); }
.text-dark-bg p   { color: var(--nv-text-dark-bg); }

.text-on-light h2 { color: var(--nv-text-color); }
.text-on-light p  { color: var(--nv-text-color); }

/* ── Featured Work ───────────────────────────────────────────────── */
.featured-work {
  padding: 80px 0;
}

.featured-work h2 {
  color: var(--nv-text-color);
  margin-bottom: 20px;
}

.featured-work-grid {
  display: flex;
  gap: 30px;
}

.featured-work-grid .col img {
  width: 100%;
}

/* ── Testimonials ────────────────────────────────────────────────── */
.testimonials {
  padding: 80px 0 30px;
  background: var(--nv-light-bg);
}

.testimonials .cols-3 {
  align-items: flex-start;
}

.testimonial-item img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
}

.testimonial-item p.quote {
  font-size: 17px;
  color: var(--nv-text-color);
  margin-bottom: 8px;
}

.testimonial-item p.name {
  font-weight: 600;
  font-size: 14px;
  color: var(--nv-text-color);
  margin-bottom: 0;
}

/* ── CTA Banner ──────────────────────────────────────────────────── */
.cta-banner {
  min-height: 300px;
  background: var(--nv-dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 20px;
}

.cta-banner h2 {
  color: var(--nv-text-dark-bg);
  margin-bottom: 28px;
}

/* ── Page header banners ─────────────────────────────────────────── */
.page-banner {
  min-height: 300px;
  background: var(--nv-site-bg);
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.page-banner h1 {
  color: var(--nv-text-color);
}

/* ── About page ──────────────────────────────────────────────────── */
.about-story {
  padding: 80px 0 40px;
  background: var(--nv-light-bg);
}

.about-story h2 { color: var(--nv-text-color); margin-bottom: 16px; }
.about-story p.medium { font-size: 20px; color: var(--nv-text-color); margin-bottom: 12px; }
.about-story p.link-colored { color: var(--nv-primary-accent); }

.about-values {
  background: var(--nv-dark-bg);
  padding: 80px 0 40px;
}

.about-values h2 { color: var(--nv-text-dark-bg); margin-bottom: 16px; }
.about-values p  { color: var(--nv-text-dark-bg); }

.about-pillars {
  background: var(--nv-site-bg);
  padding: 80px 0 30px;
}

.about-pillars .pillar h3 { color: var(--nv-text-color); margin-bottom: 10px; }
.about-pillars .pillar p  { font-size: 15px; color: var(--nv-text-color); }
.about-pillars .pillar img { width: 48px; height: 48px; margin-bottom: 14px; }

.about-team {
  background: var(--nv-light-bg);
  padding: 80px 0 40px;
}

.team-member { text-align: center; }
.team-member img {
  width: 100%;
  margin-bottom: 16px;
}

.team-member h3 { color: var(--nv-text-color); margin-bottom: 4px; }
.team-member p.role { color: var(--nv-text-color); margin-bottom: 12px; }

.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social-links a {
  display: inline-block;
  width: 28px;
  height: 28px;
  background: var(--nv-primary-accent);
  border-radius: 50%;
}

/* ── Contact page ────────────────────────────────────────────────── */
.contact-info {
  background: var(--nv-light-bg);
  padding: 80px 0 30px;
}

.contact-info .contact-col {
  text-align: center;
}

.contact-info img {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
}

.contact-info h3 { color: var(--nv-text-color); font-size: 24px; margin-bottom: 10px; }
.contact-info p  { font-size: 15px; color: var(--nv-text-color); }

.contact-map {
  background: var(--nv-dark-bg);
  padding: 80px 0 40px;
}

.contact-map h2 { color: var(--nv-text-dark-bg); margin-bottom: 16px; }
.contact-map p  { color: #ffffff; }

/* ── Portfolio page ──────────────────────────────────────────────── */
.portfolio-grid {
  padding: 80px 0 40px;
}

.portfolio-item { text-align: center; }
.portfolio-item img { width: 100%; margin-bottom: 20px; }
.portfolio-item h3 { color: var(--nv-text-color); margin-bottom: 12px; }
.portfolio-item p  { color: var(--nv-text-color); margin-bottom: 20px; }

.portfolio-quote {
  background: var(--nv-dark-bg);
  padding: 80px 20px;
  text-align: center;
}

.portfolio-quote .quote-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
}

.portfolio-quote blockquote {
  color: var(--nv-text-dark-bg);
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 14px;
}

.portfolio-quote .quote-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--nv-text-dark-bg);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Articles page ───────────────────────────────────────────────── */
.articles-section {
  padding: 80px 0;
  background: var(--nv-site-bg);
}

.articles-empty {
  font-size: 20px;
  color: var(--nv-text-color);
  padding: 40px 0;
}

/* ── Project Detail Modals ───────────────────────────────────────── */
.proj-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.proj-modal.open {
  display: flex;
}

body.modal-open { overflow: hidden; }

.proj-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 23, 28, 0.55);
}

.proj-modal-box {
  position: relative;
  background: var(--nv-site-bg);
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 50px 50px 44px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}

.proj-modal-box h2 {
  font-size: 28px;
  margin-bottom: 6px;
  color: var(--nv-text-color);
}

.proj-modal-tag {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--nv-secondary-accent);
  margin-bottom: 24px;
}

.proj-modal-box p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--nv-text-color);
  margin-bottom: 16px;
}

.proj-modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--nv-text-color);
  cursor: pointer;
  opacity: 0.45;
  padding: 4px 8px;
  transition: opacity 0.2s;
}

.proj-modal-close:hover { opacity: 1; }

@media (max-width: 600px) {
  .proj-modal-box { padding: 36px 24px 30px; }
  .proj-modal-box h2 { font-size: 22px; }
}

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  background: var(--nv-site-bg);
  border-top: 1px solid var(--nv-light-bg);
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
  color: var(--nv-primary-accent);
}

/* ── Responsive ──────────────────────────────────────────────────── */

/* Neve tablet breakpoint: 576px */
@media (min-width: 576px) {
  body { font-size: 16px; line-height: 1.6; }
  h1 { font-size: 55px; line-height: 1.3; }
  h2 { font-size: 35px; }
  h3 { font-size: 20px; }
  h4 { font-size: 16px; }
  h5, h6 { font-size: 14px; }
  .btn { font-size: 14px; }
}

/* Neve desktop breakpoint: 960px */
@media (min-width: 960px) {
  body { font-size: 17px; line-height: 1.7; }
  h1 { font-size: 70px; line-height: 1.3; }
  h2 { font-size: 50px; }
  h3 { font-size: 24px; }
  h4 { font-size: 20px; }
  h5, h6 { font-size: 16px; }
  .btn { font-size: 16px; }
}

@media (max-width: 900px) {
  .cols, .content-section, .featured-work-grid {
    flex-direction: column;
    gap: 30px;
  }

  .col-50 { flex: 0 0 100%; max-width: 100%; }

  .hero { min-height: 500px; }

  .content-section { padding: 60px 0 30px; }

  .primary-nav { display: none; }
  .mobile-menu-toggle { display: block; }

  .cta-banner { padding: 80px 20px; }
}

@media (max-width: 600px) {
  .hero { min-height: 420px; }

  .features-3col { padding: 50px 0; }
  .testimonials .cols-3 { flex-direction: column; }
  .about-pillars .cols, .about-team .cols,
  .contact-info .cols, .portfolio-grid .cols { flex-direction: column; }

  .spacer-80 { height: 40px; }
}
