/* ============================================================
   Hasra Kreatif Indonesia - Custom CSS (global)
   Berisi style custom yang aman dipakai di semua halaman.
   Dipindahkan dari <style> inline pada:
   - resources/views/landing/layouts/header.blade.php
   - resources/views/landing/index.blade.php (komponen WhatsApp)
   - resources/views/landing/product-list.blade.php (komponen WhatsApp)
   ============================================================ */

/* ============================================================
   REBRANDING — Palet warna mengikuti logo Hasra Kreatif Indonesia.
   Meng-override CSS variable tema (dipakai ratusan kali) sehingga
   seluruh tombol, link, ikon, dan heading ikut menyesuaikan.
   Warna diambil langsung dari logo:
     Ungu   #7A3E98  (dominan - "Hasra" & huruf K)  -> warna utama
     Oranye #F14E26  ("Kreatif" & bilah K)           -> warna aksen
     Marun  #AC3624  ("Indonesia")
     Ungu tua #4F2566 (aksen kotak)
   ============================================================ */
:root {
    --rr-theme-primary: #7A3E98;   /* semula hijau #11aa63 */
    --rr-theme-secondary: #F14E26; /* semula coral #D44E49 */
    --rr-heading-primary: #2A1533; /* semula hijau-gelap #001D08 */
}

/* -------- Header: logo & tombol WhatsApp mengambang -------- */
/* Beri ruang container logo agar logo landscape (rasio ~2.66:1) tampil penuh.
   Tema membatasi .header__logo max-width:188px sehingga logo terpotong/mengecil.
   Dibatasi ke desktop (>=768px) agar batas logo mobile bawaan tema tetap dipakai. */
@media (min-width: 768px) {
    .header__logo {
        max-width: 260px;
    }
}
.logo img {
    height: 50px; /* kunci tinggi saja */
    width: auto;  /* lebar mengikuti proporsi asli agar logo tidak terpotong */
    max-width: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}
/* Logo footer: pakai logo header (berwarna) dengan ukuran proporsional.
   Tema membatasi max-width:88px, kita lebarkan agar logo landscape terbaca. */
.footer__logo img {
    max-width: 180px;
    height: auto;
    object-fit: contain;
}
.d-none {
    display: none;
}

/* Header lebih ringkas di mobile & tablet (hindari ruang kosong berlebih).
   Logo diperkecil + padding header dirapatkan. */
@media (max-width: 991px) {
    .header__logo {
        max-width: 140px;
    }
    .logo img {
        height: 44px;
        width: auto;
    }
    .header__main {
        padding: 12px 0;
    }
}
@media (max-width: 575px) {
    .logo img {
        height: 40px;
    }
    .header__main {
        padding: 10px 0;
    }
}

/* Posisi tombol WhatsApp */
.float {
  position: fixed;
  bottom: 22px;
  right: 80px;
  background-color: transparent;
  transition: all 0.3s ease;
  z-index: 9999;
}

/* Efek hover saat mouse berada di atas tombol */
.float:hover {
  transform: scale(1.1); /* Membesarkan tombol sedikit saat hover */
}

/* Gambar ikon WhatsApp */
.my-float {
  width: 70px; /* Ukuran gambar */
  height: 70px; /* Ukuran gambar */
  object-fit: contain; /* Agar gambar tidak terdistorsi */
}

/* Responsif untuk tampilan mobile */
@media (max-width: 768px) {
  .float {
    bottom: 80px;
    right: 22px;
  }

  .my-float {
      width: 65px; /* Ukuran gambar lebih kecil pada mobile */
      height: 65px;
  }
}

