/* ============================================================
   RD CALHAS E RUFOS — DESIGN SYSTEM
   Arquivo: assets/css/rd-theme.css

   Adaptado a partir da arquitetura original do template
   (onda-theme.css). Carregar DEPOIS de style.css e
   responsive.css. Paleta: azul-marinho profissional + cinza +
   detalhes metálicos, remetendo a construção, calhas, rufos e
   acabamento em metal.
   ============================================================ */

:root {
  /* Base (tema escuro do header/hero/rodapé) */
  --rd-bg: #0b1420;
  --rd-navy-900: #0f2136;
  --rd-navy-800: #16314f;
  --rd-navy-700: #1c3d63;
  --rd-blue: #2f6fed;
  --rd-blue-light: #6fa0ff;
  --rd-steel: #9fb2c8;
  --rd-ice: #eef2f7;
  --rd-slate: #a9b6c9;
  --rd-slate-dark: #647186;
  --rd-white: #ffffff;
  --rd-line: rgba(238, 242, 247, 0.1);

  /* Superfícies claras (maior parte do site) */
  --rd-page-bg: #f4f6f9;
  --rd-card-bg: #ffffff;
  --rd-card-border: rgba(15, 33, 54, 0.08);
  --rd-text-dark: #11202f;
  --rd-text-muted: #52606f;

  /* Cor de destaque (CTAs) */
  --rd-accent: #c7ced8;
  --rd-metal: linear-gradient(135deg, #cfd8e3, #8f9db0 55%, #cfd8e3);

  /* Tipografia (mantém as fontes já carregadas pelo template) */
  --rd-font-display: 'Poppins', sans-serif;
  --rd-font-body: 'Open Sans', sans-serif;
  --rd-font-label: 'Raleway', sans-serif;

  /* Espaçamento / raio */
  --rd-radius-sm: 8px;
  --rd-radius-md: 14px;
  --rd-radius-lg: 22px;
  --rd-section-y: 110px;
}

/* ---------- Reset pontual / utilitários ---------- */
.rd-page {
  background: var(--rd-page-bg);
  color: var(--rd-text-dark);
}

.rd-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.rd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--rd-font-label);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rd-blue-light);
}

.rd-eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--rd-blue-light);
  border-radius: 2px;
}

.rd-h2 {
  font-family: var(--rd-font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.2;
  color: var(--rd-white);
  letter-spacing: -0.5px;
}

.rd-lead {
  font-family: var(--rd-font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--rd-slate);
}

.rd-section {
  position: relative;
  padding: var(--rd-section-y) 0;
}

.rd-section--tight { padding: 70px 0; }

.rd-section-head {
  max-width: 640px;
  margin: 0 0 56px;
}

.rd-section-head.text-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.rd-section-head .rd-eyebrow { margin-bottom: 16px; }
.rd-section-head .rd-h2 { margin: 0 0 16px; }

/* ---------- Botões ---------- */
.rd-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--rd-font-label);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.2px;
  padding: 16px 32px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.rd-btn:hover { transform: translateY(-3px); text-decoration: none; }

.rd-btn-primary {
  background: linear-gradient(135deg, var(--rd-blue), var(--rd-blue-light));
  color: var(--rd-white);
  box-shadow: 0 10px 30px rgba(47, 111, 237, 0.35);
}

.rd-btn-primary:hover {
  box-shadow: 0 16px 40px rgba(47, 111, 237, 0.5);
  color: var(--rd-white);
}

.rd-btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(238, 242, 247, 0.28);
  color: var(--rd-ice);
}

.rd-btn-ghost:hover {
  border-color: var(--rd-white);
  background: rgba(255, 255, 255, 0.08);
  color: var(--rd-white);
}

.rd-btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
}

.rd-btn-whatsapp:hover {
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.5);
  color: #fff;
}

.rd-btn-lg { padding: 18px 40px; font-size: 16px; }

.rd-section--light .rd-btn-ghost {
  background: transparent;
  border-color: rgba(17, 32, 47, 0.25);
  color: var(--rd-text-dark);
}

.rd-section--light .rd-btn-ghost:hover {
  border-color: var(--rd-navy-900);
  background: rgba(17, 32, 47, 0.05);
  color: var(--rd-text-dark);
}

/* ============================================================
   HEADER
   ============================================================ */
@media (min-width: 992px) {
  body.rd-dark-header #header {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
}

body.rd-dark-header #header {
  background: rgba(11, 20, 32, 0.9);
  border-bottom: 1px solid rgba(238, 242, 247, 0.08);
}

