/* ==========================================================================
   Template 297 - Studio Legale / Layers
   Exact replica of reference Cover.jpg with Left Sidebar Navigation
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,400&family=Cinzel:wght@600;700&display=swap');

:root {
  --color-caramel: #c69c6d;
  --color-caramel-hover: #b08554;
  --color-blue-accent: #1e6091;
  --color-dark: #2d3436;
  --color-darker: #1e2229;
  --color-text: #4a4a4a;
  --color-text-muted: #6e7681;
  --color-border: #e9ecef;
  --sidebar-width: 220px;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-cinzel: 'Cinzel', serif;
}

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

html, body {
  font-family: var(--font-sans);
  background-color: #f7f9fa;
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

/* ==========================================================================
   MASTER LAYOUT: SIDEBAR (LEFT) + MAIN CONTENT (RIGHT)
   ========================================================================== */
.site-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Left Sidebar - Sticky on Desktop */
.site-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  background-color: #ffffff;
  background-image: url('images/mandala.svg');
  background-repeat: no-repeat;
  background-position: bottom -60px left -60px;
  background-size: 340px;
  border-right: 1px solid #ebebeb;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.02);
}

/* Sidebar Logo */
.sidebar-logo-box {
  padding: 40px 24px 20px;
  text-align: center;
}

.sidebar-logo-link {
  display: inline-block;
  transition: transform 0.2s ease;
}

.sidebar-logo-link:hover {
  transform: scale(1.03);
}

.sidebar-logo-img {
  max-width: 140px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Sidebar Navigation */
.sidebar-nav {
  padding: 0 32px;
  margin-top: auto;
  margin-bottom: 45px;
}

.sidebar-nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-nav-link {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #555555;
  display: block;
  padding: 4px 0;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}

.sidebar-nav-link:hover,
.sidebar-nav-link.active {
  color: var(--color-caramel);
  transform: translateX(4px);
}

.sidebar-nav-link.active::after {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--color-caramel);
}

/* Sidebar Social Circles (Bottom Left) */
.sidebar-social {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 32px 36px;
}

.social-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-circle:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.social-facebook {
  background-color: #3b5998;
}

.social-twitter {
  background-color: #1da1f2;
}

.social-pinterest {
  background-color: #cb2027;
}

/* Mobile Header (Hidden on Desktop) */
.mobile-topbar {
  display: none;
}

/* ==========================================================================
   MAIN CONTENT AREA (RIGHT)
   ========================================================================== */
.site-main {
  flex: 1;
  min-width: 0;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   HERO SLIDER SECTION (COVER.JPG TOP)
   ========================================================================== */
.hero-slider-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #222;
}

.hero-slider-container {
  position: relative;
  width: 100%;
  height: 480px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Frosted Dark Overlay Box (Centered-Right / Bottom) */
.hero-caption-card {
  position: absolute;
  right: 12%;
  bottom: 40px;
  background: rgba(35, 40, 45, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 16px 26px;
  border-radius: 3px;
  color: #ffffff;
  max-width: 440px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.hero-caption-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
  color: #ffffff;
}

.hero-caption-subtitle {
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.4;
}

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 15;
}

.slider-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: translateY(-50%) scale(1.05);
}

.slider-arrow.prev {
  left: 20px;
}

.slider-arrow.next {
  right: 20px;
}

/* ==========================================================================
   SECTION 1: LAWYER ABOUT / INTRO (COVER.JPG MIDDLE)
   ========================================================================== */
.section-lawyer-intro {
  position: relative;
  padding: 70px 50px;
  background-color: #ffffff;
  overflow: hidden;
}

/* Watermark Mandalas in corners */
.watermark-mandala-right {
  position: absolute;
  right: -90px;
  top: 8%;
  width: 420px;
  height: 420px;
  opacity: 0.11;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.watermark-mandala-left {
  position: absolute;
  left: -80px;
  bottom: -60px;
  width: 360px;
  height: 360px;
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.lawyer-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
  max-width: 1140px;
  margin: 0 auto;
}

.lawyer-photo-wrap {
  position: relative;
}

.lawyer-photo-wrap img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  display: block;
}

.lawyer-intro-text {
  padding-left: 10px;
}

.lawyer-eyebrow {
  color: var(--color-blue-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: block;
}

.lawyer-heading {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.35;
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}

.lawyer-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: 26px;
}

