/* ==================== style-domain.css (FULL - PADDING FIX APPLIED) ==================== */

/* Core */
* { box-sizing: border-box; }

:root{
  --primary-blue: #272EAA;
  --secondary-blue: #2991BE;
  --secondary-teal: #51b5b5;
  --white: #FFFFFF;
  --light-gray: rgba(59,66,84,0.72);
  --red-error: #FE0808;
}

/* ensure no default page margin & lock horizontal overflow */
html, body {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* safety: prevent horizontal scroll */
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* HERO
   Keep background image and style intact, but make it full-bleed
   so it never leaves a white strip at the right on mobile. */
.hero-section {
  background: linear-gradient(rgba(39, 46, 170, 0.86), rgba(39, 46, 170, 0.86)),
              url('https://web.satulisan.com/wp-content/uploads/2025/06/asset50.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  min-height: 100vh;
  border-radius: 0 0 50px 50px;
  display: flex;
  align-items: center;
  justify-content: center;

  /* FULL-BLEED FIX: make sure section spans viewport exactly */
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;

  /* internal padding (content inset) - safe defaults */
  padding-left: 16px;
  padding-right: 16px;

  box-sizing: border-box;
  overflow: hidden; /* hide accidental overflow from pseudo-elements/images */
}

.hero-title {
  font-family: 'Lato', sans-serif;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  margin-bottom: 1rem;
  font-size: clamp(24px, 6vw, 60px); /* Responsive font */
}

.hero-logo img {
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 50%;
  width: clamp(60px, 25vw, 120px); /* Responsive image size */
}

/* If fixed background causes issues on small devices, fallback to scroll */
@media (max-width: 1024px) {
  .hero-section { background-attachment: scroll !important; }
}

/* GRADIENT BACKGROUNDS */
.gradient-bg {
  background: linear-gradient(230deg, #2991BE 0%, #272EAA 100%);
}

.product-quality-bg {
  background: linear-gradient(230deg, #272EAA 0%, #2991BE 100%);
}

/* DASHED BORDER */
.dashed-border {
  border: 1px dashed var(--secondary-teal);
}

/* PAIN POINT CARDS */
.pain-point-card {
  background-size: cover;
  background-position: center;
  border: solid 2px var(--primary-blue);
  border-radius: 30px;
  margin: 10px;
  min-height: 280px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pain-point-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  border-radius: 30px;
}

.pain-point-text {
  position: relative;
  z-index: 1;
  background: var(--primary-blue);
  border-radius: 30px;
  padding: 20px;
  text-align: center;
  color: white;
  max-width: 90%;
  box-sizing: border-box;
}

/* TESTIMONIAL */
.testimonial-card {
  background: var(--primary-blue);
  border: 1px dashed var(--secondary-teal);
  border-radius: 15px;
  padding: 2rem 16px;
  color: white;
  box-sizing: border-box;
}

/* PRICING */
.pricing-card {
  background: white;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  padding: 2rem 16px;
  position: relative;
  box-sizing: border-box;
}
.pricing-card:hover { transform: translateY(-5px); }

/* BUTTONS */
.btn-primary {
  background: var(--primary-blue);
  color: white;
  border-radius: 30px;
  padding: 20px 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(39,46,170,0.3);
}

.btn-secondary {
  background: white;
  color: var(--primary-blue);
  border-radius: 30px;
  padding: 20px 30px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

/* ICON */
.icon-check {
  color: var(--primary-blue);
  font-size: 25px;
  margin-right: 15px;
  flex-shrink: 0;
}

/* VIDEO EMBED */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 30px;
  border: solid 3px white;
}
.video-container iframe {
  position: absolute;
  top:0; left:0;
  width:100%; height:100%;
}

/* SECTION PADDING */
.section-padding {
  padding: 64px 0;
  box-sizing: border-box;
}

.section-padding .container-custom > div > div {
  /* keep original desktop behaviour but allow override on mobile */
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
}

/* CONTAINER - safe horizontal padding */
.container-custom {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

/* COLORS / TYPO */
.text-primary-blue { color: var(--primary-blue); }
.bg-primary-blue { background-color: var(--primary-blue); }
.font-lato { font-family: 'Lato', sans-serif; }
.font-roboto { font-family: 'Roboto', sans-serif; }
.text-shadow { text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }

/* ROUNDED */
.rounded-custom { border-radius: 30px; }
.rounded-custom-lg { border-radius: 50px; }

/* RESPONSIVE OVERRIDES */
@media (max-width: 768px) {
  .hero-section {
    /* keep hero full-bleed but reduce internal padding for small screens */
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 32px;
    padding-bottom: 48px;
    background-attachment: scroll; /* safer on mobile */
  }

  .section-padding { padding: 48px 0; }

  .container-custom { padding-left: 12px; padding-right: 12px; }

  .pain-point-card { min-height: 200px; margin: 5px; }

  .pain-point-text { padding: 15px 12px; }

  .text-mobile-sm { font-size: 18px !important; }
  .text-mobile-md { font-size: 20px !important; }
  .text-mobile-lg { font-size: 30px !important; }
  .text-mobile-xl { font-size: 35px !important; }

  .grid-mobile-1 { grid-template-columns: 1fr; }
  /* make multi-column grids stack into 1 column on mobile */
  .section-padding .container-custom > div > div {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* reduce heavy padding on the inner white card (overrides inline style padding:3rem) */
  .section-padding .container-custom > div {
    padding: 16px !important;         /* override the inline 3rem */
    box-sizing: border-box;
  }

  /* reduce internal card paddings so content tidak memaksa lebar */
  .section-padding .container-custom > div > div > div,
  .section-padding .container-custom > div > div > div * {
    /* safe smaller padding for mobile */
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* specifically target the pale-blue boxes (e.g. .eff6ff inline BG) */
  .section-padding .container-custom > div > div > div[style*="background: #eff6ff"],
  .section-padding .container-custom > div > div > div[style*="background:#eff6ff"] {
    padding: 16px !important;
    border-radius: 16px;
  }

  /* ensure container spacing stays safe */
  .container-custom {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* keep images/iframes constrained */
  img, iframe, video, embed, object {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* ANIMATION (unchanged) */
.pulse-grow { animation: pulse-grow 2s infinite; }
@keyframes pulse-grow {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out;}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* HIGHLIGHT */
.highlight { background: linear-gradient(120deg,#a8e6cf 0%,#dcedc1 100%); padding: 2px 6px; border-radius: 4px; font-weight: bold; }
.yellow-highlight { background: #fef08a; padding: 8px 16px; border-radius: 15px; display: inline-block; margin: 5px 0; }

/* SAFETY OVERRIDES: common overflow culprits
   - force images/iframes to never exceed their container,
   - neutralize accidental inline wide paddings */
img, iframe, video, embed, object {
  max-width: 100%;
  height: auto;
  display: block;
}

[style*="width:100vw"], [style*="width: 100vw"] {
  /* Elements with forced 100vw are dangerous on mobile (scrollbars). force safer width */
  width: 100% !important;
  max-width: 100% !important;
}

[style*="padding-left: 20px"], [style*="padding-right: 20px"] {
  padding-left: 16px !important;
  padding-right: 16px !important;
}

/* small extra: if something still overflows, this will hide pixel-level artifacts */
@media (max-width: 420px) {
  html, body { overflow-x: hidden; }
}

/* end of file */