/* ============================================================
   ring.css — Dream Garden Banquet Luxury Design System
   Ring Ceremony Gallery Page
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
     --gold: #C9A96E;
     --gold-light: #E8D5A3;
     --gold-dark: #8B6914;
     --gold-dim: rgba(201, 169, 110, 0.15);
     --deep: #1A1208;
     --deep-2: #0D0A04;
     --cream: #FAF6EE;
     --warm-white: #FFFDF9;
     --charcoal: #2C2416;
     --muted: #7A6A52;
     --font-display: 'Cormorant Garamond', Georgia, serif;
     --font-body: 'Jost', sans-serif;
     --font-script: 'Damion', cursive;
     --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
     --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== RESET ===== */
*, *::before, *::after {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
     background-color: var(--warm-white);
     color: var(--charcoal);
     font-family: var(--font-body);
     font-weight: 300;
     line-height: 1.7;
     overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--deep); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-light); }
* { scrollbar-width: thin; scrollbar-color: var(--gold) var(--deep); }

/* ===== BACK TO TOP ===== */
#button {
     display: none;
     position: fixed;
     bottom: 28px;
     right: 28px;
     z-index: 9999;
     width: 46px;
     height: 46px;
     background: var(--gold);
     color: var(--deep);
     border-radius: 50%;
     text-align: center;
     line-height: 46px;
     font-size: 20px;
     text-decoration: none;
     box-shadow: 0 6px 24px rgba(201, 169, 110, 0.35);
     transition: all 0.3s ease;
}
#button.show { display: block; }
#button:hover {
     background: var(--deep);
     color: var(--gold);
     transform: translateY(-4px);
     box-shadow: 0 12px 32px rgba(201, 169, 110, 0.2);
}
@media (max-width: 600px) {
     #button { width: 40px; height: 40px; line-height: 40px; bottom: 18px; right: 18px; font-size: 17px; }
}

/* ===== NAVBAR ===== */
.navbar {
     background: rgba(26, 18, 8, 0.97) !important;
     padding: 0 2rem;
     border-bottom: 1px solid rgba(201, 169, 110, 0.18);
     backdrop-filter: blur(14px);
     -webkit-backdrop-filter: blur(14px);
     position: sticky;
     top: 0;
     z-index: 1000;
     transition: all 0.4s ease;
}
.navbar-brand img {
     height: 52px;
     filter: drop-shadow(0 0 10px rgba(201, 169, 110, 0.25));
     transition: filter 0.3s ease, transform 0.3s ease;
}
.navbar-brand img:hover {
     filter: drop-shadow(0 0 16px rgba(201, 169, 110, 0.5));
     transform: scale(1.03);
}

.navbar-nav .nav-link {
     font-family: var(--font-body);
     font-weight: 400;
     font-size: 0.8rem;
     letter-spacing: 0.2em;
     text-transform: uppercase;
     color: rgba(250, 246, 238, 0.7) !important;
     padding: 1.4rem 1rem !important;
     transition: color 0.3s ease;
     position: relative;
}
.navbar-nav .nav-link::after {
     content: '';
     position: absolute;
     bottom: 0.75rem;
     left: 1rem;
     right: 1rem;
     height: 1px;
     background: var(--gold);
     transform: scaleX(0);
     transform-origin: left;
     transition: transform 0.35s var(--ease-smooth);
}
.navbar-nav .nav-link:hover { color: var(--gold) !important; }
.navbar-nav .nav-link:hover::after { transform: scaleX(1); }

/* Dropdown */
.dropdown-menu {
     background: var(--deep);
     border: 1px solid rgba(201, 169, 110, 0.18);
     border-radius: 0;
     margin-top: 0;
     padding: 0.4rem 0;
     display: none;
     min-width: 185px;
     box-shadow: 0 14px 44px rgba(0, 0, 0, 0.55);
}
.nav-item.dropdown:hover .dropdown-menu { display: block; }
.dropdown-item {
     font-family: var(--font-body);
     font-size: 0.76rem;
     letter-spacing: 0.12em;
     text-transform: uppercase;
     color: rgba(250, 246, 238, 0.58);
     padding: 0.65rem 1.5rem;
     transition: color 0.25s ease, background 0.25s ease, padding-left 0.25s ease;
}
.dropdown-item:hover {
     background: rgba(201, 169, 110, 0.08);
     color: var(--gold);
     padding-left: 1.9rem;
}