/* 3 Feature items with black outline icons */
.lawyer-features-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lawyer-feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #333333;
}

.lawyer-feature-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #222222;
  flex-shrink: 0;
}

/* ==========================================================================
   SECTION 2: 4 SERVICE COLUMNS (COVER.JPG BOTTOM STRIP)
   ========================================================================== */
.section-services-quad {
  padding: 65px 50px 75px;
  background-color: #fafafa;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  z-index: 2;
}

.services-quad-container {
  max-width: 1140px;
  margin: 0 auto;
}

.services-quad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.service-quad-col {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px;
}

.service-quad-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #2d3436;
  margin-bottom: 18px;
  transition: transform 0.2s ease;
}

.service-quad-col:hover .service-quad-icon {
  transform: translateY(-3px);
  color: var(--color-caramel);
}

.service-quad-title {
  font-size: 15px;
  font-weight: 700;
  color: #222222;
  margin-bottom: 10px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-quad-desc {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: 22px;
  flex: 1;
}

/* Camel / Caramel Pill Button (Exact to Cover.jpg) */
.btn-caramel-pill {
  background-color: var(--color-caramel);
  color: #ffffff;
  border-radius: 20px;
  padding: 6px 24px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(198, 156, 109, 0.25);
}

.btn-caramel-pill:hover {
  background-color: var(--color-caramel-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   FOOTER (COMPLEMENTARY SLEEK LAW FIRM STRIP)
   ========================================================================== */
.site-footer {
  background-color: var(--color-darker);
  color: #9aa0a6;
  padding: 50px 50px 30px;
  position: relative;
  z-index: 2;
}

.footer-container {
  max-width: 1140px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background-color: var(--color-caramel);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #8c959f;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #6e7681;
}

.btn-footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #25d366;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 10px;
}

/* ==========================================================================
   INTERNAL PAGES GENERAL STYLING
   ========================================================================== */
.internal-page-header {
  background: #fbfbfb;
  border-bottom: 1px solid #ebebeb;
  padding: 45px 50px;
  position: relative;
}

.internal-page-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.internal-page-header p {
  color: var(--color-text-muted);
  font-size: 14.5px;
}

.internal-content-wrap {
  padding: 50px;
  max-width: 1140px;
}

/* ==========================================================================
   NEW SECTION: STATS & TRACK RECORD STRIP
   ========================================================================== */
.section-stats-strip {
  background-color: var(--color-darker);
  color: #ffffff;
  padding: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
}

.stats-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1140px;
  margin: 0 auto;
  text-align: center;
}

.stat-strip-item {
  padding: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-strip-item:last-child {
  border-right: none;
}

.stat-strip-val {
  font-size: 38px;
  font-weight: 700;
  color: var(--color-caramel);
  font-family: var(--font-serif);
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-strip-lbl {
  font-size: 12.5px;
  color: #a4b0be;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}

/* ==========================================================================
   NEW SECTION: METHOD OF WORK & FIRM SEAT
   ========================================================================== */
.section-method-firm {
  padding: 80px 50px;
  background-color: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  z-index: 2;
}

.method-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 55px;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
}

.method-img-box {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.09);
  height: 440px;
}

.method-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.method-badge-floating {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(30, 34, 41, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 3px solid var(--color-caramel);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.method-step-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 26px;
}

.method-step-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.method-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #fbf7f2;
  color: var(--color-caramel);
  border: 1px solid var(--color-caramel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  font-family: var(--font-serif);
  flex-shrink: 0;
  margin-top: 2px;
}

.method-step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.method-step-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--color-text-muted);
}

/* ==========================================================================
   NEW SECTION: TEAM PARTNERS SHOWCASE
   ========================================================================== */
.section-team-grid {
  padding: 80px 50px;
  background-color: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  z-index: 2;
}

.team-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.team-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1140px;
  margin: 0 auto;
}

.team-card {
  background: #ffffff;
  border: 1px solid #ebebeb;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.team-card-img-wrap {
  height: 310px;
  overflow: hidden;
  position: relative;
}

.team-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.team-card:hover .team-card-img-wrap img {
  transform: scale(1.04);
}

