/* ==========================================================================
   SODATIDE - Advanced Pixel-Perfect Responsive Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   Global Layout & Fluid Typography Utility
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: none;
}

p, li, span, blockquote {
  overflow-wrap: break-word;
}

.btn-cta {
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Large Tablets & Laptops (max-width: 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 30px;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .about-grid {
    gap: 30px;
  }

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

  .mechanism-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .cta-highlight-grid {
    gap: 30px;
  }

  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

/* --------------------------------------------------------------------------
   Tablets (max-width: 860px)
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

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

  /* Hero Section */
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .hero-image-wrapper {
    order: -1;
  }

  .hero-image {
    max-height: 380px;
    margin: 0 auto;
  }

  .hero-content {
    align-items: center;
  }

  .hero-badges-row {
    justify-content: center;
    gap: 12px;
  }

  /* Doctor Discovery Section */
  .doctor-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 35px;
  }

  .divider-line {
    margin-left: auto;
    margin-right: auto;
  }

  .doctor-description {
    text-align: left;
  }

  .doctor-image {
    max-height: 400px;
    margin: 0 auto;
  }

  /* What is Sodatide Section */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .about-card-main {
    padding: 32px 24px;
  }

  .about-checklist {
    text-align: left;
  }

  /* Guarantee Section */
  .guarantee-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 35px;
  }

  .guarantee-seal-img {
    max-width: 260px;
    margin: 0 auto;
  }

  .guarantee-content p {
    text-align: left;
  }

  .trust-badges-row {
    justify-content: center;
  }

  /* Doctor Quote Section */
  .doctor-quote-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .doctor-portrait-img {
    max-height: 380px;
    margin: 0 auto;
  }

  /* Mechanism Cards */
  .mechanism-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
    gap: 25px;
  }

  /* Bonuses Grid */
  .bonuses-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Customer Reviews & Polaroids */
  .reviews-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
    gap: 25px;
  }

  .polaroids-desktop {
    display: none;
  }

  .polaroids-mobile {
    display: block;
    max-width: 100%;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
  }

  /* CTA Highlight Box */
  .cta-highlight-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 35px;
  }

  .cta-highlight-img {
    max-height: 320px;
    margin: 0 auto;
  }

  .cta-highlight-badge {
    align-self: center;
  }

  .cta-highlight-perks {
    max-width: 440px;
    margin: 10px auto;
    text-align: left;
  }

  .cta-highlight-btn-wrapper {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  /* Benefits Grid */
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Product Label */
  .product-label-wrapper {
    max-width: 100%;
    padding: 16px;
  }
}