.navbar-toggler { border-color: rgba(201, 169, 110, 0.35); }
.navbar-toggler:focus { box-shadow: 0 0 0 2px rgba(201, 169, 110, 0.25); outline: none; }

/* ===== PAGE HERO ===== */
.page-hero {
     position: relative;
     height: 60vh;
     min-height: 350px;
     overflow: hidden;
}
.page-hero .carousel,
.page-hero .carousel-inner,
.page-hero .carousel-item { height: 100%; }
.page-hero .carousel-item img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     filter: brightness(0.35);
}

/* Ken Burns zoom on active slide */
.page-hero .carousel-item.active img {
     animation: kenBurns 9s ease-out forwards;
}
@keyframes kenBurns {
     from { transform: scale(1); }
     to   { transform: scale(1.07); }
}

.carousel-indicators button {
     width: 26px;
     height: 2px;
     background-color: var(--gold);
     border: none;
     opacity: 0.4;
     transition: all 0.35s ease;
     border-radius: 1px;
}
.carousel-indicators button.active { opacity: 1; width: 50px; }

.carousel-control-prev-icon,
.carousel-control-next-icon {
     filter: invert(75%) sepia(40%) saturate(380%) hue-rotate(4deg);
     width: 26px; height: 26px;
}

/* Hero text overlay */
.page-hero-overlay {
     position: absolute;
     inset: 0;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     text-align: center;
     z-index: 5;
     padding: 2rem;
     pointer-events: none;
     background: linear-gradient(
          to bottom,
          rgba(26,18,8,0.15) 0%,
          transparent 40%,
          rgba(26,18,8,0.25) 100%
     );
}
.page-hero-eyebrow {
     font-family: var(--font-script);
     font-size: 2.2rem;
     color: var(--gold-light);
     margin-bottom: 0.5rem;
     opacity: 0;
     animation: fadeSlideDown 0.9s ease 0.1s forwards;
}
.page-hero-title {
     font-family: var(--font-display);
     font-size: clamp(2.4rem, 7vw, 5.8rem);
     font-weight: 300;
     color: #fff;
     letter-spacing: 0.03em;
     text-shadow: 0 4px 60px rgba(0, 0, 0, 0.65);
     line-height: 1.05;
     opacity: 0;
     animation: fadeSlideUp 0.9s ease 0.25s forwards;
}
.page-hero-title em {
     font-style: italic;
     color: var(--gold-light);
}
.page-hero-divider {
     width: 0;
     height: 1px;
     background: linear-gradient(to right, transparent, var(--gold), transparent);
     margin: 1.4rem auto;
     opacity: 0;
     animation: expandDivider 0.9s ease 0.5s forwards;
}
.page-hero-sub {
     font-family: var(--font-body);
     font-size: 0.76rem;
     letter-spacing: 0.3em;
     text-transform: uppercase;
     color: rgba(255, 255, 255, 0.55);
     opacity: 0;
     animation: fadeSlideUp 0.9s ease 0.45s forwards;
}

@keyframes fadeSlideDown {
     from { opacity: 0; transform: translateY(-18px); }
     to   { opacity: 0.9; transform: translateY(0); }
}
@keyframes fadeSlideUp {
     from { opacity: 0; transform: translateY(18px); }
     to   { opacity: 1; transform: translateY(0); }
}
@keyframes expandDivider {
     from { width: 0; opacity: 0; }
     to   { width: 55px; opacity: 1; }
}

/* ===== WELCOME HEADER ===== */
header {
     background: var(--deep);
     text-align: center;
     padding: 3.5rem 1.5rem 3rem;
     position: relative;
     overflow: hidden;
}
header::before {
     content: '';
     position: absolute;
     inset: 0;
     background: repeating-linear-gradient(
          90deg,
          transparent,
          transparent 140px,
          rgba(201, 169, 110, 0.03) 140px,
          rgba(201, 169, 110, 0.03) 141px
     );
     pointer-events: none;
}
header::after {
     content: '';
     position: absolute;
     bottom: 0;
     left: 50%;
     transform: translateX(-50%);
     width: 100px;
     height: 1px;
     background: linear-gradient(to right, transparent, rgba(201,169,110,0.32), transparent);
}
header h1#headtext {
     font-family: var(--font-display);
     font-size: clamp(1.4rem, 3.5vw, 2.6rem);
     font-weight: 300;
     color: var(--gold-light);
     letter-spacing: 0.05em;
     margin-bottom: 0.6rem;
     position: relative;
}
header p {
     font-family: var(--font-body);
     font-size: 0.78rem;
     letter-spacing: 0.24em;
     text-transform: uppercase;
     color: rgba(255, 255, 255, 0.33);
     position: relative;
}

