/* Surface Stories Final Theme */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;600&family=Roboto:wght@300;400;500&display=swap');

:root {
  --heading-font: 'Exo 2', sans-serif;
  --body-font: 'Roboto', sans-serif;
  --nav-height: 88px; /* was 0px, now matches navbar height */
  --gallery-rotate-interval: 15s; /* Time between rotations */
  --gallery-fade-duration: 3.5s; /* Fade transition duration */
  --color-plum: #6E3263;
  --color-accent: #D2AE94;
  --color-peach: #EFB2A1;
  --color-bg: #f2f2f2;
  --color-black: #000000;
  --color-blue: #9FCCDB;
}


/* === Scroll Progress Bar (Top) === */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: var(--color-peach);
  z-index: 2000;
  transition: width 0.15s linear;
}

html, body {
  font-family: var(--body-font);
  background-color: var(--color-bg);
  color: #111;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;

  /* Hide scrollbar (cross-browser) */
  -ms-overflow-style: none;  /* IE & Edge */
  scrollbar-width: none;      /* Firefox */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge (Chromium) */
}

.container {
  max-width: 1400px;
}

/* Navbar */
.navbar {
  background-color: #fff;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.navbar .brand-text {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--color-plum);
}

/* Logo size */
.navbar-brand img {
  height: 88px;
  width: auto;
  transition: transform 0.3s ease;
}
.navbar-brand img:hover {
  transform: scale(1.05);
}

/* .nav-link {
  color: #111 !important;
  font-weight: 500;
}
.nav-link:hover,
.nav-link.active {
  color: var(--color-plum) !important;
} */

/* Base nav link styling */
.nav-link {
  position: relative;
  color: #111 !important;
  font-weight: 500;
  padding-bottom: 6px; /* room for underline */
  transition: color 0.3s ease;
}

/* Underline (hidden by default) */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-plum), #e6d2ff);
  transition: width 0.3s ease;
}

/* Hover underline */
.nav-link:hover::after {
  width: 100%;
}

/* Active section underline */
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-plum) !important;
}

/* Hero image height adjusted */
.hero .carousel-item img {
  height: calc(100vh - var(--nav-height));
  object-fit: cover;
}

@media (max-width: 991px) {
  .hero .carousel-item img { height: 55vh; }
}
@media (max-width: 768px) {
  .hero .carousel-item img { height: 45vh; }
  :root { --nav-height: 72px; } /* smaller nav height on mobile instead of 0 */
}

