/* ========================
   CSS VARIABLES (BRAND)
======================== */
:root {
  --brand-primary: #5E3018;
  --brand-primary-dark: #3A1C0E;
  --brand-primary-light: #9B6A54;
  --brand-bg-light: #EFE7E2;
  --brand-accent: #C6A15B;

  --text-dark: #1E1E1E;
  --text-muted: #777;
}

/* ========================
   Base Styles
======================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background-color: var(--brand-bg-light);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

section {
  padding: 35px 20px;
}

/* ========================
   Header & Navigation
======================== */
.site-header {
  background-color: #fff;
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 60px;
  transition: height 0.3s ease;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--brand-primary-dark);
  transition: font-size 0.3s ease;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  padding: 0.5rem 1rem;
  display: block;
  font-weight: 500;
  color: var(--brand-primary);
  transition: color 0.3s ease;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--brand-accent);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--brand-primary-dark);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #eee;
  display: none;
  list-style: none;
  min-width: 200px;
  z-index: 99;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #f1f1f1;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  height: 3px;
  background-color: var(--brand-primary);
  border-radius: 2px;
  transition: 0.3s;
}

/* ================================
   Section Titles
================================ */
.section-title {
  text-align: left;
  font-size: 28px;
  color: var(--brand-primary-dark); /* strong, authoritative */
  margin: 0 0 0.5rem;
  font-weight: 600;
  padding: 60px 0 0 410px;
}

.section-subtitle {
  text-align: left;
  font-size: 15px;
  color: var(--text-muted); /* softer hierarchy */
  margin: 0 0 1.5rem;
  font-weight: 400;
  padding-left: 410px;
  line-height: 1.6;
}




/* ================================
   Gallery Slider
================================ */
.gallery-slider {
  padding: 50px 0;
  background: #f6f1ee; /* warm neutral, matches brand-bg-light */
}

.gallery-slider__title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 25px;
  color: var(--brand-primary-dark); /* authoritative headline */
}

.gallery-slider .swiper {
  width: 100%;
  max-width: 1100px;
  height: 550px;
  margin: 0 auto;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.gallery-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Navigation arrows */
.gallery-slider .swiper-button-next,
.gallery-slider .swiper-button-prev {
  color: var(--brand-primary);
  transition: color 0.3s ease;
}

.gallery-slider .swiper-button-next:hover,
.gallery-slider .swiper-button-prev:hover {
  color: var(--brand-primary-dark);
}

/* Active pagination bullet */
.gallery-slider .swiper-pagination-bullet-active {
  background: var(--brand-accent);
}


/* =========================
   GALLERY SLIDER IMAGES
========================= */
.gallery-slider .swiper {
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

.gallery-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 380px; /* slightly smaller */
}

.gallery-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* SHOW FULL IMAGE */
    background: #000; /* optional – fills empty space nicely */
}

/* ================================
   ALBUMS SECTION
================================ */
.albums-section {
    background: #f6f1ee; 
    padding: 50px 20px 80px;
}

.section-title {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 700;
    color: var(--brand-primary-dark);
}

/* ================================
   ALBUM GRID
================================ */
.album-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ================================
   ALBUM CARD
