/* Preserve functional enhancements while using theme default colors. */

/* Override theme primary color */
:root {
  --primary-accent: #FAE0AB;
  --navbar-border-top: #e2c48a;
  --button-border: #d8bc86;
  --link-focus: #d1b379;
  --form-shadow: rgba(250, 224, 171, 0.6);
  --pagination-bg: #fff2d4;
  --link-hover-bg: #e9cf9d;
  --navbar-focus: #fff1cf;
}

/* Softer typography: smaller sizes and lighter text tone. */
body {
  color: #5a6b70;
  font-size: 14px;
  line-height: 1.6;
  background-color: #ffffff;
}

h1 {
  font-size: 30px;
  color: #3f4f57;
}

h2 {
  font-size: 24px;
  color: #465760;
}

h3 {
  font-size: 20px;
  color: #4d5f68;
}

h4,
h5 {
  font-size: 17px;
  color: #556872;
}

h6,
p,
li {
  color: #5a6b70;
}

/* Carousel background image */
.home-carousel {
  background-image: url('/img/bg.png');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.home-carousel .dark-mask {
  background: #3f9a92;
  opacity: 0.4;
}

.home-carousel .owl-carousel {
  padding-top: 24px;
  padding-bottom: 8px;
}

.home-carousel .item {
  min-height: 320px;
}

.home-carousel .img-responsive {
  max-height: 250px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

.home-carousel h1 {
  font-size: 32px;
}

.home-carousel ul,
.home-carousel p {
  font-size: 14px;
}

/* Navigation link styling: yellow active state */
.navbar-brand {
  height: 76px;
  padding: 0 15px;
}

.navbar-brand img {
  height: 100%;
  max-height: none;
  width: auto;
}

@media (max-width: 767px) {
  .navbar-brand {
    height: 62px;
    padding: 0 15px;
  }

  .navbar-brand img {
    height: 100%;
    max-height: none;
  }
}

.navbar-default {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
}

.navbar {
  margin-bottom: 0;
}

.navbar-default .navbar-collapse,
.navbar-default .navbar-form {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
}

/* Homepage: sticky overlay navbar — transparent at top, solid after scroll */
.home-page .navbar-affixed-top {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

.home-page .navbar-affixed-top:not(.affix) .navbar-default,
.home-page .navbar-affixed-top:not(.affix) .navbar-default .navbar-collapse,
.home-page .navbar-affixed-top:not(.affix) .navbar-default .navbar-form {
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.home-page .navbar-affixed-top:not(.affix) .navbar-default .navbar-nav > li > a,
.home-page .navbar-affixed-top:not(.affix) .navbar-default .navbar-nav > li > a:focus {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.home-page .navbar-affixed-top:not(.affix) .navbar-brand {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.home-page .navbar-affixed-top.affix .navbar-default,
.home-page .navbar-affixed-top.affix .navbar-default .navbar-collapse,
.home-page .navbar-affixed-top.affix .navbar-default .navbar-form {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.navbar-default .navbar-nav > li > a {
  background-color: transparent !important;
  transition: background-color 0.2s ease;
  border-top: solid 5px #ffffff !important;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  background-color: var(--primary-accent) !important;
  color: #315448 !important;
  border-top: solid 5px #ffffff !important;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  background-color: var(--primary-accent) !important;
  color: #315448 !important;
  border-top: solid 5px #ffffff !important;
}

@media (min-width: 768px) {
  .navbar-default .navbar-nav > li {
    width: 115px;
  }

  .navbar-default .navbar-nav > li > a {
    height: 76px;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 991px) {
  .home-carousel .owl-carousel {
    padding-top: 16px;
    padding-bottom: 8px;
  }

  .home-carousel .item {
    min-height: 0;
  }

  .home-carousel .img-responsive {
    max-height: 190px;
  }

  .home-carousel h1 {
    font-size: 26px;
  }
}

/* Photo highlight section */
.photo-highlight {
  position: relative;
  width: 100%;
  height: clamp(420px, 72vh, 760px);
  margin: -76px 0 28px;
  background-image: url('/img/bg.webp');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.photo-highlight-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.44) 0%, rgba(0, 0, 0, 0.2) 55%, rgba(0, 0, 0, 0.12) 100%);
}

.photo-highlight-content {
  position: absolute;
  z-index: 2;
  left: 8%;
  bottom: 50%;
  max-width: 580px;
  color: #ffffff;
}

.photo-highlight-content h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 42px);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.photo-highlight-content p {
  margin: 0;
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 768px) {
  .photo-highlight {
    height: 360px;
    margin: 12px 0 22px;
  }

  .photo-highlight-content {
    left: 18px;
    right: 18px;
    bottom: 16px;
    max-width: none;
  }
}

/* Page header banner */
#heading-breadcrumbs {
  background-color: var(--primary-accent) !important;
  background-image: linear-gradient(rgba(250, 224, 171, 0.78), rgba(250, 224, 171, 0.78)), url('/img/bg.webp') !important;
  background-position: center 40%;
  background-size: cover;
  background-repeat: no-repeat;
  margin: 0;
}

#heading-breadcrumbs h1 {
  color: #315448 !important;
  letter-spacing: 0.06em;
  font-weight: 700;
  text-transform: uppercase;
}

/* Page content area */
#content {
  background-color: #ffffff;
  padding-top: 30px;
  padding-bottom: 30px;
}

#content .container {
  width: 80%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

/* Floating contact icons on right side */
.social-icons-floating {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}

.social-icons-floating a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary-accent);
  color: #315448;
  font-size: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.social-icons-floating a:hover {
  background: var(--primary-accent);
  filter: brightness(0.85);
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

@media (max-width: 991px) {
  .social-icons-floating {
    position: static;
    right: auto;
    top: auto;
    transform: none;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
    margin-bottom: 20px;
  }
}

/* Testimonials section matching site palette */
section.bar.background-pentagon.no-mb {
  background: #ffffff !important;
  background-image: none !important;
  border-top: none;
  border-bottom: none;
}

section.bar.background-pentagon.no-mb .heading h2 {
  color: #2f4f45;
}

section.bar.background-pentagon.no-mb .heading h2:after {
  background: var(--primary-accent);
}

section.bar.background-pentagon.no-mb p.lead {
  color: #3f5a63;
}

section.bar.background-pentagon.no-mb .testimonials .item {
  background: #ffffff;
  border: 1px solid rgba(49, 84, 72, 0.14);
  box-shadow: 0 10px 24px rgba(26, 49, 42, 0.08);
}

section.bar.background-pentagon.no-mb .testimonials .item .testimonial .text {
  color: #4b5f68;
}

section.bar.background-pentagon.no-mb .testimonials .item .testimonial .name-picture h5 {
  color: #2f4f45;
}

section.bar.background-pentagon.no-mb .testimonials .item .testimonial .name-picture p {
  color: #5f737c;
}

/* Footer palette swap */
#footer {
  background: #ffffff;
  color: #4a5d65;
}

#footer h1,
#footer h2,
#footer h3,
#footer h4,
#footer h5,
#footer h6,
#footer ul a {
  color: #315448;
}

