/* =========================================
   Riverside Systems Inc - Site Styles
   Nature-based palette inspired by the tree logo
   ========================================= */

:root {
  --primary: #2d5a27;      /* forest green */
  --primary-dark: #1b4332; /* deeper forest green */
  --secondary: #5d4037;    /* earth brown */
  --accent: #8ab17d;       /* sage green */
  --accent-light: #d4e6d1; /* light sage */
  --star-amber: #f59e0b;   /* amber for star rating */
  --text: #1a1a1a;
  --text-muted: #5f6b5a;
  --bg: #fbfcf7;           /* off-white cream */
  --bg-light: #f1f5ee;     /* light green-tinted */
  --border: #cfd8c5;
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(27, 67, 50, 0.08);
  --shadow-lg: 0 10px 24px -4px rgba(27, 67, 50, 0.12);
  --radius: 10px;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.bg-light {
  background-color: var(--bg-light);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--primary);
  color: var(--white);
  padding: 8px 16px;
  z-index: 1000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Section headers */
.section-header {
  margin-bottom: 40px;
}

.section-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.1rem;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.section-header .sub {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

/* White button for dark hero background */
.btn-white,
.hero-actions .btn-outline {
  background-color: var(--white);
  color: var(--primary);
  border: none;
}

.btn-white:hover,
.hero-actions .btn-outline:hover {
  background-color: #f5f5f5;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* ===== Header ===== */
.header {
  background-color: rgba(251, 252, 247, 0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  height: 34px;
  width: auto;
  flex-shrink: 0;
}

.logo-text {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-list {
  display: flex;
  gap: 26px;
}

.nav-list a {
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-list a:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== Mobile Drawer ===== */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer.open {
  visibility: visible;
  opacity: 1;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: var(--white);
  border-left: 1px solid var(--border);
  box-shadow: -4px 0 12px rgba(27, 67, 50, 0.06);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
  padding: 40px 30px;
  overflow-y: auto;
}

.mobile-drawer.open .drawer-panel {
  transform: translateX(0);
}

.drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  padding: 0;
  z-index: 10;
}

.close-bar {
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text);
  margin: 0;
  transition: transform 0.3s;
}

.close-bar:nth-child(1) {
  transform: translateY(-50%) rotate(45deg);
}

.close-bar:nth-child(2) {
  transform: translateY(-50%) rotate(-45deg);
}

.drawer-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 70px;
}

.drawer-list a {
  display: block;
  padding: 14px 0;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.drawer-list a:hover {
  color: var(--primary);
  padding-left: 8px;
}

/* Lock body scroll when drawer open */
body.no-scroll {
  overflow: hidden;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 110px 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--secondary) 100%);
  opacity: 0.92;
}

.hero-container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
}

.badge {
  display: inline-block;
  background-color: rgba(138, 177, 125, 0.2);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  border: 1px solid rgba(138, 177, 125, 0.3);
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.9rem;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.15rem;
  color: #dce6d8;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: stretch;
}

/* Equal-size hero buttons */
.hero-actions .cta-wrap,
.hero-actions > .btn {
  display: inline-flex;
}

.hero-actions .btn {
  min-width: 268px;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

/* Owner photo */
.owner-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.owner-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
}

.owner-photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 18px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ===== Services ===== */
.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.service-item:hover {
  border-color: var(--accent);
  background-color: var(--accent-light);
  transform: translateX(4px);
}

.service-icon,
.stat-icon,
.contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Services closing note */
.services-note {
  margin-top: 22px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.services-note strong {
  color: var(--primary);
  font-weight: 600;
}

.services-note a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.services-note a:hover {
  color: var(--primary-dark);
}

/* ===== Reviews Carousel ===== */
.review-carousel {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 30px 0;
}

.carousel-track {
  display: flex;
  overflow: hidden;
  position: relative;
  height: 380px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.review-slide {
  flex: 0 0 100%;
  opacity: 0;
  transform: translateX(20px);
  visibility: hidden;
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.review-slide.active {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
  position: relative;
}

.review-card {
  width: 100%;
  max-width: 700px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.reviewer-info h3 {
  font-size: 1.1rem;
  color: var(--primary);
}

.stars {
  color: #b45309;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.review-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
}

.local-guide {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 2px;
  display: block;
}

.review-body p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 16px;
  font-style: italic;
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-tags span {
  font-size: 0.78rem;
  background: var(--bg-light);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 50px;
}

.review-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--primary);
  box-shadow: var(--shadow);
  z-index: 5;
  transition: all 0.2s;
}

.review-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.review-prev { left: -14px; }
.review-next { right: -14px; }

.review-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.review-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.review-dot.active {
  background: var(--primary);
}

/* ===== Gallery: categories ===== */
.gallery-cats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

.gallery-cat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.gallery-cat:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.gallery-cat.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}

.cat-thumb {
  display: block;
  width: 100%;
  height: 92px;
  overflow: hidden;
  background: var(--bg-light);
}

.cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-cat:hover .cat-thumb img {
  transform: scale(1.07);
}

.cat-name {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  padding: 12px 10px 2px;
  line-height: 1.3;
}

.cat-count {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0 10px 12px;
}

/* ===== Gallery: grid ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-card {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  cursor: zoom-in;
}

.gallery-card[hidden] {
  display: none;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.gallery-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-caption {
  padding: 14px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--white);
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 70px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-figure figcaption {
  color: #e8f0e4;
  font-size: 0.95rem;
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 2rem;
  line-height: 1;
}

/* ===== Contact / Map ===== */
.map-section {
  margin-bottom: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.map-wrap {
  position: relative;
  height: 340px;
  background: var(--bg-light);
}

.map-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -60%);
  pointer-events: none;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-pin::before {
  content: "";
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.map-open {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(251, 252, 247, 0.95);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border);
  z-index: 3;
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.map-open:hover {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.service-area h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-area p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
}

.area-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.area-list li {
  font-size: 0.95rem;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.contact-cta h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.cta-wrap {
  position: relative;
  display: inline-block;
}

.contact-cta .cta-wrap {
  margin-bottom: 24px;
}

.cta-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 12px 0;
  z-index: 10;
  display: none;
}

.cta-popover.open {
  display: block;
}

.popover-option {
  display: block;
  padding: 12px 20px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s;
}

.popover-option:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contact-icon-badge {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: var(--accent-light);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-top: 2px;
}

.contact-icon {
  width: 18px;
  height: 18px;
}

.contact-item div strong {
  display: block;
  color: var(--primary);
  font-size: 0.95rem;
}

.contact-item div a,
.contact-item div span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-item div a:hover {
  color: var(--primary);
}

/* ===== Footer ===== */
.footer {
  background-color: var(--primary-dark);
  color: #dce6d8;
  padding: 40px 0 26px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-brand .logo-text {
  color: var(--white);
  font-size: 1.4rem;
}

.footer-brand .logo-mark {
  /* Render the black tree mark white on the dark footer */
  filter: brightness(0) invert(1);
  height: 30px;
}

.footer-heading {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8fae86;
  margin-bottom: 14px;
}

.footer-links a {
  display: block;
  margin-bottom: 9px;
  font-size: 0.95rem;
  color: #a8bda0;
  transition: color 0.2s;
}

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

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #a8bda0;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.social-link:hover {
  color: var(--white);
}

.social-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-licence {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.tsbc-badge {
  width: 250px;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.copyright {
  font-size: 0.85rem;
  color: #a8bda0;
}

/* Visually hidden — for screen readers and crawlers */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .gallery-cats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    padding: 40px 30px;
    box-shadow: -4px 0 12px rgba(27, 67, 50, 0.08);
    transition: right 0.3s ease;
    border-left: 1px solid var(--border);
  }

  .nav-list.open {
    right: 0;
  }

  .nav-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-actions .btn {
    min-width: 0;
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .carousel-track {
    height: 340px;
  }

  .review-prev { left: 8px; }
  .review-next { right: 8px; }

  .map-wrap {
    height: 300px;
  }

  .lightbox {
    padding: 56px 16px;
  }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 10px; right: 10px; }
}

@media (max-width: 640px) {
  .gallery-cats {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .footer {
    padding: 34px 0 22px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .tsbc-badge {
    width: 210px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.9rem;
  }
  .section-header h2 {
    font-size: 1.75rem;
  }
  .carousel-track {
    height: 300px;
  }
}