/* Hero caption */
.carousel-caption {
  position: absolute;
  left: 5%;
  bottom: 30%;
  text-align: left;
  color: #693562;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}
.carousel-caption .mk {
  color: #4a8c85;
  text-shadow: 2px 2px 6px #4a8c85;
}
.carousel-caption h1 {
  font-family: var(--heading-font);
  font-size: clamp(1.75rem, 2vw + 1rem, 3rem);
  line-height: 1.3;
  font-weight: 600;
}
.carousel-caption p {
  font-size: 1.1rem;
}
.carousel-caption .quote-text {
  font-style: italic;
  opacity: 0.95;
}

/* Keep hero text always visible */
.carousel-caption.always-visible {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Mobile hero adjustments */
@media (max-width: 768px) {
  .carousel-caption.always-visible {
    position: absolute;
    bottom: 18%; /* was 6%, now higher up closer to navbar */
    left: 5%;
    right: 5%;
    text-align: left;
    padding: 1rem 1.2rem;
    border-radius: 0.6rem;
  }

  .carousel-caption.always-visible h1 {
    font-size: 1.3rem;
    line-height: 1.4;
  }

  .carousel-caption.always-visible p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }

  .carousel-caption.always-visible .btn {
    font-size: 0.9rem;
    padding: 0.45rem 1rem;
  }
}
/* ============================================================
   B2 DRAMATIC HERO TEXT (Pixel-Perfect Mobile Scaling)
   ============================================================ */

/* -------------------------------
   320px devices (old iPhones, mini Android)
   ------------------------------- */
@media (max-width: 340px) {
  .carousel-caption.always-visible h1 {
    font-size: 1.95rem !important;
    line-height: 1.28 !important;
  }
  .carousel-caption.always-visible p {
    font-size: 1.05rem !important;
  }
  .carousel-caption.always-visible .btn {
    padding: 0.55rem 1.1rem !important;
    font-size: 0.95rem !important;
  }
}

/* -------------------------------
   360px devices (Galaxy A-series, older Samsungs, many Androids)
   ------------------------------- */
@media (min-width: 341px) and (max-width: 380px) {
  .carousel-caption.always-visible h1 {
    font-size: 2.15rem !important;
    line-height: 1.28 !important;
  }
  .carousel-caption.always-visible p {
    font-size: 1.15rem !important;
  }
  .carousel-caption.always-visible .btn {
    padding: 0.6rem 1.15rem !important;
    font-size: 1rem !important;
  }
}

/* -------------------------------
   375px devices (iPhone SE2 / iPhone 12 Mini)
   ------------------------------- */
@media (min-width: 381px) and (max-width: 399px) {
  .carousel-caption.always-visible h1 {
    font-size: 2.25rem !important;
    line-height: 1.28 !important;
  }
  .carousel-caption.always-visible p {
    font-size: 1.15rem !important;
  }
  .carousel-caption.always-visible .btn {
    padding: 0.6rem 1.2rem !important;
    font-size: 1rem !important;
  }
}

/* -------------------------------
   400–430px devices (iPhone 11/12/13/14, Pixel 6a)
   ------------------------------- */
@media (min-width: 400px) and (max-width: 430px) {
  .carousel-caption.always-visible h1 {
    font-size: 2.35rem !important;
    line-height: 1.28 !important;
  }
  .carousel-caption.always-visible p {
    font-size: 1.18rem !important;
  }
  .carousel-caption.always-visible .btn {
    padding: 0.65rem 1.25rem !important;
    font-size: 1.05rem !important;
  }
}

/* -------------------------------
   431–480px devices (Large phones, small tablets)
   ------------------------------- */
@media (min-width: 431px) and (max-width: 480px) {
  .carousel-caption.always-visible h1 {
    font-size: 2.45rem !important;
    line-height: 1.3 !important;
  }
  .carousel-caption.always-visible p {
    font-size: 1.22rem !important;
  }
  .carousel-caption.always-visible .btn {
    padding: 0.7rem 1.3rem !important;
    font-size: 1.1rem !important;
  }
}

/* Full-screen sections (minus navbar) */
section,
header.hero {
  min-height: calc(100vh - var(--nav-height));
  scroll-snap-align: start;
  scroll-margin-top: var(--nav-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero .carousel-item img {
  height: calc(100vh - var(--nav-height));
  object-fit: cover;
}

/* Fade out overlay on larger screens */
@media (min-width: 769px) {
  .carousel-caption.always-visible {
    background: transparent;
    padding: 0;
  }
}

/* Buttons */
.btn-primary {
  background-color: var(--color-plum);
  border-color: var(--color-plum);
  border-radius: 0.6rem;
  font-weight: 500;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}
.btn-primary:hover {
  background-color: #7d4378;
  border-color: #7d4378;
}

/* Section titles (left aligned) */
.section-title {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--color-black) !important;
  margin-bottom: 1.5rem;
  text-align: left;
  font-size: 2.5rem;
}

/* Every section becomes a full-screen slide */
section {
  min-height: calc(100vh - var(--nav-height));
  padding-top: var(--nav-height);
  scroll-snap-align: start;
  scroll-margin-top: var(--nav-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
}


/* =============================
   ABOUT SECTION (Independent)
   ============================= */
.about-section {
  background-color: var(--color-peach);
  color: var(--color-plum);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

/* Section Title */
.about-section .section-title {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--color-plum);
  text-align: left;
  margin-left: 5rem;
}

/* About Cards - Frosted Glass with Plum Border */
.about-section .about-card {
  background: rgba(255, 255, 255, 0.9); /* translucent white */
  border-radius: 0.75rem;
  border: 1px solid rgba(105, 53, 98, 0.3); /* soft plum border */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px); /* frosted effect */
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%; /* allow flex equal heights */
}
.about-section .about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.about-section .about-card p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0;
  color: var(--color-plum);
}

.about-section .about-card strong {
  color: var(--color-plum);
}

/* Equal height columns */
.about-section .row {
  display: flex;
  flex-wrap: wrap;
}
.about-section .col-md-6 {
  display: flex;
  align-items: stretch;
}

/* Decorative subtle overlay (optional) */
.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.05)
  );
  z-index: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .about-section {
    padding: 3rem 0;
  }
  .about-section .section-title {
    text-align: center;
    margin-left: 0rem;
  }
  .about-section .row {
    display: block; /* stack on mobile */
  }
  .about-section .about-card {
    margin-bottom: 1.5rem;
    padding: 1.2rem;          /* tighter padding on mobile */
  }
  .about-section .about-card p {
    font-size: 0.95rem;       /* slightly smaller text */
  }
}

