/* ============================================================
   css/style.css  —  FagGruppen Vest AS
   ============================================================ */

/* ── BRAND TOKENS ───────────────────────────────────────────── */
:root {
  --navy:      #1d4f8c;
  --blue-mid:  #2868b8;
  --blue-lt:   #e3eefa;
  --teal:      #1a725c;
  --teal-lt:   #e0f2f4;
  --green:     #18a14a;
  --green-lt:  #ddf3e4;
  --gold:      #ef9700;
  --muted:     #6b7280;
  --dark-bg:   #173f6f;
  --dark-bg2:  #103057;
  --sky:       #eef5fc;
}

/* ── BASE ───────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
.text-navy  { color: var(--navy); }
.text-teal  { color: var(--teal); }
.text-green { color: var(--green); }
.bg-green   { background-color: var(--green); }
.bg-teal    { background-color: var(--teal); }

p, h1, h2, h3, h4, h5, h6, span {
  cursor: default;
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--dark-bg);
}

.hero-stage {
  position: absolute;
  inset: 0;
}

.hero-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.hero-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.6s ease;
}

.hero-track {
  display: flex;
  height: 100%;
  will-change: transform;
}

.hero-track-img {
  flex-shrink: 0;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(16, 48, 87, 0.35) 0%, rgba(16, 48, 87, 0.72) 100%);
  opacity: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px;
  padding-top: 80px;
}

.hero-nav {
  position: absolute;
  bottom: 32px;
  right: 40px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-nav-btn {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hero-nav-btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
}

.hero-counter {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-right: 4px;
}

.logo_image {
  height: 35px;
  margin-left: -2px;
  padding-bottom: 2px;
}

/* ── NAVBAR ─────────────────────────────────────────────────── */
#navbar {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 16px rgba(29, 79, 140, 0.08);
}

.nav-link-active {
  color: var(--blue-mid) !important;
  font-weight: 600;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-mid);
  color: #ffffff;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover  { background: var(--green); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--navy);
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 28px;
  border: 1px solid rgba(29, 79, 140, 0.35);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(24, 161, 74, 0.06);
  transform: translateY(-1px);
}
.btn-outline:active { transform: translateY(0); }

/* ── CHIPS ──────────────────────────────────────────────────── */
.chip-light {
  display: inline-block;
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(29, 79, 140, 0.08);
  border: 1px solid rgba(29, 79, 140, 0.15);
  border-radius: 20px;
  padding: 5px 14px;
}

.chip-blue {
  display: inline-block;
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-mid);
  background: var(--blue-lt);
  padding: 4px 12px;
  border-left: 3px solid var(--blue-mid);
}

.chip-dark {
  display: inline-block;
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-left: 3px solid var(--blue-mid);
}

/* ── SERVICE CARDS ──────────────────────────────────────────── */
.service-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 28px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.service-card:hover {
  border-color: var(--blue-mid);
  box-shadow: 0 8px 32px rgba(29, 79, 140, 0.1);
  transform: translateY(-3px);
}

.service-icon {
  width: 44px;
  height: 44px;
  background: var(--blue-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.service-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--blue-mid);
}

/* ── SCORE STRIP ────────────────────────────────────────────── */
.score-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--sky);
  border: 1px solid #cce0f5;
  text-align: center;
  margin-top: -150px;
}

.score-item {
  padding: 32px 16px;
  border-right: 1px solid #cce0f5;
}
.score-item:last-child { border-right: none; }
.score-divider { display: none; }

/* ── WHY CARDS ──────────────────────────────────────────────── */
.why-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-bottom: 3px solid transparent;
  padding: 28px 24px;
  transition: border-bottom-color 0.25s, transform 0.25s;
}
.why-card:hover {
  border-bottom-color: var(--green);
  transform: translateY(-3px);
}