/* --------------------------------------------------------------------------
   Mobile Phones (max-width: 600px)
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  html {
    font-size: 15px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  /* Hero Section */
  .hero-section {
    padding: 30px 0 45px;
  }

  .hero-title {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    line-height: 1.28;
    text-align: center;
  }

  .hero-subtitle {
    font-size: clamp(0.95rem, 3.8vw, 1.15rem);
    line-height: 1.45;
    text-align: center;
  }

  .hero-image {
    max-height: 290px;
  }

  .hero-badges-row {
    gap: 8px;
    margin-top: 5px;
  }

  .hero-badge-item {
    width: 52px;
    height: 52px;
    padding: 7px;
  }

  /* Section Headers */
  .section-header {
    margin-bottom: 30px;
  }

  .section-header h2 {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
    line-height: 1.3;
  }

  .section-header p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* Doctor Section */
  .doctor-content h2 {
    font-size: clamp(1.35rem, 5vw, 1.7rem);
    line-height: 1.3;
  }

  .doctor-description {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .doctor-image {
    max-height: 320px;
  }

  /* What is Sodatide Section */
  .about-card-main {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .about-card-badge {
    font-size: 0.75rem;
    padding: 4px 12px;
    margin-bottom: 14px;
    align-self: center;
  }

  .about-card-main h3 {
    font-size: clamp(1.25rem, 4.8vw, 1.55rem);
    line-height: 1.3;
    text-align: center;
  }

  .about-card-main p {
    font-size: 0.92rem;
    line-height: 1.6;
    text-align: left;
    margin-bottom: 14px;
  }

  .about-checklist {
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
  }

  .about-check-item {
    font-size: 0.9rem;
    gap: 10px;
    align-items: flex-start;
    text-align: left;
  }

  .about-check-icon {
    margin-top: 2px;
  }

  .how-it-works-col {
    gap: 14px;
  }

  .how-step-card {
    padding: 18px 16px;
    gap: 14px;
    border-radius: 14px;
    align-items: flex-start;
  }

  .how-step-number {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }

  .how-step-info h4 {
    font-size: 1.05rem;
    line-height: 1.3;
  }

  .how-step-info p {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  /* Guarantee Section */
  .guarantee-section {
    padding: 50px 0;
  }

  .guarantee-seal-img {
    max-width: 210px;
  }

  .guarantee-content h3 {
    font-size: 0.9rem;
  }

  .guarantee-content h2 {
    font-size: clamp(1.3rem, 5vw, 1.65rem);
  }

  .guarantee-content p {
    font-size: 0.92rem;
  }

  .trust-badges-row {
    gap: 10px;
  }

  .trust-badge-item {
    width: 48px;
    height: 48px;
  }

  /* Doctor Quote Section */
  .doctor-quote-section {
    padding: 50px 0;
  }

  .doctor-quote-card {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .doctor-quote-card blockquote {
    font-size: 1.15rem;
    line-height: 1.45;
  }

  .doctor-quote-card p {
    font-size: 0.92rem;
  }

  .doctor-portrait-img {
    max-height: 300px;
  }

  /* Mechanism Cards */
  .mechanism-section {
    padding: 50px 0;
  }

  .mechanism-card {
    border-radius: 16px;
  }

  .mechanism-img-box {
    height: 180px;
  }

  .mechanism-body {
    padding: 20px 16px;
  }

  .mechanism-body h3 {
    font-size: 1.15rem;
  }

  .mechanism-body p {
    font-size: 0.9rem;
  }

  /* Bonuses Section */
  .bonuses-section {
    padding: 55px 0 65px;
  }

  .bonuses-header h2 {
    font-size: clamp(1.4rem, 5.5vw, 1.85rem);
  }

  .bonuses-header p {
    font-size: 0.95rem;
  }

  .bonuses-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
    gap: 20px;
  }

  .bonus-card {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .bonus-img-wrapper {
    height: 155px;
    margin-bottom: 14px;
  }

  .bonus-img-wrapper img {
    max-height: 145px;
  }

  .bonus-title {
    font-size: 1.1rem;
  }

  .bonus-desc {
    font-size: 0.88rem;
  }

  /* Reviews & Polaroids */
  .reviews-section {
    padding: 50px 0;
  }

  .review-card {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .review-text {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .shipping-perk-banner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 20px 16px;
    border-radius: 16px;
  }

  .shipping-perk-icon {
    width: 48px;
    height: 48px;
  }

  .shipping-perk-text h3 {
    font-size: 1.15rem;
    line-height: 1.3;
  }

  .shipping-perk-text p {
    font-size: 0.85rem;
  }

  /* CTA Highlight Box */
  .cta-highlight-section {
    padding: 50px 0;
  }

  .cta-highlight-card {
    padding: 28px 18px;
    border-radius: 20px;
  }

  .cta-highlight-badge {
    font-size: 0.75rem;
    padding: 4px 12px;
  }

  .cta-highlight-content h2 {
    font-size: clamp(1.35rem, 5.2vw, 1.75rem);
    line-height: 1.3;
    text-align: center;
  }

  .cta-highlight-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
  }

  .cta-highlight-perks {
    max-width: 100%;
    margin: 8px 0;
  }

  .cta-perk-item {
    font-size: 0.9rem;
    gap: 10px;
    align-items: flex-start;
    text-align: left;
  }

  .cta-perk-icon {
    margin-top: 2px;
  }

  .btn-cta {
    font-size: clamp(0.95rem, 4vw, 1.15rem);
    padding: 14px 16px;
    border-radius: 12px;
    width: 100%;
  }

  .cta-highlight-subtext {
    font-size: 0.78rem;
  }

  /* Benefits Grid */
  .ingredients-section {
    padding: 50px 0;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .benefit-card {
    padding: 16px 14px;
    border-radius: 12px;
  }

  .benefit-icon-box {
    width: 44px;
    height: 44px;
  }

  .benefit-title {
    font-size: 0.95rem;
  }

  /* Product Label Section */
  .product-label-section {
    padding: 45px 0;
  }

  .product-label-wrapper {
    padding: 12px;
    border-radius: 14px;
  }

  /* FAQ Section */
  .faq-section {
    padding: 50px 0;
  }

  .faq-accordion {
    gap: 12px;
    margin-top: 25px;
  }

  .faq-item {
    border-radius: 12px;
  }

  .faq-question {
    font-size: 0.98rem;
    padding: 16px 16px;
    line-height: 1.35;
  }

  .faq-icon {
    width: 26px;
    height: 26px;
    font-size: 1rem;
    margin-left: 10px;
  }

  .faq-item.active .faq-answer {
    padding: 0 16px 18px;
  }

  .faq-answer p {
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: left;
  }

  /* References Section */
  .references-section {
    padding: 45px 0;
  }

  .references-banner h3 {
    font-size: 1.15rem;
  }

  .references-disclaimer {
    font-size: 0.75rem;
  }

  /* Footer */
  .site-footer {
    padding: 45px 0 85px; /* Extra bottom space for sticky bar */
  }

  .footer-nav-links {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-nav-links span {
    display: none;
  }

  .footer-nav-links a {
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 0.8rem;
  }

  .footer-disclaimers {
    font-size: 0.75rem;
    text-align: left;
    gap: 12px;
  }

  /* Sticky Buy Bar on Mobile */
  .sticky-buy-bar {
    padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .sticky-bar-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .sticky-bar-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
  }

  .sticky-bar-title {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
  }

  .sticky-bar-badge {
    font-size: 0.65rem;
    padding: 1px 6px;
  }

  .sticky-bar-cta {
    padding: 8px 14px;
    font-size: 0.8rem;
    width: auto;
    flex-shrink: 0;
    white-space: nowrap;
    border-radius: var(--radius-full);
  }
}

/* --------------------------------------------------------------------------
   Extra Small Mobile Phones (max-width: 380px)
   -------------------------------------------------------------------------- */
@media (max-width: 380px) {
  html {
    font-size: 14px;
  }

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

  .hero-badge-item {
    width: 46px;
    height: 46px;
    padding: 5px;
  }

  .sticky-bar-title {
    max-width: 120px;
    font-size: 0.75rem;
  }

  .sticky-bar-cta {
    padding: 7px 10px;
    font-size: 0.75rem;
  }
}