/* ============================================
   ABOUT SECTION – Modern Gradient Cards
   ============================================ */

.grid-container {
  width: min(75rem, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr));
  gap: 2rem;
}

/* Base card */
.about-card-modern {
  padding: 2.2rem;
  background-image: linear-gradient(to bottom left, #f4f6f7, #ffffff);
  border-radius: 1.8rem;

  /* GRID LAYOUT (desktop default) */
  display: grid;
  grid-template:
    "title icon"
    "content content"
    "bar bar"
    / 1fr auto;

  font-family: var(--body-font);
  color: #333;
  height: 100%;
  position: relative;

  box-shadow:
    inset -2px 2px rgba(255, 255, 255, 1),
    -25px 25px 50px rgba(0,0,0,0.2);

  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Hover lift */
.about-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: -30px 30px 60px rgba(0,0,0,0.28);
}

/* Title */
.about-card-modern .title {
  grid-area: title;
  align-self: end;
  font-size: 1.55rem;
  text-transform: uppercase;
  font-family: var(--heading-font);
  letter-spacing: 0.5px;
  font-weight: 600;
  color: var(--color-plum);
  text-align: left;
  margin-bottom: 0.4rem; /* compact spacing */
}

/* Icon */
.about-card-modern .icon {
  grid-area: icon;
  display: flex;
  justify-content: center;
  margin-bottom: 0.8rem; /* compact spacing */
}
.about-card-modern .icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}
.about-card-modern .icon svg {
  width: 50px;
  height: 50px;
  stroke-width: 0.8px;
}

.about-card-modern .icon svg path {
  stroke: url(#aboutIconGradient);
}

/* Content */
.about-card-modern .content {
  grid-area: content;
  margin-top: 1.1rem; /* compact spacing */
}

.about-card-modern .content p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-plum);
}

/* Divider bar */
.about-card-modern::after {
  content: "";
  grid-area: bar;
  height: 3px;
  border-radius: 5px;
  background-image: linear-gradient(90deg, var(--grad));
  margin-top: 1.2rem; /* compact spacing */
}

/* ============================================
   CTA CARD (4th card)
   ============================================ */

.about-card-link {
  display: block;
  height: 100%;
  text-decoration: none !important;
  color: inherit !important;
}

.about-card-cta:hover .about-card-modern {
  transform: translateY(-10px);
  box-shadow:
    0px 0px 20px rgba(111, 50, 99, 0.25),
    0px 0px 40px rgba(159, 204, 219, 0.25),
    -30px 30px 60px rgba(0,0,0,0.28);
}