================================ */
.album {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.album:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

/* ================================
   THUMBNAIL (NO CROPPING)
================================ */
.album-thumb {
    height: 220px;
    background: var(--brand-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

/* CRITICAL FIX */
.album-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;   /* SHOW FULL IMAGE */
    display: block;
    border-radius: 6px;
}

/* ================================
   ALBUM TITLE
================================ */
.album-title {
    text-align: center;
    padding: 0.9rem;
    background: #f0f0f0;
    color: var(--brand-primary-dark);
    font-weight: 600;
    font-size: 1rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}



/* ========================
   Footer
======================== */
.site-footer {
  background: var(--brand-primary-dark);
  color: #E6D8CF;
  padding: 60px 20px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 50px;
}


.footer-left,
.footer-right {
  flex: 1;
  min-width: 220px;
}



.footer-logo {
  width: 80px;
  margin-bottom: 15px;
}

.footer-links h4,
.footer-right h4 {
  color: var(--brand-accent);
  margin-bottom: 15px;
}

.footer-links ul,
.footer-right ul {
  list-style: none;
}

.footer-links ul li,
.footer-right ul li {
  margin-bottom: 12px;
}

.footer-links ul li a,
.footer-right ul li a {
  color: #E6D8CF;
  transition: color 0.3s;
}

.footer-links ul li a:hover,
.footer-right ul li a:hover {
  color: #fff;
}

.footer-links {
  flex: 2;
  display: flex;
  justify-content: space-between;
  gap: 60px;
}

.footer-links > div {
  min-width: 160px;
}


.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: #fff;
  font-size: 22px;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.15);
}



/* ========================
   Responsive Styles
======================== */
@media (max-width: 768px) {
  .main-nav {
    float: none;
  }

  .nav-menu {
    flex-direction: column;
    display: none;
    background-color: #f8f8f8;
    border-top: 1px solid #ddd;
    padding: 1rem;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
    float: right;
    margin-top: -2.5rem;
  }

  .features {
    flex-direction: column;
    align-items: center;
  }

  .feature-box {
    width: 100%;
  }

  .hero-social {
    flex-direction: row;
    bottom: 20px;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .feature-item.list {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-item.list .feature-date {
    margin-bottom: 5px;
  }

  .feature-item.list .feature-img {
    width: 100%;
    height: auto;
  }
}


@media (max-width: 768px) {
    .gallery-slider .swiper-slide {
        height: 260px;
    }

    .album img {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .album-thumb {
        height: 180px;
    }

    .section-title {
        font-size: 1.6rem;
    }
}

/* ========================
   Modern Header Scroll Effect
======================== */
.site-header.shrink {
  padding: 0.5rem 0;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.site-header.shrink .logo-img {
  height: 45px;
}

.site-header.shrink .logo-text {
  font-size: 1.1rem;
}



/* Albums Grid */
.album-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  padding: 30px;
}

.album {
  text-align: center;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.album:hover {
  transform: translateY(-5px);
}

.album img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.album-title {
  font-weight: 600;
  font-size: 18px;
  color: #333;
  margin-top: 10px;
}

.album-description {
  font-size: 14px;
  color: #666;
  margin: 8px 15px 20px;
  line-height: 1.5;
}

/* Album Details Page */
.album-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.album-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.album-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.back-button {
  display: inline-block;
  margin: 20px 0;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.back-button i {
  margin-right: 6px;
}

.back-button:hover {
  color: #007bff;
}

.top-button {
  margin-bottom: 10px;
}

.bottom-button {
  margin-top: 30px;
  display: inline-block;
}

.album-header {
  display: flex;
  align-items: center;
  gap: 15px; /* space between the button and title */
  margin-top: 60px; /* pushes below header */
  margin-bottom: 20px;
  flex-wrap: nowrap; /* keep them on one line */
}

.album-header .section-title {
  margin: 0;
  font-size: 28px;
  color: #222;
  font-weight: 600;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 15px;
  white-space: nowrap; /* prevent wrapping */
  margin-left: 20px; /* moves it slightly right */
}

.back-button:hover {
  color: #007bff;
}


.album-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
}

.pagination-btn {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.pagination-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.pagination-btn:hover:not(:disabled) {
  background-color: #007bff;
}

#pageIndicator {
  font-size: 15px;
  color: #333;
}


/* ========================
   MOBILE RESPONSIVE
======================== */
@media (max-width: 768px) {

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
  }

  .nav-menu {
    flex-direction: column;
    display: none;
    background: #fff;
    padding: 1rem;
    border-top: 1px solid #eee;
  }

  .nav-menu.active {
    display: flex;
  }

  .hero-social {
    flex-direction: row;
    bottom: 20px;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
  }
}