/* ============================================================
   MPG PAINTING — luxury one-pager
   Recreated from the design handoff (design_handoff_mpg_painting_website).

   🎨 THEME — design tokens from the handoff. Gold is used sparingly:
   thin 1px lines, borders, icons, small labels. The only gold fills
   are the two primary buttons. No border-radius, no drop shadows —
   depth comes from background-tone changes and 1px hairlines.
   ============================================================ */
:root {
  --navy-black: #050B12;        /* page background, darkest sections */
  --deep-navy: #071525;         /* alternating section background */
  --luxury-navy: #0B1C2E;       /* card backgrounds, gradient stop */
  --gold: #C99A4D;              /* primary accent */
  --soft-gold: #D8B46A;         /* gradient-button light stop, link hover */
  --white: #F7F4EF;             /* primary text */
  --muted-gray: #AEB7C2;        /* secondary text */
  --border-gold: rgba(201, 154, 77, 0.45);
  --border-gold-faint: rgba(201, 154, 77, 0.25);
  --border-gray: rgba(174, 183, 194, 0.18);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", system-ui, -apple-system, sans-serif;
}

/* ============ BASE ============ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--navy-black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(201, 154, 77, 0.35);
  color: var(--white);
}

img {
  display: block;
  max-width: 100%;
}

section[id] {
  scroll-margin-top: 100px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

h1, h2, h3 {
  margin: 0;
}

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 42px;
  line-height: 1.15;
  color: var(--white);
}

/* Every photo sits into the navy palette */
.img-treated,
.hero-bg,
.about-media img,
.project img {
  filter: brightness(0.75) contrast(1.08);
  object-fit: cover;
}

/* ============ EYEBROWS ============ */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.eyebrow-dash {
  display: block;
  width: 36px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.eyebrow-center {
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}

.eyebrow-center .eyebrow-dash {
  width: 48px;
  background: rgba(201, 154, 77, 0.6);
}

.section-title {
  text-align: center;
  margin-bottom: 64px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 32px;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: normal;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.btn .arrow {
  font-size: 15px;
  line-height: 1;
}

.btn-gold {
  background: linear-gradient(135deg, var(--soft-gold), var(--gold));
  color: var(--navy-black);
  border: 1px solid var(--soft-gold);
}

.btn-gold:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Outline button that fills with gold on hover (header, about) */
.btn-outline-fill {
  padding: 15px 28px;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--gold);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.btn-outline-fill .arrow {
  font-size: 14px;
}

.btn-outline-fill:hover {
  background: linear-gradient(135deg, var(--soft-gold), var(--gold));
  color: var(--navy-black);
}

/* Outline button that tints on hover (hero secondary, view our work) */
.btn-outline-tint {
  padding: 17px 28px;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-gold);
}

.btn-outline-tint:hover {
  border-color: var(--gold);
  background: rgba(201, 154, 77, 0.08);
}

.btn-lg {
  padding: 20px 40px;
  font-size: 13px;
  gap: 14px;
}

.btn-lg .arrow {
  font-size: 16px;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 11, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-gold-faint);
}

.header-inner {
  padding: 12px 32px;
  min-height: 88px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--white);
  flex-shrink: 0;
}

.logo-mark {
  display: block;
}

.logo-initials {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.18em;
  line-height: 1;
  margin-top: 2px;
}

.logo-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.logo-dash {
  display: block;
  width: 14px;
  height: 1px;
  background: var(--gold);
}

