/* ================================================
   Reliable Handyman York — main.css
   Version 1.0
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ------------------------------------------------
   RESET
   ------------------------------------------------ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ------------------------------------------------
   CSS VARIABLES
   ------------------------------------------------ */
:root {
  --orange:       #F97316;
  --orange-dark:  #EA6608;
  --navy:         #0F172A;
  --navy-mid:     #1E293B;
  --white:        #FFFFFF;
  --off-white:    #F8FAFC;
  --grey-light:   #F1F5F9;
  --grey-mid:     #94A3B8;
  --grey-text:    #64748B;
  --border:       #E2E8F0;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --shadow-md:    0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.14);
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    22px;
  --transition:   .3s ease;
}

/* ------------------------------------------------
   LAYOUT
   ------------------------------------------------ */
.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

section { padding: 90px 0; }

/* ------------------------------------------------
   TYPOGRAPHY
   ------------------------------------------------ */
h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--white);
}

h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--navy);
}

h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

p { color: var(--grey-text); line-height: 1.75; }

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.section-title { margin-bottom: 16px; }
.section-sub { font-size: 17px; max-width: 560px; color: var(--grey-text); }

/* ------------------------------------------------
   BUTTONS
   ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(249,115,22,.35);
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,115,22,.45);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
  border: 2px solid rgba(255,255,255,.25);
}

.btn-white:hover {
  background: rgba(255,255,255,.9);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ------------------------------------------------
   NAVIGATION
   ------------------------------------------------ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(15,23,42,.97);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.3px;
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--orange);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: rgba(255,255,255,.8);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-phone {
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: .9;
  transition: var(--transition);
}

.nav-phone:hover { opacity: 1; color: var(--orange); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--navy);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
  transition: var(--transition);
}

.mobile-menu a:hover { color: var(--orange); }

.mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
}

/* ------------------------------------------------
   HERO
   ------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/kitchen.jpg');
  background-size: cover;
  background-position: center;
  opacity: .22;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,.95) 0%, rgba(15,23,42,.7) 60%, rgba(15,23,42,.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249,115,22,.15);
  border: 1px solid rgba(249,115,22,.3);
  color: var(--orange);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
}

.hero-badge span { font-size: 16px; }

.hero h1 { margin-bottom: 20px; }

.hero h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,.7);
  margin-bottom: 36px;
  max-width: 560px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 52px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
}

.hero-stat-num {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  font-weight: 500;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.4);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ------------------------------------------------
   TRUST BAR
   ------------------------------------------------ */
.trust-bar {
  background: var(--navy-mid);
  padding: 28px 0;
}

.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.75);
  font-size: 14px;
  font-weight: 500;
}

