/* =============================================
   Channel Moorings – Shared Stylesheet
   ============================================= */

/* --- Reset & Base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', 'Source Sans Pro', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2d3748;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Variables ------------------------------------------- */
:root {
  --blue:       #0077B6;
  --blue-mid:   #1790c8;
  --blue-dark:  #023E8A;
  --navy:       #1a3564;
  --navy-dark:  #122548;
  --gold:       #E8A622;
  --text:       #2d3748;
  --text-light: #555;
  --bg-light:   #f5f7fa;
  --white:      #fff;
  --radius:     7px;
  --shadow:     10px 10px 5px 5px rgba(0,0,0,0.05);
  --transition: 0.3s ease;
}

/* --- Container ------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   HEADER / NAV
   ============================================= */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--blue);          /* ← blue header */
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo img { height: 44px; width: auto; }
.logo-text { line-height: 1.2; }
.logo-text .brand {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #fff;           /* white on blue header */
}
.logo-text .location {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.05em;
}

/* Desktop Nav */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.desktop-nav a {
  font-size: 15px;
  font-weight: 600;
  color: #efefef;        /* near-white on blue */
  padding: 6px 12px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.desktop-nav a:hover {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.5);
}
.desktop-nav a.active {
  color: var(--gold);             /* orange/gold active */
  border-bottom-color: var(--gold);
}

.desktop-nav .btn-contact {
  background: var(--navy);
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius);
  padding: 7px 16px;
  margin-left: 8px;
  transition: background var(--transition);
}
.desktop-nav .btn-contact:hover {
  background: var(--navy-dark);
  border-bottom-color: transparent !important;
}
.desktop-nav .btn-contact.active {
  color: #fff !important;
  border-bottom-color: transparent !important;
}

/* Phone */
.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;           /* white on blue header */
  white-space: nowrap;
}
.header-phone::before { content: '☎'; font-size: 13px; }
.header-phone a { color: #fff; }

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;       /* white on blue */
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--blue);
  border-top: 1px solid rgba(255,255,255,0.2);
  padding: 12px 0;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #efefef;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.mobile-nav a.active { color: var(--gold); }

/* =============================================
   HERO / SLIDER
   ============================================= */
.hero-slider {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 450px;
  overflow: hidden;
  margin-top: 60px;
}
.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.75s ease-in-out;
  background-size: cover;
  background-position: center;
}
.slide.active { opacity: 1; }

/* Slide content: bottom left */
.slide-content {
  position: absolute;
  left: 5%;
  bottom: 10%;
  max-width: 520px;
}
.slide-title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  text-shadow: 1px 2px 4px rgba(0,0,0,0.5);
  margin-bottom: 22px;
  line-height: 1.2;
}
.slide-box {
  background: rgba(40, 50, 60, 0.72);
  padding: 24px 28px;
}
.slide-text {
  font-size: 17px;
  line-height: 1.65;
  color: #fff;
  margin-bottom: 12px;
}
.slide-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}

