/* ============================================================
   Envirographics LLC - Static Site Stylesheet
   Color scheme based on original Constructo WordPress theme
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 62.5%; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.7;
  color: #727272;
  background: #fff;
}

a {
  color: #4fa8cc;
  text-decoration: none;
}
a:hover { color: #2980b9; text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #333;
  line-height: 1.3;
  margin-top: 0;
}

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

ul { margin: 0; padding: 0; list-style: none; }

/* --- Site Wrapper --- */
.site-wrapper { width: 100%; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.site-logo img {
  height: 38px;
  width: auto;
}
/* Fallback text logo if image fails */
.logo-text {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 2px;
  color: #333;
  text-transform: uppercase;
}
.logo-text strong {
  color: #4fa8cc;
  font-weight: 700;
}

/* Primary Nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.primary-nav a,
.primary-nav .nav-link {
  display: inline-block;
  padding: 0 14px;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #555;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 75px;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.primary-nav a:hover,
.primary-nav a.active {
  color: #4fa8cc;
  border-bottom-color: #4fa8cc;
  text-decoration: none;
}

/* Services dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-top: 3px solid #4fa8cc;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.nav-dropdown .dropdown-menu a {
  display: block;
  padding: 12px 20px;
  line-height: 1.4;
  border-bottom: 1px solid #f0f0f0;
  font-size: 1.3rem;
}
.nav-dropdown .dropdown-menu a:last-child { border-bottom: none; }

/* Mobile hamburger (hidden on desktop) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #555;
  margin: 5px 0;
  transition: 0.3s;
}

/* ============================================================
   HERO SECTION (single image — kept for fallback / interior pages)
   ============================================================ */
.hero-section {
  width: 100%;
  height: 520px;
  overflow: hidden;
  position: relative;
}
.hero-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* ============================================================
   HERO SLIDER (CSS-only crossfade — matches live Slider Revolution)
   No JS dependency: keyframes cycle 5 slides over 25s (5s each).
   ============================================================ */
.hero-slider {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  background: #111;
}
.hero-slider .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: hero-fade 25s infinite;
}
.hero-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-slider .slide:nth-child(1) { animation-delay: 0s; }
.hero-slider .slide:nth-child(2) { animation-delay: 5s; }
.hero-slider .slide:nth-child(3) { animation-delay: 10s; }
.hero-slider .slide:nth-child(4) { animation-delay: 15s; }
.hero-slider .slide:nth-child(5) { animation-delay: 20s; }