body.rd-dark-header #header.header-scrolled {
  background: rgba(11, 20, 32, 0.98);
}

body.rd-dark-header .navbar a,
body.rd-dark-header .navbar a:focus {
  color: var(--rd-slate);
  font-family: var(--rd-font-label);
}

body.rd-dark-header .navbar a:hover,
body.rd-dark-header .navbar .active,
body.rd-dark-header .navbar .active:focus,
body.rd-dark-header .navbar li:hover > a {
  color: var(--rd-white);
}

body.rd-dark-header .mobile-nav-toggle { color: var(--rd-white); }

body.rd-dark-header .navbar-mobile ul {
  background: rgba(11, 20, 32, 0.98);
}

.rd-nav-cta {
  margin-left: 20px !important;
  padding: 10px 22px !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, var(--rd-blue), var(--rd-blue-light));
  color: #fff !important;
  font-weight: 700 !important;
}

.rd-logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--rd-font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--rd-white) !important;
  text-decoration: none;
  letter-spacing: -0.3px;
}

.rd-logo-mark__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--rd-blue), var(--rd-navy-700));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}

.rd-logo-mark__icon--img {
  background: none;
  overflow: hidden;
}

.rd-logo-mark__icon--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rd-logo-mark small {
  display: block;
  font-family: var(--rd-font-label);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rd-steel);
}

@media (max-width: 991px) {
  .navbar-mobile ul {
    top: 0; right: 0; left: 0; bottom: 0;
    padding: 90px 0 20px;
    border-radius: 0;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.rd-hero {
  position: relative;
  padding: 190px 0 120px;
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(47, 111, 237, 0.16), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 10%, rgba(159, 178, 200, 0.08), transparent 55%),
    linear-gradient(180deg, var(--rd-navy-900) 0%, #0c1526 55%, var(--rd-navy-900) 100%);
  overflow: hidden;
}

.rd-hero__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.35fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.rd-hero__grid--no-media {
  grid-template-columns: 1fr;
  max-width: 760px;
}

.rd-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(111, 160, 255, 0.08);
  border: 1px solid rgba(111, 160, 255, 0.35);
  color: var(--rd-blue-light);
  font-family: var(--rd-font-label);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 20px 8px 16px;
  border-radius: 50px;
  margin-bottom: 26px;
}

.rd-hero h1 {
  font-family: var(--rd-font-display);
  font-weight: 800;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--rd-white);
  margin-bottom: 20px;
}

.rd-hero h1 span {
  background: linear-gradient(100deg, var(--rd-blue-light), #cfd8e3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rd-hero p.rd-lead {
  font-size: 17.5px;
  margin-bottom: 36px;
  max-width: 560px;
}

.rd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 46px;
}

.rd-diffs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
  max-width: 520px;
}

.rd-diffs__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--rd-font-label);
  font-size: 14px;
  font-weight: 600;
  color: var(--rd-ice);
}

.rd-diffs__item i { color: var(--rd-blue-light); font-size: 17px; flex-shrink: 0; }

.rd-hero__media {
  position: relative;
  justify-self: end;
  width: 112%;
  max-width: 112%;
}

.rd-hero__media img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: var(--rd-radius-lg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
  object-fit: contain;
}

.rd-hero__media-badge {
  position: absolute;
  left: -18px;
  bottom: -18px;
  background: var(--rd-white);
  border-radius: var(--rd-radius-md);
  padding: 16px 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 12px;
}

.rd-hero__media-badge i { font-size: 26px; color: var(--rd-blue); }
.rd-hero__media-badge strong { display: block; font-family: var(--rd-font-display); font-size: 14px; color: var(--rd-text-dark); }
.rd-hero__media-badge span { font-family: var(--rd-font-body); font-size: 12px; color: var(--rd-text-muted); }

@media (max-width: 991px) {
  .rd-hero { padding: 150px 0 90px; }
  .rd-hero__grid { grid-template-columns: 1fr; }
  .rd-hero__media { order: -1; width: 100%; max-width: 100%; justify-self: stretch; }
  .rd-hero__media-badge { left: 12px; bottom: -14px; }
}

@media (max-width: 767px) {
  .rd-hero { padding: 96px 0 70px; }
  .rd-hero__grid { gap: 30px; }
}

@media (max-width: 767px) {
  :root { --rd-section-y: 76px; }
  .rd-diffs { grid-template-columns: 1fr; }
  .rd-hero__actions { flex-direction: column; align-items: stretch; }
  .rd-hero__actions .rd-btn { width: 100%; }
  .rd-nav-cta { display: none !important; }
}