/* Slider dots */
.slider-dots {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slider-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  transition: background var(--transition);
}
.slider-dots button.active { background: #fff; }

/* Inner page hero (static) */
.page-hero {
  position: relative;
  height: 70vh;
  min-height: 450px;
  background-size: cover;
  background-position: center;
  margin-top: 60px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.page-hero-content {
  background: rgba(40, 50, 60, 0.72);
  padding: 28px 32px;
  max-width: 480px;
  margin: 0 5% 40px 0;
  color: #fff;
}
.page-hero-sub {
  font-size: 15px;
  margin-bottom: 8px;
  opacity: 0.9;
}
.page-hero-title {
  font-size: 34px;
  font-weight: 700;
}

/* =============================================
   MAST BANNER SECTION (blue)
   ============================================= */
.mast-banner {
  background: var(--blue);
  padding-top: 60px;
}
.mast-statement {
  text-align: center;
  color: #fff;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

/* Content pair: image + white card on blue background */
.content-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
}
.content-img-col { overflow: hidden; }
.content-img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  display: block;
}
.content-card-col {
  display: flex;
  align-items: center;
  padding: 40px 80px 40px 40px;  /* extra right pad = blue shows through */
}
.content-pair.reverse .content-card-col {
  padding: 40px 40px 40px 80px;  /* extra left pad for reversed */
  justify-content: flex-end;
}
.content-card {
  background: #fff;
  padding: 36px 40px;
  max-width: 520px;
  width: 100%;
}
.content-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
}
.content-card p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.7;
}
.content-card ul {
  list-style: decimal;
  padding-left: 20px;
  margin-top: 8px;
}
.content-card ul li {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 10px;
  line-height: 1.6;
}
.content-card .source-note {
  margin-top: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

/* Wave dividers */
.wave-bottom { display: block; width: 100%; overflow: hidden; line-height: 0; }
.wave-bottom svg { display: block; width: 100%; }

/* =============================================
   SECTIONS
   ============================================= */
section { padding: 70px 0; }
.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.section-title.centered { text-align: center; }
.section-sub {
  font-size: 16px;
  color: var(--text-light);
  max-width: 900px;
  margin-bottom: 50px;
}
.section-sub.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Blue intro text (used on inner pages) */
.intro-blue {
  text-align: center;
  color: var(--blue);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 50px;
  line-height: 1.5;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   SERVICES CARDS (homepage)
   ============================================= */
.services-section {
  background: var(--bg-light);
  padding: 80px 0;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 12px 14px 8px 4px rgba(0,0,0,0.09);
}
.card img { width: 100%; height: 350px; object-fit: cover; }
.card-body {
  padding: 28px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.card-body h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.card-body p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--blue-dark);   /* #023E8A */
  color: #fff;
}
.btn-primary:hover { background: #012d6e; }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.7);
  color: rgba(255,255,255,0.9);
  padding: 9px 22px;
  font-size: 13px;
  letter-spacing: 0.1em;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}

/* =============================================
   CTA SECTION (dark split)
   ============================================= */
.cta-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  overflow: hidden;
}
.cta-left,
.cta-right {
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.cta-split:not(.revealed) .cta-left {
  opacity: 0;
  transform: translateX(-60px);
}
.cta-split:not(.revealed) .cta-right {
  opacity: 0;
  transform: translateX(60px);
}
.cta-split.revealed .cta-left,
.cta-split.revealed .cta-right {
  opacity: 1;
  transform: translateX(0);
}
.cta-split.revealed .cta-right {
  transition-delay: 0.15s;
}
.cta-left {
  background: #222;
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta-left h2 {
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}
.cta-left p {
  font-size: 15px;
  color: #ccc;
  margin-bottom: 24px;
  line-height: 1.7;
}
.cta-right {
  background-size: cover;
  background-position: center;
  min-height: 280px;
}

/* =============================================
   VIDEO SECTION
   ============================================= */
.video-section { padding: 70px 0; background: #fff; }
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 840px;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* =============================================
   WAVE INTO TESTIMONIALS
   ============================================= */
.wave-into-blue { background: #fff; line-height: 0; }
.wave-into-blue svg { display: block; width: 100%; }
.wave-out-of-blue { background: var(--blue); line-height: 0; }
.wave-out-of-blue svg { display: block; width: 100%; }

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials-section {
  background: var(--blue);
  padding: 80px 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.testimonial-card {
  background: #fff;               /* white cards on blue bg */
  border-radius: var(--radius);
  padding: 36px;
  color: var(--text);
}
.testimonial-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  display: block;
}
.testimonial-text {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-light);
}
.testimonial-author {
  font-size: 14px;
  color: var(--text);
}
.testimonial-boat {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

/* =============================================
   PROJECTS SECTION (homepage)
   ============================================= */
.projects-section {
  padding: 80px 0;
  background: var(--bg-light);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 36px;
  margin-top: 40px;
}
.project-card {
  display: flex;
  flex-direction: column;
}
.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.project-card-body {
  padding: 16px 0 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-card-body .tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  margin-bottom: 6px;
}
.project-card-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.project-card-body p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 16px;
}

/* =============================================
   SERVICES PAGE – inner content
   ============================================= */
.services-content { background: #fff; padding: 70px 0; }
.service-item {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid #eee;
}
.service-item:last-child { border-bottom: none; }
.service-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
}
.service-item-text h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}
.service-item-text p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 12px;
}

/* Mooring types gallery */
.mooring-types { background: var(--bg-light); padding: 60px 0; }
.mooring-types h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 36px;
}
.mooring-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.mooring-gallery-item { text-align: center; }
.mooring-gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius);
  padding: 12px;
}
.mooring-gallery-item span {
  display: block;
  font-weight: 600;
  margin-top: 10px;
  color: var(--text);
}

/* GIS section */
.gis-section {
  background: var(--blue);
  padding: 60px 0;
  color: #fff;
  text-align: center;
}
.gis-section h2 { font-size: 24px; font-weight: 700; margin-bottom: 14px; }
.gis-section p {
  font-size: 15px;
  max-width: 700px;
  margin: 0 auto 24px;
  line-height: 1.7;
  opacity: 0.95;
}

/* =============================================
   BARGE HIRE PAGE
   ============================================= */
.barge-intro { padding: 70px 0; background: #fff; }
.barge-intro p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
  max-width: 860px;
  margin: 0 auto 20px;
}
.jobs-section { background: var(--bg-light); padding: 80px 0; }
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}

/* =============================================
   COMPLETED PROJECTS PAGE
   ============================================= */
