/*
Theme Name: Wow Gallery
Description: Main stylesheet for Wow Gallery theme
Version: 1.0.0
*/

/* ==========================================================================
   Global Styles
   ========================================================================== */

:root {
  --primary-color: #4b2c20;
  --ornament-color: #981b3e;
  --secondary-color: #6c757d;
  --background-color: #faf9f6;
  --text-color: #4b2c20;
  --primary-color-hover: #7e1130;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-color);
  background-color: var(--background-color);
  width: 100%;
  overflow-x: hidden;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

.home-header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 50;
  left: 0;
  padding: 16px 4px;
  transition:
    background 0.3s ease,
    backdrop-filter 0.3s ease,
    padding 0.3s ease;
}

.home-header.is-scrolled,
.home-header.home-header--alt {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 4px;
  border-bottom: 1px solid rgba(75, 44, 32, 0.2);
}

.home-header.is-scrolled .brand img,
.home-header.home-header--alt .brand img {
  height: 28px !important;
}

.home-header.is-scrolled .home-title,
.home-header.home-header--alt .home-title {
  font-size: 1.1rem;
}

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

.home-header .container .navigation {
  display: flex;
  align-items: center;
  gap: 16px;
}

.home-header .container .navigation .contact-info a {
  display: inline-flex;
  background-color: var(--ornament-color);
  color: white;
  padding: 8px 16px;
  border-radius: 24px;
  text-decoration: none;
  align-items: center;
  gap: 4px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.home-header .container .navigation .contact-info a:hover {
  background: var(--primary-color-hover);
}

.home-header .container .navigation .contact-info a .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2px;
}

.home-header .social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.home-header .social-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.25rem;
  flex: 1;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  transition: color 0.3s ease;
}

.home-header .social-links a:hover {
  color: var(--primary-color-hover);
  background-color: rgba(75, 44, 32, 0.05);
}

.home-header .social-links .ti {
  font-size: inherit;
  stroke-width: 1 !important;
}

/* ==========================================================================
   Navigation Styles
   ========================================================================== */

.main-navigation {
  position: relative;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Primary Menu - Top Level */
#primary-menu {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.primary-menu {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;

  list-style: none;
}

.primary-menu .menu-item {
  position: relative;
  color: var(--primary-color);
  display: flex;
}

.primary-menu .menu-item a {
  text-decoration: none;
  font-size: 14px;
  color: var(--primary-color);
  padding-right: 16px;
  border-right: 1px solid rgba(75, 44, 32, 0.3);
}

.primary-menu .menu-item a:hover {
  text-decoration: underline;
  color: var(--primary-color-hover);
}

/* Current Item Highlighting */
.current-menu-item > a,
.current-menu-ancestor > a {
  color: var(--primary-color);
  font-weight: 600;
}

/* Parent Items with Children - Dropdown Indicator */
.menu-item-has-children > a::after {
  content: " ▾";
  font-size: 0.8em;
  margin-left: 0.25rem;
  transition: transform 0.3s ease;
}

.menu-item-has-children:hover > a::after {
  transform: rotate(-180deg);
}

/* Sub-menu Styles - Dropdown */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  margin-top: 0.25rem;
}

.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu .menu-item {
  display: block;
}

.sub-menu .menu-item a {
  padding: 0.625rem 1rem;
  white-space: nowrap;
  border-radius: 0;
}

.sub-menu .menu-item:first-child a {
  border-radius: 4px 4px 0 0;
}

.sub-menu .menu-item:last-child a {
  border-radius: 0 0 4px 4px;
}

/* Nested Sub-menus (3rd level) */
.sub-menu .sub-menu {
  top: 0;
  left: 100%;
  margin-top: 0;
  margin-left: 0.25rem;
}

.sub-menu .menu-item-has-children > a::after {
  content: " ▸";
  float: right;
  margin-left: 1rem;
}

/* Mobile Navigation (< 768px) */
@media (max-width: 767px) {
  #primary-menu {
    flex-direction: column;
    gap: 0;
  }

  .menu-item a {
    padding: 0.875rem 1rem;
    border-radius: 0;
    border-bottom: 1px solid #e9ecef;
  }

  /* Mobile Dropdown Behavior */
  .sub-menu {
    position: static;
    opacity: 1;
    visibility: hidden;
    transform: none;
    box-shadow: none;
    background-color: #f8f9fa;
    max-height: 0;
    overflow: hidden;
    transition:
      max-height 0.3s ease,
      visibility 0s 0.3s;
  }

  .menu-item-has-children.active > .sub-menu,
  .menu-item-has-children:hover > .sub-menu,
  .menu-item-has-children:focus-within > .sub-menu {
    visibility: visible;
    max-height: 500px;
    transition:
      max-height 0.3s ease,
      visibility 0s 0s;
  }

  .sub-menu .menu-item a {
    padding-left: 2rem;
    background-color: #f8f9fa;
  }

  .sub-menu .sub-menu .menu-item a {
    padding-left: 3rem;
  }

  .menu-item-has-children > a::after {
    float: right;
  }
}

