/* True Fresh Bali Responsive — versi 7.19 (perbaikan tata letak kartu menu)
   Scope: header, topbar, navigasi, card konten, dan Pilihan Menu.
   Tidak memengaruhi footer Footerly Dev maupun formulir pemesanan.
*/

/* Tampilkan penanda halaman aktif pada navigasi desktop. */
.site-header .tf-original-desktop-nav a.tf-menu-active,
.site-header .tf-original-desktop-nav .current-menu-item > a,
.site-header .tf-original-desktop-nav .current_page_item > a,
.site-header .tf-original-desktop-nav a[aria-current="page"] {
  background: #d81b60 !important;
  color: #fff !important;
  border-radius: 9px;
  padding: 8px 12px !important;
  text-shadow: none !important;
}

/* Di desktop, topbar tetap memakai layout lama. */
#tf-topbar .tf-topbar-toggle { display: none !important; }
#tf-topbar .tf-topbar-details { display: contents; }
.site-header .tf-mobile-nav-toggle,
.site-header .tf-mobile-nav { display: none !important; }

@media (max-width: 1024px) {
  /* TOP MENU: baris atas hanya tombol; detail kontak ditampilkan saat dibuka. */
  body #tf-topbar {
    height: 44px !important;
    padding: 0 16px !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: visible !important;
  }
  body #tf-topbar.tf-topbar-ready .tf-topbar-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 40px;
    padding: 4px 14px;
    background: transparent;
    color: #fff;
    border: 0;
    font-size: 14px;
    letter-spacing: .04em;
    cursor: pointer;
  }
  #tf-topbar .tf-topbar-symbol { font-size: 24px; line-height: 1; }
  body #tf-topbar.tf-topbar-ready .tf-topbar-details {
    display: none !important;
    position: absolute;
    z-index: 1002;
    top: 100%;
    left: 0;
    right: 0;
    padding: 14px 18px 18px;
    background: #202020;
    color: #fff;
    border-top: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 9px 22px rgba(0,0,0,.24);
    text-align: center;
  }
  body #tf-topbar.tf-topbar-ready.tf-topbar-open .tf-topbar-details {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  body #tf-topbar.tf-topbar-ready .tf-topbar-details > div {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center !important;
    gap: 10px 14px;
    margin: 0;
  }
  body #tf-topbar.tf-topbar-ready .tf-topbar-details a {
    margin-left: 0 !important;
    overflow-wrap: anywhere;
  }

  /* Logo kiri + tombol MENU kanan, tepat di bawah TOP MENU. */
  body .site-header.tf-responsive-ready {
    top: 44px !important;
    min-height: 76px;
    padding: 10px 5% !important;
    box-sizing: border-box;
    background: rgba(26, 26, 26, .93) !important;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  body .site-header.tf-responsive-ready.header-scrolled {
    top: 0 !important;
    background: #1a1a1a !important;
  }
  body.admin-bar .site-header.tf-responsive-ready { top: 76px !important; }
  body.admin-bar .site-header.tf-responsive-ready.header-scrolled { top: 32px !important; }
  body .site-header.tf-responsive-ready .site-branding { margin-right: auto !important; }
  body .site-header.tf-responsive-ready .site-branding img {
    max-height: 56px !important;
    width: auto;
    object-fit: contain;
  }
  body .site-header.tf-responsive-ready .tf-original-desktop-nav { display: none !important; }
  body .site-header.tf-responsive-ready .tf-mobile-nav-toggle {
    display: inline-flex !important;
    margin-left: auto;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    padding: 8px 10px;
    min-height: 44px;
    border: 0;
    background: transparent;
    color: #fff;
    font: 600 16px/1.2 Montserrat, sans-serif;
    cursor: pointer;
    white-space: nowrap;
  }
  .site-header .tf-mobile-nav-symbol { font-size: 31px; line-height: 1; }
  body .site-header.tf-responsive-ready .tf-mobile-nav {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: min(75vh, 600px);
    overflow-y: auto;
    z-index: 2000;
    padding: 12px 5% 18px;
    box-sizing: border-box;
    background: #1a1a1a;
    box-shadow: 0 12px 24px rgba(0,0,0,.25);
  }
  body .site-header.tf-responsive-ready.tf-mobile-nav-open .tf-mobile-nav {
    display: block !important;
  }
  body .site-header.tf-responsive-ready .tf-mobile-nav ul {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  body .site-header.tf-responsive-ready .tf-mobile-nav li { margin: 0; padding: 0; }
  body .site-header.tf-responsive-ready .tf-mobile-nav a {
    display: block;
    border-radius: 10px;
    padding: 13px 16px !important;
    color: #fff !important;
    background: transparent;
    text-decoration: none !important;
    text-shadow: none !important;
    font-size: 15px;
    line-height: 1.4;
  }
  body .site-header.tf-responsive-ready .tf-mobile-nav a.tf-menu-active,
  body .site-header.tf-responsive-ready .tf-mobile-nav a[aria-current="page"],
  body .site-header.tf-responsive-ready .tf-mobile-nav a:hover,
  body .site-header.tf-responsive-ready .tf-mobile-nav a:focus-visible {
    background: #d81b60 !important;
    color: #fff !important;
    outline-offset: 3px;
  }

  /* Jarak antar-kolom yang nyaman di tablet dan HP, hanya untuk konten. */
  body .entry-content .wp-block-columns { gap: 20px !important; }
  body .entry-content img { max-width: 100%; }
  body .entry-content .judul-mengapa {
    font-size: clamp(25px, 5vw, 32px) !important;
    line-height: 1.25;
    padding: 0 16px;
    margin: 32px 0 26px !important;
  }

  /* Kartu responsif: tambah class tf-mobile-card di pengaturan Advanced block editor
     untuk blok Group/Column yang ingin dijadikan kotak. */
  body .entry-content .tf-mobile-card,
  body .entry-content .kotak-layanan {
    background: #fff !important;
    border-radius: 18px !important;
    padding: 22px 18px !important;
    box-shadow: 0 6px 20px rgba(0,0,0,.07);
    box-sizing: border-box;
    text-align: center !important;
    overflow-wrap: anywhere;
    height: auto !important;
  }

  /* PILIHAN MENU: sembunyikan gambar besar di kolom kiri. */
  body .tf-menu-section.tf-menu-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 720px !important;
    gap: 0 !important;
    margin: 0 auto 36px !important;
    padding: 0 16px !important;
    box-sizing: border-box;
  }
  body .tf-menu-section.tf-menu-section > .wp-block-column:first-child {
    display: none !important;
  }
  body .tf-menu-section.tf-menu-section > .wp-block-column:last-child {
    display: flex !important;
    flex: 1 1 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  body .tf-menu-section.tf-menu-section > .wp-block-column:last-child > h2,
  body .tf-menu-section.tf-menu-section > .wp-block-column:last-child > h3 {
    text-align: center !important;
    font-size: clamp(25px, 5vw, 32px) !important;
    line-height: 1.25;
    margin: 12px 0 26px !important;
  }
  body .tf-menu-section.tf-menu-section > .wp-block-column:last-child > .wp-block-columns {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px !important;
    margin: 0 0 18px !important;
    box-sizing: border-box;
    background: #fff !important;
    border-radius: 20px !important;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
  }
  body .tf-menu-section.tf-menu-section > .wp-block-column:last-child > .wp-block-columns > .wp-block-column {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body .tf-menu-section.tf-menu-section > .wp-block-column:last-child > .wp-block-columns > .wp-block-column:first-child {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  body .tf-menu-section.tf-menu-section .wp-block-columns figure,
  body .tf-menu-section.tf-menu-section .wp-block-columns img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 260px !important;
    object-fit: cover !important;
    border-radius: 14px !important;
    margin: 0 !important;
  }
  body .tf-menu-section.tf-menu-section > .wp-block-column:last-child > .wp-block-columns > .wp-block-column:last-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  body .tf-menu-section.tf-menu-section .wp-block-columns h4 {
    font-size: 20px !important;
    line-height: 1.3;
    text-align: center !important;
    margin: 6px 0 8px !important;
  }
  body .tf-menu-section.tf-menu-section .wp-block-columns p {
    text-align: center !important;
    font-size: 14px !important;
    line-height: 1.6;
    margin: 0 0 16px !important;
  }
  body .tf-menu-section.tf-menu-section .wp-block-columns .wp-block-buttons {
    display: flex !important;
    justify-content: center !important;
    width: 100%;
    margin: auto 0 0 !important;
  }

  /* Slider Testimoni: sisakan ruang tombol panah pada HP. */
  body .tf-testimoni-container { padding: 0 44px !important; }
  body .tf-testimoni-container .tf-nav-btn {
    width: 38px !important;
    height: 38px !important;
    font-size: 19px !important;
  }
}

@media (max-width: 782px) {
  body.admin-bar #tf-topbar.tf-topbar-ready { top: 46px !important; }
  body.admin-bar .site-header.tf-responsive-ready { top: 90px !important; }
  body.admin-bar .site-header.tf-responsive-ready.header-scrolled { top: 46px !important; }
}

@media (max-width: 600px) {
  body .tf-menu-section.tf-menu-section > .wp-block-column:last-child > .wp-block-columns {
    padding: 16px !important;
    border-radius: 18px !important;
  }
  body .entry-content .tf-mobile-card,
  body .entry-content .kotak-layanan {
    margin: 0 0 16px !important;
    border-radius: 18px !important;
  }
  body.home .entry-content .wp-block-cover {
    min-height: 85svh !important;
    padding: 155px 18px 70px !important;
    box-sizing: border-box;
  }
  body.home .entry-content .wp-block-cover p:not(.has-large-font-size):not(.has-x-large-font-size):not(.has-huge-font-size) {
    font-size: 16px !important;
    line-height: 1.55 !important;
  }
  body .site-header.tf-responsive-ready .site-branding img { max-height: 50px !important; }
}


/* ================================================================
   TRUE FRESH BALI 7.19 — PERBAIKAN KHUSUS KARTU PILIHAN MENU
   Selector tanpa prasyarat .entry-content (tidak selalu ada pada template).
   Pengulangan class .tf-menu-section menaikkan specificity di atas
   CSS desktop yang dicetak lewat wp_footer.
   Aturan ini mengalahkan lebar 150px pada CSS desktop di file PHP.
   Tidak menyentuh header, testimoni, form order, atau footer.
   ================================================================ */
@media screen and (max-width: 1024px) {
  /* Setiap baris menu adalah satu kartu tersendiri. */
  html body .tf-menu-section.tf-menu-section > .wp-block-column:last-child .wp-block-columns {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 20px !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
  }

  /* Paksa dua kolom asli menjadi dua baris selebar kartu. */
  html body .tf-menu-section.tf-menu-section > .wp-block-column:last-child .wp-block-columns > .wp-block-column,
  html body .tf-menu-section.tf-menu-section > .wp-block-column:last-child .wp-block-columns > .wp-block-column:first-child,
  html body .tf-menu-section.tf-menu-section > .wp-block-column:last-child .wp-block-columns > .wp-block-column:last-child {
    flex: 0 0 auto !important;
    flex-basis: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  /* Gambar makanan menjadi bagian pertama kartu. */
  html body .tf-menu-section.tf-menu-section > .wp-block-column:last-child .wp-block-columns > .wp-block-column:first-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  html body .tf-menu-section.tf-menu-section > .wp-block-column:last-child .wp-block-columns > .wp-block-column:first-child figure {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    flex: 0 0 auto !important;
  }
  html body .tf-menu-section.tf-menu-section > .wp-block-column:last-child .wp-block-columns > .wp-block-column:first-child img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: clamp(150px, 45vw, 260px) !important;
    min-height: 0 !important;
    max-height: 260px !important;
    object-fit: cover !important;
    border-radius: 14px !important;
    margin: 0 auto !important;
    flex: 0 0 auto !important;
  }

  /* Kolom informasi: Judul > Deskripsi > Tombol. */
  html body .tf-menu-section.tf-menu-section > .wp-block-column:last-child .wp-block-columns > .wp-block-column:last-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    gap: 6px !important;
  }
  html body .tf-menu-section.tf-menu-section > .wp-block-column:last-child .wp-block-columns h3,
  html body .tf-menu-section.tf-menu-section > .wp-block-column:last-child .wp-block-columns h4,
  html body .tf-menu-section.tf-menu-section > .wp-block-column:last-child .wp-block-columns p {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  html body .tf-menu-section.tf-menu-section > .wp-block-column:last-child .wp-block-columns h4 {
    font-size: 20px !important;
    line-height: 1.35 !important;
    margin-top: 4px !important;
    margin-bottom: 6px !important;
  }
  html body .tf-menu-section.tf-menu-section > .wp-block-column:last-child .wp-block-columns p {
    font-size: 14px !important;
    line-height: 1.65 !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
  }
  html body .tf-menu-section.tf-menu-section > .wp-block-column:last-child .wp-block-columns .wp-block-buttons {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 4px auto 0 !important;
  }
  html body .tf-menu-section.tf-menu-section > .wp-block-column:last-child .wp-block-columns .wp-block-button {
    margin: 0 auto !important;
  }
}

@media screen and (max-width: 600px) {
  html body .tf-menu-section.tf-menu-section > .wp-block-column:last-child .wp-block-columns {
    padding: 16px !important;
    border-radius: 18px !important;
  }
}


/* ======================================
   ABOUT US - CERITA KAMI
   ====================================== */

.wp-block-columns.tf-about-story {
    width: calc(100% - 40px) !important;
    max-width: 1150px !important;
    margin: 55px auto 70px !important;
    padding: 30px !important;
    background: #f8f8f6;
    border-radius: 22px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.06);
    display: flex !important;
    align-items: center !important;
    gap: 40px !important;
    box-sizing: border-box;
}

/* Kolom gambar */
.tf-about-story > .wp-block-column:first-child {
    flex: 0 0 42% !important;
    max-width: 42% !important;
    min-width: 0 !important;
}

.tf-about-story figure {
    margin: 0 !important;
}

.tf-about-story .wp-block-column:first-child img {
    display: block !important;
    width: 100% !important;
    height: 420px !important;
    max-width: 100% !important;
    object-fit: cover !important;
    border-radius: 16px !important;
}

/* Kolom cerita */
.tf-about-story > .wp-block-column:last-child {
    flex: 1 1 0 !important;
    min-width: 0 !important;
}

.tf-about-story h2 {
    font-size: 32px !important;
    margin: 0 0 20px !important;
    line-height: 1.3;
}

.tf-about-story p {
    font-size: 15px !important;
    line-height: 1.85 !important;
    margin-bottom: 18px !important;
}

/* TOMBOL */
.tf-about-story .wp-block-button__link {
    background: #d81b60 !important;
    color: #ffffff !important;
    border-radius: 30px !important;
    padding: 12px 26px !important;
}

/* TABLET DAN HP */
@media (max-width: 900px) {
    .wp-block-columns.tf-about-story {
        width: calc(100% - 28px) !important;
        flex-direction: column !important;
        padding: 20px !important;
        margin: 30px auto 50px !important;
        gap: 24px !important;
    }

    .tf-about-story > .wp-block-column {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    .tf-about-story .wp-block-column:first-child img {
        height: 280px !important;
        object-fit: cover !important;
    }

    .tf-about-story h2 {
        font-size: 26px !important;
        text-align: center !important;
    }

    .tf-about-story p {
        font-size: 14px !important;
        text-align: left;
    }

    .tf-about-story .wp-block-buttons {
        justify-content: center !important;
    }
}


/* =========================================
   TRUE FRESH - ABOUT US
   PERBAIKAN UKURAN GAMBAR HP & TABLET
   ========================================= */

@media (max-width: 900px) {

    /* Kolom gambar harus lebar penuh */
    .wp-block-columns.tf-about-story
    > .wp-block-column:first-child {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
        align-self: stretch !important;
        padding: 0 !important;
    }

    /* Hilangkan batasan ukuran dari Gutenberg */
    .wp-block-columns.tf-about-story
    > .wp-block-column:first-child figure {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    /* Gambar tampil besar mengikuti kotak */
    .wp-block-columns.tf-about-story
    > .wp-block-column:first-child img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 300px !important;
        object-fit: cover !important;
        border-radius: 16px !important;
        margin: 0 auto !important;
    }

}

/* =========================================
   ABOUT US - MENGAPA MEMILIH TRUE FRESH
   ========================================= */

.wp-block-group.tf-about-why {
    width: calc(100% - 40px) !important;
    max-width: 1150px !important;
    margin: 0 auto 70px !important;
    padding: 10px 0 !important;
    box-sizing: border-box;
}

.tf-about-why > h2,
.tf-about-why .wp-block-heading:first-child {
    text-align: center !important;
    font-size: 38px !important;
    margin-bottom: 12px !important;
    line-height: 1.3;
}

.tf-about-why > p {
    text-align: center !important;
    max-width: 760px !important;
    margin: 0 auto 34px !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #666 !important;
}

.tf-about-why .wp-block-columns {
    gap: 22px !important;
    margin-top: 20px !important;
}

.tf-about-why .wp-block-column {
    background: #f8f8f6 !important;
    border-radius: 20px !important;
    padding: 28px 22px !important;
    box-shadow: 0 6px 24px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    text-align: center !important;
}

.tf-about-why .wp-block-column h3 {
    font-size: 23px !important;
    margin-bottom: 14px !important;
    line-height: 1.4 !important;
}

.tf-about-why .wp-block-column p {
    font-size: 15px !important;
    line-height: 1.8 !important;
    color: #555 !important;
    margin-bottom: 0 !important;
}

@media (max-width: 1024px) {
    .tf-about-why .wp-block-columns {
        flex-wrap: wrap !important;
    }

    .tf-about-why .wp-block-column {
        flex-basis: calc(50% - 11px) !important;
    }
}

@media (max-width: 768px) {
    .wp-block-group.tf-about-why {
        width: calc(100% - 28px) !important;
        margin: 0 auto 50px !important;
    }

    .tf-about-why > h2,
    .tf-about-why .wp-block-heading:first-child {
        font-size: 30px !important;
    }

    .tf-about-why > p {
        font-size: 14px !important;
        margin-bottom: 26px !important;
    }

    .tf-about-why .wp-block-column {
        flex-basis: 100% !important;
        padding: 22px 18px !important;
    }

    .tf-about-why .wp-block-column h3 {
        font-size: 21px !important;
    }

    .tf-about-why .wp-block-column p {
        font-size: 14px !important;
    }
}


/* =====================================
   ABOUT US - GALERI DOKUMENTASI
   ===================================== */

.wp-block-gallery.tf-about-gallery {
    width: calc(100% - 32px) !important;
    max-width: 1200px !important;
    margin: 35px auto 65px !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 20px !important;
    box-sizing: border-box !important;
}

/* Desktop: selalu 3 foto per baris */
.wp-block-gallery.tf-about-gallery
> figure.wp-block-image:not(#individual-image) {
    flex: 0 0 calc((100% - 40px) / 3) !important;
    width: calc((100% - 40px) / 3) !important;
    max-width: calc((100% - 40px) / 3) !important;
    flex-grow: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
}

/* Ukuran gambar konsisten */
.wp-block-gallery.tf-about-gallery
> figure.wp-block-image img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 5 !important;
    object-fit: cover !important;
    border-radius: 16px !important;
}

/* Tablet: 2 foto per baris */
@media (max-width: 900px) {
    .wp-block-gallery.tf-about-gallery
    > figure.wp-block-image:not(#individual-image) {
        flex-basis: calc((100% - 20px) / 2) !important;
        width: calc((100% - 20px) / 2) !important;
        max-width: calc((100% - 20px) / 2) !important;
    }
}

/* HP: 1 foto per baris */
@media (max-width: 600px) {
    .wp-block-gallery.tf-about-gallery {
        gap: 16px !important;
    }

    .wp-block-gallery.tf-about-gallery
    > figure.wp-block-image:not(#individual-image) {
        flex-basis: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}


/* =======================================
   TRUE FRESH - VIDEO ABOUT US
   ======================================= */

figure.wp-block-video.tf-about-video {
    width: calc(100% - 32px) !important;
    max-width: 420px !important;
    margin: 25px auto 65px !important;
    padding: 0 !important;
    display: block !important;
    box-sizing: border-box !important;
}

figure.wp-block-video.tf-about-video video {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Tampilan HP */
@media (max-width: 600px) {
    figure.wp-block-video.tf-about-video {
        max-width: 330px !important;
        margin: 20px auto 50px !important;
    }
}


/* ========================================
   TRUE FRESH BALI - ABOUT US CTA
   ======================================== */

.wp-block-group.tf-about-cta {
    width: calc(100% - 40px) !important;
    max-width: 1100px !important;
    margin: 60px auto 75px !important;
    padding: 50px 35px !important;
    background: #f8f8f6 !important;
    border-radius: 24px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    box-sizing: border-box !important;
    text-align: center !important;
}

/* Seluruh teks rata tengah */
.tf-about-cta h2,
.tf-about-cta h3,
.tf-about-cta p {
    text-align: center !important;
}

/* Teks kecil bagian atas */
.tf-about-cta > p:first-of-type {
    color: #d81b60 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 14px !important;
}

/* Judul CTA */
.tf-about-cta h2,
.tf-about-cta h3 {
    font-size: 34px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    margin: 0 auto 20px !important;
    color: #252525 !important;
}

/* Deskripsi CTA */
.tf-about-cta p {
    max-width: 750px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    line-height: 1.8 !important;
}

/* Posisi tombol */
.tf-about-cta .wp-block-buttons {
    display: flex !important;
    justify-content: center !important;
    margin-top: 28px !important;
}

/* Tombol pink khas True Fresh */
.tf-about-cta .wp-block-button__link {
    display: inline-block !important;
    background: #d81b60 !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    padding: 14px 32px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: background 0.3s ease,
                transform 0.3s ease;
}

/* Efek hover */
.tf-about-cta .wp-block-button__link:hover {
    background: #b71550 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* ========================================
   RESPONSIVE TABLET & HP
   ======================================== */

@media (max-width: 768px) {

    .wp-block-group.tf-about-cta {
        width: calc(100% - 28px) !important;
        padding: 32px 22px !important;
        margin: 40px auto 55px !important;
        border-radius: 20px !important;
    }

    .tf-about-cta h2,
    .tf-about-cta h3 {
        font-size: 25px !important;
        line-height: 1.4 !important;
    }

    .tf-about-cta p {
        font-size: 14px !important;
        line-height: 1.8 !important;
    }

    .tf-about-cta > p:first-of-type {
        font-size: 11px !important;
        letter-spacing: 1.5px;
    }

    .tf-about-cta .wp-block-button__link {
        font-size: 14px !important;
        padding: 13px 26px !important;
    }
}


/* =========================================
   TRUE FRESH - ABOUT US VIDEO HEADING
   RESPONSIVE HP & TABLET
   ========================================= */

/* Tablet */
@media (min-width: 601px) and (max-width: 900px) {
    body .tf-about-video-title {
        font-size: 28px !important;
        line-height: 1.4 !important;
        text-align: center !important;
        width: calc(100% - 48px) !important;
        max-width: 650px !important;
        margin: 35px auto 24px !important;
    }
}

/* HP */
@media (max-width: 600px) {
    body .tf-about-video-title {
        font-size: 24px !important;
        font-weight: 600 !important;
        line-height: 1.4 !important;
        text-align: center !important;

        width: calc(100% - 40px) !important;
        max-width: 340px !important;

        margin: 35px auto 22px !important;
        padding: 0 !important;

        box-sizing: border-box !important;
        overflow-wrap: break-word;
        text-wrap: balance;
    }
}


/* ==========================================
   TRUE FRESH BALI - CONTACT US FINAL
   ========================================== */

/* Container utama */
.tf-contact-info {
    width: calc(100% - 40px) !important;
    max-width: 1100px !important;
    margin: 60px auto 75px !important;
    padding: 0 !important;
    box-sizing: border-box;
}

/* Judul dan deskripsi section */
.tf-contact-info > h2,
.tf-contact-info > .wp-block-heading {
    text-align: center !important;
    font-size: 32px !important;
    font-weight: 600 !important;
    margin-bottom: 16px !important;
}

.tf-contact-info > p {
    max-width: 760px;
    text-align: center !important;
    line-height: 1.8 !important;
    margin: 0 auto 30px !important;
}

/* Susunan kolom */
.tf-contact-info .wp-block-columns {
    gap: 24px !important;
    margin-top: 0 !important;
    margin-bottom: 24px !important;
    align-items: stretch !important;
}

.tf-contact-info .wp-block-column {
    min-width: 0;
    display: flex !important;
}

/* Kartu kontak */
.tf-contact-info .tf-contact-card {
    width: 100%;
    min-height: 235px;
    background: #faf9f8 !important;
    border: 1px solid #f0eceb;
    border-radius: 20px !important;

    padding: 30px 24px !important;

    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;

    text-align: center !important;
    box-sizing: border-box;

    box-shadow: 0 8px 25px rgba(0,0,0,0.05);

    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

/* Hover kartu */
@media (hover: hover) {
    .tf-contact-info .tf-contact-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.09);
    }
}

/* Gambar ikon */
.tf-contact-info .tf-contact-card .wp-block-image {
    margin: 0 0 8px !important;
    text-align: center !important;
}

.tf-contact-info .tf-contact-card img {
    display: block !important;
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
}

/* Judul kartu */
.tf-contact-info .tf-contact-card h3,
.tf-contact-info .tf-contact-card h4 {
    font-size: 21px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #252525 !important;
    margin: 0 !important;
    text-align: center !important;
}

/* Informasi kontak */
.tf-contact-info .tf-contact-card p {
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #555 !important;
    margin: 0 !important;
    text-align: center !important;
    overflow-wrap: anywhere;
}

/* Tautan kontak */
.tf-contact-info .tf-contact-card a {
    color: #d81b60 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.tf-contact-info .tf-contact-card a:hover {
    color: #ae124b !important;
    text-decoration: underline !important;
}

/* ==========================================
   TABLET
   ========================================== */

@media (min-width: 782px) and (max-width: 1024px) {
    .tf-contact-info .tf-contact-card {
        min-height: 220px;
        padding: 24px 18px !important;
    }

    .tf-contact-info .tf-contact-card img {
        width: 72px !important;
        height: 72px !important;
        max-width: 72px !important;
    }
}

/* ==========================================
   HP
   ========================================== */

@media (max-width: 781px) {
    .tf-contact-info {
        width: calc(100% - 28px) !important;
        margin: 40px auto 55px !important;
    }

    .tf-contact-info > h2,
    .tf-contact-info > .wp-block-heading {
        font-size: 26px !important;
    }

    .tf-contact-info > p {
        font-size: 14px !important;
        margin-bottom: 25px !important;
    }

    .tf-contact-info .wp-block-columns {
        flex-direction: column !important;
        gap: 18px !important;
        margin-bottom: 18px !important;
    }

    .tf-contact-info .wp-block-column {
        flex-basis: 100% !important;
        width: 100% !important;
    }

    .tf-contact-info .tf-contact-card {
        min-height: 190px;
        padding: 25px 18px !important;
        border-radius: 18px !important;
    }

    .tf-contact-info .tf-contact-card img {
        width: 64px !important;
        height: 64px !important;
        max-width: 64px !important;
    }

    .tf-contact-info .tf-contact-card h3,
    .tf-contact-info .tf-contact-card h4 {
        font-size: 19px !important;
    }

    .tf-contact-info .tf-contact-card p {
        font-size: 14px !important;
    }
}


/* ============================================
   TRUE FRESH - CONTACT US LAYOUT FIX
   2 kolom x 2 baris
   ============================================ */

.tf-contact-info .wp-block-columns {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 24px !important;
    margin-bottom: 0 !important;
}

/* Setiap kolom berisi 2 kartu vertikal */
.tf-contact-info .wp-block-columns > .wp-block-column {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 24px !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
}

/* Ukuran kartu yang seragam */
.tf-contact-info .tf-contact-card {
    width: 100% !important;
    min-height: 230px !important;
    flex: 1 1 auto !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Perbaiki ukuran judul kartu */
.tf-contact-info .tf-contact-card .wp-block-heading {
    font-size: 21px !important;
    line-height: 1.4 !important;
    margin: 0 0 8px !important;
    text-align: center !important;
}

/* Ikon tidak membesar */
.tf-contact-info .tf-contact-card img {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    object-fit: contain !important;
}

/* TABLET */
@media (min-width: 782px) and (max-width: 1024px) {
    .tf-contact-info .tf-contact-card img {
        width: 72px !important;
        height: 72px !important;
    }
}

/* MOBILE */
@media (max-width: 781px) {
    .tf-contact-info .wp-block-columns {
        flex-direction: column !important;
        gap: 18px !important;
    }

    .tf-contact-info .wp-block-columns > .wp-block-column {
        width: 100% !important;
        flex-basis: auto !important;
        gap: 18px !important;
    }

    .tf-contact-info .tf-contact-card {
        min-height: 190px !important;
    }

    .tf-contact-info .tf-contact-card img {
        width: 64px !important;
        height: 64px !important;
        max-width: 64px !important;
    }

    .tf-contact-info .tf-contact-card .wp-block-heading {
        font-size: 19px !important;
    }
}


/* ============================================
   TRUE FRESH - HOMEPAGE WHY CHOOSE US
   ============================================ */

.tf-home-why-cards.wp-block-columns {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px !important;
    align-items: stretch !important;
    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Kartu utama */
.tf-home-why-cards > .wp-block-column {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 32px 24px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 16px !important;

    background: #ffffff !important;
    border: 1px solid #eeeeee !important;
    border-radius: 16px !important;

    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    box-sizing: border-box !important;
    text-align: center !important;
}

/* Hilangkan jarak bawaan Gutenberg */
.tf-home-why-cards > .wp-block-column > * {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

/* Ikon */
.tf-home-why-cards .wp-block-image {
    margin: 0 auto 12px !important;
    text-align: center !important;
}

.tf-home-why-cards .wp-block-image img {
    display: block !important;
    width: 120px !important;
    height: 120px !important;
    max-width: 100% !important;
    object-fit: contain !important;
    margin: 0 auto !important;
}

/* Judul */
.tf-home-why-cards .wp-block-heading {
    font-size: 22px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    margin: 0 !important;
}

/* Deskripsi */
.tf-home-why-cards p {
    font-size: 15px !important;
    line-height: 1.8 !important;
    text-align: center !important;
    color: #555555 !important;
    margin: 0 !important;
}

/* TABLET */
@media (min-width: 782px) and (max-width: 1024px) {
    .tf-home-why-cards.wp-block-columns {
        gap: 16px !important;
    }

    .tf-home-why-cards > .wp-block-column {
        padding: 24px 16px !important;
    }

    .tf-home-why-cards .wp-block-image img {
        width: 100px !important;
        height: 100px !important;
    }

    .tf-home-why-cards .wp-block-heading {
        font-size: 19px !important;
    }
}

/* MOBILE */
@media (max-width: 781px) {
    .tf-home-why-cards.wp-block-columns {
        grid-template-columns: 1fr !important;
        width: calc(100% - 32px) !important;
        gap: 18px !important;
    }

    .tf-home-why-cards > .wp-block-column {
        padding: 28px 22px !important;
        border-radius: 18px !important;
    }

    .tf-home-why-cards .wp-block-image img {
        width: 90px !important;
        height: 90px !important;
    }

    .tf-home-why-cards .wp-block-heading {
        font-size: 20px !important;
    }

    .tf-home-why-cards p {
        font-size: 14px !important;
    }
}


/* ============================================
   TRUE FRESH - FIX WHY CHOOSE US MOBILE
   ============================================ */

@media screen and (max-width: 781px) {

    /* Container ketiga kartu */
    .tf-home-why-cards.wp-block-columns {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;

        width: calc(100% - 32px) !important;
        max-width: 520px !important;

        margin: 24px auto 45px !important;
        padding: 0 !important;
        gap: 20px !important;

        box-sizing: border-box !important;
    }

    /* Setiap kartu harus memenuhi lebar container */
    .tf-home-why-cards.wp-block-columns
    > .wp-block-column {

        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;

        flex: 0 0 auto !important;
        flex-basis: auto !important;
        align-self: stretch !important;

        min-height: 260px !important;
        padding: 30px 24px !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;

        gap: 16px !important;

        border-radius: 18px !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }

    /* Perbesar ikon */
    .tf-home-why-cards .wp-block-image {
        margin: 0 auto 8px !important;
        text-align: center !important;
    }

    .tf-home-why-cards .wp-block-image img {
        display: block !important;

        width: 120px !important;
        height: 120px !important;
        max-width: 120px !important;

        object-fit: contain !important;
        margin: 0 auto !important;
    }

    /* Judul tidak pecah di tengah kata */
    .tf-home-why-cards .wp-block-heading {
        font-size: 21px !important;
        line-height: 1.4 !important;
        font-weight: 600 !important;

        margin: 0 !important;
        max-width: 100% !important;

        text-align: center !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
    }

    /* Deskripsi */
    .tf-home-why-cards p {
        font-size: 15px !important;
        line-height: 1.75 !important;

        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;

        text-align: center !important;
        overflow-wrap: break-word !important;
    }
}


/* ============================================
   TRUE FRESH - MOBILE WHY CARDS WIDTH FIX
   Samakan lebar dengan Pilihan Menu
   ============================================ */

@media screen and (max-width: 781px) {

    /* Bebaskan container dari batas parent */
    .tf-home-why-cards.wp-block-columns {
        width: calc(100vw - 32px) !important;
        max-width: none !important;
        min-width: 0 !important;

        position: relative !important;
        left: 50% !important;
        transform: translateX(-50%) !important;

        margin: 24px 0 45px !important;
        padding: 0 !important;

        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;

        gap: 20px !important;
        box-sizing: border-box !important;
    }

    /* Setiap kartu mengikuti lebar container */
    .tf-home-why-cards.wp-block-columns
    > .wp-block-column {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;

        flex: 0 0 auto !important;
        flex-basis: auto !important;
        align-self: stretch !important;

        margin: 0 !important;
        box-sizing: border-box !important;
    }
}


/* =========================================
   TRUE FRESH - OUR ADDRESS UNDERLINE
   ========================================= */

.ftrly-dev-footer .ftrly-dev-footer__address h4 {
    position: relative !important;
    padding-bottom: 12px !important;
    margin-bottom: 18px !important;
}

/* Garis pink di bawah Our Address */
.ftrly-dev-footer .ftrly-dev-footer__address h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 38px;
    height: 3px;
    background-color: var(--ftrly-accent, #e91656);
    display: block;
}


/* v7.26.0: schedule controls scoped to the order form only. */
#truefresh-form .tf-package-schedule { margin-top: 14px; border-top: 1px solid #e4e7eb; padding-top: 12px; }
#truefresh-form .tf-package-schedule small { display:block; color:#555; line-height:1.5; margin:4px 0 8px; }
#truefresh-form .tf-calendar-label { display:block; margin-top:12px; }
#truefresh-form .tf-package-calendar, #truefresh-form .tf-package-qty, #truefresh-form .tf-delivery-qty { box-sizing:border-box; width:100%; min-width:0; padding:10px; border:1px solid #ccd0d5; border-radius:6px; background:#fff; color:#333; margin:0; }
#truefresh-form .tf-package-calendar { display:block; margin-top:6px; cursor:pointer; }
#truefresh-form .tf-default-qty-row { display:grid; grid-template-columns:minmax(64px, 1fr) minmax(0, 2fr); align-items:center; gap:8px; margin:6px 0; }
#truefresh-form .tf-apply-qty, #truefresh-form .tf-remove-date, #truefresh-form .tf-remove-package { padding:8px 10px; border:1px solid #d7a3b5; border-radius:6px; background:#fff; color:#a31545; font-size:13px; cursor:pointer; white-space:normal; line-height:1.3; }
#truefresh-form .tf-remove-package { margin-top:10px; }
#truefresh-form .tf-delivery-list { display:grid; gap:8px; margin:12px 0; }
#truefresh-form .tf-delivery-entry { display:grid; grid-template-columns:minmax(0, 1fr) minmax(65px, .75fr) auto; align-items:center; gap:8px; padding:8px; border:1px solid #e4e7eb; border-radius:7px; background:white; }
#truefresh-form .tf-delivery-entry label { font-size:13px; font-weight:600; overflow-wrap:anywhere; }
#truefresh-form .tf-package-subtotal { text-align:right; margin:8px 0 0; font-weight:700; font-size:14px; color:#275f37; }
#truefresh-form .tf-package-schedule :focus-visible { outline:2px solid #d81b60; outline-offset:2px; }
@media (max-width: 400px) {
    #truefresh-form .tf-delivery-entry { grid-template-columns:minmax(0,1fr) minmax(62px,.65fr) auto; gap:5px; padding:6px; }
    #truefresh-form .tf-remove-date { font-size:12px; padding:7px 5px; }
    #truefresh-form .tf-delivery-qty { padding:8px 5px; }
}