.projects-page { padding: 70px 0; background: #fff; }
.project-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
  padding: 50px 0;
  border-bottom: 1px solid #eee;
}
.project-detail:last-child { border-bottom: none; }
.project-detail img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
}
.project-detail .tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  margin-bottom: 8px;
}
.project-detail h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}
.project-detail p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 12px;
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-section { padding: 70px 0; background: #fff; }
.contact-intro {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 48px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.contact-intro a { color: var(--blue); text-decoration: underline; }

.contact-form {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-light);
  padding: 48px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.form-group label .req { color: #e53e3e; margin-left: 2px; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  transition: border-color var(--transition);
  color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,119,182,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.radio-group {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
}
.form-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}
.conditional-fields { display: none; }
.conditional-fields.show { display: block; }
.btn-submit {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 13px 36px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
  width: 100%;
  margin-top: 10px;
}
.btn-submit:hover { background: var(--blue-dark); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.form-status {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  min-height: 22px;
}
.form-status.success { color: #27ae60; }
.form-status.error   { color: #c0392b; }

/* =============================================
   FOOTER
   ============================================= */
footer { background: var(--blue); color: #fff; padding: 50px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 30px;
  align-items: start;
}
.footer-brand img { height: 80px; margin-bottom: 14px; }
.footer-brand h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.footer-brand p { font-size: 14px; opacity: 0.85; margin-bottom: 6px; }
.footer-desc { font-size: 14px; opacity: 0.9; line-height: 1.7; margin-top: 10px; }
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 16px;
  margin-top: 10px;
}
.footer-contact-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  opacity: 0.95;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.footer-contact-list a:hover { opacity: 1; }
.footer-icon { font-size: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  background: #111;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  opacity: 0.85;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .hamburger { display: flex; }
  .hero-slider { height: 50vh; min-height: 350px; }
  .slide-content { left: 5%; right: 5%; max-width: 100%; }
  .slide-title { font-size: 22px; }
  .content-pair { grid-template-columns: 1fr; }
  .content-pair.reverse .content-card-col { padding: 30px; }
  .content-card-col { padding: 30px; }
  .content-img { min-height: 260px; }
  .cards-grid { grid-template-columns: 1fr; }
  .cta-split { grid-template-columns: 1fr; }
  .cta-right { min-height: 200px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .service-item { grid-template-columns: 1fr; }
  .project-detail { grid-template-columns: 1fr; }
  .jobs-grid { grid-template-columns: 1fr; }
  .mooring-gallery { grid-template-columns: 1fr; }
}
/* =============================================
   LIGHTBOX
   ============================================= */
#lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
#lightbox-overlay.active { display: flex; }
.lb-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.lb-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.lb-close:hover { opacity: 1; }
.lb-prev, .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 48px;
  line-height: 1;
  width: 56px;
  height: 80px;
  cursor: pointer;
  border-radius: 4px;
  opacity: 0.75;
  transition: opacity 0.2s, background 0.2s;
}
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-prev:hover, .lb-next:hover { opacity: 1; background: rgba(255,255,255,0.22); }
.lb-counter {
  position: absolute;
  bottom: 20px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-family: inherit;
}

@media (max-width: 600px) {
  section { padding: 50px 0; }
  .mast-statement { font-size: 19px; }
  .section-title { font-size: 24px; }
  .page-hero { height: 50vh; min-height: 300px; }
  .page-hero-title { font-size: 26px; }
  .contact-form { padding: 28px 20px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}

/* =============================================
   PROJECT DETAIL PAGE
   ============================================= */
.project-hero {
  width: 100%;
  height: 70vh;
  min-height: 450px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.project-detail-wrap {
  background: var(--bg-light);
  padding: 0 0 80px;
}
.project-detail-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
/* Main article card overlaps the hero */
.project-article {
  background: #fff;
  margin-top: -140px;
  padding: 40px 44px 48px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  position: relative;
  z-index: 2;
}
.project-date {
  font-size: 13px;
  color: #888;
  margin-bottom: 10px;
}
.project-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.25;
}
.project-category {
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 20px;
}
.project-category:hover { text-decoration: underline; }
.project-divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 0 0 28px;
}
.project-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 12px;
}
.project-article p {
  font-size: 15px;
  line-height: 1.75;
  color: #555;
  margin-bottom: 12px;
}
/* Gallery */
.project-gallery-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 16px;
}
.project-gallery {
  columns: 3;
  column-gap: 8px;
}
.project-gallery img {
  width: 100%;
  display: block;
  margin-bottom: 8px;
  break-inside: avoid;
}
/* Sidebar */
.project-sidebar {
  margin-top: -140px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.sidebar-card {
  background: #fff;
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.sidebar-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}
.client-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.client-logo-row img {
  max-height: 48px;
  max-width: 100px;
  object-fit: contain;
}
.client-logo-row span {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.related-post {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
}
.related-post:last-child { border-bottom: none; }
.related-post img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  flex-shrink: 0;
}
.related-post-info { flex: 1; }
.related-post-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  line-height: 1.4;
  display: block;
  margin-bottom: 4px;
}
.related-post-title:hover { text-decoration: underline; }
.related-post-date {
  font-size: 12px;
  color: #999;
}
@media (max-width: 900px) {
  .project-detail-inner { grid-template-columns: 1fr; }
  .project-article, .project-sidebar { margin-top: 0; }
  .project-sidebar { flex-direction: row; flex-wrap: wrap; }
  .sidebar-card { flex: 1 1 280px; }
  .project-gallery { columns: 2; }
}
