/* ============================================================================
   PLUM DESIGN GROUP - Main Stylesheet
   Minimal, clean, architectural aesthetic
   ============================================================================ */

/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #333; line-height: 1.6; background: #fff;
}
a { text-decoration: none; color: inherit; transition: color 0.3s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
[id] { scroll-margin-top: 80px; }

/* === SKIP LINK === */
.skip-link {
  position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
  background: #2c2c2c; color: #fff; padding: 12px 24px; z-index: 9999;
  font-size: 14px; letter-spacing: 1px; border-radius: 0 0 4px 4px;
  transition: top 0.3s;
}
.skip-link:focus { top: 0; }

/* === HEADER === */
header, .header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px);
  border-bottom: 1px solid #eee;
  height: 70px; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.35s ease, box-shadow 0.35s ease,
              border-color 0.35s ease, backdrop-filter 0.35s ease,
              -webkit-backdrop-filter 0.35s ease;
}
header.scrolled, .header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: transparent;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
}
/* Logo subtly shrinks on scroll for a refined feel */
header .logo-icon, .header .logo-icon {
  transition: width 0.35s ease, opacity 0.35s ease;
}
header.scrolled .logo-icon, .header.scrolled .logo-icon {
  width: 34px;
}
header .logo-text, .header .logo-text {
  transition: font-size 0.35s ease, letter-spacing 0.35s ease, opacity 0.35s ease;
}
header.scrolled .logo-text, .header.scrolled .logo-text {
  font-size: 13px; letter-spacing: 2.5px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; }
.logo a { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 40px; height: auto; flex-shrink: 0;
  object-fit: contain;
}
.logo-text {
  font-size: 15px; letter-spacing: 3px; font-weight: 400;
  text-transform: uppercase; color: #333;
}