.why-icon {
  width: 44px;
  height: 44px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.why-icon svg { stroke: rgba(255, 255, 255, 0.85); }

/* ── CONTACT SECTION ────────────────────────────────────────── */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(40, 104, 184, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #9cc8f5;
}

.contact-form-card {
  background: #ffffff;
  padding: 40px;
}

/* ── FORM ───────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; }

.form-label {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-input {
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  color: #111827;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 10px 14px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus {
  border-color: var(--blue-mid);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(40, 104, 184, 0.12);
}

.form-feedback {
  margin-top: 12px;
  padding: 12px 16px;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  text-align: center;
}
.form-feedback.success {
  background: var(--green-lt);
  color: #156c34;
  border-left: 3px solid var(--green);
}
.form-feedback.error {
  background: #fee2e2;
  color: #991b1b;
  border-left: 3px solid #dc2626;
}

/* ── FOOTER LINKS ───────────────────────────────────────────── */
.footer-link {
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}
.footer-link:hover { color: #9cc8f5; }

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  transition: background 0.2s, color 0.2s;
}
.footer-social-icon:hover {
  background: var(--green, #18a14a);
  color: #fff;
}

/* ── GALLERY — full-bleed project browser ────────────────────── */
.gallery-vis-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
  padding: 0 24px;
  flex-wrap: wrap;
}

.gallery-vis-label {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.gallery-vis-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gallery-vis-pill {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 7px 16px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.gallery-vis-pill:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}
.gallery-vis-pill.active {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
  color: #ffffff;
}

.gallery-browser {
  display: grid;
  grid-template-columns: 300px 1fr 340px;
  min-height: 560px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-thumb-col {
  max-height: 690px;
  overflow-y: auto;
  padding: 8px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}
.gallery-thumb-col::-webkit-scrollbar {
  width: 6px;
}
.gallery-thumb-col::-webkit-scrollbar-track {
  background: transparent;
}
.gallery-thumb-col::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}
.gallery-thumb-col::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.gallery-thumb-category {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  padding: 18px 24px 10px;
}

.gallery-thumb-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 24px;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.gallery-thumb-item:hover {
  background: rgba(255, 255, 255, 0.04);
}
.gallery-thumb-item.active {
  background: rgba(255, 255, 255, 0.07);
  border-left-color: var(--green);
}

.gallery-thumb-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 2px;
}
.gallery-thumb-images img {
  width: 100%;
  height: 100%;
  max-height: 125px;
  object-fit: cover;
  display: block;
}

.gallery-thumb-divider {
  margin: 10px 24px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.gallery-main-col {
  padding: 24px;
  display: flex;
  align-items: stretch;
}

.gallery-main-ba {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 500px;
  background: var(--dark-bg);
}

.gallery-main-half {
  position: relative;
  overflow: hidden;
}

.gallery-main-before-half { order: 1; }
.gallery-main-after-half  { order: 2; }

.gallery-main-half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-main-ba::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}

.gallery-slide-label {
  position: absolute;
  top: 14px;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 12px;
  z-index: 3;
}
.label-before {
  left: 12px;
  background: rgba(16, 48, 87, 0.85);
  color: rgba(255, 255, 255, 0.7);
}
.label-after {
  right: 12px;
  background: var(--green);
  color: #ffffff;
}
.label-result {
  right: 12px;
  background: var(--gold);
  color: #ffffff;
}

.gallery-info-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  max-height: 640px;
  overflow-y: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px;
}

.gallery-info-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gallery-info-date {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}

.gallery-info-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}

