/* =======================
   Basic Reset & Body
   ======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  background: #f4f4f4;
  color: #2c3639;
}

/* =======================
   Header & Navigation
   ======================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
  box-shadow: none;
}
.header.scrolled,
.header.project-stripe {
  background: #2c3639cc;
  box-shadow: 0 2px 8px rgba(44,54,57,0.13);
}
.nav-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  box-sizing: border-box;
}
.logo-link {
  display: flex;
  align-items: center;
}
.logo {
  height: 52px;
  display: block;
}
nav {
  display: flex;
  align-items: center;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
  margin: 0;
  padding: 0;
}
.nav-links li {
  display: inline-block;
}
.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s;
  padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active {
  color: #a27b5b;
  border-bottom: 2px solid #a27b5b;
}
.menu-toggle {
  display: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  margin-left: 20px;
}

/* =======================
   Hero Section
   ======================= */
.hero {
  height: 100vh;
  min-height: 500px;
  background: linear-gradient(rgba(44,54,57,0.7), rgba(44,54,57,0.7)), url('assets/TrueForm Website Front Photo.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;
}
.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 16px;
  text-shadow: 1px 1px 8px rgba(0,0,0,0.4);
}
.hero-content p {
  font-size: 1.35rem;
  color: #dcd7c9;
  margin-bottom: 0;
  text-shadow: 1px 1px 8px rgba(0,0,0,0.2);
}

/* =======================
   Sections
   ======================= */
.section {
  scroll-margin-top: 130px; /* This is the only change: increase if your header is even taller */
  padding: 80px 0;
  text-align: center;
  padding-top: 60px;
}
.section .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}
.project-detail-section {
  padding-top: 150px; /* match your sticky header height */
}

/* =======================
   Ensure all main pages start below fixed header
   ======================= */
.about-section,
#about.section,
.portfolio-section,
#portfolio.section,
#services.section,
#testimonials.section,
#contact.section {
  padding-top: 80px; /* Match this to your header height */
}

/* Alternating Section Backgrounds */
#portfolio.section { background: #fff; }
#about.section { background: #f4f4f4; }
#services.section { background: #2c3639; color: #f4f4f4; }
#testimonials.section { background: #f4f4f4; }
#contact.section { background: #2c3639; color: #f4f4f4; }

/* =======================
   About Section
   ======================= */
.about-flex {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.about-text {
  flex: 2 1 320px;
  min-width: 250px;
}
.about-photo {
  flex: 1 1 220px;
  text-align: center;
}
.about-photo img {
  width: 220px;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  background: #fff;
  object-fit: cover;
}
@media (max-width: 900px) {
  .about-flex {
    flex-direction: column;
    gap: 1.5rem;
  }
  .about-photo img {
    width: 140px;
  }
}

/* =======================
   Project Page Images
   ======================= */
.section img {
  display: block;
  margin: 32px auto 24px auto;
  width: 100%;
  max-width: 840px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 3px 16px rgba(44,54,57,0.10);
}

/* =======================
   Project Detail Navigation (Arrows Fixed, Consistent Style)
   ======================= */
.project-detail-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  position: relative;
}
.project-detail-content {
  flex: 1 1 0;
  min-width: 0;
}
/* Consistent style for all arrows, fixed position */
.project-fixed-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2000;
  font-size: 2.4rem;
  color: #222;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: color 0.2s;
}
.project-fixed-arrow.left {
  left: 24px;
}
.project-fixed-arrow.right {
  right: 24px;
}
.project-fixed-arrow:hover,
.project-fixed-arrow:focus {
  color: #000;
  background: none;
}
@media (max-width: 900px) {
  .project-fixed-arrow {
    font-size: 2rem;
  }
  .project-fixed-arrow.left {
    left: 8px;
  }
  .project-fixed-arrow.right {
    right: 8px;
  }
}
@media (max-width: 600px) {
  .project-fixed-arrow {
    font-size: 1.7rem;
  }
  .project-fixed-arrow.left {
    left: 3px;
  }
  .project-fixed-arrow.right {
    right: 3px;
  }
}
.portfolio-link-below {
  margin-top: 24px;
  text-align: center;
}
.portfolio-link-below a {
  font-size: 0.98rem;
  color: #a27b5b;
  text-decoration: none;
  letter-spacing: 0.5px;
  font-weight: 600;
  transition: color 0.2s;
}
.portfolio-link-below a:hover {
  color: #134b9e;
  text-decoration: underline;
}

/* =======================
   Services Section
   ======================= */