/* Desktop Nav */
nav ul, .nav ul {
  display: flex; gap: 2rem; list-style: none;
}
nav a, .nav a {
  font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase;
  color: #555; position: relative; padding-bottom: 4px;
}
nav a::after, .nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: #333; transition: width 0.3s;
}
nav a:hover::after, nav a.active::after,
.nav a:hover::after, .nav a.active::after { width: 100%; }
nav a:hover, nav a.active,
.nav a:hover, .nav a.active { color: #111; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 5px; z-index: 1001;
}
.hamburger span {
  width: 24px; height: 2px; background: #333;
  transition: all 0.3s; display: block;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav Overlay */
.mobile-nav {
  display: none; position: fixed; top: 70px; left: 0; right: 0; bottom: 0;
  background: #fff; z-index: 999;
  flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 18px; letter-spacing: 2px; text-transform: uppercase; color: #333;
}

/* === HERO === */
.hero {
  margin-top: 70px; height: calc(100vh - 70px);
  position: relative; overflow: hidden; display: flex;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2c3e50, #4a6741);
}
.hero-slideshow {
  position: absolute; inset: 0;
  display: block; cursor: pointer;
  /* Continuous slow breathe — one zoom cycle that runs across all slide changes */
  animation: hero-breathe 30s ease-in-out infinite alternate;
  transform-origin: center center;
}
@keyframes hero-breathe {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slideshow { animation: none; transform: none; }
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
  will-change: opacity;
}
.hero-slide.active {
  opacity: 0.85;
}
/* Gradient overlay for text contrast — sits above slides, below content */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.05) 35%,
    rgba(0,0,0,0.35) 100%);
  pointer-events: none;
  z-index: 1;
}
/* Stronger text shadow on hero h1 for contrast against varied imagery */
.hero h1 {
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero p {
  text-shadow: 0 1px 12px rgba(0,0,0,0.45);
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  color: #fff; padding: 2rem; max-width: 700px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 300;
  letter-spacing: 4px; text-transform: uppercase; margin-bottom: 1rem;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 300;
  opacity: 0.9; margin-bottom: 2rem; line-height: 1.8;
}

/* === BUTTONS === */
.btn {
  display: inline-block; padding: 14px 40px;
  border: 1px solid #fff; color: #fff; background: transparent;
  letter-spacing: 2px; text-transform: uppercase; font-size: 13px;
  transition: all 0.3s; cursor: pointer;
}
.btn:hover { background: #fff; color: #333; }
.btn-dark { border-color: #333; color: #333; }
.btn-dark:hover { background: #333; color: #fff; }

/* === SECTION TITLES === */
section { padding: 2rem 2rem; }
.section-title { text-align: center; margin-bottom: 1.5rem; }
.section-title h1, .section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 300;
  letter-spacing: 3px; text-transform: uppercase; color: #333; margin-bottom: 0.5rem;
}
.section-title p { color: #888; font-size: 15px; max-width: 600px; margin: 0 auto; }
.section-divider { width: 50px; height: 1px; background: #ccc; margin: 1rem auto 0; }

/* === SERVICES === */
.services { background: #f9f9f7; }
.services-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem;
  max-width: 1100px; margin: 0 auto;
}
.services-grid .service-card { flex: 0 1 calc(33.333% - 2rem); }
.service-card { text-align: center; padding: 1.25rem 1.5rem; }
.service-icon-svg { margin: 0 auto 1.5rem; display: block; transition: transform 0.3s, stroke 0.3s; }
.service-card:hover .service-icon-svg { transform: scale(1.1); stroke: #333; }
.service-card h3 {
  font-size: 16px; letter-spacing: 2px; text-transform: uppercase;
  font-weight: 400; margin-bottom: 1rem; color: #333;
}
.service-card p { color: #777; font-size: 14px; line-height: 1.8; }

/* === PROJECTS GRID === */
.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  max-width: 1200px; margin: 0 auto;
}
.project-card {
  position: relative; overflow: hidden; cursor: pointer; border-radius: 2px;
  display: block; color: inherit;
  transition: transform 0.4s ease;
}
.project-card:hover { transform: translateY(-4px); }
.project-card:hover .project-label { color: #111; border-bottom-color: #333; }
.project-card:hover .project-type { color: #555; }
/* Project label - name below image */
.project-label {
  font-size: 14px; letter-spacing: 2px; text-transform: uppercase;
  color: #555; padding: 10px 0 8px; border-bottom: 1px solid #ddd;
  margin-top: 0;
}

/* === ABOUT PREVIEW (homepage) === */
.about-preview {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.about-text h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 300;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1.5rem; color: #333;
}
.about-text p { color: #666; font-size: 15px; line-height: 1.9; margin-bottom: 1rem; }
.about-text .btn-dark { margin-top: 1rem; }

/* === PROCESS === */
#process { background: #f9f9f7; }
.process-steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem;
  max-width: 1400px; margin: 0 auto;
}
.process-step {
  text-align: center; padding: 1rem 1rem;
}
.step-number {
  font-size: 2.5rem; color: #ddd; font-weight: 700;
  display: block; margin-bottom: 0.75rem; line-height: 1;
}
.process-step h3 {
  font-size: 14px; letter-spacing: 2px; text-transform: uppercase;
  font-weight: 400; margin-bottom: 0.75rem; color: #333;
}
.process-step p { color: #777; font-size: 13px; line-height: 1.8; }

/* === TESTIMONIALS === */
.contact { background: #f9f9f7; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  max-width: 1000px; margin: 0 auto;
}
.contact-info h3 {
  font-size: 14px; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 0.5rem; color: #333;
}
.contact-info p { color: #666; font-size: 15px; margin-bottom: 1.5rem; }
.contact-info a { color: #555; border-bottom: 1px solid #ddd; transition: border-color 0.3s; }
.contact-info a:hover { border-color: #333; }
.contact-form h3 { font-size: 18px; font-weight: 400; margin-bottom: 1.5rem; }
.contact-form label {
  display: block; font-size: 12px; letter-spacing: 1.5px;
  text-transform: uppercase; color: #888; margin-bottom: 6px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #ddd;
  background: #fff; font-size: 14px; color: #333;
  margin-bottom: 1.2rem; border-radius: 2px; transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: #333; }
.contact-form textarea { height: 120px; resize: vertical; }
.form-group { display: flex; flex-direction: column; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form .btn-dark {
  width: 100%; text-align: center; padding: 14px;
  font-family: inherit; cursor: pointer; font-size: 13px;
}

/* === FORM SUCCESS === */
.form-success { background: #e8f5e9; color: #2e7d32; padding: 1rem 1.5rem; border-radius: 2px; text-align: center; margin-bottom: 2rem; font-size: 15px; letter-spacing: 0.5px; }

/* === FOOTER === */
footer, .footer {
  background: #2c2c2c; color: #aaa; padding: 3rem 2rem; text-align: center;
}
footer p, .footer p { font-size: 13px; letter-spacing: 1px; margin-bottom: 0.3rem; }
.footer-name { font-size: 15px !important; letter-spacing: 3px; color: #ddd; margin-bottom: 0.3rem; }
.footer-tagline { font-size: 12px !important; letter-spacing: 2px; color: #888; margin-bottom: 1rem !important; white-space: nowrap; }
.footer-appointment { font-size: 10px !important; letter-spacing: 1.5px; color: #888; margin-top: 0.25rem; font-style: italic; }
.footer-logo { display: block; width: 100%; max-width: 320px; height: auto; margin: 0 auto 1rem; filter: invert(1); opacity: 0.85; }
footer a, .footer a { color: #ccc; }
footer a:hover, .footer a:hover { color: #fff; }

/* === RELATED PROJECTS === */
.related-projects { padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; }
.related-projects .section-title { text-align: center; margin-bottom: 2.5rem; }
.related-projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.related-projects-cta { text-align: center; }
@media (max-width: 768px) {
  .related-projects-grid { grid-template-columns: repeat(2, 1fr); }
  .related-projects { padding: 3rem 1.5rem; }
}
@media (max-width: 480px) {
  .related-projects-grid { grid-template-columns: 1fr; }
}

/* === SERVICE PAGES === */
.service-page { max-width: 820px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.service-page .section-title { text-align: center; margin-bottom: 2.5rem; }
.service-intro { color: #444; font-size: 17px; line-height: 1.85; margin-bottom: 2.5rem; text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; }
.service-section { margin-bottom: 2.5rem; }
.service-section h2 {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: #888; font-weight: 500; margin-bottom: 1rem;
}
.service-section p { color: #444; font-size: 16px; line-height: 1.85; margin-bottom: 1rem; }
.service-section p:last-child { margin-bottom: 0; }
.service-list { list-style: none; padding: 0; margin: 0; }
.service-list li {
  padding: 0.85rem 0 0.85rem 1.5rem; border-bottom: 1px solid #f0f0f0;
  color: #444; font-size: 15.5px; line-height: 1.6;
  position: relative;
}
.service-list li::before {
  content: "—"; position: absolute; left: 0; color: #aaa;
}
.service-projects { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
.service-projects a {
  display: inline-block; padding: 8px 16px; border: 1px solid #ddd;
  color: #333; text-decoration: none; font-size: 12px; letter-spacing: 1.5px;
  text-transform: uppercase; border-radius: 2px;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.service-projects a:hover { border-color: #333; color: #000; background: #fafaf9; }
.service-cta { text-align: center; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #eee; }
.service-cta p { color: #666; font-size: 15px; margin-bottom: 1rem; }
@media (max-width: 480px) {
  .service-page { padding: 2rem 1rem 3rem; }
  .service-intro { font-size: 15.5px; }
  .service-section p { font-size: 15px; }
}

/* === FAQ === */
.faq { max-width: 780px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.faq .section-title { text-align: center; margin-bottom: 2.5rem; }
.faq-intro { color: #666; font-size: 15px; line-height: 1.7; max-width: 560px; margin: 1rem auto 0; }
.faq-list { border-top: 1px solid #eee; }
.faq-group-label {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: #999; margin: 2.5rem 0 0.25rem; padding-top: 1.5rem;
  font-weight: 500;
}
.faq-group-label:first-child { margin-top: 1.5rem; padding-top: 0; }
.faq-item { border-bottom: 1px solid #eee; }
.faq-item > summary {
  list-style: none; cursor: pointer;
  padding: 1.25rem 0.25rem;
  font-size: 16px; font-weight: 400; color: #222;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  transition: color 0.2s ease;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::marker { display: none; content: ""; }
.faq-item > summary::after {
  content: "+"; font-size: 22px; font-weight: 200; color: #aaa;
  transition: transform 0.3s ease, color 0.3s ease;
  line-height: 1; flex-shrink: 0; width: 18px; text-align: center;
}
.faq-item[open] > summary::after { transform: rotate(45deg); color: #333; }
.faq-item > summary:hover { color: #000; }
.faq-item > summary:hover::after { color: #333; }
.faq-item[open] > summary { color: #000; font-weight: 500; }
.faq-answer {
  padding: 0 0.25rem 1.5rem;
  color: #555; line-height: 1.8; font-size: 14.5px;
}
.faq-answer p { margin-bottom: 0.8rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a { color: #333; text-decoration: underline; text-underline-offset: 3px; }
.faq-cta { text-align: center; margin-top: 3rem; padding-top: 2rem; }
.faq-cta p { color: #666; font-size: 15px; margin-bottom: 1rem; }
@media (max-width: 480px) {
  .faq { padding: 2rem 1rem 3rem; }
  .faq-item > summary { font-size: 15px; padding: 1rem 0.25rem; }
  .faq-answer { font-size: 14px; padding-bottom: 1.25rem; }
}

/* === PRESS === */
.press { background: #fff; padding: 2rem 2rem 2.5rem; }
.press .section-title { margin-bottom: 1rem; }
.press-grid { max-width: 560px; margin: 0 auto; }
.press-card {
  display: block; padding: 1.25rem 1.75rem; background: #fafaf9;
  border: 1px solid #eee; border-radius: 2px;
  text-decoration: none; color: inherit;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.press-card:hover {
  border-color: #333; transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.press-source {
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  color: #888; margin-bottom: 0.5rem; font-weight: 500;
}
.press-title {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem); font-weight: 400;
  color: #222; line-height: 1.4; margin-bottom: 0.75rem; letter-spacing: 0.3px;
}
.press-cta {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: #555; font-weight: 500;
}
.press-card:hover .press-cta { color: #000; }
@media (max-width: 480px) {
  .press-card { padding: 1rem 1.25rem; }
}

/* === TESTIMONIALS === */
.testimonials { background: #fff; padding: 2rem 2rem 3rem; }
.testimonials .section-title { margin-bottom: 1rem; }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem;
  max-width: 960px; margin: 0 auto;
}
.testimonial-card {
  text-align: center; padding: 1.5rem 1.25rem;
  border: 1px solid #eee; border-radius: 2px;
}
.testimonial-quote {
  color: #555; font-size: 13.5px; line-height: 1.75;
  font-style: italic; margin-bottom: 0.9rem;
}
.testimonial-author {
  font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase;
  color: #999;
}

/* === FOOTER GRID === */
.footer-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: center;
  max-width: 900px; margin: 0 auto 1.5rem; text-align: left;
}
.footer-info, .footer-links, .footer-contact { text-align: center; }
.footer-links p, .footer-contact p { margin-bottom: 0.3rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; margin-top: 0.5rem;
}

/* === PROJECT TYPE LABEL === */
.project-type {
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: #999; margin-top: 4px;
}
.project-card-image { overflow: hidden; border-radius: 2px; position: relative; }
.project-card-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.35) 100%);
  opacity: 0; transition: opacity 0.4s ease; pointer-events: none;
}
.project-card-image img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}
.project-card:hover .project-card-image img { transform: scale(1.08); filter: brightness(1.04); }
.project-card:hover .project-card-image::after { opacity: 1; }

/* === PROJECT FILTERS === */
.project-filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem;
  margin-bottom: 3rem; max-width: 1000px; margin-left: auto; margin-right: auto;
}
.filter-btn {
  padding: 10px 20px; border: 1px solid #999; color: #555;
  border-radius: 20px; font-size: 13px; letter-spacing: 1px;
  text-transform: uppercase; background: #fff; cursor: pointer;
  transition: all 0.3s ease;
}
.filter-btn {
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.filter-btn:hover {
  border-color: #333; color: #333; transform: translateY(-1px);
}
.filter-btn.active {
  background: #2c2c2c; color: #fff; border-color: #2c2c2c;
}
.filter-btn.active:hover { transform: none; }
/* Filter transition for project cards */
.project-card.filterable {
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.project-card.filtering-out {
  opacity: 0; transform: translateY(8px);
}

/* === TEAM MEMBERS (About page) === */
.team-member {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: start;
}
/* Desktop-only: visually flip image/bio columns for zigzag layout.
   DOM stays image-first so mobile (single column) shows photo on top. */
@media (min-width: 769px) {
  .team-member--reverse > :nth-child(1) { grid-column: 2; grid-row: 1; }
  .team-member--reverse > :nth-child(2) { grid-column: 1; grid-row: 1; }
}

/* === MAP CONTAINER === */
.map-container { border-radius: 2px; overflow: hidden; }

/* === PROJECT DETAIL PAGE === */

/* Main layout: gallery left, info right */
.project-detail {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 0;
  max-width: 1400px; margin: 70px auto 0;
  min-height: calc(100vh - 70px);
}

/* Left column: vertical scroll stack */
.project-gallery-col {
  padding: 2rem 1.5rem 2rem 2.5rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.project-gallery-col img {
  width: 100%; height: auto; display: block;
  object-fit: cover; aspect-ratio: 3/2; border-radius: 2px;
  cursor: zoom-in; transition: opacity 0.25s ease;
}
.project-gallery-col img:hover { opacity: 0.9; }

/* === LIGHTBOX === */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(15, 15, 15, 0.96);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox-img {
  max-width: 92vw; max-height: 88vh;
  object-fit: contain; user-select: none;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  cursor: zoom-out;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: transparent; border: none;
  color: #fff; cursor: pointer; padding: 12px;
  font-family: inherit; transition: opacity 0.2s ease;
  opacity: 0.7;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-close {
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 200; line-height: 1;
}
.lightbox-prev, .lightbox-next {
  top: 50%; transform: translateY(-50%);
  font-size: 36px; font-weight: 200; line-height: 1;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-counter {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
}
@media (max-width: 600px) {
  .lightbox-prev, .lightbox-next { width: 44px; height: 44px; font-size: 28px; }
  .lightbox-prev { left: 8px; } .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; }
}
body.lightbox-open { overflow: hidden; }

/* Right column: project info */
.project-info-col {
  padding: 2.5rem 2.5rem 2.5rem 2rem;
  display: flex; flex-direction: column;
  position: sticky; top: 70px; align-self: start;
  max-height: calc(100vh - 70px); overflow-y: auto;
  /* Refined scrollbar for the sticky info column */
  scrollbar-width: thin; scrollbar-color: rgba(0,0,0,0.15) transparent;
}
.project-info-col::-webkit-scrollbar { width: 4px; }
.project-info-col::-webkit-scrollbar-track { background: transparent; }
.project-info-col::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 2px; }
.project-info-col::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.3); }
.project-info-col h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 300;
  letter-spacing: 4px; text-transform: uppercase; color: #333;
  margin-bottom: 0.4rem;
}
.project-info-type {
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: #999; margin-bottom: 2rem;
}
.project-info-divider {
  width: 40px; height: 1px; background: #ccc; margin-bottom: 2rem;
}
.project-description p {
  color: #555; font-size: 15px; line-height: 1.9;
  margin-bottom: 1rem;
}
.project-details-list {
  margin-top: 1.5rem;
}
.detail-item {
  padding: 0.85rem 0; border-bottom: 1px solid #eee;
  display: flex; justify-content: space-between; align-items: baseline;
}
.detail-item:first-child { border-top: 1px solid #eee; }
.detail-label {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: #999; font-weight: 400; flex-shrink: 0;
}
.detail-value {
  font-size: 14px; color: #333; text-align: right;
}

/* Project Navigation */
.project-nav {
  background: #f9f9f7; padding: 3rem 2rem;
}
.nav-container {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1400px; margin: 0 auto;
}
.nav-link {
  display: inline-block; padding: 12px 24px;
  border: 1px solid #333; color: #333; background: transparent;
  letter-spacing: 1px; text-transform: uppercase; font-size: 12px;
  transition: all 0.3s; text-decoration: none;
}
.nav-link:hover {
  background: #333; color: #fff;
}
.nav-back { order: 1; }
.nav-next { order: 2; }

/* === FADE IN ANIMATION === */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* === RESPONSIVE: TABLET (1024px) === */
@media (max-width: 1024px) {
  .hamburger { display: flex; }
  nav ul, .nav ul { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  /* 2 on top row, 3 on bottom row (instead of 3+2 orphan) */
  .process-steps { grid-template-columns: repeat(6, 1fr); }
  .process-step:nth-child(1), .process-step:nth-child(2) { grid-column: span 3; }
  .process-step:nth-child(n+3) { grid-column: span 2; }
  .project-filters { gap: 0.75rem; }
  .filter-btn { padding: 8px 16px; font-size: 12px; }
  .project-detail { grid-template-columns: 1.1fr 1fr; }
  .project-gallery-col { padding: 2rem 1.5rem 2rem 2rem; }
  .project-info-col { padding: 2rem 2rem 2rem 1.5rem; }
  .nav-container { flex-direction: column; gap: 1.5rem; }
  .nav-link { width: 100%; text-align: center; }
}

/* === RESPONSIVE: MOBILE (768px) === */
@media (max-width: 768px) {
  section { padding: 3rem 1.25rem; }
  /* Services grid: override flex layout to stack properly */
  .services-grid { flex-direction: column; align-items: center; max-width: 100%; }
  .services-grid .service-card { flex: none; width: 100%; max-width: 380px; }
  /* Projects & content grids: full width, no artificial max-width cap */
  .projects-grid { grid-template-columns: 1fr; max-width: 100%; margin: 0; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 100%; margin: 0; }
  .process-steps { grid-template-columns: 1fr; max-width: 100%; margin: 0; }
  .process-step:nth-child(n) { grid-column: auto; }
  .about-preview { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  /* Shorter hero so content below is visible */
  .hero { height: 65vh; }
  .partner-grid { grid-template-columns: 1fr !important; }
  .team-member { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .project-filters { gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
  .filter-btn { padding: 7px 14px; font-size: 11px; }
  .project-detail { grid-template-columns: 1fr; }
  .project-gallery-col { padding: 1.5rem 1.25rem 0.5rem; }
  .project-info-col { padding: 1rem 1.25rem 2rem; position: static; max-height: none; }
  .project-info-col h1 { font-size: 1.5rem; }
  .project-nav { padding: 2rem 1.25rem; }
  /* Project label text: allow wrapping on narrow screens */
  .project-label { font-size: 13px; letter-spacing: 1.5px; }
}

/* === RESPONSIVE: SMALL MOBILE (480px) === */
@media (max-width: 480px) {
  header, .header { padding: 0 1rem; }
  .logo-text { font-size: 12px; letter-spacing: 2px; }
  .hero { height: 55vh; }
  .hero h1 { letter-spacing: 2px; }
  .hero p { font-size: 0.9rem; margin-bottom: 1.5rem; }
  .btn { padding: 12px 28px; font-size: 12px; }
  section { padding: 2.5rem 1rem; }
  .project-gallery-col { padding: 1rem 1rem 0.5rem; }
  .project-info-col { padding: 0.5rem 1rem 1.5rem; }
  .detail-item { flex-direction: column; gap: 2px; }
  .detail-value { text-align: left; font-size: 13px; }
  .detail-label { font-size: 10px; }
  .testimonial-card { padding: 1.5rem 1rem; }
  .footer-tagline { font-size: 10px !important; letter-spacing: 0.5px; }
  .mobile-nav a { font-size: 16px; }
}

/* === PRINT === */
@page { margin: 0.6in; }

@media print {
  /* Hide interactive / navigational chrome */
  header, .header, .hamburger, .mobile-nav, .hero-bg, .skip-link,
  .btn, .btn-dark, .project-filters, .project-nav,
  .hero-slideshow, .footer-links, .footer-contact { display: none !important; }

  /* Reset page chrome */
  body { color: #000; background: #fff; font-size: 11pt; line-height: 1.45; }
  .fade-in { opacity: 1 !important; transform: none !important; }
  section { padding: 0.75rem 0; break-inside: avoid-page; }

  /* Print-only page header (logo + URL) on every printed page */
  body::before {
    content: "PLUM DESIGN GROUP   ·   plumdesigngroup.com   ·   (845) 481-0879";
    display: block;
    font-size: 9pt; letter-spacing: 2px; text-transform: uppercase;
    color: #555; padding-bottom: 0.5rem; margin-bottom: 1rem;
    border-bottom: 1px solid #999;
  }

  /* Hero — flatten to plain text block */
  .hero { height: auto; background: none; margin-top: 0; padding: 0.5rem 0 1rem; }
  .hero-content { color: #333; position: static; padding: 0; max-width: none; }
  .hero h1 { font-size: 18pt; letter-spacing: 2px; }
  .hero p { font-size: 10pt; }

  /* Headings — keep with the content that follows */
  h1, h2, h3 { break-after: avoid-page; page-break-after: avoid; }
  p, li { orphans: 3; widows: 3; }

  /* Project cards / team / testimonials — don't split mid-card */
  .project-card, .team-member, .testimonial-card,
  .service-card, .process-step, .press-card,
  .faq-item, .detail-item { break-inside: avoid; page-break-inside: avoid; }

  /* Project gallery — show first 6 images at half-page each */
  .project-gallery-col img { max-width: 100%; height: auto; break-inside: avoid; margin-bottom: 0.5rem; }
  .project-detail { display: block; }
  .project-info-col { position: static; max-height: none; padding: 1rem 0; }

  /* Annotate links with their full URL (excluding mailto/tel/anchor links) */
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 9pt; color: #777; font-style: italic;
    word-break: break-all;
  }
  a[href^="#"]:after,
  a[href^="mailto:"]:after,
  a[href^="tel:"]:after,
  a[href^="javascript:"]:after { content: ""; }

  /* Links: black underlined */
  a, a:visited { color: #000; text-decoration: underline; }

  /* Footer: show as a thin closing line, hide redundant links */
  .footer { background: #fff; color: #333; padding: 1rem 0 0; border-top: 1px solid #999; margin-top: 2rem; }
  .footer-grid { display: block; max-width: none; margin: 0; padding: 0; }
  .footer-info { text-align: left; }
  .footer-logo { display: none; }
  .footer-bottom { border-top: none; padding: 0; margin: 0.5rem 0 0; }
  .footer-bottom p { font-size: 8pt; color: #666; }

  /* Avoid wasteful blank space */
  img { break-inside: avoid; }
}