.logo-word {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: var(--white);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.nav-link {
  color: var(--muted-gray);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.nav-link:hover {
  color: var(--white);
  border-bottom-color: rgba(201, 154, 77, 0.6);
}

.nav-link.active {
  color: var(--white);
  border-bottom-color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-cta {
  padding: 14px 26px;
}

/* Hamburger — mobile only */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border-gold);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 32px 28px;
  border-top: 1px solid var(--border-gray);
}

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

.mobile-nav .nav-link {
  padding: 16px 0 15px;
  border-bottom: 1px solid var(--border-gray);
  font-size: 13px;
}

.mobile-nav .nav-link.active {
  color: var(--white);
  border-bottom-color: rgba(201, 154, 77, 0.6);
}

.mobile-nav-cta {
  margin-top: 24px;
  justify-content: center;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  background: linear-gradient(115deg, #050B12 0%, #071525 55%, #0B1C2E 100%);
  overflow: hidden;
}

/* Full-bleed photo, house weighted to the right */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-position: 70% center;
}

/* Navy wash: solid behind the headline, clearing toward the house */
.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      #050B12 0%,
      rgba(5, 11, 18, 0.94) 28%,
      rgba(5, 11, 18, 0.55) 52%,
      rgba(5, 11, 18, 0.1) 78%,
      rgba(5, 11, 18, 0.35) 100%
    ),
    linear-gradient(
      180deg,
      rgba(7, 21, 37, 0.4) 0%,
      rgba(5, 11, 18, 0) 30%,
      rgba(5, 11, 18, 0) 65%,
      rgba(5, 11, 18, 0.55) 100%
    );
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  min-height: 640px;
  display: flex;
  align-items: center;
}

.hero-copy {
  padding: 96px 0;
  max-width: 580px;
}

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 64px;
  line-height: 1.08;
  margin: 0 0 28px 0;
  color: var(--white);
  text-wrap: balance;
}

.hero-sub {
  color: var(--muted-gray);
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 40px 0;
  max-width: 440px;
  text-wrap: pretty;
}

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

.hero-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

/* ============ SECTIONS ============ */
.section {
  padding: 110px 0;
}

.section.bordered {
  border-top: 1px solid var(--border-gold-faint);
}

.bg-black {
  background: var(--navy-black);
}

.bg-deep {
  background: var(--deep-navy);
}

/* ============ CARDS (services + reviews) ============ */
.card {
  background: var(--luxury-navy);
  border: 1px solid var(--border-gray);
  padding: 44px 36px;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(201, 154, 77, 0.55);
  transform: translateY(-4px);
}

.card svg {
  display: block;
  margin-bottom: 24px;
}

.card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.card-bar {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 16px;
}

.card p {
  color: var(--muted-gray);
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-media {
  position: relative;
}

/* Offset gold outline behind the photo */
.about-media::before {
  content: "";
  position: absolute;
  top: -18px;
  left: -18px;
  right: 18px;
  bottom: 18px;
  border: 1px solid rgba(201, 154, 77, 0.35);
  pointer-events: none;
}

.about-media img {
  width: 100%;
  height: 520px;
}

.about-copy .eyebrow {
  margin-bottom: 24px;
}

.about-copy h2 {
  font-size: 46px;
  margin-bottom: 26px;
}

.about-text {
  color: var(--muted-gray);
  font-size: 15px;
  line-height: 1.85;
  margin: 0 0 36px 0;
  text-wrap: pretty;
}

.about-divider {
  height: 1px;
  background: rgba(201, 154, 77, 0.3);
  margin: 44px 0 36px 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat:not(:last-child) {
  border-right: 1px solid var(--border-gray);
  padding-right: 24px;
}

.stat-num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 44px;
  line-height: 1;
  color: var(--white);
}

.stat-label {
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 10px;
  line-height: 1.6;
}

/* ============ FEATURED PROJECTS ============ */
.projects-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
}

.projects-head .eyebrow {
  margin-bottom: 20px;
}

/* Category filter chips — rendered only when there are >6 projects */
.project-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: -24px 0 40px 0;
}

.project-chips:empty {
  display: none;
}

.chip {
  padding: 10px 18px;
  background: transparent;
  color: var(--muted-gray);
  border: 1px solid var(--border-gold);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

.chip:hover {
  border-color: var(--gold);
  color: var(--white);
}

.chip.active {
  border-color: var(--gold);
  background: rgba(201, 154, 77, 0.08);
  color: var(--white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project {
  margin: 0;
}

.project img {
  width: 100%;
  height: 420px;
  transition: filter 0.3s ease;
}

.project:hover img {
  filter: brightness(0.85) contrast(1.08);
}

.project-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px 0 4px;
}

.project-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--white);
}

.project-cat {
  color: var(--muted-gray);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
  line-height: 1.6;
}

.project-arrow {
  color: var(--gold);
  font-size: 16px;
  transition: transform 0.3s ease;
}

.project:hover .project-arrow {
  transform: translateX(4px);
}