/* ==========================================================================
   Content Styles
   ========================================================================== */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  line-height: 1.2;
  font-family: "Newsreader", serif;
  font-weight: 300;
}

p {
  margin-bottom: 1rem;
}

/* ==========================================================================
   Testimonial Styles
   ========================================================================== */

.testimonials-carousel .testimonial-item {
  padding: 32px 16px;
}

.testimonials-carousel .owl-dots {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  gap: 8px;
}

.testimonials-carousel .owl-dots .owl-dot {
  width: 4px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 50%;
  opacity: 0.5;
}

.testimonials-carousel .owl-dots .owl-dot.active {
  background-color: var(--primary-color);
  opacity: 1;
}

.testimonial-item .testimonial-message {
  margin-bottom: 24px;
  background: white;
  border-radius: 4px;
  padding: 32px 16px;
  border: 1px solid rgba(75, 44, 32, 0.1);
}

.testimonial-item .testimonial-message p {
  font-size: 16px;
  margin: 0;
  line-height: 1.5;
  position: relative;
  padding-left: 32px;
  text-align: left;
  font-style: italic;
}

.testimonial-item .testimonial-message p::before {
  content: "“";
  position: absolute;
  left: -8px;
  top: -12px;
  font-size: 96px;
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1;
  opacity: 0.1;
  font-family: "Times New Roman", serif;
}

.testimonial-item .testimonial-stars {
  text-align: center;
  margin-top: 24px;
}

.testimonial-item .testimonial-stars .icon {
  width: 10px;
  height: 10px;
  color: var(--primary-color);
  fill: var(--primary-color);
}

.testimonial-item .testimonial-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.testimonial-item .testimonial-meta .testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-item .testimonial-meta .testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.testimonial-item .testimonial-meta .testimonial-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
}

.testimonial-item .testimonial-meta .testimonial-info .testimonial-name {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
}

.testimonial-item .testimonial-meta .testimonial-info .testimonial-title {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.5;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  border-bottom: rgba(75, 44, 32, 0.2) solid 1px;
}

.menu .menu-wrap {
  width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
}

.menu .menu-item {
  margin: 0;
  flex: 1;
  text-align: center;
  padding: 0;
  position: relative;
  border-right: 1px solid rgba(75, 44, 32, 0.1);
}

.menu .menu-item:last-child {
  padding-right: 0;
  margin-right: 0;
  border-right: 0;
}
/* 
.menu .menu-item::before {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: rgba(75, 44, 32, 0.5);
}

.menu .menu-item:last-child::before {
  display: none;
} */

.menu .menu-item a {
  display: block;
  border-radius: 0;
  padding: 16px 16px;
  text-decoration: none;
  color: var(--ornament-color);
  font-style: italic;
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  font-family: "Newsreader", serif;
  transition:
    color 0.3s ease,
    background-color 0.3s ease;
}

.menu .menu-item a:hover {
  background-color: rgba(75, 44, 32, 0.05);
  color: var(--primary-color-hover);
}

.wp-singular.page {
  padding-top: 0;
}

.page {
  padding-top: 55px;
}

@media screen and (max-width: 768px) {
  .menu {
    flex-flow: column nowrap;
    gap: 0;
    border-bottom: none;
  }

  .menu .menu-wrap {
    flex-flow: row wrap;
    gap: 0;
    width: 100%;
  }

  .menu .menu-item {
    flex: 1 1 50%;
    padding: 0;
    width: 100%;
    text-align: center;
    margin: 0;
    border-bottom: rgba(75, 44, 32, 0.1) solid 1px;
  }

  .menu .menu-item::before {
    display: none;
  }

  .menu .menu-item a {
    padding: 12px 16px;
    font-size: 20px;
  }
}

@media screen and (max-width: 480px) {
  .menu .menu-wrap {
    flex-flow: column wrap;
    gap: 0;
    width: 100%;
  }

  .menu .menu-item {
    flex: 1 1 100%;
  }
}