.gallery-info-desc {
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.gallery-tag {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Gallery — mobile-only elements (hidden on desktop) */
.gallery-mobile-title {
  display: none;
}
.gallery-toggle-arrow {
  display: none;
}

/* ── SCROLL REVEAL ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.reveal-delay-1 { transition-delay: 0.10s; }
.reveal.reveal-delay-2 { transition-delay: 0.20s; }
.reveal.reveal-delay-3 { transition-delay: 0.30s; }
.reveal.reveal-delay-4 { transition-delay: 0.40s; }
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── HAMBURGER ANIMATION ────────────────────────────────────── */
#hamburger.open .hamburger-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#hamburger.open .hamburger-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
#hamburger.open .hamburger-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── MOBILE MENU SLIDE ──────────────────────────────────────── */
.mobile-menu {
  background-color: var(--dark-bg);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}
.mobile-menu.open { max-height: 420px; }

/* ── IMAGE PLACEHOLDER FALLBACKS ────────────────────────────── */
.img-placeholder       { min-height: 480px; background: var(--sky); }
.img-placeholder-block { background: #e5e7eb; min-height: 200px; }

/* ── MODAL OVERLAY ───────────────────────────────────────────── */
body.modal-open {
  overflow: hidden;
}

/* ── LOAD MORE ────────────────────────────────────────────────── */
.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.load-more-wrap-reviews {
  margin-top: -24px;
  margin-bottom: 40px;
}
.load-more-btn {
  width: 100%;
  max-width: 320px;
  justify-content: center;
}
.load-more-hidden {
  display: none !important;
}
.load-more-btn.hidden {
  display: none !important;
}

/* ── CERTIFICATES ───────────────────────────────────────────── */
.certificates-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: -125px;
}

.certificate-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.certificate-card:hover {
  border-color: var(--blue-mid);
  box-shadow: 0 8px 32px rgba(29, 79, 140, 0.1);
  transform: translateY(-3px);
}
.certificate-card img {
  max-width: 200px;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ── HERO STATS — keep columns equal-width ──────────────────── */
.hero-stats > div.text-center {
  flex: 1 1 0;
  min-width: 0;
}
.hero-stats .font-body.text-xs {
  word-break: break-word;
}

/* ============================================================
   MEDIA QUERIES — ALL RESPONSIVE STYLES
   ============================================================ */

/* ── MOBILE (max-width: 767px) ─────────────────────────────── */
@media (max-width: 767px) {

  /* Hero */
  .hero-overlay {
    opacity: 1;
  }
  .hero-panel {
    width: 100%;
    opacity: 1;
  }
  .hero-panel::before { display: none; }
  .hero-nav {
    right: 20px;
    bottom: 20px;
  }
  .hero-content {
    padding: 0 20px;
    padding-top: 80px;
    justify-content: safe center;
    padding-top: 90px;
    padding-bottom: 90px;
  }
  .hero-content .chip-light {
    margin-bottom: 16px !important;
  }
  .hero-content h1 {
    margin-bottom: 8px !important;
    font-size: 2.5rem !important;
  }
  .hero-content .font-serif.italic {
    margin-bottom: 16px !important;
    font-size: 1.25rem !important;
  }
  .hero-content p {
    margin-bottom: 24px !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }
  .hero-content .flex.flex-wrap.gap-4 {
    margin-bottom: 24px !important;
  }
  .hero-stats {
    gap: 16px;
    padding-top: 20px !important;
  }
  .hero-stats .font-heading.text-3xl {
    font-size: 1.35rem;
  }
  .hero-stats .font-body.text-xs {
    font-size: 9px;
    letter-spacing: 0.04em;
    line-height: 1.3;
  }

  /* Score Strip */
  .score-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -50px;
  }

  /* Certificates */
  .certificates-grid {
    flex-direction: column;
    margin-top: -50px;
  }
  .certificate-card img {
    max-width: 160px;
    max-height: 100px;
  }

  /* About — flip order */
  #om-oss .about-text   { order: 1; }
  #om-oss .about-images { order: 2; }
  #om-oss .grid.lg\:grid-cols-2 {
    display: flex;
    flex-direction: column;
  }

  /* Section padding */
  #om-oss,
  #tjenester,
  #galleri,
  #tilbakemeldinger,
  #hvorfor,
  #kontakt {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  /* Prevent horizontal scrolling */
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Remove scroll effects */
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Tiny screens */
  .hero-content h1 {
    font-size: 2.1rem !important;
  }
}

/* ── MOBILE GALLERY (max-width: 767px) ────────────────────── */
@media (max-width: 767px) {

  .gallery-browser {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .gallery-vis-row {
    padding: 0 20px;
    justify-content: flex-start;
    margin-bottom: 20px;
  }
  .gallery-vis-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gallery-vis-pills::-webkit-scrollbar { display: none; }
  .gallery-vis-pill { flex-shrink: 0; }

  .gallery-thumb-col {
    max-height: none;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
    gap: 10px;
  }
  .gallery-thumb-col::-webkit-scrollbar { display: none; }

  .gallery-thumb-category {
    flex-shrink: 0;
    width: 1px;
    align-self: stretch;
    margin: 0 4px;
    padding: 0;
    background: rgba(255, 255, 255, 0.35);
    font-size: 0;
    text-indent: -9999px;
    overflow: hidden;
  }
  .gallery-thumb-col > .gallery-thumb-category:first-child {
    display: none;
  }

  .gallery-thumb-divider {
    flex-shrink: 0;
    width: 1px;
    align-self: stretch;
    margin: 0 4px;
    border-top: none;
    background: rgba(255, 255, 255, 0.35);
  }

  .gallery-thumb-item {
    flex-shrink: 0;
    width: 96px;
    height: 72px;
    padding: 0;
    border-left: none;
    border-radius: 4px;
    overflow: hidden;
  }
  .gallery-thumb-item.active {
    background: transparent;
    border-left: none;
    outline: 2px solid var(--green);
    outline-offset: -2px;
  }
  .gallery-thumb-images img { max-height: none; }

  .gallery-mobile-title {
    display: block;
    padding: 16px 20px 0;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.25;
  }

  .gallery-main-col {
    padding: 16px 0 0;
  }
  .gallery-main-ba {
    position: relative;
    display: block;
    min-height: 320px;
    aspect-ratio: 4 / 3;
  }
  .gallery-main-ba::after { display: none; }
  .gallery-main-half {
    display: none;
    position: absolute;
    inset: 0;
  }
  .gallery-main-half.mobile-active {
    display: block;
  }

  .gallery-toggle-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(16, 48, 87, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.9);
    z-index: 4;
    cursor: pointer;
  }
  .gallery-toggle-arrow-prev { left: 12px; }
  .gallery-toggle-arrow-next { right: 12px; }

  .gallery-info-panel {
    max-height: none;
    overflow-y: visible;
    border-left: none;
    padding: 20px;
  }
  .gallery-info-title {
    display: none;
  }
}

/* ── TABLET (768px - 1024px) ───────────────────────────────── */
@media (min-width: 768px) and (max-width: 1024px) {

  /* Navbar */
  #navbar .hidden.md\:flex.items-center.gap-8 {
    gap: 20px;
  }
  #navbar .btn-primary {
    padding: 12px 20px;
    font-size: 0.75rem;
  }
}