.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem 2.5rem;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}
.service-block {
  background: rgba(244,244,244,0.09);
  border-radius: 10px;
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  box-shadow: 0 2px 10px rgba(44,54,57,0.08);
  text-align: left;
}
.service-block h3 {
  color: #a27b5b;
  margin-bottom: 0.5rem;
  font-size: 1.23rem;
  font-weight: 600;
}
.service-block p {
  font-size: 1.02rem;
  margin-bottom: 0.7rem;
  color: #f4f4f4;
}
.service-block ul {
  margin-left: 1.2rem;
  margin-bottom: 0;
}
.service-block li {
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
  color: #f4eada;
  list-style: disc;
}
.service-notes {
  margin-top: 2rem;
  background: rgba(44,54,57,0.12);
  border-radius: 10px;
  padding: 1.2rem 1rem;
  text-align: left;
}
.service-notes h4 {
  color: #a27b5b;
  margin-bottom: 0.6rem;
  font-size: 1.08rem;
}
.service-notes ul {
  margin-left: 1.1rem;
}
.service-notes li {
  font-size: 0.99rem;
  color: #f4eada;
  margin-bottom: 0.35rem;
  list-style: disc;
}
@media (max-width: 900px) {
  .services-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
/* =======================
   Portfolio Grid
   ======================= */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 36px;
  margin: 36px auto 0 auto;
  max-width: 1200px;
  justify-content: center;
}

/* =======================
   Portfolio Card
   ======================= */
.portfolio-card {
  display: block;
  background: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  padding: 0;
  margin: 0;
  text-decoration: none;
  color: inherit;
}

.portfolio-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 255px;
  max-height: 380px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
  transition: transform 0.2s;
}

/* =======================
   Portfolio Card Text (Title & Description)
   ======================= */
.portfolio-card-info,
.portfolio-title {
  background: none;
  padding: 0.4em 0 0.7em 0;   /* Only top and bottom padding */
  margin: 0;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  overflow: visible !important;
  line-height: 1.4;
}

/* For portfolio.html: Title and description */
.portfolio-card-info h2 {
  font-size: inherit;
  font-weight: 600;
  color: #2c3639;
  margin: 0.4em 0 0.2em 0;
  line-height: 1.3;
}
.portfolio-card-info p {
  margin: 0;
  font-size: inherit;
  color: #666;
  line-height: 1.4;
}

/* For main page: Only title, not bold */
.portfolio-title {
  font-size: inherit;
  font-weight: 400;
  color: #2c3639;
  margin: 0.4em 0 0.2em 0;
  line-height: 1.3;
}

/* =======================
   Hover Effect
   ======================= */
.portfolio-card:hover img,
.portfolio-card:focus img {
  transform: scale(1.03);
}

/* =======================
   Responsive Portfolio Grid
   ======================= */
@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 100vw;
  }
  .portfolio-card-info,
  .portfolio-title {
    padding: 0.3em 0 0.5em 0;
    font-size: 1em;
  }
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-left: 3vw;
    padding-right: 3vw;
  }
  .portfolio-card-info,
  .portfolio-title {
    padding: 0.2em 0 0.5em 0;
    font-size: 0.97em;
  }
}


/* =======================
   Footer
   ======================= */
footer {
  padding: 24px 0 10px 0;
  text-align: center;
  background: #1e1e1e;
  color: white;
}
footer .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}
footer .socials {
  margin-top: 10px;
}
footer .socials a,
footer .socials a:visited {
  color: white;
  margin: 0 10px;
  font-size: 1.5rem;
  transition: color 0.3s;
}
footer .socials a:hover {
  color: #a27b5b;
}
.footer-logo {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 70px;
  height: auto;
  z-index: 50;
  opacity: 0.95;
  pointer-events: none;
  transition: opacity 0.2s;
}
@media (max-width: 600px) {
  .footer-logo {
    width: 44px;
    right: 8px;
    bottom: 8px;
  }
}

/* =======================
   Responsive Portfolio Grid
   ======================= */
@media (max-width: 1200px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section img {
    max-width: 98vw;
  }
}
@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 2.1rem;
  }
  .portfolio-card {
    width: 98vw;
  }
}

/* =======================
   Navigation Mobile
   ======================= */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 0;
    position: absolute;
    right: 0;
    top: 60px;
    width: 180px;
    background: #2c3639;
    display: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 16px 0;
  }
  .nav-links.show {
    display: flex;
  }
  .menu-toggle {
    display: block;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-links a {
    padding: 12px 0;
    font-size: 1.08rem;
  }
  .nav-container {
    padding: 20px 10px;
  }
}

/* =======================
   Testimonials
   ======================= */