/* -------- Komponen tombol kontak WhatsApp (index & product-list) -------- */
.testimonial-3__shape-wrapper-bg-shape img.upDown {
   opacity: 0.1; /* Membuat gambar transparan */
}
#contactOptions {
   display: flex;
   gap: 10px;
   margin-top: 10px;
}
.contact-btn,
.cancel-btn {
   padding: 10px 20px;
   background-color: #25D366; /* warna hijau WhatsApp */
   color: white;
   border: none;
   cursor: pointer;
   border-radius: 5px;
   font-size: 14px;
}
.cancel-btn {
   background-color: #ff4d4d; /* warna merah untuk tombol batal */
}
.contact-btn:hover,
.cancel-btn:hover {
   opacity: 0.8;
}
/* Media query untuk tampilan mobile */
@media (max-width: 768px) {
   #contactOptions {
      flex-direction: column; /* Menyusun tombol dalam kolom pada layar kecil */
      align-items: center;
   }
   .contact-btn,
   .cancel-btn {
      width: 100%;
      padding: 15px;
      font-size: 16px;
      margin-bottom: 10px;
   }
}
/* Tombol WhatsApp tetap terpusat */
#whatsappButton {
   display: inline-flex;
   justify-content: center;
   align-items: center;
   text-align: center;
}
/* Opsi kontak WhatsApp secara vertikal */
#whatsappContactOptions {
   display: flex;
   flex-direction: column;
   gap: 10px;
}
.contactwa-btn,
.cancelwa-btn {
   padding: 10px 20px;
   background-color: #25D366; /* warna hijau WhatsApp */
   color: white;
   border: none;
   cursor: pointer;
   border-radius: 5px;
   font-size: 14px;
   width: 100%;
}
.cancelwa-btn {
   background-color: #ff4d4d; /* warna merah untuk tombol batal */
}
@media (max-width: 768px) {
   #whatsappContactOptions {
      align-items: center;
   }
}
.whatsapp-button {
   display: inline-flex;
   justify-content: center;
   align-items: center;
   text-align: center;
   width: 100%;
}

/* ============================================================
   Komponen search bar produk (dipakai di halaman Produk & Beranda)
   Mengikuti warna brand (ungu #7A3E98).
   ============================================================ */
.product-search {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 6px 6px 6px 18px;
    background: #ffffff;
    border: 1px solid #e5eae6;
    border-radius: 50px;
    box-shadow: 0 6px 24px rgba(0, 29, 8, 0.06);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.product-search:focus-within {
    border-color: #7A3E98;
    box-shadow: 0 8px 28px rgba(122, 62, 152, 0.18);
}
.product-search__icon {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #7A3E98;
    flex-shrink: 0;
}
.product-search__input {
    flex: 1 1 auto;
    width: 100%;
    height: 44px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #2A1533;
    padding: 0 8px;
}
.product-search__input::placeholder {
    color: #9aa39c;
}
.product-search__clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    color: #7a857c;
    background: #f2f4f2;
    transition: all 0.25s ease;
}
.product-search__clear:hover {
    background: #F14E26;
    color: #ffffff;
}
.product-search__btn {
    flex-shrink: 0;
    height: 44px;
    padding: 0 28px;
    border: none;
    border-radius: 50px;
    background: #7A3E98;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}
.product-search__btn:hover {
    background: #2A1533;
    transform: translateY(-1px);
}
@media (max-width: 575px) {
    .product-search {
        padding: 5px 5px 5px 14px;
    }
    .product-search__btn {
        padding: 0 18px;
    }
    .product-search__input {
        height: 42px;
        font-size: 14px;
    }
}

/* ============================================================
   Kartu produk (beranda & halaman produk) — lebih informatif.
   Tombol "Pesan Sekarang" selalu tampil, kategori jadi badge,
   nama produk clamp 2 baris, kartu equal-height.
   ============================================================ */
.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff !important;
    border: 1px solid #efe9f3;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(42, 21, 51, 0.05);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(122, 62, 152, 0.15) !important;
}

/* Thumbnail + badge kategori */
.product-card .product-card__thumb {
    border-radius: 12px;
    position: relative;
}
.product-card .product-card__thumb img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.5s ease;
}
.product-card:hover .product-card__thumb img {
    transform: scale(1.06);
}
.product-card__cat {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-block;
    padding: 5px 13px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #ffffff;
    background: rgba(122, 62, 152, 0.92);
    box-shadow: 0 4px 10px rgba(122, 62, 152, 0.3);
}

/* Konten kartu -> kolom fleksibel supaya tombol rata bawah */
.product-card .product-card__content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 16px 16px 18px;
}

/* Nama produk */
.product-card .product-card__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 16px;
    min-height: 46px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .product-card__title a {
    color: var(--rr-heading-primary);
    transition: color 0.3s ease;
}
.product-card .product-card__title a:hover {
    color: var(--rr-theme-primary);
}

/* Area tombol — override tema yang menyembunyikannya saat tidak hover.
   2 tombol sejajar: "Lihat Detail" + "Pesan". */
.product-card .product-card__actions {
    opacity: 1 !important;
    visibility: visible !important;
    margin-top: auto !important;
    position: static !important;
    right: auto !important;
    width: 100%;
    display: flex;
    gap: 8px;
}

/* Dasar tombol */
.product-card .product-card__btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1 1 0;
    height: auto !important;
    padding: 11px 10px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: all 0.3s ease;
}
.product-card .product-card__btn i {
    font-size: 15px;
}