/* ── TABLET HERO (768px - 1095px) ──────────────────────────── */
@media (min-width: 768px) and (max-width: 1095px) {

  .hero-content {
    padding: 0 24px !important;
    padding-top: 100px !important;
    max-width: 55% !important;
    margin-left: 0 !important;
  }
  .hero-content h1 {
    font-size: 2.8rem !important;
    line-height: 1.1 !important;
    margin-bottom: 6px !important;
  }
  .hero-content .font-serif.italic {
    font-size: 1.1rem !important;
    margin-bottom: 14px !important;
  }
  .hero-content p {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
    max-width: 90% !important;
  }
  .hero-content .flex.flex-wrap.gap-4 {
    gap: 10px !important;
    margin-bottom: 20px !important;
  }
  .hero-content .btn-primary,
  .hero-content .btn-outline {
    padding: 10px 20px !important;
    font-size: 0.75rem !important;
  }
  .hero-content .chip-light {
    font-size: 9px !important;
    padding: 4px 12px !important;
    margin-bottom: 12px !important;
  }

  .hero-stats {
    gap: 14px !important;
    padding-top: 16px !important;
    max-width: 100% !important;
    border-top-width: 1px !important;
  }
  .hero-stats .font-heading.text-3xl {
    font-size: 1.25rem !important;
  }
  .hero-stats .font-body.text-xs {
    font-size: 8px !important;
    letter-spacing: 0.06em !important;
  }

  .hero-panel {
    width: 50%;
  }

  .hero-nav {
    bottom: 24px !important;
    right: 24px !important;
  }
  .hero-nav-btn {
    width: 38px !important;
    height: 38px !important;
  }
  .hero-counter {
    font-size: 10px !important;
  }
}