@keyframes hero-fade {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  20%  { opacity: 1; }
  24%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Respect users who prefer reduced motion — show only first slide */
@media (prefers-reduced-motion: reduce) {
  .hero-slider .slide { animation: none; opacity: 0; }
  .hero-slider .slide:nth-child(1) { opacity: 1; }
}

/* ============================================================
   PAGE HERO (for interior pages)
   ============================================================ */
.page-hero {
  text-align: center;
  padding: 60px 30px 40px;
}
.page-hero h1 {
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 2px;
  color: #333;
  margin: 0;
}

/* ============================================================
   HOME PAGE
   ============================================================ */

/* Bordered tagline box — matches Wayback Machine original */
.home-tagline-box {
  background: #f5f5f5;
  padding: 50px 40px;
}
.home-tagline-inner {
  max-width: 860px;
  margin: 0 auto;
  border: 1px dotted #bbb;
  padding: 30px 40px;
  text-align: center;
}
.home-tagline-inner h2 {
  font-size: 2rem;
  font-weight: 400;
  color: #333;
  letter-spacing: 0.04em;
  line-height: 1.55;
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Feature tiles with photos */
.home-features {
  background: #f5f5f5;
  padding: 0 30px 50px;
}
.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.feature-card {
  background: #fff;
  text-align: center;
  border: 1px solid #e8e8e8;
  overflow: hidden;
}
.feature-photo {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.feature-card:hover .feature-photo img {
  transform: scale(1.04);
}
.feature-card h3,
.feature-card .feature-title {
  font-size: 1.25rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #333;
  margin: 0;
  font-weight: 600;
  padding: 18px 10px;
  text-align: center;
  line-height: 1.3;
}

/* Six-tile category grid on home (3×2 desktop, 2×3 tablet, 1×6 phone) */
.features-grid-6 {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ============================================================
   FILTER PILL BAR (Portfolio + type pages)
   ============================================================ */
.filter-bar {
  max-width: 1100px;
  margin: 0 auto 8px;
  padding: 14px 30px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.filter-pill {
  display: inline-block;
  padding: 8px 18px;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #555;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.filter-pill:hover {
  border-color: #4fa8cc;
  color: #4fa8cc;
  text-decoration: none;
}
.filter-pill.active {
  background: #4fa8cc;
  border-color: #4fa8cc;
  color: #fff;
}

/* YouTube embed section */
.home-video {
  background: #f5f5f5;
  padding: 0 30px 50px;
  text-align: center;
}
.home-video-inner {
  max-width: 700px;
  margin: 0 auto;
}
.home-video-inner iframe {
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  display: block;
  border: none;
}

.home-cta {
  background: #f5f5f5;
  text-align: center;
  padding: 0 30px 60px;
}
/* Side-by-side dual buttons under the video */
.home-cta-pair {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 30px 30px 60px;
}

/* ============================================================
   BUTTON
   ============================================================ */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary {
  background: #4fa8cc;
  color: #fff;
  border: 2px solid #4fa8cc;
}
.btn-primary:hover {
  background: #2980b9;
  border-color: #2980b9;
  color: #fff;
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: #4fa8cc;
  border: 2px solid #4fa8cc;
}
.btn-outline:hover {
  background: #4fa8cc;
  color: #fff;
  text-decoration: none;
}

/* ============================================================
   HOME PORTFOLIO PREVIEW
   ============================================================ */
.home-portfolio-preview {
  padding: 0;
}
.home-portfolio-preview .portfolio-grid {
  margin: 0 auto;
}
.home-portfolio-cta {
  background: #f5f5f5;
  text-align: center;
  padding: 40px 30px 60px;
}

/* ============================================================
   PORTFOLIO GRID — unified card (image + info as one visual block)
   ============================================================ */
.portfolio-section {
  padding: 0;
}
.portfolio-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 30px 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.portfolio-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  height: 100%;            /* equal-height rows in the grid */
}
.portfolio-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  transform: translateY(-2px);
  border-color: #d0d0d0;
  text-decoration: none;
}
.portfolio-card:hover .card-image img {
  transform: scale(1.04);
}
.card-image {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f5f5f5;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.card-info {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;          /* stretches to fill the card */
}
.card-info h3 {
  font-size: 1.55rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.3;
}
.card-info .card-location {
  font-size: 1.25rem;
  color: #888;
  margin: 0;
  letter-spacing: 0.02em;
}
.card-tags {
  font-size: 1.2rem;
  color: #999;
  margin: 8px 0 0;
  line-height: 1.5;
}
.card-tags a,
.card-tags span {
  color: #4fa8cc;
  text-decoration: none;
}
.card-tags a:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* ============================================================
   PROJECT DETAIL PAGE
   ============================================================ */
.project-hero {
  width: 100%;
  max-height: 520px;
  overflow: hidden;
}
.project-hero img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
}

.project-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 50px 30px;
}
.project-content h1 {
  font-size: 2.8rem;
  font-weight: 400;
  margin: 0 0 24px;
}
.project-meta {
  margin: 0 0 30px;
  font-size: 1.4rem;
  color: #727272;
}
.project-meta table {
  border-collapse: collapse;
}
.project-meta td {
  padding: 4px 16px 4px 0;
  vertical-align: top;
}
.project-meta td:first-child {
  color: #999;
  white-space: nowrap;
  font-weight: 400;
}
.project-meta td a {
  color: #4fa8cc;
}
.project-divider {
  border: none;
  border-top: 1px solid #e8e8e8;
  margin: 30px 0;
}

/* Project Gallery */
.project-gallery {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 30px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.project-gallery a {
  display: block;
  overflow: hidden;
  border-radius: 2px;
}
.project-gallery a:hover img {
  transform: scale(1.04);
}
.project-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.services-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 30px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.services-col h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #333;
  margin: 0 0 20px;
}
.services-list li {
  font-size: 1.4rem;
  color: #727272;
  letter-spacing: 0.06em;
  line-height: 2.5;
}

/* Master Sign Systems */
.master-sign-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 30px 80px;
}
.master-sign-content p {
  font-size: 1.5rem;
  line-height: 2;
}
.download-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 1.5rem;
}
.download-list li:last-child { border-bottom: none; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 30px 80px;
}
.about-content p {
  font-size: 1.5rem;
  line-height: 1.9;
  margin-bottom: 20px;
}
.about-content strong { color: #333; }
.about-membership {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  padding: 20px;
  border: 1px solid #e8e8e8;
  max-width: 400px;
}
.about-membership img { width: 70px; height: auto; }
.about-membership p {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.5;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 30px 80px;
}
.contact-content p {
  font-size: 1.5rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.contact-intro {
  text-align: center;
  color: #555;
  margin-bottom: 30px !important;
}
.contact-info {
  background: #f9f9f9;
  border-left: 3px solid #4fa8cc;
  padding: 20px 24px;
  margin: 20px 0;
  font-size: 1.5rem;
}
.contact-info a { color: #4fa8cc; }

/* Fallback "prefer email" link under the form */
.contact-fallback {
  margin-top: 30px !important;
  text-align: center;
  font-size: 1.3rem !important;
  color: #888;
}
.contact-fallback a { color: #4fa8cc; }

/* ============================================================
   FORM — contact form, generic enough to reuse later
   ============================================================ */
.contact-form {
  margin: 0;
  padding: 28px 30px;
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
}
.form-row {
  margin-bottom: 18px;
}
.form-row:last-of-type { margin-bottom: 0; }
/* Two fields side-by-side on desktop */
.form-row-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field {
  display: flex;
  flex-direction: column;
}
.form-field label {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.form-field .req {
  color: #d04848;
  font-weight: 700;
}
.form-field .form-hint {
  font-weight: 400;
  color: #999;
  font-size: 1.1rem;
  letter-spacing: 0;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1.4rem;
  color: #333;
  padding: 11px 14px;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}
.contact-form textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #4fa8cc;
  box-shadow: 0 0 0 3px rgba(79, 168, 204, 0.18);
}
.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
  border-color: #d8a3a3;
}
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-actions {
  margin-top: 24px;
  text-align: center;
}
.contact-form .btn {
  min-width: 200px;
  cursor: pointer;
  font-family: inherit;
}

/* Mobile: stack paired fields */
@media (max-width: 640px) {
  .form-row-pair {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .contact-form { padding: 20px 18px; }
}

/* Success screen on /contact/thanks/ */
.form-success {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 40px 30px;
  margin: 20px auto;
  max-width: 560px;
}
.form-success-check {
  display: block;
  margin: 0 auto 14px;
}
.form-success h2 {
  font-size: 2rem;
  font-weight: 400;
  margin: 0 0 12px;
  color: #333;
}
.form-success p {
  margin: 0;
  text-align: center;
  color: #555;
}
.form-success a { color: #4fa8cc; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid #e8e8e8;
  padding: 40px 30px;
  text-align: center;
  background: #fff;
}
.footer-logo {
  margin-bottom: 10px;
}
.footer-logo img { height: 28px; margin: 0 auto; }
.footer-tagline {
  font-size: 1.2rem;
  color: #aaa;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.footer-copy {
  font-size: 1.2rem;
  color: #bbb;
  margin: 0 0 6px;
}
.footer-credit {
  font-size: 1.1rem;
  color: #bbb;
  margin: 0;
  letter-spacing: 0.02em;
}
.footer-credit a {
  color: #888;
  text-decoration: none;
  border-bottom: 1px dotted #ccc;
}
.footer-credit a:hover {
  color: #4fa8cc;
  border-bottom-color: #4fa8cc;
  text-decoration: none;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.section-divider {
  max-width: 1100px;
  margin: 0 auto;
  border: none;
  border-top: 1px solid #e8e8e8;
}

/* ============================================================
   LIGHTBOX — opens .project-gallery <a> links inline with arrow nav
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 30px 60px;
  animation: lb-fade 0.18s ease-out;
}
.lightbox.open { display: flex; }

@keyframes lb-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 100px);
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  user-select: none;
}

.lightbox-btn {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  font-size: 2.4rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.lightbox-btn:hover { background: rgba(255,255,255,0.18); }
.lightbox-btn:active { transform: scale(0.95); }

.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-close { top: 18px; right: 18px; font-size: 2rem; }

.lightbox-caption {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}
.lightbox-counter {
  position: absolute;
  top: 22px;
  left: 24px;
  color: rgba(255,255,255,0.6);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

/* Disable native page scroll when lightbox is open */
body.lightbox-open { overflow: hidden; }

/* Make gallery items look clickable */
.project-gallery a {
  cursor: zoom-in;
}

@media (max-width: 640px) {
  .lightbox { padding: 12px; }
  .lightbox-btn { width: 42px; height: 42px; font-size: 1.8rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-caption { font-size: 1.1rem; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ============================================================
   RESPONSIVE — TABLET / SMALL DESKTOP (≤ 1024px)
   Tighten desktop nav before it overflows.
   ============================================================ */
@media (max-width: 1024px) {
  .primary-nav a,
  .primary-nav .nav-link { padding: 0 10px; font-size: 1.2rem; }
}

/* ============================================================
   RESPONSIVE — MID / MOBILE NAV (≤ 900px)
   Switch to hamburger here. The desktop nav is too crowded
   below this width with 5 items + a dropdown arrow.
   ============================================================ */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .features-grid-6 { grid-template-columns: 1fr 1fr; gap: 18px; }
  /* portfolio-grid keeps 3 cols until 720px — see below */
  .portfolio-grid { gap: 24px; }
  .services-content { grid-template-columns: 1fr; gap: 40px; }
  .home-tagline-inner h2 { font-size: 1.7rem; }
  .filter-bar { padding: 14px 20px 18px; }
  .filter-pill { padding: 7px 14px; font-size: 1.1rem; }

  /* ---- Mobile nav (hamburger) ---- */
  .header-inner { padding: 0 20px; }
  .menu-toggle { display: block; }
  .primary-nav { display: none; }
  .primary-nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;       /* explicit — kills accidental centering */
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 10px 0;
    gap: 0;
  }

  /* All top-level menu items, including the dropdown wrapper, are
     full-width left-aligned blocks. */
  .primary-nav.open > a,
  .primary-nav.open > .nav-dropdown {
    width: 100%;
    display: block;
  }
  .primary-nav.open a,
  .primary-nav.open .nav-link {
    display: block;
    width: 100%;
    line-height: 1;
    padding: 14px 24px;
    text-align: left;           /* explicit — Services chevron was centering */
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.3rem;
  }
  /* Services chevron is part of the link text — keep it left-aligned too */
  .primary-nav.open .nav-dropdown .dropdown-menu {
    position: static;
    display: block;             /* always shown on mobile (no hover) */
    border: none;
    box-shadow: none;
    background: #f9f9f9;
    min-width: 0;
    border-top: 1px solid #f0f0f0;
  }
  .primary-nav.open .nav-dropdown .dropdown-menu a {
    padding: 12px 36px;         /* extra indent to indicate sub-nav */
    font-size: 1.2rem;
    text-align: left;
  }
}

/* ============================================================
   RESPONSIVE — PHONE (≤ 640px)
   ============================================================ */
/* Portfolio grid — stays 3-col until viewport gets tight */
@media (max-width: 720px) {
  .portfolio-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .features-grid-6 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .feature-card .feature-title { font-size: 1.05rem; padding: 12px 6px; }
  .hero-section { height: 280px; }
  .hero-slider { height: 280px; }
  .page-hero h1 { font-size: 2.4rem; }
  .project-content h1 { font-size: 2.2rem; }
  .home-tagline-inner { padding: 20px; }
  .home-tagline-inner h2 { font-size: 1.5rem; }
  .home-video { padding: 0 15px 40px; }
}
