
/* styles.css */

@import url('https://fonts.googleapis.com/css2?family=Cinzel&family=Lora&family=Cormorant+Garamond&display=swap');

/* Reset dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Title Styling */
.title {
    font-family: 'Cinzel', serif;
    font-size: 36px;
    font-weight: bold;
    color: #fff;
}

/* Body */
body {
    font-family: 'Lora', serif;
    background-color: #f4f4f4;
    color: #333;
    padding-top: 30px;
    margin: 0;
    font-size: 18px;
}

h1, h2, h3, .logo-text h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
}

.tagline {
    font-size: 18px;
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: #888;
}

p, a, li, input, textarea, button {
    font-size: 18px;
}

html {
    scroll-behavior: smooth;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    margin: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-top: 1px solid #2c2c2c;
    box-sizing: border-box;
}

h1, p {
    margin: 0;
    padding: 0;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}
   
.logo {
    height: 70px;
    border-radius: 5px;
}

.logo-text h1 {
    font-size: 2rem;
    margin: 0;
    color: #c76533;
    letter-spacing: 1px;
    font-weight: bold;
}

.logo-text p {
    font-size: 0.75rem;
    margin: 2px 0 0;
    color: black;
}

.nav-right {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-right li a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-right li a:hover {
    color: #c76533;
}

/* Home Section */
#home {
    scroll-margin-top: 100px;
    background-color: #fff8f5;
    padding: 100px 20px 60px;
}

.home-description {
    max-width: 700px;
    margin: 20px auto 0;
    text-align: center;
}

.home-description p {
    font-size: 18px;
    line-height: 1.7;
    color: #000;
    margin-bottom: 20px;
}

#appointment, #services {
    background-image: url('website/appointment-bg.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    color: #000;
    padding: 70px 0;
    text-align: center;
}

#appointment h2, #services h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

#appointment p, #services p {
    margin-bottom: 30px;
}

#appointment .cta-btn {
    padding: 12px 24px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
}

/* Layanan Section */
#services {
    scroll-margin-top: 0px;
    margin-top: 100px;
    padding: 100px 0 50px;
    background-color: #fff;
    text-align: center;
}

#services h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

#services p {
    margin-bottom: 30px;
    font-size: 0.9375rem;
    color: #333;
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* <-- jarak antar kotak */
    margin-bottom: 20px;
    padding: 0 20px; /* <-- kasih jarak kanan kiri */
}

.service {
    flex: 0 1 calc(33.33% - 20px); /* Default: 3 kolom */
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}


@media (max-width: 768px) {
    .service {
        flex: 0 1 calc(50% - 20px); /* 2 kolom di HP */
    }
}

.service h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

/* Portfolio Section */
#portfolio {
    font-size: 24px;
    padding: 50px 20px;
    background-color: #f4f4f4;
    text-align: center;
}

#portfolio h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.portfolio-category h3 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.portfolio-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Item layout */
.portfolio-item {
    flex: 0 1 calc(25% - 20px); /* 4 kolom (default/laptop) */
    height: 320px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.portfolio-item img:hover {
    transform: scale(1.05);
}

/* Tablet (3 kolom) */
@media (max-width: 1024px) {
    .portfolio-item {
        flex: 0 1 calc(33.33% - 20px);
    }
}

/* HP (2 kolom) */
@media (max-width: 768px) {
    .portfolio-item {
        flex: 0 1 calc(50% - 20px);
    }
}


/* Testimoni Section */
#testimonials {
    scroll-margin-top: 100px;
}