/* ============ WHY CHOOSE US ============ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border-gray);
}

.why-cell {
  padding: 44px 32px;
}

.why-cell:not(:last-child) {
  border-right: 1px solid var(--border-gray);
}

.why-num {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--gold);
  margin-bottom: 18px;
}

.why-cell h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.why-cell p {
  color: var(--muted-gray);
  font-size: 13px;
  line-height: 1.75;
  margin: 0;
}

/* ============ FINAL CTA ============ */
.cta {
  background: linear-gradient(115deg, #0B1C2E 0%, #071525 60%, #050B12 100%);
  padding: 100px 0;
  border-top: 1px solid var(--border-gold);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.cta h2 {
  font-size: 46px;
  margin-bottom: 16px;
}

.cta p {
  color: var(--muted-gray);
  font-size: 15px;
  margin: 0;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy-black);
  border-top: 1px solid var(--border-gold-faint);
  padding: 72px 0 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.footer-logo {
  display: inline-flex;
}

.footer-logo .logo-initials {
  font-size: 24px;
}

.footer-logo .logo-sub {
  margin-top: 5px;
}

.footer-logo .logo-dash {
  width: 16px;
}

.footer-blurb {
  color: var(--muted-gray);
  font-size: 13px;
  line-height: 1.8;
  margin: 24px 0 0 0;
  max-width: 320px;
}

.footer-heading {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-contact a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color 0.25s ease;
}

.footer-contact a:hover {
  color: var(--soft-gold);
}

.footer-area {
  color: var(--muted-gray);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.glyph {
  color: var(--gold);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
}

.footer-links .footer-heading {
  grid-column: 1 / -1;
}

.footer-links a {
  color: var(--muted-gray);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom-wrap {
  margin-top: 56px;
}

.footer-hairline {
  height: 1px;
  background: rgba(174, 183, 194, 0.14);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
  padding: 24px 0 28px 0;
  color: var(--muted-gray);
  font-size: 12px;
}

.footer-serving {
  letter-spacing: 0.06em;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-content {
    min-height: 560px;
  }

  .hero-copy {
    padding: 88px 0;
  }

  /* Heavier, more uniform wash once the text sits over the house */
  .hero-scrim {
    background:
      linear-gradient(
        90deg,
        rgba(5, 11, 18, 0.92) 0%,
        rgba(5, 11, 18, 0.7) 45%,
        rgba(5, 11, 18, 0.45) 100%
      ),
      linear-gradient(
        180deg,
        rgba(7, 21, 37, 0.45) 0%,
        rgba(5, 11, 18, 0.1) 40%,
        rgba(5, 11, 18, 0.6) 100%
      );
  }

  h1 {
    font-size: 52px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .about-media {
    margin-top: 18px; /* room for the offset outline */
  }

  .services-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 2×2 — restore the inner hairlines */
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-cell:not(:last-child) {
    border-right: 0;
  }

  .why-cell:nth-child(odd) {
    border-right: 1px solid var(--border-gray);
  }

  .why-cell:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border-gray);
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 36px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 24px;
  }

  .header-inner {
    padding: 12px 24px;
    min-height: 76px;
  }

  .mobile-nav {
    padding: 8px 24px 28px;
  }

  .header-cta {
    display: none;
  }

  .section {
    padding: 80px 0;
  }

  h1 {
    font-size: 40px;
  }

  h2,
  .about-copy h2,
  .cta h2 {
    font-size: 32px;
  }

  .section-title {
    margin-bottom: 48px;
  }

  .hero-copy {
    padding: 72px 0;
  }

  .services-grid,
  .projects-grid,
  .why-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .project img {
    height: 320px;
  }

  .projects-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    margin-bottom: 44px;
  }

  .stats {
    gap: 28px;
  }

  .stat:not(:last-child) {
    border-right: 0;
    padding-right: 0;
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 24px;
  }

  .why-cell:nth-child(odd) {
    border-right: 0;
  }

  .why-cell:not(:last-child) {
    border-bottom: 1px solid var(--border-gray);
  }

  .eyebrow {
    letter-spacing: 0.24em;
  }

  .hero-actions .btn {
    padding-left: 24px;
    padding-right: 24px;
  }
}