.testimonial-grid {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.testimonial-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(44,54,57,0.10);
  padding: 1.1rem 0.9rem 0.8rem 0.9rem;
  max-width: 480px;
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}
.testimonial-text {
  font-style: italic;
  color: #2c3639;
  margin-bottom: 0.8rem;
  font-size: 0.92rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.testimonial-author img {
  width: 40px;
  height: 40px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 1px 6px rgba(44,54,57,0.09);
  background: #eee;
  display: block;
}
.testimonial-author span {
  font-weight: 600;
  font-size: 0.88rem;
  color: #a27b5b;
}
@media (max-width: 900px) {
  .testimonial-card {
    width: 96%;
    max-width: 260px;
  }
  .testimonial-author img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 1px 6px rgba(44,54,57,0.09);
    background: #eee;
    display: block;
  }
}
.service-icon {
  font-size: 2.2rem;
  color: #a27b5b;
  margin-bottom: 0.5rem;
}

/* =======================
   Contact Section Styles
   ======================= */
#contact a,
#contact a:visited {
  color: white;
  text-decoration: underline;
}
#contact .socials {
  margin-top: 1.3em;
}
#contact .socials a,
#contact .socials a:visited {
  color: white;
  font-size: 2rem;
  margin: 0 0.5em;
  vertical-align: middle;
  transition: color 0.2s;
}
#contact .socials a:hover {
  color: #a27b5b;
}
.project-info,
.portfolio-info {
  text-align: left;
}
.portfolio-info ul {
  list-style-position: inside;
  padding-left: 0;
  margin-left: 0.4em;
}
.portfolio-info ul {
  list-style-position: inside;
  padding-left: 0;
}
.portfolio-info ul li {
  text-indent: -1.4em;
  padding-left: 1.4em;
}

/* =======================
   Lightbox
   ======================= */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
}
.lightbox.show {
  display: flex;
}
.lightbox-img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.45);
  background: #fff;
  display: block;
  z-index: 1;
}
.lightbox-close {
  position: absolute;
  top: 28px; right: 56px;
  font-size: 3rem;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  user-select: none;
  transition: color 0.2s;
}
.lightbox-close:hover {
  color: #a27b5b;
}
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  padding: 8px 18px;
  z-index: 10001;
  user-select: none;
  background: rgba(44,54,57,0.23);
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}
.lightbox-arrow-left {
  left: 32px;
}
.lightbox-arrow-right {
  right: 32px;
}
.lightbox-arrow:hover {
  background: #a27b5b;
  color: #fff;
}
@media (max-width:600px) {
  .lightbox-close { top: 10px; right: 12px; font-size: 2rem;}
  .lightbox-arrow { font-size: 2rem; left: 8px; right: 8px; }
  .lightbox-arrow-left { left: 8px;}
  .lightbox-arrow-right { right: 8px;}
}

/* =======================
   Final Mobile Polish
   ======================= */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
.section {
  scroll-margin-top: 130px;
}
@media (max-width: 600px) {
  body {
    font-size: 1.08rem;
  }
}
/* =======================
   About Section — Modern Layout
   ======================= */
.about-section {
  background: #f6f7fb;
  min-height: 100vh;
  padding: 150px 0 40px 0;
}

.about-flex {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.about-text {
  flex: 2 1 320px;
  min-width: 250px;
}

.about-photo {
  flex: 1 1 320px;
  text-align: center;
}

.about-photo img {
  width: 360px;
  height: auto;
  border-radius: 12px;
  display: block;
}

@media (max-width: 900px) {
  .about-flex {
    flex-direction: column;
    text-align: center;
    gap: 22px;
  }
  .about-photo {
    margin-bottom: 12px;
  }
  .about-photo img {
    width: 360px;
    height: auto;
  }
}

.about-section h2 {
  margin-top: 0;
  color: #134b9e;
  font-size: 2.1rem;
}

.about-section p {
  font-size: 1rem;
  margin-top: 8px;
}
.services-link-below a,
.services-link-below a:visited,
.services-link-below a:active,
.portfolio-link-below a,
.portfolio-link-below a:visited,
.portfolio-link-below a:active {
  color: #bda98e !important;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s;
}
.services-link-below a:hover,
.services-link-below a:focus,
.portfolio-link-below a:hover,
.portfolio-link-below a:focus {
  color: #8d7758 !important;
}
.services-link-below a,
.services-link-below a:visited,
.services-link-below a:active {
  color: #bda98e !important;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s;
}
.services-link-below a:hover,
.services-link-below a:focus {
  color: #8d7758 !important;
}
/* Make Back to Portfolio link match the Services link color */
.back-link,
.back-link:visited,
.back-link:active {
  color: #bda98e !important;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s;
}
.back-link:hover,
.back-link:focus {
  color: #8d7758 !important;
}