/* Maklons/css/vars.css */
:root {
    --primary-color: #2f4858;
    --secondary-color: #7AABBD;
    --dark-blue: #2F4858;
    --white: #fff;
    --black: #000;
    --text-primary: #333;
    --background-light: #fff;
    --background-dark: #f2f2f2;
    --font-family-main: 'Montserrat', sans-serif;
}

/* Maklons/css/style.css */
html {
    scroll-behavior: smooth;
}

/* Global Styles */
body {
    font-family: var(--font-family-main);
    margin: 0;
    background-color: var(--background-light);
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

h1, h2, h3 {
    font-weight: 700;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 80px;
    background: url('../images/maklons/_20250516-1337-elegant-neutral-backdrop-simple-compose-01-jvbwzjr-4-f-1-s-88-egykzpxe-175-10.png') no-repeat center center;
    background-size: cover;
    position: relative;
    color: var(--black);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1;
}

.hero-content, .hero-image {
    position: relative;
    z-index: 3;
}


.hero-content {
    max-width: 50%;
}

.hero-content h1 {
    font-size: 64px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content .sub-headline {
    font-size: 24px;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 10px;
}

.cta-button {
    background-color: #DAB96B;
    color: var(--white);
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.hero-image img {
    max-width: 550px;
}

/* Advantages Section */
.advantages {
    padding: 80px;
    text-align: center;
}

.advantages h2 {
    font-size: 36px;
    margin-bottom: 60px;
}

.advantage-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    text-align: left;
}

.advantage-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.advantage-item p {
    font-size: 18px;
    line-height: 1.6;
}

/* Products Section */
.products {
    background-color: #DAB96B; /* Changed from var(--primary-color) to yellow */
    padding: 80px;
    text-align: center;
    color: var(--white);
}

.products h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.products > p {
    font-size: 20px;
    margin-bottom: 60px;
}

.product-cards {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}

/* Swiper styles for product cards */
.product-cards-slider {
  position: relative;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 0 60px;
  overflow: hidden;
}

.product-cards-slider .swiper-wrapper {
  /* display: flex; */ /* Let Swiper handle this */
  align-items: stretch;
}

.product-cards-slider .swiper-slide {
  /* Swiper handles sizing and arrangement of slides */
  /* display: flex; */ /* Let Swiper handle this */
  justify-content: center; /* Center the card within the slide */
  align-items: stretch; /* Ensure cards have equal height */
  height: auto;
}

.product-cards-slider .swiper-slide .product-card {
  background: #fff;
  color: #333;
  border-radius: 25px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: all .3s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 350px;
  height: 360px; /* Set a fixed height for a "square-like" feel */
  justify-content: flex-start;
}

.product-cards-slider .swiper-slide .product-card img {
  width: 100%;
  height: 180px; /* Allocate a portion of the height to the image */
  object-fit: cover;
}

.product-card h3 {
  font-size: 1.2rem;
  margin: 15px 10px 8px;
  line-height: 1.3;
}

.product-card p {
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 0 15px;
  flex-grow: 1; /* Allow text to take remaining space */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4; /* Allow up to 4 lines */
  -webkit-box-orient: vertical;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.product-cards-pagination {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
}

.product-cards-prev,
.product-cards-next {
  color: #2f4858;
  font-size: 26px;
  top: 45%;
  transform: translateY(-50%);
}

.product-cards-prev {
  left: 15px;
}

.product-cards-next {
  right: 15px;
}


.cta-button-secondary {
    background-color: var(--secondary-color); /* Reverted to light blue */
    color: var(--white);
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}


/* Brands Section */
.brands {
    padding: 80px;
    text-align: center;
}

.brands h2 {
    font-size: 36px;
    margin-bottom: 60px;
}

.brand-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.brand-logos img {
    height: 80px;
    max-width: 200px;
    object-fit: contain;
}

/* Slider */
.brands-slider, .realize-brand-slider {
    position: relative;
    padding: 80px;
    text-align: center;
}

.brands-slider h2, .realize-brand-slider h2 {
    font-size: 36px;
    margin-bottom: 60px;
}

.slides {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slide {
    display: none;
    width: 100%;
    animation: fade 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.slide.active {
    display: block;
}

@keyframes fade {
    from {opacity: 0.4; transform: scale(0.98);}
    to {opacity: 1; transform: scale(1);}
}

.slider-dots {
    text-align: center;
    margin-top: 20px;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 6px;
    background-color: #DAB96B; /* Changed from #bbb to match cta-button color */
    border-radius: 50%;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
    opacity: 0.6;
}

.dot:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

.dot.active {
    background-color: #DAB96B; /* Changed from var(--primary-color) to match cta-button color */
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 8px rgba(218, 185, 107, 0.5);
}

/* Brands Section adjustments */
.brands-slider {
    padding-bottom: 40px;
}

.brands-slider .brand-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    min-height: 100px;
}

.realize-brand-slider {
    background-color: #DAB96B; /* Changed from var(--background-dark) to match cta-button color */
    position: relative;
    overflow: hidden;
}

.realize-brand-slider .slides-container {
    display: flex;
    width: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.realize-brand-slider .slide {
    display: flex;
    align-items: center;
    min-width: 100%;
    flex-direction: row;
}

@media screen and (max-width: 992px) {
    .realize-brand-slider .slide {
        flex-direction: column;
    }
}

.realize-brand-slider .slider-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 3;
}

.realize-brand-slider .dot {
    background-color: var(--primary-color);
    opacity: 0.7;
}

.realize-brand-slider .dot.active {
    background-color: var(--white);
}

/* Realize Brand Section */
.realize-brand-slider .realize-brand-image {
    flex: 1;
    position: relative;
}

.realize-brand-image {
    flex: 1;
    position: relative;
}

.realize-brand-image img {
    width: 100%;
    height: auto;
    display: block;
}

.realize-brand-image .image-caption {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    padding: 15px 30px;
    border-radius: 20px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    width: 80%;
}

.realize-brand-slider .realize-brand-content {
    flex: 1;
    padding: 40px;
    text-align: center;
    background-color: var(--white);
    z-index: 2;
}

.realize-brand-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.realize-brand-content p {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button-dark {
    background-color: var(--secondary-color); /* Changed from var(--dark-blue) to light blue */
    color: var(--white);
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 25px;
    cursor: pointer;
}

/* Certificates Section */
.certificates {
    padding: 80px;
    text-align: center;
}

.certificates h2 {
    font-size: 36px;
    margin-bottom: 60px;
}

.certificate-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.certificate-logos img {
    height: 100px;
}


/* FAQ Section */
.faq {
    background-color: #DAB96B; /* Changed from var(--primary-color) to yellow */
    padding: 80px;
    color: var(--text-primary);
}

.faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.faq-header p {
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
}

.faq-header h2 {
    font-size: 96px;
    color: var(--white);
    font-weight: 800;
    margin: 0;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background-color: var(--white);
    border-radius: 20px;
    border: 2px solid #030303;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    font-size: 20px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-family-main);
}

.faq-question .arrow {
    width: 20px;
    transition: transform 0.3s;
}

.faq-answer {
    padding: 0 30px 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 1000px; /* Large enough to accommodate content */
    opacity: 1;
}

.faq-answer p, .faq-answer ol {
    font-size: 16px;
    line-height: 1.7;
}

.faq-answer ol {
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 15px;
}

.faq-item.active .faq-question .arrow {
    transform: rotate(180deg);
}

.faq .cta-button-secondary {
    display: block;
    margin: 60px auto 0;
}




/* Responsive Design */
@media screen and (max-width: 1200px) {
    .hero-content h1 {
        font-size: 48px;
    }
    
    .hero-image img {
        max-width: 450px;
    }
    
    .product-cards {
        gap: 20px;
    }
    
}

@media screen and (max-width: 992px) {
    
    .hero {
        padding: 40px;
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }
    
    .hero-image img {
        max-width: 400px;
    }
    
    .advantages, .products, .brands-slider, .realize-brand-slider, .certificates, .faq {
        padding: 60px 40px;
    }
    
    .advantage-items {
        grid-template-columns: 1fr;
    }
    
    .product-cards {
        flex-direction: column;
        align-items: center;
    }
    
    
    .realize-brand-slider .slide {
        flex-direction: column;
    }
    
    .realize-brand-slider .realize-brand-content {
        padding: 40px 20px;
    }
    
}

@media screen and (max-width: 768px) {
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content .sub-headline {
        font-size: 20px;
    }
    
    .advantages h2, .products h2, .brands-slider h2, .realize-brand-slider h2, .certificates h2 {
        font-size: 28px;
    }
    
    .faq-header h2 {
        font-size: 60px;
    }
    
    .faq-header p {
        font-size: 24px;
    }
    
    .faq-question {
        font-size: 18px;
        padding: 20px;
    }
    
    .certificate-logos {
        gap: 30px;
    }
    
    .certificate-logos img {
        height: 70px;
    }
}

@media screen and (max-width: 576px) {
    .hero-content h1 {
        font-size: 32px;
    }
    
    .cta-button, .cta-button-secondary, .cta-button-dark {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .faq-header h2 {
        font-size: 40px;
    }
    
    .faq-header p {
        font-size: 20px;
    }
    
    .certificate-logos img {
        height: 50px;
    }
}
/* Hover Effects and Animations */
.cta-button, .cta-button-secondary, .cta-button-dark {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover, .cta-button-secondary:hover, .cta-button-dark:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}


.brand-logos img, .certificate-logos img {
    transition: transform 0.3s ease;
    /* Removed grayscale filter as per user request */
}

.brand-logos img:hover, .certificate-logos img:hover {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.faq-item {
    transition: transform 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.realize-brand-content h2,
.realize-brand-content p,
.realize-brand-content button {
    animation: fadeIn 0.8s forwards;
}

.realize-brand-content h2 {
    animation-delay: 0.2s;
}

.realize-brand-content p {
    animation-delay: 0.4s;
}

.realize-brand-content button {
    animation-delay: 0.6s;
}
/* Smooth Transition for Realize Brand Slider */
.realize-brand-slider .realize-brand-image img {
    transition: transform 1s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.realize-brand-slider .slide:hover .realize-brand-image img {
    transform: scale(1.03);
}

.realize-brand-slider .image-caption {
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.realize-brand-slider .slide:hover .image-caption {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
/* Maklons/css/responsive.css */
/* ===== Responsive Styles ===== */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-image img {
        width: 400px;
    }
    .cta-content h2 {
        font-size: 2rem;
    }
    .cta-content p {
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        padding: 120px 20px 60px;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-top: 20px;
    }

    .cta-button-desktop {
        display: none;
    }

    section.hero .cta-button-mobile {
        display: inline-flex;
        margin-top: 30px;
        background-color: #DAB96B; /* Changed from var(--primary-color) to yellow */
        color: var(--white) !important;
        border: none;
        position: relative;
        z-index: 5;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        padding: 10px 20px; /* Smaller padding for mobile */
        font-size: 14px; /* Smaller font size for mobile */
    }

    section.hero .cta-button-mobile img {
        filter: brightness(0) invert(1) !important;
    }
    
    .hero-image {
        margin-top: 40px;
    }

    .hero-image img {
        width: 300px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    .cta-content {
        padding: 40px;
    }
    .about-us-content p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .content-section h2 {
        font-size: 2.5rem;
    }
    .cta-content h2 {
        font-size: 1.8rem;
    }
    .cta-content p {
        font-size: 1rem;
    }
    .product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .brands-grid, .marketplace-grid, .certification-grid {
        gap: 30px;
    }
    .brands-grid img, .marketplace-grid img, .certification-grid img {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-image img {
        width: 250px;
    }
    .content-section h2 {
        font-size: 2rem;
    }
    .button {
        font-size: 1.2rem;
        padding: 12px 30px;
    }
}


/* ===== Brands Slider ===== */
.brands-slider { padding: 48px 0 64px; background: #fff; }
.brands-slider h2 {
  text-align: center; font-weight: 800; letter-spacing: .2px;
  margin-bottom: 28px; color:#2b2f36;
}

.brands-carousel { overflow: hidden; position: relative; }
.brands-track {
  display: flex; align-items: center; gap: 56px;
  /* Kecepatan slide: ubah durasi untuk lebih cepat/lambat */
  animation: scrollBrands 28s linear infinite;
  will-change: transform;
}
.brand-item { flex: 0 0 auto; display:flex; align-items:center; justify-content:center; }

.brands-track img{
  height: 88px; /* logo dibesarkan */
  width: auto; object-fit: contain;
  opacity: .95; filter: saturate(1.05) contrast(1.02);
  transition: transform .2s ease, opacity .2s ease;
}
.brands-track img:hover{ transform: scale(1.06); opacity: 1; }

/* Responsif */
@media (max-width: 1024px){
  .brands-track { gap: 44px; }
  .brands-track img{ height: 72px; }
}
@media (max-width: 640px){
  .brands-track { gap: 36px; }
  .brands-track img{ height: 56px; }
}

/* Loop mulus: karena konten digandakan, geser sejauh "setengah track" */
@keyframes scrollBrands{
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* Default: sembunyikan tombol mobile, tampilkan tombol desktop */
.cta-button-mobile { 
  display: none !important; 
}
.cta-button-desktop { 
  display: inline-flex; 
}

/* Mobile/Tablet: tukar visibilitasnya */
@media (max-width: 992px) {
  .cta-button-desktop { display: none !important; }
  .cta-button-mobile  { display: inline-flex !important; }
}


.product-controls-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px; /* Space between buttons and arrows */
  margin-top: 40px; /* Space from the slider */
}

.product-cards-prev-custom,
.product-cards-next-custom {
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.product-cards-prev-custom:hover,
.product-cards-next-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.product-cards-prev-custom img,
.product-cards-next-custom img {
  width: 20px; /* Adjust arrow size */
  height: 20px;
  filter: invert(30%) sepia(10%) saturate(1000%) hue-rotate(180deg) brightness(80%) contrast(90%); /* Example to make it dark grey if original is white */
}

/* Hide default Swiper navigation arrows */
.product-cards-slider .swiper-button-prev,
.product-cards-slider .swiper-button-next {
  display: none !important;
}