/* CTA icon movement */
.about-card-cta .icon-main {
  transition: transform 0.4s ease;
}
.about-card-cta:hover .icon-main {
  transform: translateX(6px);
}

/* CTA arrow */
.about-card-cta .icon-arrow {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%) translateX(-10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.about-card-cta:hover .icon-arrow {
  opacity: 1;
  transform: translateY(-50%) translateX(4px);
}

.about-card-cta .icon-arrow svg {
  width: 40px;
  height: 40px;
}

.about-card-cta .icon-arrow svg path {
  stroke: url(#aboutIconGradient);
}

/* ============================================
   DESKTOP (≥992px)
   ============================================ */

@media (min-width: 992px) {
  .grid-container {
    grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr));
  }

  .about-card-modern {
    padding: 3rem;
    border-radius: 2.2rem;
  }

  .about-card-modern .title {
    font-size: 1.8rem;
  }

  .about-card-modern .icon svg {
    width: 60px;
    height: 60px;
  }

  .about-card-cta .icon-arrow svg {
    width: 48px;
    height: 48px;
  }

  .about-card-modern .content p {
    font-size: 1.1rem;
    line-height: 1.7;
  }
}

/* ============================================
   TABLET (769px–991px)
   Prevent icon dropping under title
   ============================================ */

@media (max-width: 991px) and (min-width: 769px) {

  .about-card-modern {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "title icon"
      "content content"
      "bar bar";
  }

  .about-card-modern .title {
    font-size: 1.35rem;
    margin-bottom: 0.2rem;
  }

  .about-card-modern .icon {
    justify-self: end;
    margin-bottom: 0;
  }

  .about-card-modern .icon svg {
    width: 40px;
    height: 40px;
  }

  .about-card-modern .content {
    margin-top: 0.7rem;
  }
}
/* ============================================
   MICRO FIX — prevent wrapping at ~360–380px
   and refine CTA arrow alignment
   ============================================ */
@media (max-width: 420px) and (min-width: 361px) {

  .about-card-modern {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "title icon"
      "content content"
      "bar bar";
  }

  .about-card-modern .title {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
    line-height: 1.2;
    white-space: nowrap; /* prevents title wrapping */

  }

  .about-card-modern .icon svg {
    width: 32px;
    height: 32px;
  }

  /* Small-width arrow refinement */
  .about-card-cta .icon-arrow {
    right: 1rem;
    transform: translateY(-50%) translateX(-6px);
  }
}


/* ============================================
   TRUE MOBILE STACKING — only on very small screens
   ============================================ */
@media (max-width: 360px) {

  .about-card-modern {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "icon"
      "content"
      "bar";
    padding: 1.4rem;
    border-radius: 1.3rem;
  }

  .about-card-modern .title {
    font-size: 1rem;
    margin-bottom: 0.35rem;
  }

  .about-card-modern .icon {
    justify-self: start;
    margin-bottom: 0.55rem;
  }

  .about-card-modern .icon svg {
    width: 34px;
    height: 34px;
  }

  .about-card-modern .content {
    margin-top: 0.7rem;
  }

  .about-card-modern::after {
    margin-top: 0.9rem;
  }

  /* CTA arrow reposition */
  .about-card-cta .icon-arrow {
    bottom: 0.8rem;
    right: 1rem;
    transform: translateX(-6px);
  }
}



/* =============================
   SERVICES SECTION (Independent)
   ============================= */
#services {
  background-color: #f8f9fa; /* Light neutral section background */
  color: var(--color-plum);
  padding: 4rem 0;
}

/* Section Title */
#services .section-title {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--color-plum);
  text-align: left;
  margin-bottom: 2rem;
}
/* Section Title */
#services .section-title-right {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--color-black);
  text-align: right;
  margin-bottom: 2rem;
}
/* Section Title */
#services .section-title-center {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--color-black);
  text-align: center;
  margin-bottom: 2rem;
}