/* ==========================================================================
   Feature Styles
   ========================================================================== */

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.feature-list .feature-item {
  width: calc(25% - 16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-list .feature-item img {
  width: 100%;
  aspect-ratio: 3/4;
  height: auto;
  object-fit: cover;
  object-position: top;
  border-radius: 4px;
  margin-bottom: 16px;
}

.feature-list .feature-item .feature-content {
  text-align: left;
  width: 100%;
  display: flex;
  flex-flow: column nowrap;
}

.feature-list .feature-item .feature-content a {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.25s ease;
}

.feature-list .feature-item .feature-content a .icon {
  display: none;
  margin-top: 8px;
  width: 14px;
  height: 14px;
}

.feature-list .feature-item .feature-content a:hover {
  color: var(--primary-color-hover);
}

.feature-list .feature-item .feature-content a:hover .icon {
  display: inline-block;
}

.feature-list .feature-item .feature-content .feature-name {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 500;
  margin-bottom: 2px;
  font-style: italic;
}

.feature-list .feature-item .feature-content .feature-tag {
  margin: 0;
  opacity: 0.6;
  line-height: 1.4;
  font-weight: 400;
  font-size: 14px;
}

@media screen and (max-width: 768px) {
  .feature-list .feature-item {
    width: calc(50% - 16px);
  }

  .feature-list .feature-item img {
    margin-bottom: 8px;
  }
}

@media screen and (max-width: 480px) {
  .feature-list {
    gap: 24px;
  }

  .feature-list .feature-item {
    width: calc(100% - 16px);
  }
}

/* ==========================================================================
   Section Styles
   ========================================================================== */

.section {
  padding: 60px 0;
}

.section.section--center {
  text-align: center;
}

.section.section-highlight {
  border-top: 1px solid #dee2e6;
  background-color: rgba(75, 44, 32, 0.05);
}

.section.section-highlight-alt {
  border-bottom: 1px solid #dee2e6;
  background-color: rgba(75, 44, 32, 0.05);
}

.section .flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-flow: row nowrap;
  margin-bottom: 32px;
}

.section .flex.flex-col {
  flex-flow: column nowrap;
  align-items: center;
  justify-content: center;
}

.section .flex.flex-col .hgroup {
  text-align: center;
  max-width: none;
}

.section .hgroup {
  max-width: 55%;
}

.section .hgroup p {
  margin: 0;
  line-height: 1.4;
  font-size: 15px;
}

.section h3 {
  font-size: 2.5rem;
  font-weight: 500;
  font-style: italic;
  margin: 0;
  margin-bottom: 4px;
  color: var(--ornament-color);
}

.section p {
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0;
  margin-bottom: 32px;
}

.section .tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-top: 16px;
}

.section .tagline span {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  position: relative;
}

.section .tagline span:before {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 50%;
  left: -28px;
}

.section .tagline span:first-child:before {
  left: auto;
  display: none;
}

.section.section-map {
  padding: 0;
}

.section-map .map-container {
  position: relative;
  width: 100%;
  padding-bottom: 30%; /*  Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.section-map .map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media screen and (max-width: 768px) {
  .section h3 {
    font-size: 2rem;
  }

  .section p {
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .section .tagline {
    flex-flow: column nowrap;
    gap: 8px;
    margin-top: 24px;
  }

  .section .tagline span:before {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 50%;
    left: -16px;
  }

  .section .tagline span:first-child:before {
    left: -16px;
    display: block;
  }

  .section-map .map-container {
    padding-bottom: 56.25%; /*  Aspect Ratio */
  }
}

@media screen and (max-width: 480px) {
  .section-map .map-container {
    padding-bottom: 75%; /*  Aspect Ratio */
  }
}

.btn-cta {
  background: var(--primary-color);
  border-radius: 24px;
  color: white;
  padding: 12px 32px;
  font-size: 1rem;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.3s ease;
}

.btn-cta.btn-cta--link {
  background: none;
  color: var(--text-color);
  padding: 4px 0;
  border-radius: 0;
  border-bottom: 1px dashed rgba(75, 44, 32, 0.5);
}

.btn-cta:hover {
  background: var(--primary-color-hover);
}

.btn-cta.btn-cta--link:hover {
  color: var(--primary-color-hover);
  background: none;
  border-bottom-color: var(--primary-color-hover);
}

.btn-cta .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2px;
}