/* ---------- Placeholder de foto (aviso para substituição) ---------- */
.rd-photo-note {
  margin-top: 10px;
  font-family: var(--rd-font-label);
  font-size: 12px;
  color: var(--rd-slate-dark);
  text-align: center;
}

/* ============================================================
   SEÇÃO CLARA
   ============================================================ */
.rd-section--light { background: var(--rd-ice); }
.rd-section--light .rd-h2 { color: var(--rd-navy-900); }
.rd-section--light .rd-lead { color: #48546a; }
.rd-section--light .rd-eyebrow { color: var(--rd-blue); }
.rd-section--light .rd-eyebrow::before { background: var(--rd-blue); }

/* ============================================================
   SOBRE
   ============================================================ */
.rd-about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.rd-about__media img {
  width: 100%;
  border-radius: var(--rd-radius-lg);
  box-shadow: 0 20px 50px rgba(15, 33, 54, 0.15);
  display: block;
}

.rd-about__grid--no-media {
  grid-template-columns: 1fr;
  max-width: 820px;
  margin: 0 auto;
}

.rd-about__facts {
  margin-top: 28px;
  background: var(--rd-card-bg);
  border: 1px solid var(--rd-card-border);
  border-radius: var(--rd-radius-md);
  padding: 22px 26px;
}

.rd-about__facts dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  margin: 0;
}

.rd-about__facts dt {
  font-family: var(--rd-font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--rd-blue);
}

.rd-about__facts dd {
  margin: 0;
  font-family: var(--rd-font-body);
  font-size: 14.5px;
  color: var(--rd-text-dark);
}

@media (max-width: 991px) {
  .rd-about__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SERVIÇOS
   ============================================================ */
.rd-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rd-service-card {
  position: relative;
  background: var(--rd-card-bg);
  border: 1px solid var(--rd-card-border);
  border-radius: var(--rd-radius-md);
  padding: 32px 26px;
  box-shadow: 0 4px 24px rgba(15, 33, 54, 0.05);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.rd-service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(47, 111, 237, 0.35);
  box-shadow: 0 18px 40px rgba(15, 33, 54, 0.1);
}

.rd-service-card__icon {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(47, 111, 237, 0.1);
  color: var(--rd-blue);
  font-size: 34px;
  line-height: 1;
  margin-bottom: 20px;
}

.rd-service-card:hover .rd-service-card__icon {
  background: rgba(47, 111, 237, 0.16);
  color: var(--rd-navy-900);
}

.rd-service-card h3 {
  font-family: var(--rd-font-display);
  font-size: 17.5px;
  font-weight: 700;
  color: var(--rd-text-dark);
  margin-bottom: 10px;
}

.rd-service-card p {
  font-family: var(--rd-font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--rd-text-muted);
  margin: 0;
}

@media (max-width: 1199px) {
  .rd-services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .rd-services-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   GALERIA
   ============================================================ */
.rd-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.rd-gallery-more {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.rd-gallery-item {
  position: relative;
  display: block;
  border-radius: var(--rd-radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 4px 20px rgba(15, 33, 54, 0.08);
}

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

.rd-gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 20, 32, 0.75) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rd-gallery-item__zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--rd-navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2;
}

.rd-gallery-item:hover img { transform: scale(1.06); }
.rd-gallery-item:hover::after { opacity: 1; }
.rd-gallery-item:hover .rd-gallery-item__zoom { opacity: 1; transform: translateY(0); }

@media (max-width: 991px) {
  .rd-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
  .rd-gallery-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SEÇÃO DE DESTAQUE (confiança)
   ============================================================ */
.rd-highlight {
  position: relative;
  overflow: hidden;
  border-radius: var(--rd-radius-lg);
  min-height: 360px;
  display: flex;
  align-items: center;
}

.rd-highlight__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.rd-highlight__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rd-highlight__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11,20,32,0.94) 35%, rgba(11,20,32,0.55) 100%);
}

.rd-highlight__content {
  position: relative;
  z-index: 1;
  padding: 60px 56px;
  max-width: 620px;
}

.rd-highlight__content h2 {
  font-family: var(--rd-font-display);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 34px);
  color: var(--rd-white);
  margin-bottom: 16px;
  letter-spacing: -0.4px;
}

.rd-highlight__content p {
  font-family: var(--rd-font-body);
  color: var(--rd-slate);
  font-size: 16px;
  margin-bottom: 28px;
}