.section-testimonials {
    background-color: #f7f5f8;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
.section-testimonials h2 {
    font-size: 28px;
    margin-bottom: 40px;
    color: #333;
  }
  
.swiper {
   width: 100%;
   max-width: 700px;
   margin: 0 auto;
  }

.swiper-wrapper {
    display: flex;
    align-items: center;
}

.swiper-slide.testimonial {
    width: 100%;
    box-sizing: border-box;
    background-color: #fdddce;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.swiper-button-prev,
.swiper-button-next {
    color: #333 !important;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    opacity: 1;
    color: #000 !important;
}

.swiper-pagination {
    margin-top: 25px;
    position: relative;
  }

  .swiper-pagination-bullet {
    background: #ccc !important;
    opacity: 1;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #c76533 !important;
    box-shadow: 0 0 8px rgba(185, 128, 118, 0.6);
}

.testimonial .quote {
    font-size: 1.1rem;
    font-style: italic;
    color: #444;
  }
  
.testimonial .author {
    font-weight: bold;
    margin-top: 15px;
    color: #9b583a;
  }

/* Kontak Section */
.contact-section {
    padding: 70px 20px 70px 20px;
    background-color: #fff8f5;
    color: #1e1e1e;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}

.message-box {
    flex: 1;
    max-width: 48%;
}

.message-box h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

.message-box input, .message-box textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    font-size: 1rem;
    border: 1px solid #bbb;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
}

.message-box textarea {
    resize: vertical;
}

.message-box button {
    background-color: #c76533;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.message-box button:hover {
    background-color: #a3685f;
}

.contact-details {
     flex: 1;
     max-width: 48%;
}
 .contact-details h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
 }
.contact-details p {
    margin: 12px 0;
    color: #333;
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.contact-details .icon {
    width: 25px;
    margin-right: 10px;
    font-size: 1.2rem;
    color: #000;
    text-align: center;
}

.contact-details a {
    color: #c76533;
    text-decoration: none;
}

.contact-details a:hover {
    color: #a3685f;
}


/* Footer */
footer {
    background-color: #2c2c2c;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    border-top: 0.5px solid #444;
    padding-top: 20px;
}

footer p {
    margin: 5px 0;
    font-size: 0.8rem;
    color: #aaa;
}

/* === HAMBURGER MENU & RESPONSIVE HEADER === */
nav {
    position: relative;
}

.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* Buat nav-right default (desktop) */
.nav-right {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-right li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 8px 12px;
    transition: color 0.3s;
}

.nav-right li a:hover {
    color: #c76533;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .logo-text h1 {
        font-size: 1.6rem;
    }
    .nav-right {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px; /* posisi dropdown nav */
        right: 20px;
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        padding: 10px 0;
        width: 200px;
    }

    .nav-right.active {
        display: flex;
    }

    .nav-right li {
        margin-bottom: 10px;
    }
    
    .nav-right li:last-child {
        margin-bottom: 0;
    }

    .hamburger {
        display: block;
        color: #333;
        user-select: none;
        z-index: 1100;
        position: relative;
    }
    
    #appointment {
        padding-left: 20px;
        padding-right: 20px;
    }
    
  .contact-container {
        flex-direction: column;
    }

    .contact-details {
        order: 1;
        width: 100%;
        max-width: 100%;
    }

    .message-box {
        order: 2;
        width: 100%;
        max-width: 100%;
  }
}


/* === SCROLL TO TOP BUTTON  === */
#scrollTopBtn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 999;
    background-color: #c76533;
    color: white;
    border: none;
    outline: none;
    padding: 12px 14px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-size: 16px;

    opacity: 0;            /* default sembunyi */
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.3s ease;
}

#scrollTopBtn:hover {
    background-color: #a44c27;
    transform: scale(1.1);
    opacity: 1;  /* hover tetap kelihatan penuh */
}

#scrollTopBtn.show {
    opacity: 0.7;  /* muncul pelan */
    visibility: visible;
}

/* Responsif desktop - tombol agak naik */
@media (min-width: 1024px) {
    #scrollTopBtn {
        bottom: 150px;
        right: 30px;
    }
}

/* WhatsApp Float & Popup Position Responsif */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    border-radius: 50%;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 28px;
    height: 28px;
}

.whatsapp-popup {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    z-index: 999;
    animation: fadeOut 6s forwards;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (min-width: 1024px) {
    .whatsapp-float {
        bottom: 50px;
        right: 30px;
    }

    .whatsapp-popup {
        bottom: 130px;
        right: 30px;
    }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; display: none; }
}