/* Tombol "Lihat Detail" — outline brand (ungu) */
.product-card .product-card__btn--detail {
    background: #ffffff;
    color: var(--rr-theme-primary) !important;
    border: 1.5px solid var(--rr-theme-primary);
}
.product-card .product-card__btn--detail:hover {
    background: var(--rr-theme-primary);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(122, 62, 152, 0.30);
}

/* Tombol "Pesan" — WhatsApp (hijau) */
.product-card .product-card__btn--order {
    background: #25D366;
    color: #ffffff !important;
    border: 1.5px solid #25D366;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.28);
}
.product-card .product-card__btn--order:hover {
    background: #1da851;
    border-color: #1da851;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(37, 211, 102, 0.4);
}

/* Layar kecil: tombol menumpuk agar teks tidak terpotong */
@media (max-width: 400px) {
    .product-card .product-card__actions {
        flex-direction: column;
    }
}

/* ============================================================
   Breadcrumb / page-title — perbaikan tampilan mobile (semua halaman dalam)
   Tema memakai judul 68px & (bug) line-height 20px di layar kecil,
   serta menu 20px sehingga berantakan di HP.
   ============================================================ */
@media (max-width: 767px) {
    .breadcrumb__title {
        font-size: 30px !important;
        line-height: 1.3 !important;
        margin-bottom: 12px;
    }
    .breadcrumb__menu ul {
        gap: 16px;
        flex-wrap: wrap;
        row-gap: 4px;
    }
    .breadcrumb__menu ul li span,
    .breadcrumb__menu ul li.active span {
        font-size: 14px;
        line-height: 1.5;
    }
    .breadcrumb__menu ul li:not(:last-child)::before {
        inset-inline-end: -11px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 13px;
    }
}
@media (max-width: 575px) {
    .breadcrumb__title {
        font-size: 25px !important;
        line-height: 1.3 !important;
    }
}
@media (max-width: 450px) {
    .breadcrumb__title {
        font-size: 22px !important;
    }
    .breadcrumb__menu ul {
        gap: 14px;
    }
    .breadcrumb__menu ul li span,
    .breadcrumb__menu ul li.active span {
        font-size: 13px;
    }
}

/* ============================================================
   Kartu "Artikel Terbaru" (latest-blog) — dipakai di Beranda & halaman Artikel.
   Menyamakan ukuran font & spacing agar konsisten di kedua halaman.
   ============================================================ */
/* Judul section (hanya ada di beranda) */
.latest-blog__area .latest-blog__title-wrapper h6 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1.4;
    margin-bottom: 10px;
}
.latest-blog__area .latest-blog__title-wrapper h2 {
    font-size: 30px;
    line-height: 1.25;
}
.latest-blog__area .blog-top {
    margin-bottom: 32px;
}

/* Kartu artikel */
.latest-blog__area .latest-blog__item-media a img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}
.latest-blog__area .latest-blog__item-text {
    padding: 0 22px 22px;
}
.latest-blog__area .latest-blog__item-text-meta {
    gap: 14px;
    padding-bottom: 16px;
    align-items: center;
}
.latest-blog__area .latest-blog__item-text-meta-calender {
    width: 46px;
    height: 50px;
    padding: 9px 6px;
}
.latest-blog__area .latest-blog__item-text-meta-calender h4 {
    font-size: 17px;
    line-height: 1;
    margin-bottom: 3px;
}
.latest-blog__area .latest-blog__item-text-meta-calender p {
    font-size: 11px;
    line-height: 1;
}
.latest-blog__area .latest-blog__item-text-meta span a {
    font-size: 14px;
    margin-top: 0;
}

/* Judul artikel */
.latest-blog__area .latest-blog__item-text-bottom a h4 {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 14px;
}
.latest-blog__area .latest-blog__item-text-bottom .readmore {
    font-size: 14px;
}

@media (max-width: 575px) {
    .latest-blog__area .latest-blog__title-wrapper h2 {
        font-size: 25px;
    }
}

/* ============================================================
   Page title / breadcrumb — desain baru (semua halaman dalam)
   Background brand gradient + judul putih + breadcrumb pill + ikon home.
   ============================================================ */