/* Service Cards */
#services .service-card {
  border: none;
  background: #fff;
  border-radius: 0.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#services .service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Service Icon (square with soft corners + hover effect) */
#services .service-icon {
  background-color: var(--color-white);
  border-radius: 0.4rem; /* Soft rounded corners */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
#services .service-icon svg {
  color: var(--color-accent);
  width: 24px;
  height: 24px;
}
/* Hover effect for icon */
#services .service-card:hover .service-icon {
  /* background-color: #7d4378; lighter plum hover tint */
  background-color: #fff; /* lighter plum hover tint */
  box-shadow: 0 0 10px rgba(209, 174, 147, 0.6);
  transform: translateY(-2px);
}
.service-icon img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  display: block;
}
/* MOBILE RESPONSIVE IMPROVEMENTS */
@media (max-width: 768px) {

  /* Service section padding */
  #services {
    padding: 3rem 0;
  }

  /* Center heading on mobile */
  #services .section-title {
    text-align: center;
  }

  /* Smaller icons on mobile */
  #services .service-icon {
    width: 50px;
    height: 50px;
  }

  #services .service-icon img {
    width: 46px;
    height: 46px;
  }

  /* Adjust card spacing for small screens */
  #services .service-card {
    padding: 0.9rem 1rem;
  }

  /* Smaller text for cleaner mobile look */
  #services .service-card h3 {
    font-size: 0.95rem;
  }
}

/* Add bottom padding to “Why Choose Us” paragraph */
#services .section-title-right + p {
  padding-bottom: 10px;
}


.service-card:hover .service-icon img {
  transform: translateY(0px); /*  <<-- Icon to move change to -3 or so on */
  transition: transform 0.3s ease;
}


/* Service Text */
#services .service-card h3 {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--color-black);
}

/* Paragraph below service grid */
#services p {
  color: var(--color-plum);
  line-height: 1.6;
  font-size: 1.1rem;
  padding-bottom: 10px;
  text-align: center;
}
/* Responsive */
@media (max-width: 768px) {
  #services p {
    padding-bottom: 20px;
  }
}
/* Responsive */
@media (max-width: 364px) {
  #services p {
    padding-bottom: 30px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  #services {
    padding: 3rem 0;
  }
  #services .section-title {
    text-align: center;
  }
  #services .service-icon {
    width: 44px;
    height: 44px;
  }
}



/* =============================
   FOOTER SECTION (Independent)
   ============================= */


/* Footer stays normal, not snapped */
footer {
  scroll-snap-align: none !important;
  min-height: auto !important;
  position: relative;
  margin-top: -80px;   /* pulls footer upward */
  padding-top: 100px;  /* keeps footer spacing correct */
  z-index: 50;
  background: #fff;
}

/* Contact info icons */
.contact-info {
  font-size: 1rem;
  color: var(--color-plum);
}
.contact-info a {
  color: var(--color-plum);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}
.contact-info a:hover {
  color: var(--color-accent);
}
.contact-icon {
  color: var(--color-plum);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: color 0.3s ease, transform 0.3s ease;
}
.contact-info p:hover .contact-icon {
  color: var(--color-accent);
  transform: translateY(-2px);
}

/* Back to top arrow styling */
footer .back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(110, 50, 99, 0.15);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

footer .back-to-top svg {
  stroke: var(--color-plum);
  width: 26px;
  height: 26px;
  stroke-width: 2.4;
  transition: transform 0.3s ease;
}

footer .back-to-top:hover svg {
  transform: translateY(-4px);
}

footer .back-to-top:hover {
  background: rgba(110, 50, 99, 0.25);
}