.trust-icon {
  width: 36px;
  height: 36px;
  background: rgba(249,115,22,.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* ------------------------------------------------
   SERVICES
   ------------------------------------------------ */
.services { background: var(--off-white); }

.services-header {
  text-align: center;
  margin-bottom: 56px;
}

.services-header .section-sub { margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(249,115,22,.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}

.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 14px; margin: 0; }

/* ------------------------------------------------
   WHY CHOOSE US
   ------------------------------------------------ */
.why { background: var(--white); }

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-image-wrap {
  position: relative;
}

.why-image-main {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.why-image-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.why-image-badge strong {
  display: block;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.why-image-badge span {
  font-size: 13px;
  opacity: .85;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 36px;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.why-check {
  width: 24px;
  height: 24px;
  background: rgba(249,115,22,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 13px;
  color: var(--orange);
}

.why-item-text h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.why-item-text p { font-size: 14px; margin: 0; }

/* ------------------------------------------------
   GALLERY
   ------------------------------------------------ */
.gallery { background: var(--off-white); }

.gallery-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  position: relative;
}

.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  border-radius: var(--radius-md);
}

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

.gallery-overlay span {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ------------------------------------------------
   REVIEWS
   ------------------------------------------------ */
.reviews { background: var(--white); }

.reviews-header { text-align: center; margin-bottom: 56px; }

.stars {
  display: flex;
  gap: 4px;
  font-size: 20px;
  margin-bottom: 12px;
}

.reviews-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  color: var(--grey-text);
  font-size: 14px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.review-stars { font-size: 16px; margin-bottom: 14px; }

.review-text {
  font-size: 15px;
  color: var(--navy);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.review-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
}

.review-source {
  font-size: 12px;
  color: var(--grey-text);
}

/* ------------------------------------------------
   AREAS
   ------------------------------------------------ */
.areas { background: var(--navy); }

.areas-header { text-align: center; margin-bottom: 52px; }
.areas-header h2 { color: var(--white); }
.areas-header p { color: rgba(255,255,255,.6); }

.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.area-tag {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.8);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.area-tag:hover, .area-tag.main {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* ------------------------------------------------
   CTA SECTION
   ------------------------------------------------ */
.cta-section {
  background: var(--orange);
  padding: 80px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.cta-section h2 { color: var(--white); }
.cta-section p { color: rgba(255,255,255,.85); }

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  flex-shrink: 0;
}

.btn-cta-white {
  background: var(--white);
  color: var(--orange);
  font-weight: 700;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 15px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-cta-white:hover { background: rgba(255,255,255,.9); transform: translateY(-2px); }

.btn-cta-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
  font-weight: 700;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 15px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-cta-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }

/* ------------------------------------------------
   FOOTER
   ------------------------------------------------ */
footer {
  background: var(--navy);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand p {
  color: rgba(255,255,255,.5);
  font-size: 14px;
  margin: 16px 0 24px;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: 16px;
  transition: var(--transition);
}

.footer-social:hover { background: var(--orange); color: var(--white); }

.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: .5px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col ul a {
  color: rgba(255,255,255,.5);
  font-size: 14px;
  transition: var(--transition);
}

.footer-col ul a:hover { color: var(--orange); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,.5);
  font-size: 14px;
  margin-bottom: 12px;
}

.footer-contact-item a { color: rgba(255,255,255,.5); transition: var(--transition); }
.footer-contact-item a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { color: rgba(255,255,255,.35); font-size: 13px; margin: 0; }
.footer-bottom a { color: rgba(255,255,255,.35); transition: var(--transition); }
.footer-bottom a:hover { color: var(--orange); }

/* ------------------------------------------------
   FLOATING BUTTONS
   ------------------------------------------------ */
.float-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 500;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
  font-size: 26px;
  transition: var(--transition);
}

.float-whatsapp:hover { transform: scale(1.1); box-shadow: 0 10px 32px rgba(37,211,102,.5); }

.float-call {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 500;
  width: 58px;
  height: 58px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(249,115,22,.4);
  font-size: 22px;
  transition: var(--transition);
}

.float-call:hover { transform: scale(1.1); }

/* ------------------------------------------------
   SCROLL ANIMATIONS
   ------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------
   RESPONSIVE
   ------------------------------------------------ */
@media (max-width: 1024px) {
  .why-inner { grid-template-columns: 1fr; gap: 48px; }
  .why-image-wrap { max-width: 600px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .nav-links, .nav-phone { display: none; }
  .hamburger { display: flex; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:first-child { grid-column: span 2; grid-row: span 1; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-buttons { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-stats { gap: 24px; }
  .float-whatsapp { bottom: 20px; right: 20px; }
  .float-call { bottom: 90px; right: 20px; }
}

@media (max-width: 480px) {
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { justify-content: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: span 1; }
  .trust-bar-inner { gap: 20px; }
  .why-image-badge { bottom: -10px; right: -10px; padding: 14px 18px; }
}

/* ------------------------------------------------
   REDUCED MOTION
   ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------
   GALLERY — updated overlay
   ------------------------------------------------ */
.gallery-overlay small {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: .75;
  margin-top: 4px;
}

/* ------------------------------------------------
   LIGHTBOX
   ------------------------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,15,26,.96);
  cursor: pointer;
}

.lightbox-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lightbox-img-wrap {
  width: 100%;
  max-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  transition: opacity .25s ease;
}

.lightbox-img.fading { opacity: 0; }

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.25); }

.lightbox-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 700px;
  color: rgba(255,255,255,.8);
  font-size: 14px;
}

#lightboxTitle { font-weight: 600; color: #fff; }
#lightboxCounter { color: rgba(255,255,255,.5); font-size: 13px; }

.lightbox-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 700px;
}

.lightbox-thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: .55;
  border: 2px solid transparent;
  transition: var(--transition);
}

.lightbox-thumb:hover { opacity: .85; }
.lightbox-thumb.active { opacity: 1; border-color: var(--orange); }

@media (max-width: 768px) {
  .lightbox-prev { left: 8px; width: 40px; height: 40px; font-size: 22px; }
  .lightbox-next { right: 8px; width: 40px; height: 40px; font-size: 22px; }
  .lightbox-thumb { width: 52px; height: 38px; }
}

/* ------------------------------------------------
   GALLERY v3 — dynamic grid with filter tabs
   ------------------------------------------------ */

/* Filter tabs */
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.gtab {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--grey-text);
  transition: var(--transition);
  font-family: inherit;
}

.gtab span {
  opacity: .55;
  font-weight: 400;
}

.gtab:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.gtab.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.gtab.active span { opacity: .8; }

/* Dynamic grid */
.gallery-grid-dynamic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

/* Gallery card */
.gcard {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--grey-light);
}

.gcard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.gcard:hover img { transform: scale(1.05); }

.gcard-over {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.85) 0%, rgba(15,23,42,.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity .3s;
}

.gcard:hover .gcard-over { opacity: 1; }

.gcard-title {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: block;
  margin-bottom: 3px;
}

.gcard-tap {
  color: rgba(255,255,255,.65);
  font-size: 12px;
}

/* Show more button */
#galleryMore {
  font-family: inherit;
}

@media (max-width: 600px) {
  .gallery-grid-dynamic {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .gtab { font-size: 12px; padding: 6px 14px; }
}