.breadcrumb__area {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #2A1533 0%, #6A2F8C 52%, #7A3E98 100%) !important;
}
/* Aksen glow lembut supaya tidak flat */
.breadcrumb__area::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 90% at 85% 12%, rgba(241, 78, 38, 0.22), transparent 60%),
        radial-gradient(55% 85% at 10% 95%, rgba(255, 255, 255, 0.10), transparent 60%);
    pointer-events: none;
    z-index: 0;
}
/* Sembunyikan shape bawaan tema agar bersih & konsisten */
.breadcrumb__area .banner-all-shape-wrapper,
.breadcrumb__area .banner-home__middel-shape {
    display: none !important;
}
.breadcrumb__area .container {
    position: relative;
    z-index: 1;
}
/* Judul putih + shadow lembut */
.breadcrumb__title,
.breadcrumb__title.color-white {
    color: #ffffff !important;
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.25);
}
/* Breadcrumb -> pill kaca */
.breadcrumb__menu ul {
    display: inline-flex;
    align-items: center;
    gap: 26px;
    margin-top: 8px;
    padding: 9px 22px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.breadcrumb__menu ul li span,
.breadcrumb__menu ul li span a {
    color: rgba(255, 255, 255, 0.85) !important;
    transition: color 0.25s ease;
}
.breadcrumb__menu ul li span a:hover {
    color: #ffffff !important;
}
.breadcrumb__menu ul li.active span {
    color: #ffffff !important;
    font-weight: 600;
}
.breadcrumb__menu ul li:not(:last-child)::before {
    color: rgba(255, 255, 255, 0.55) !important;
}
/* Ikon home sebelum link "Home" */
.breadcrumb__menu ul li:first-child span a::before {
    content: "\f015";
    font-family: var(--rr-ff-fontawesome);
    font-weight: 900;
    margin-right: 8px;
}
/* Kurangi ruang kosong berlebih di tablet & desktop */
@media (min-width: 768px) {
    .breadcrumb-space {
        padding: 165px 0 85px;
    }
}
/* Penyesuaian pill di HP (menang atas aturan sebelumnya karena tampil terakhir) */
@media (max-width: 767px) {
    .breadcrumb__menu ul {
        gap: 14px;
        padding: 7px 16px;
        flex-wrap: wrap;
        row-gap: 4px;
    }
}

/* ============================================================
   Footer gelap (premium) — senada dengan page-title brand.
   ============================================================ */
.footer--dark {
    background: linear-gradient(125deg, #211029 0%, #3A1B4A 50%, #211029 100%);
    position: relative;
}
/* Garis aksen brand di atas footer */
.footer--dark::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #7A3E98, #F14E26, #7A3E98);
}
/* Deskripsi */
.footer--dark .footer__content p {
    color: rgba(255, 255, 255, 0.72) !important;
}
/* Judul widget */
.footer--dark .footer__widget-title h4 {
    color: #ffffff !important;
    margin-bottom: 26px;
    padding-bottom: 14px;
    position: relative;
}
.footer--dark .footer__widget-title h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 3px;
    border-radius: 3px;
    background: #F14E26;
}
/* Link layanan */
.footer--dark .footer__link ul li a {
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 16px;
    transition: all 0.3s ease;
}
.footer--dark .footer__link ul li a:hover {
    color: #ffffff !important;
    padding-left: 4px;
}
.footer--dark .footer__link ul li a i {
    color: #F14E26;
}
/* Info kontak */
.footer--dark .footer__subscribe ul li a,
.footer--dark .footer__subscribe ul li a span {
    color: rgba(255, 255, 255, 0.78) !important;
    transition: color 0.3s ease;
}
.footer--dark .footer__subscribe ul li a:hover,
.footer--dark .footer__subscribe ul li a:hover span {
    color: #ffffff !important;
}
.footer--dark .footer__subscribe svg path {
    stroke: rgba(255, 255, 255, 0.75) !important;
}

/* Ikon sosmed -> tombol bulat + hover warna khas platform */
.footer--dark .footer__social {
    display: flex;
    gap: 10px;
}
.footer--dark .footer__social a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff !important;
    font-size: 15px;
    transition: all 0.3s ease;
}
.footer--dark .footer__social a::before {
    display: none !important; /* matikan efek hover bawaan tema */
}
.footer--dark .footer__social a:hover {
    transform: translateY(-3px);
    color: #ffffff !important;
    border-color: transparent;
}
.footer--dark .footer__social a.is-fb:hover { background: #1877F2; }
.footer--dark .footer__social a.is-ig:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.footer--dark .footer__social a.is-tw:hover { background: #1DA1F2; }
.footer--dark .footer__social a.is-tt:hover { background: #000000; border-color: #25F4EE; }

/* Garis & copyright */
.footer--dark .footer-bottom-border {
    border-color: rgba(255, 255, 255, 0.12) !important;
}
.footer--dark .footer__copyright p,
.footer--dark .footer-bottom-border .footer__bottom .footer__copyright p {
    color: rgba(255, 255, 255, 0.65) !important;
}
.footer--dark .footer__copyright p a {
    color: #C9A9E0 !important;
}
.footer--dark .footer__copyright p a:hover {
    color: #ffffff !important;
}