/* Contact form */
form input,
form textarea {
  border-radius: 0.6rem !important;
  border: 1px solid #ccc;
}
form input:focus,
form textarea:focus {
  border-color: var(--color-plum);
  box-shadow: 0 0 0 0.2rem rgba(105, 53, 98, 0.25);
}
form button {
  background-color: var(--color-plum);
  border-color: var(--color-plum);
  border-radius: 0.6rem;
}
form button:hover {
  background-color: #7d4378;
  border-color: #7d4378;
}

/* Fade-ins */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================
   GALLERY SECTION (Independent)
   ============================= */
.gallery-section {
  background-color: var(--color-peach); /* Default background color */
  color: var(--color-peach);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

/* Optional background image (enable later)
   Add class="gallery-section has-bg" in HTML to activate */
.gallery-section.has-bg {
  background-image: url('assets/images/gallery-bg.jpg'); /* placeholder path */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.gallery-section.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75); /* soft overlay for text readability */
  z-index: 0;
}

/* Section Title */
.gallery-section .section-title {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--color-plum);
  text-align: left;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

/* Section Title */
.gallery-section .section-title-right {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--color-black);
  text-align: right;
  margin-bottom: 2rem;
}
/* Section Title */
.gallery-section .section-title-center {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--color-black);
  text-align: center;
  margin-bottom: 2rem;
}
/* Paragraph below Gallery grid */
.gallery-section p {
  color: var(--color-black);
  line-height: 1.6;
  font-size: 1.1rem;
  padding-bottom: 10px;
  text-align: center;
}
/* Add bottom padding to “At Surface Stories” paragraph */
.gallery-section .section-title-right + p {
  padding-bottom: 10px;
}


/* Intro Paragraph */
.gallery-section .gallery-intro {
  font-size: 1rem;
  text-align: left;
  margin-bottom: 2rem;
  color: var(--color-plum);
  position: relative;
  z-index: 1;
}
.gallery-section .gallery-intro a {
  color: var(--color-plum);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}
.gallery-section .gallery-intro a:hover {
  color: var(--color-blue);
}

/* Gallery Grid */
.gallery-section .gallery-grid {
  position: relative;
  z-index: 1;
}

/* Gallery Item Styles */
.gallery-section .gallery-item {
  background-color: #d9d9d9; /* Placeholder color */
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-section .gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Optional overlay tint for image hover */
.gallery-section .gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(105, 53, 98, 0.0); /* transparent plum tint */
  transition: background 0.3s ease;
}
.gallery-section .gallery-item:hover::after {
  background: rgba(105, 53, 98, 0.25); /* subtle plum overlay on hover */
}

/* Optional caption for future use */
.gallery-section .gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  color: var(--color-plum);
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-section .gallery-item:hover .caption {
  opacity: 1;
}

/* Responsive Layout */
@media (max-width: 768px) {
  .gallery-section {
    padding: 3rem 0;
  }

  .gallery-section .section-title,
  .gallery-section .gallery-intro {
    text-align: center;
  }
}
/* =============================
   GALLERY LIGHTBOX (Modernized + Fit to Screen)
   ============================= */

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.75rem;
  transition: transform 0.3s ease, filter 0.3s ease;
}


/* =============================
   GALLERY THUMBNAIL CAPTIONS ON HOVER
   ============================= */
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item::after {
  content: attr(data-alt); /* pull from alt text dynamically */
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(105, 53, 98, 0.85); /* plum overlay */
  color: var(--color-accent);
  font-size: 0.9rem;
  text-align: center;
  padding: 0.5rem 0.75rem;
  border-bottom-left-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.gallery-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}
.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.75rem;
  opacity: 0;
  transition: opacity 1s ease;
}
.gallery-item img:first-child {
  opacity: 1;
}
.img-layer {
  position: absolute;
  inset: 0;
  transition: opacity var(--gallery-fade-duration) ease;
}

.img-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.75rem;
  display: block;
}

/* States */
.img-layer.current { opacity: 1; z-index: 2; }
.img-layer.next { opacity: 0; z-index: 1; }