/* ==========================================================================
   Gallery Styles
   ========================================================================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

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

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

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.container--grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.container--grid .gallery_item {
  grid-column: span 3;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.container--grid .gallery_item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 60%);
  pointer-events: none;
}

.container--grid .gallery_item a {
  display: block;
  line-height: 1;
  color: white;
  text-decoration: none;
}

.container--grid .gallery_item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.container--grid .gallery_item h2 {
  position: absolute;
  bottom: 16px;
  left: 16px;
  color: white;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
  font-style: italic;
  margin: 0;
  width: calc(100% - 32px);
  z-index: 5;
}

.container--grid .gallery_item a:hover img {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

@media screen and (max-width: 768px) {
  .container--grid .gallery_item {
    grid-column: span 6;
  }
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

footer {
  background-color: #f8f9fa;
  padding-top: 48px;
  padding-bottom: 16px;
  border-top: 1px solid #dee2e6;
  text-align: center;
}

.site-store {
  padding-bottom: 48px;
  margin-bottom: 16px;
  border-bottom: 1px solid #dee2e6;
}

.site-store .container {
  display: flex;
  flex-flow: row nowrap;
}

.site-store .site-store__info {
  text-align: left;
  width: 25%;
}

.site-store .site-store__info .brand {
  margin-bottom: 8px;
}

.site-store .site-store__info p {
  margin: 0;
  font-size: 14px;
}

.site-store .site-store__navigation {
  width: 25%;
  text-align: left;
  margin-left: auto;
}

.site-store .site-store__social {
  width: 25%;
  text-align: left;
}

.site-store .site-store__navigation h4,
.site-store .site-store__social h4 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0;
  font-style: italic;
}

.site-store .site-store__navigation ul,
.site-store .site-store__social ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-flow: column nowrap;
  gap: 4px;
  margin-top: 8px;
}

.site-store .site-store__navigation a,
.site-store .site-store__social a {
  text-decoration: none;
  color: var(--text-color);
}

.site-store .site-store__navigation a:hover,
.site-store .site-store__social a:hover {
  text-decoration: underline;
  color: var(--text-color);
}

.site-info {
  font-size: 14px;
}

@media screen and (max-width: 768px) {
  .site-store .container {
    flex-flow: column nowrap;
    gap: 32px;
  }

  .site-store .site-store__info,
  .site-store .site-store__navigation,
  .site-store .site-store__social {
    width: 100%;
    text-align: center;
    margin-left: 0;
  }

  .site-info {
    padding: 0 16px;
    width: 100%;
  }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Hero Section Styles
   ========================================================================== */

.hero-section {
  position: relative;
  width: 100%;
  min-height: calc(100svh - 54px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  /* overflow: hidden; */
}

/* Dark overlay for better text readability */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.8) 100%
  );
  z-index: 1;
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  color: var(--text-color);
  width: 1200px;
  padding: 2rem 1rem;
  display: flex;
  flex-flow: column nowrap;
}

.hero-headline {
  font-size: 2.5rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 8px;
  line-height: 1.2;
  width: 600px;
}

.hero-subheadline {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  width: 600px;
}

.hero-content .searchbox {
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.hero-buttons .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-color);
  transition:
    color 0.25s ease,
    background 0.25s ease;
}

.hero-buttons .btn.btn-primary {
  background: var(--ornament-color);
  color: white;
  padding: 6px 16px;
  border-radius: 4px;
}

.hero-buttons .btn.btn-primary:hover {
  background: var(--primary-color-hover);
}

.hero-buttons .btn.btn-outline {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 6px 16px;
  border-radius: 4px;
}

.hero-buttons .btn.btn-outline:hover {
  background: var(--primary-color-hover);
  color: white;
}

@media screen and (max-width: 992px) {
  .hero-section {
    /* min-height: calc(100svh - 45px); */
    background-image: var(--hero-bg);
    min-height: 500px;
    background-size: 100% auto;
    background-position: center top;
    align-items: center;
    /* display: block;
    aspect-ratio: 3/4; */
  }

  .hero-section .hero-content {
    width: 100%;
    padding: 0 2rem;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    min-height: calc(100svh - 45px);
    background-image: var(--hero-bg-mobile);
    background-size: 100% auto;
    background-position: center top;
    align-items: center;
    display: block;
  }

  .hero-section .hero-content {
    padding-top: calc(100svh - 120px);
    padding-bottom: 48px;
  }

  .hero-headline {
    font-size: 2rem;
    width: 100%;
    text-align: center;
  }

  .hero-subheadline {
    font-size: 1rem;
    width: 100%;
    text-align: center;
  }

  .hero-section::before {
    display: none;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.8) 100%
    );
  }

  .hero-content .searchbox {
    max-width: 100%;
  }

  .hero-buttons .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 2rem;
    text-align: center;
    width: 100%;
  }

  .hero-subheadline {
    font-size: 1rem;
    text-align: center;
    width: 100%;
  }

  .hero-content {
    padding: 1rem 24px;
    width: 100%;
    margin: 0;
  }

  .hero-content .searchbox {
    max-width: 100%;
  }
}