/* ===== SECTION LABELS ===== */
.section-label {
     display: flex;
     align-items: center;
     gap: 1.1rem;
     justify-content: center;
     margin-bottom: 0.7rem;
}
.section-label::before,
.section-label::after {
     content: '';
     height: 1px;
     width: 44px;
     background: linear-gradient(to right, transparent, var(--gold));
}
.section-label::after {
     background: linear-gradient(to left, transparent, var(--gold));
}
.section-label span {
     font-family: var(--font-body);
     font-size: 0.68rem;
     letter-spacing: 0.3em;
     text-transform: uppercase;
     color: var(--gold);
}
.section-heading {
     font-family: var(--font-display);
     font-size: clamp(2.2rem, 5vw, 3.6rem);
     font-weight: 300;
     text-align: center;
     line-height: 1.12;
}
.section-heading em { font-style: italic; }
.section-heading.light { color: var(--gold-light); }
.section-heading.dark  { color: var(--deep); }

/* ===== GALLERY SECTION ===== */
.gallery-section {
     padding: 6rem 1.5rem 7rem;
     background: var(--deep);
     position: relative;
     isolation: isolate;
}
.gallery-section::before {
     content: '';
     position: absolute;
     top: 0; left: 0; right: 0;
     height: 1px;
     background: linear-gradient(to right, transparent, rgba(201,169,110,0.25), transparent);
}
.gallery-section::after {
     content: '';
     position: absolute;
     inset: 0;
     background: radial-gradient(ellipse 65% 45% at 50% 8%, rgba(201,169,110,0.05) 0%, transparent 70%);
     pointer-events: none;
     z-index: -1;
}

/* Masonry grid */
.gallery-grid {
     max-width: 1380px;
     margin: 4rem auto 0;
     columns: 4 230px;
     column-gap: 5px;
}
.gallery-item {
     break-inside: avoid;
     margin-bottom: 5px;
     position: relative;
     overflow: hidden;
     cursor: pointer;
     background: #060606;
     outline: 1px solid rgba(201,169,110,0.03);
}
.gallery-item img {
     width: 100%;
     display: block;
     vertical-align: bottom;
     transition:
          transform 0.75s var(--ease-smooth),
          filter 0.75s ease;
     filter: brightness(0.76) saturate(0.8);
}
.gallery-item:hover img {
     transform: scale(1.1);
     filter: brightness(0.35) saturate(0.5);
}