/* Crossfade animation triggered by JS */
.gallery-slot.crossfade .img-layer.current { opacity: 0; }
.gallery-slot.crossfade .img-layer.next { opacity: 1; }

/* =============================
   Prevent double click during crossfade
   ============================= */
.img-layer.next {
  pointer-events: none;
}

.gallery-slot.crossfade .img-layer.current {
  pointer-events: none; /* disable click on outgoing image */
}

.gallery-slot.crossfade .img-layer.next {
  pointer-events: auto; /* enable click only for the visible layer */
}



/* =============================
   RANDOM ROTATING GALLERY ANIMATION
   ============================= */
.gallery-grid {
  transition: opacity 0.6s ease;
}

.gallery-grid.fade-out {
  opacity: 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.85);
}


/* =============================
   LIGHTBOX OVERLAY (with smooth fade)
   ============================= */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(105, 53, 98, 0.95) 0%,
    rgba(105, 53, 98, 0.85) 50%,
    rgba(209, 174, 147, 0.75) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  overflow: auto;
  transition: opacity 0.5s ease; /* smooth fade transition */
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Fade-in animation when activated */
.lightbox-overlay.fade-in-bg {
  animation: overlayFadeIn 0.6s ease forwards;
}
.lightbox-overlay.fade-out-bg {
  animation: overlayFadeOut 0.6s ease forwards;
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes overlayFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}




/* Lightbox content container */
.lightbox-content {
  position: relative;
  max-width: 95%;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-content img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 85vh; /* leaves room for caption */
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.4s ease;
}


/* Close button (fade-in/out) */
.lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(105, 53, 98, 0.9);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1070;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: scale(0.9);
  animation: buttonFadeIn 0.6s ease 0.25s forwards;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
}

.lightbox-close:hover {
  background: #7d4378;
  transform: scale(1.1);
  box-shadow: 0 0 10px #d1ae93;
}

/* When lightbox is deactivated */
.lightbox-overlay:not(.active) .lightbox-close {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
}


/* =============================
   LIGHTBOX FIXED NAVIGATION ARROWS + INVISIBLE CLICK ZONES
   ============================= */
.lightbox-prev,
.lightbox-next {
  position: fixed; /* anchored to viewport */
  top: 50%;
  transform: translateY(-50%);
  background: rgba(105, 53, 98, 0.85);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1110;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

/* Soft hover effects */
.lightbox-prev,
.lightbox-next {
  opacity: 0.85;
}
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
  background: #7d4378;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 10px #d1ae93;
}

/* Fixed arrow placement */
.lightbox-prev { left: 60px; }
.lightbox-next { right: 60px; }

/* Responsive positions */
@media (max-width: 992px) {
  .lightbox-prev { left: 40px; }
  .lightbox-next { right: 40px; }
}

@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
    background: rgba(105, 53, 98, 0.9);
    left: 20px;
    right: 20px;
  }
}

/* =============================
   INVISIBLE CLICK ZONES
   ============================= */
.lightbox-zone {
  position: fixed;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 1100;
  cursor: pointer;
  background: transparent; /* invisible area */
}

.lightbox-zone.left { left: 0; }
.lightbox-zone.right { right: 0; }

/* Optional: subtle fade on hover (for debugging or UX hint) */
.lightbox-zone:hover {
  background: rgba(105, 53, 98, 0.05);
}


/* Animations */
@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* =============================
   LIGHTBOX CAPTIONS (Plum Banner)
   ============================= */
.lightbox-image-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Caption banner */
.lightbox-caption {
  background: rgba(105, 53, 98, 0.85);
  color: var(--color-accent);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  max-width: 90%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(8px);
  animation: captionFadeIn 0.6s ease 0.2s forwards;
}

/* Counter next to caption */
.lightbox-counter {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  opacity: 0;
  animation: captionFadeIn 0.6s ease 0.4s forwards;
}