#copyright {
  background: #FAE0AB;
  color: #315448;
}

#copyright a {
  color: var(--primary-accent);
}

/* Gallery Styles */
.gallery-container {
  width: 100%;
  padding: 20px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.gallery-item-image {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
  background-color: #e8e8e8;
}

.gallery-item-image img,
.gallery-item-image video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-carousel-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(56, 167, 187, 0.92);
  color: #f4f8f7;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  z-index: 2;
}

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(56, 167, 187, 0.95);
  color: #f4f8f7;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-stats {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 14px;
}

.gallery-stat {
  display: flex;
  align-items: center;
  gap: 5px;
}

.gallery-item-caption {
  font-size: 13px;
  margin-bottom: 10px;
  line-height: 1.4;
  opacity: 0.95;
}

.gallery-item-link {
  display: inline-block;
  color: #f4f8f7;
  text-decoration: none;
  padding: 6px 12px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  font-size: 12px;
  transition: background-color 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.gallery-item-link:hover {
  background-color: rgba(0, 0, 0, 0.5);
  color: #f4f8f7;
}

.gallery-loading,
.gallery-error,
.gallery-empty {
  text-align: center;
  padding: 40px 20px;
}

.gallery-loading p,
.gallery-empty p {
  font-size: 16px;
  margin: 0;
}

.gallery-error {
  background-color: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 30px 20px;
}

.gallery-error p {
  margin: 10px 0;
}

/* Pagination Styles */
.pagination-container {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pagination-btn {
  background-color: #38a7bb;
  color: #f4f8f7;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.pagination-btn:hover {
  background-color: #2d7d8c;
  transform: translateY(-2px);
}

.pagination-btn:active {
  transform: translateY(0);
}

.pagination-info {
  font-size: 14px;
  white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
  }

  .gallery-item-image {
    padding-bottom: 100%;
  }

  .gallery-item-overlay {
    padding: 15px;
  }

  .gallery-item-stats {
    font-size: 12px;
    gap: 10px;
  }

  .pagination {
    flex-direction: column;
    gap: 15px;
  }

  .pagination-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }

  .gallery-item-caption {
    font-size: 11px;
  }

  .pagination-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .pagination-info {
    font-size: 12px;
  }
}