/* ==========================================================================
   Home Header — Mobile hamburger + immersive popup
   ========================================================================== */

.home-hamburger {
  display: none;
}

@media (max-width: 768px) {
  .home-header .container .navigation {
    display: none;
  }

  .home-header .container .brand img {
    height: 30px !important;
  }

  .home-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-color);
    transition: color 0.2s;
  }

  .home-hamburger .icon {
    width: 24px;
    height: 24px;
    stroke-width: 2px;
  }

  .home-hamburger__icon--close {
    display: none;
  }

  .home-hamburger.is-open .home-hamburger__icon--open {
    display: none;
  }

  .home-hamburger.is-open .home-hamburger__icon--close {
    display: block;
  }
}

.home-mobile-popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(250, 249, 246, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0s 0.3s;
}

.home-mobile-popup.is-open {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.3s ease,
    visibility 0s 0s;
}

.home-mobile-popup__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.35s ease;
}

.home-mobile-popup.is-open .home-mobile-popup__inner {
  transform: translateY(0);
}

.home-mobile-popup__social {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-mobile-popup__social a {
  font-size: 1.75rem;
  font-family: "Newsreader", serif;
  font-style: italic;
  font-weight: 300;
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s;
}

.home-mobile-popup__social a:hover {
  color: var(--primary-color-hover);
}

.home-mobile-popup__contact a {
  display: inline-flex;
  background-color: var(--ornament-color);
  color: white;
  padding: 12px 28px;
  border-radius: 24px;
  text-decoration: none;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.home-mobile-popup__contact a:hover {
  background: var(--primary-color-hover);
}

@media screen and (max-width: 768px) {
  .home-mobile-popup__social {
    gap: 8px;
  }

  .home-mobile-popup__social a {
    font-size: 1.85rem;
    font-weight: 400;
  }
}

/* ==========================================================================
   Gallery Search Form
   ========================================================================== */

.wg-search-wrapper {
  position: relative;
  /* width: 100%; */
}

.wg-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.wg-search-input {
  width: 100%;
  height: 42px;
  position: relative;
  margin-left: -1px;
  padding: 10px 44px 10px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-color);
  background: #fff;
  border: 1px solid var(--primary-color);
  border-radius: 0 4px 4px 0;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.wg-search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(75, 44, 32, 0.1);
}

.wg-search-input::placeholder {
  color: var(--secondary-color);
  opacity: 0.6;
}

/* Clear button added by browsers in search inputs */
.wg-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.wg-search-icon {
  position: absolute;
  right: 14px;
  display: flex;
  align-items: center;
  pointer-events: none;
  color: var(--ornament-color);
}

.wg-search-icon svg {
  width: 18px;
  height: 18px;
}

/* Results dropdown */
.wg-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 200;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(75, 44, 32, 0.15);
  max-height: 480px;
  overflow-y: auto;
}

.wg-search-wrapper.wg-search-results--open .wg-search-results {
  display: block;
}

/* Result grid */
.wg-search-list {
  display: flex;
  flex-flow: column nowrap;
  max-height: 400px;
  gap: 4px;
  padding: 8px;
  list-style: none;
  margin: 0;
}

/* Result card */
.wg-search-item {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-color);
  background: var(--background-color) / 0.5;
  border: 1px solid transparent;
  /* transition: box-shadow 0.2s, transform 0.2s; */
}

.wg-search-item:hover {
  /* box-shadow: 0 4px 16px rgba(75, 44, 32, 0.15); */
  /* transform: translateY(-2px); */
  color: var(--text-color);
  background: var(--background-color);
  border: 1px solid rgba(75, 44, 32, 0.08);
}

/* Thumbnail */
.wg-search-item__thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f0ebe5;
  flex-shrink: 0;
}

.wg-search-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.wg-search-item:hover .wg-search-item__thumb img {
  transform: scale(1.05);
}

.wg-search-item__no-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
}

/* Card body */
.wg-search-item__body {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wg-search-item__title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wg-search-item__excerpt {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--secondary-color);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Keyword highlight */
mark.wg-search-highlight {
  background: rgba(152, 27, 62, 0.1);
  color: var(--ornament-color);
  font-weight: 600;
  padding: 0 1px;
  border-radius: 2px;
  font-style: inherit;
}

/* States */
.wg-search-no-results,
.wg-search-loading {
  padding: 24px 16px;
  text-align: center;
  color: var(--secondary-color);
  font-size: 0.9rem;
  margin: 0;
}

@media screen and (max-width: 480px) {
  .wg-search-input {
    margin-top: -1px;
    position: relative;
    margin-left: 0;
    border-radius: 0 0 4px 4px;
  }
}