/* Caption fade animation */
@keyframes captionFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .lightbox-caption {
    font-size: 0.9rem;
    max-width: 95%;
    padding: 0.5rem 0.75rem;
  }
}


/* Smooth fade-in animation */
@keyframes buttonFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}



/* Responsive */
@media (max-width: 768px) {
  .lightbox-caption {
    font-size: 0.9rem;
    max-width: 95%;
    padding: 0.5rem 0.75rem;
  }
  .lightbox-counter {
    font-size: 0.8rem;
  }
}

/* =============================
   LIGHTBOX IMAGE + BUTTON FADE / ZOOM ANIMATIONS
   ============================= */
.lightbox-img,
.lightbox-close {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.lightbox-img.fade-in,
.lightbox-close.fade-in {
  opacity: 1;
  transform: scale(1);
}

.lightbox-img.fade-out,
.lightbox-close.fade-out {
  opacity: 0;
  transform: scale(0.9);
}


/* =============================
   CONTACT SECTION (Independent)
   ============================= */
.contact-section {
  background-color: var(--color-bg);
  color: var(--color-plum);
  padding: 4rem 0;
}

/* Section Title */
.contact-section .section-title {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--color-plum);
  text-align: left;
  margin-bottom: 2rem;
}

/* Contact Card container */
.contact-section .contact-card {
  background: #a0ccdb;
  border: none;
  padding: 0;
}

/* Each contact item as a mini raised card */
.contact-section .contact-item {
  background: #cde3ea;
  border-radius: 0.75rem;
  border: 1px solid #e0e0e0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.contact-section .contact-item:hover {
  background-color: #f9f9f9;
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Contact Links */
.contact-section .contact-item a {
  color: #000; /* neutral text color */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
.contact-section .contact-item a:hover {
  color: var(--color-plum);
}

/* Icons (simple Lucide icons) */
.contact-section .contact-icon {
  color: #000;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: color 0.3s ease, transform 0.3s ease;
}
.contact-section .contact-item:hover .contact-icon {
  color: var(--color-plum);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-section {
    padding: 3rem 0;
  }
  .contact-section .section-title {
    text-align: center;
  }
  .contact-section .contact-item {
    margin-bottom: 1rem;
    padding: 0.75rem; /* tighter on mobile */
  }
}


/* Contact Form */
.contact-section .contact-form {
  background: #a0ccdb; /* Soft blue background */
  border-radius: 0.75rem;
  border: 1px solid #a0ccdb;
  padding: 2rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.contact-section .contact-form:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}
.contact-section .contact-form label {
  color: #000;
  font-weight: 500;
}

/* Inputs with subtle tint */
.contact-section .contact-form .form-control {
  background-color: #cde3ea; /* very light blue tint */
  border-radius: 0.6rem;
  border: 1px solid #b6d4dc;
  color: #111;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.contact-section .contact-form .form-control:focus {
  background-color: #e6f3f6;
  border-color: var(--color-plum);
  box-shadow: 0 0 0 0.2rem rgba(105, 53, 98, 0.25);
}

/* Submit Button */
.contact-section .contact-form button {
  background-color: var(--color-plum);
  border-color: var(--color-plum);
  border-radius: 0.6rem;
  font-weight: 500;
  color: #fff;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-section .contact-form button:hover {
  background-color: #7d4378;
  border-color: #7d4378;
  box-shadow: 0 0 8px rgba(105, 53, 98, 0.3);
}

/* Extra mobile tweaks for contact text */
@media (max-width: 768px) {
  .contact-section .contact-card,
  .contact-section .contact-form {
    padding: 1.5rem;
  }
  .contact-section .contact-item a {
    font-size: 0.9rem;
    word-break: break-word;
  }
  .contact-section .contact-icon {
    width: 18px;
    height: 18px;
  }
}

/* Mobile navbar logo size */
@media (max-width: 768px) {
  .navbar-brand img {
    height: 56px;
  }
}