@media (max-width: 767px) {
  .rd-highlight__content { padding: 44px 26px; }
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.rd-final-cta {
  position: relative;
  background: linear-gradient(135deg, var(--rd-navy-900), var(--rd-bg));
  border-top: 1px solid var(--rd-line);
  padding: 90px 0;
  text-align: center;
  overflow: hidden;
}

.rd-final-cta__inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }

.rd-final-cta h2 {
  font-family: var(--rd-font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 36px);
  color: var(--rd-white);
  margin-bottom: 16px;
  letter-spacing: -0.4px;
}

.rd-final-cta p {
  font-family: var(--rd-font-body);
  color: var(--rd-slate);
  font-size: 16px;
  margin-bottom: 32px;
}

/* ============================================================
   CONTATO
   ============================================================ */
.rd-contact-card {
  background: var(--rd-navy-900);
  border-radius: var(--rd-radius-md);
  padding: 34px 30px;
  height: 100%;
}

.rd-contact-card h3 {
  font-family: var(--rd-font-display);
  color: var(--rd-white);
  font-size: 19px;
  margin-bottom: 22px;
}

.rd-contact-card .rd-info-row {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.rd-contact-card .rd-info-row i {
  font-size: 20px;
  color: var(--rd-blue-light);
  margin-top: 2px;
}

.rd-contact-card .rd-info-row strong {
  display: block;
  font-family: var(--rd-font-label);
  font-size: 12.5px;
  letter-spacing: 0.4px;
  color: var(--rd-steel);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.rd-contact-card .rd-info-row span {
  font-family: var(--rd-font-body);
  font-size: 14.5px;
  color: var(--rd-ice);
  line-height: 1.5;
}

.rd-form-card {
  background: var(--rd-card-bg);
  border: 1px solid var(--rd-card-border);
  border-radius: var(--rd-radius-md);
  padding: 34px 30px;
  box-shadow: 0 4px 24px rgba(15, 33, 54, 0.05);
}

.rd-form-card .form-control {
  border-radius: 8px;
  border: 1px solid rgba(15, 33, 54, 0.15);
  padding: 12px 16px;
  font-family: var(--rd-font-body);
  font-size: 14.5px;
}

.rd-form-card .form-control:focus {
  border-color: var(--rd-blue);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
}

.rd-map {
  border-radius: var(--rd-radius-md);
  overflow: hidden;
  border: 1px solid var(--rd-card-border);
  box-shadow: 0 4px 24px rgba(15, 33, 54, 0.05);
}

.rd-map iframe {
  width: 100%;
  height: 340px;
  border: 0;
  display: block;
}

/* ============================================================
   RODAPÉ
   ============================================================ */
body.rd-dark-header #footer {
  background: var(--rd-bg);
  border-top: 1px solid var(--rd-line);
}

/* ============================================================
   WHATSAPP FLUTUANTE
   ============================================================ */
.rd-whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rd-whatsapp-float:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.6);
  color: #fff;
}

@media (max-width: 575px) {
  .rd-whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
    font-size: 25px;
  }
}

/* ============================================================
   ANIMAÇÕES DE ENTRADA (reveal)
   ============================================================ */
.rd-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.rd-reveal.rd-in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .rd-reveal { opacity: 1 !important; transform: none !important; }
}

/* Logo do header — mantém proporção, sem distorcer */
.logo img, #header .logo img {
  height: 46px !important;
  width: auto !important;
  max-width: none !important;
  object-fit: contain;
}

@media (max-width: 767px) {
  .logo img, #header .logo img { height: 40px !important; }
}

/* ============================================================
   MODAL "VER TODAS AS FOTOS"
   ============================================================ */
.rd-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.rd-gallery-modal.is-open {
  display: flex;
}

.rd-gallery-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 20, 32, 0.85);
}

.rd-gallery-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  max-height: 88vh;
  background: #fff;
  border-radius: var(--rd-radius-md, 12px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.rd-gallery-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(15, 33, 54, 0.08);
  flex-shrink: 0;
}

.rd-gallery-modal__header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.rd-gallery-modal__close {
  background: rgba(15, 33, 54, 0.06);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--rd-navy-900, #0f2136);
  transition: background 0.2s ease;
}

.rd-gallery-modal__close:hover {
  background: rgba(15, 33, 54, 0.14);
}

.rd-gallery-modal__grid {
  padding: 20px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.rd-gallery-modal__thumb {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rd-gallery-modal__thumb:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

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

@media (max-width: 767px) {
  .rd-gallery-modal__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