.team-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.team-card-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.team-card-role {
  font-size: 12px;
  color: var(--color-caramel);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.team-card-bio {
  font-size: 13px;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  flex: 1;
}

/* ==========================================================================
   NEW SECTION: TESTIMONIALS & CASE STUDIES
   ========================================================================== */
.section-testimonials {
  padding: 80px 50px;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #f0f0f0;
  z-index: 2;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.testimonial-card {
  background: #faf8f5;
  border: 1px solid #ebd9c8;
  border-radius: 4px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(198, 156, 109, 0.08);
}

.testimonial-quote {
  font-size: 14.5px;
  line-height: 1.8;
  color: #4a4a4a;
  font-style: italic;
  margin-bottom: 24px;
  position: relative;
}

.testimonial-quote::before {
  content: '“';
  font-family: var(--font-serif);
  font-size: 48px;
  color: var(--color-caramel);
  line-height: 1;
  display: block;
  margin-bottom: -10px;
  opacity: 0.7;
}

.testimonial-client {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid rgba(198, 156, 109, 0.25);
  padding-top: 16px;
}

.testimonial-client-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-caramel);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.testimonial-client-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-dark);
}

.testimonial-client-badge {
  font-size: 11.5px;
  color: var(--color-caramel);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   NEW SECTION: CALL TO ACTION BANNER
   ========================================================================== */
.section-cta-banner {
  padding: 70px 50px;
  background: linear-gradient(135deg, #1e2229 0%, #2b313a 100%);
  color: #ffffff;
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-content-box {
  max-width: 760px;
  margin: 0 auto;
}

.cta-content-box h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #ffffff;
}

.cta-content-box p {
  font-size: 15px;
  color: #a4b0be;
  line-height: 1.7;
  margin-bottom: 28px;
}

.cta-actions-wrap {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   RESPONSIVE (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 992px) {
  .site-wrapper {
    flex-direction: column;
  }

  .site-sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 250px;
    height: 100vh;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  }

  .site-sidebar.open {
    left: 0;
  }

  .mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    padding: 12px 20px;
    border-bottom: 1px solid #ebebeb;
    position: sticky;
    top: 0;
    z-index: 999;
  }

  .mobile-logo-img {
    height: 48px;
    width: auto;
  }

  .mobile-toggle-btn {
    background: transparent;
    border: none;
    font-size: 22px;
    color: var(--color-dark);
    cursor: pointer;
    padding: 8px;
  }

  .mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 998;
  }

  .mobile-backdrop.open {
    display: block;
  }

  .hero-slider-container {
    height: 380px;
  }

  .hero-caption-card {
    right: 20px;
    left: 20px;
    bottom: 25px;
    max-width: none;
  }

  .section-lawyer-intro,
  .section-services-quad,
  .section-stats-strip,
  .section-method-firm,
  .section-team-grid,
  .section-testimonials,
  .section-cta-banner,
  .internal-page-header,
  .internal-content-wrap,
  .site-footer {
    padding: 45px 24px;
  }

  .lawyer-grid,
  .method-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .stats-strip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .stat-strip-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .services-quad-grid,
  .team-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero-slider-container {
    height: 300px;
  }

  .stats-strip-grid,
  .services-quad-grid,
  .team-cards-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .cta-actions-wrap a {
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}


/* Responsive Layout Grid Utilities (Auto-migrated from inline styles) */
.grid-2col-responsive {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.grid-split-responsive {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.grid-split-rev-responsive {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}
.grid-3col-responsive {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.grid-4col-responsive {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .grid-4col-responsive {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3col-responsive {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-split-responsive,
  .grid-split-rev-responsive {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .grid-2col-responsive,
  .grid-3col-responsive,
  .grid-4col-responsive,
  .grid-split-responsive,
  .grid-split-rev-responsive {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile Safeguard Rules */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}


/* Comprehensive Mobile Polish (360px - 768px) */
@media (max-width: 768px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  button, .btn, .nav-link, a.btn {
    min-height: 42px;
  }
  
  h1, .hero-title, .page-hero-title {
    font-size: clamp(1.6rem, 5vw, 2.4rem) !important;
    line-height: 1.25 !important;
  }
  h2, .section-title, .shelf-title {
    font-size: clamp(1.3rem, 4vw, 1.8rem) !important;
    line-height: 1.3 !important;
  }
  
  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .grid-2col-responsive,
  .grid-3col-responsive,
  .grid-4col-responsive,
  .grid-split-responsive,
  .grid-split-rev-responsive {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px !important;
    width: 100% !important;
    box-sizing: border-box;
  }
}