/* ── TABLET GALLERY (768px - 1095px) ───────────────────────── */
@media (min-width: 768px) and (max-width: 1095px) {

  .gallery-browser {
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-template-rows: auto 1fr;
    min-height: 0;
  }

  .gallery-thumb-col {
    grid-row: 1 / 3;
    max-height: 560px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
    overflow-y: auto;
    overflow-x: visible;
    display: block;
    flex-direction: column;
    gap: 0;
  }
  .gallery-thumb-item {
    padding: 6px 16px;
    width: 100%;
    flex-shrink: 0;
  }
  .gallery-thumb-category {
    padding: 14px 16px 8px;
    font-size: 10px;
    width: 100%;
    flex-shrink: 0;
    background: transparent;
    text-indent: 0;
    color: rgba(255, 255, 255, 0.4);
    height: auto;
  }
  .gallery-thumb-col > .gallery-thumb-category:first-child {
    display: block;
  }
  .gallery-thumb-images img {
    max-height: 90px;
  }
  .gallery-thumb-divider {
    margin: 8px 16px 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    width: auto;
    height: auto;
    background: transparent;
    flex-shrink: 0;
  }

  .gallery-main-col {
    grid-row: 1 / 2;
    padding: 16px 16px 8px 16px;
  }
  .gallery-main-ba {
    min-height: 340px;
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .gallery-main-ba::after {
    display: block;
  }
  .gallery-main-half {
    display: block !important;
    position: relative;
  }

  .gallery-toggle-arrow {
    display: none !important;
  }
  .gallery-mobile-title {
    display: none;
  }

  .gallery-info-panel {
    grid-row: 2 / 3;
    max-height: none;
    overflow-y: visible;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .gallery-info-title {
    display: block !important;
    font-size: 1.4rem;
  }
  .gallery-info-desc {
    font-size: 14px;
    max-width: 80%;
  }

  .gallery-vis-row {
    justify-content: center;
    margin-bottom: 28px;
    padding: 0 20px;
  }
  .gallery-vis-pills {
    flex-wrap: wrap;
    justify-content: center;
  }
  .gallery-vis-pill {
    font-size: 11px;
    padding: 6px 14px;
  }
}

/* ── TOUCH DEVICES (hover: none, pointer: coarse) ──────────── */
@media (hover: none), (pointer: coarse) {
  .btn-primary:hover {
    background: var(--blue-mid);
    transform: none;
  }
  .btn-outline:hover {
    border-color: rgba(29, 79, 140, 0.35);
    color: var(--navy);
    background: transparent;
    transform: none;
  }
  .hero-nav-btn:hover {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
  }
  .service-card:hover {
    border-color: #e5e7eb;
    box-shadow: none;
    transform: none;
  }
  .review-card:hover {
    transform: none;
    box-shadow: none;
  }
  .why-card:hover {
    border-bottom-color: transparent;
    transform: none;
  }
  .gallery-vis-pill:hover {
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
  }
  .gallery-thumb-item:hover {
    background: transparent;
  }
  .footer-link:hover {
    color: rgba(255, 255, 255, 0.45);
  }
  .nav-link:hover {
    color: rgba(29, 79, 140, 0.7) !important;
  }
  .mobile-nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
  }
}