/* Caption overlay */
.gallery-caption {
     position: absolute;
     inset: 0;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     gap: 0.6rem;
     opacity: 0;
     transition: opacity 0.45s ease;
     pointer-events: none;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* Ring ornament — small ring icon above label */
.gallery-caption::before {
     content: '◇';
     font-size: 0.7rem;
     color: var(--gold);
     line-height: 1;
     opacity: 0.8;
}
.gallery-caption span {
     font-family: var(--font-body);
     font-size: 0.7rem;
     letter-spacing: 0.26em;
     text-transform: uppercase;
     color: var(--gold-light);
     border-bottom: 1px solid rgba(201, 169, 110, 0.5);
     padding-bottom: 4px;
}

/* ===== LEGACY CLASS OVERRIDES ===== */
.gallery-image {
     max-width: 1380px;
     margin: 4rem auto 0;
     columns: 4 230px;
     column-gap: 5px;
}
.img-box {
     break-inside: avoid;
     margin-bottom: 5px;
     position: relative;
     overflow: hidden;
     cursor: pointer;
     background: #060606;
     height: auto !important;
     width:  auto !important;
}
.img-box img {
     width: 100% !important;
     height: auto !important;
     border-radius: 0 !important;
     display: block;
     transition: transform 0.75s var(--ease-smooth), filter 0.75s ease;
     filter: brightness(0.76) saturate(0.8);
}
.img-box:hover img {
     transform: scale(1.1) !important;
     filter: brightness(0.35) saturate(0.5);
     border-radius: 0 !important;
}
.transparent-box {
     position: absolute !important;
     inset: 0;
     display: flex;
     align-items: center;
     justify-content: center;
     background: transparent !important;
     filter: none !important;
     height: auto !important;
     width:  auto !important;
     opacity: 0;
     transition: opacity 0.45s ease;
}
.img-box:hover .transparent-box { opacity: 1; }
.caption {
     position: static !important;
     opacity: 1 !important;
     transform: none !important;
}
.caption p {
     font-family: var(--font-body) !important;
     font-size: 0.7rem;
     letter-spacing: 0.26em;
     text-transform: uppercase;
     color: var(--gold-light);
     border-bottom: 1px solid rgba(201,169,110,0.5);
     padding-bottom: 4px;
     font-weight: 400 !important;
     margin: 0;
}
.opacity-low { opacity: 0.5; }
.gallery-title {
     font-family: var(--font-display);
     font-size: clamp(2rem, 4vw, 3rem);
     font-weight: 300;
     color: var(--gold-light);
     text-align: center;
}

/* ===== FOOTER ===== */
footer.footer {
     background: var(--deep-2);
     border-top: 1px solid rgba(201, 169, 110, 0.1);
     padding: 5rem 2rem 2.5rem;
}
.footer-grid {
     max-width: 1100px;
     margin: 0 auto 3.5rem;
     display: grid;
     grid-template-columns: repeat(4, 1fr);
     gap: 3rem;
}
@media(max-width: 860px) { .footer-grid { grid-template-columns: repeat(2,1fr); gap: 2.5rem; } }
@media(max-width: 440px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

.footer-col h4 {
     font-family: var(--font-display);
     font-size: 1.15rem;
     font-weight: 400;
     color: var(--gold-light);
     margin-bottom: 1.4rem;
     letter-spacing: 0.06em;
     position: relative;
     padding-bottom: 0.8rem;
}
.footer-col h4::after {
     content: '';
     position: absolute;
     bottom: 0; left: 0;
     width: 28px; height: 1px;
     background: var(--gold);
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
     font-family: var(--font-body);
     font-size: 0.82rem;
     letter-spacing: 0.08em;
     color: rgba(250, 246, 238, 0.35);
     text-decoration: none;
     display: block;
     transition: color 0.3s ease, letter-spacing 0.3s ease;
}
.footer-col ul li a:hover {
     color: var(--gold);
     letter-spacing: 0.13em;
}

/* Social */
.social-links {
     display: flex;
     gap: 0.6rem;
     flex-wrap: wrap;
     margin-top: 0.5rem;
}
.social-links a {
     width: 38px; height: 38px;
     border: 1px solid rgba(201, 169, 110, 0.2);
     display: flex;
     align-items: center;
     justify-content: center;
     color: rgba(250, 246, 238, 0.4);
     font-size: 1.05rem;
     text-decoration: none;
     transition: all 0.35s var(--ease-smooth);
}
.social-links a:hover {
     border-color: var(--gold);
     color: var(--gold);
     background: rgba(201, 169, 110, 0.08);
     transform: translateY(-3px);
}
.bx { font-size: 1.1rem; }

.footer-bottom {
     max-width: 1100px;
     margin: 0 auto;
     padding-top: 1.5rem;
     border-top: 1px solid rgba(201, 169, 110, 0.07);
     display: flex;
     justify-content: space-between;
     align-items: center;
     flex-wrap: wrap;
     gap: 1rem;
}
.footer-bottom p {
     font-family: var(--font-body);
     font-size: 0.72rem;
     color: rgba(250, 246, 238, 0.18);
     letter-spacing: 0.06em;
     margin: 0;
}
.footer-script {
     font-family: var(--font-script);
     font-size: 1.5rem;
     color: rgba(201, 169, 110, 0.25);
}

/* Legacy footer support */
.container-fluid-custom { max-width: 1100px; margin: auto; padding: 0 15px; }
.row {
     display: grid;
     grid-template-columns: repeat(4,1fr);
     gap: 3rem;
}
@media(max-width: 860px) { .row { grid-template-columns: repeat(2,1fr); } }
@media(max-width: 440px) { .row { grid-template-columns: 1fr; } }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) { .gallery-grid, .gallery-image { columns: 3 190px; } }
@media (max-width: 660px)  { .gallery-grid, .gallery-image { columns: 2 140px; } .page-hero { height: 48vh; } }
@media (max-width: 400px)  { .gallery-grid, .gallery-image { columns: 1; } }
@media (max-width: 552px)  { header h1#headtext { font-size: 1.2rem; } }