/*
Theme Name: STEGGO
Theme URI: https://steggo.com
Author: Ade Syahlan Prayoga
Description: Custom WordPress Theme for STEGGO.
Version: 1.0
*/

/* ========================================
   FONTS
   ======================================== */
@font-face {
    font-family: 'Insaniburger';
    src: url('fonts/Insanibu.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Insaniburger';
    src: url('fonts/Insanibu.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

/* ========================================
   BASE STYLES
   ======================================== */
body {
    background: #fff;
    font-family: 'Google Sans', sans-serif;
    overflow-x: hidden !important;
}

.text-primary {
    color: #e06538 !important;
}

.bg-primary {
    background: #e06538 !important;
}

.bg-secondary {
    background: #fffaf0 !important;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: relative;
    padding: 1rem 0;
    background: #e06538 !important;
    font-family: inherit !important;
    z-index: 1000;
}

.navbar-brand img {
    width: 128px;
}

.navbar-nav .nav-link {
    color: #fff !important;
}

.navbar .btn-whatsapp {
    background: #fff !important;
    border-color: #fff;
    color: #e06538;
}

.navbar .btn-whatsapp:hover {
    background: #fff !important;
    border-color: #fff;
    color: #e06538;
}

.navbar .btn-whatsapp:focus,
.navbar .btn-whatsapp:active {
    background: #fff !important;
    border-color: #fff;
    color: #e06538;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.5);
}

.navbar-toggler {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
    width: 48px;
    height: 48px;
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler i {
    width: 24px;
    color: #fdf6f2;
    font-size: 1.2rem;
    text-align: center;
}

@media (max-width: 991.98px) {
    .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    }
    
    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .nav-link {
        padding: 1rem 0;
    }

    .navbar-nav .nav-item:last-child .nav-link {
        padding-bottom: 0;
    }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-whatsapp {
    background-color: #1ea952;
    border-color: #1ea952;
    color: white;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #25d366;
    border-color: #25d366;
    color: white;
}

.btn-whatsapp:focus,
.btn-whatsapp:active {
    background-color: #128c7e;
    border-color: #128c7e;
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(30, 169, 82, 0.35);
}

.btn-whatsapp-secondary {
    background-color: transparent;
    border-color: #1ea952;
    color: #1ea952;
    transition: all 0.25s ease;
}

.btn-whatsapp-secondary:hover {
    background-color: #1ea952;
    border-color: #1ea952;
    color: white;
}

.btn-whatsapp-secondary:focus,
.btn-whatsapp-secondary:active {
    background-color: #128c7e;
    border-color: #128c7e;
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(30, 169, 82, 0.35);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1,
.hero h2,
.hero h3,
.hero .display-1,
.hero .display-2,
.hero .display-3,
.hero .display-4,
.hero .display-5,
.hero .display-6 {
    font-family: 'Insaniburger', 'Google Sans', sans-serif;
    color: #ffe4b5;
    -webkit-text-stroke: 5px #000;
    text-stroke: 5px #000;
    filter: drop-shadow(3px 3px 0px rgba(0, 0, 0, 0.9));
    paint-order: stroke fill;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

.hero p,
.hero .lead,
.hero .h1,
.hero .h2,
.hero .h3,
.hero .h4,
.hero .h5,
.hero .fs-5,
.hero .fs-6,
.hero .display-6 {
    font-family: 'Insaniburger', 'Google Sans', sans-serif;
    color: #ffe4b5;
    -webkit-text-stroke: 3px #000;
    text-stroke: 3px #000;
    filter: drop-shadow(3px 3px 0px rgba(0, 0, 0, 0.9));
    paint-order: stroke fill;
    letter-spacing: 0.03em;
    line-height: 1.4;
}

.hero-ornament {
    position: absolute;
    width: 240px;
    height: 240px;
    opacity: 0.25;
    z-index: 1;
    pointer-events: none;
}

.hero-ornament-1 {
    top: 0;
    right: 1rem;
}

.hero-ornament-2 {
    bottom: 0;
    left: 1rem;
}

@media (max-width: 992px) {
    .hero-ornament {
        display: none;
    }
}

/* ========================================
   TRUST ITEMS
   ======================================== */
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: rgba(224, 100, 56, 0.08);
    border: 2px solid rgba(224, 100, 56, 0.15);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.trust-item:hover {
    background: rgba(224, 100, 56, 0.12);
    border-color: rgba(224, 100, 56, 0.2);
}

.trust-text {
    color: #e06538;
}

/* ========================================
   CLIENTS
   ======================================== */
.clients-image img {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.clients-image:hover img {
    filter: grayscale(0%);
}

/* ========================================
   CHECKLIST
   ======================================== */
.checklist-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: #e06538;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.checklist-icon i {
    color: white;
    font-size: 14px;
}

/* ========================================
   MENU SECTION
   ======================================== */
.menuSwiper {
    padding: 20px 0 60px 0;
}

.menuSwiper .swiper-slide {
    height: auto;
    display: flex;
}

.menuSwiper .swiper-button-next,
.menuSwiper .swiper-button-prev {
    color: #e06538;
    background: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.menuSwiper .swiper-button-next:after,
.menuSwiper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.menuSwiper .swiper-pagination-bullet {
    background: #e06538;
    opacity: 0.3;
}

.menuSwiper .swiper-pagination-bullet-active {
    opacity: 1;
}

.menu-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px !important;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.menu-card .card-img-top {
    object-fit: cover;
    width: 100%;
}

.page-template-menu .menu-card .card-img-top {
    width: 100%;
    height: auto !important;
}

.social-card .card-img-top {
    height: 300px;
    object-fit: cover;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e06538, #ff8c5a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

/* ========================================
   GALLERY
   ======================================== */
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-card:hover {
    transform: scale(1.05);
}

.gallery-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(224, 101, 56, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

/* ========================================
   VIDEO SECTION
   ======================================== */
.youtube-video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    border: 3px solid #e06538;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

.youtube-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(224, 100, 56, 0.9);
    color: white;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: #e06538;
    transform: translate(-50%, -50%) scale(1.1);
}

@media (max-width: 767.98px) {
    .youtube-video-container {
        padding-bottom: 177.78%;
    }
}

/* ========================================
   FAB CHAT
   ======================================== */
.fab-chat {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.fab-chat.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-chat.tada {
    animation: tada 1s ease-in-out;
}

.fab-chat:hover {
    transform: scale(1.1);
}

.fab-chat.hidden {
    display: none;
}

.fab-chat img {
    width: 150px;
    height: 150px;
}

.fab-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: #ff4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fab-close:hover {
    background: #cc0000;
    transform: scale(1.1);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: black;
    color: #fdf6f2;
    padding: 6rem 0;
}

footer h5 {
    color: #e06538;
    margin-bottom: 1rem;
}

footer a {
    color: #fdf6f2;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #e06538;
}

footer .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #e06538;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
}

footer .social-links a:hover {
    background: #1ea952;
    transform: scale(1.1);
}

footer .certification img {
    max-width: 160px;
}

/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: #e06538;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #c55530;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #6c757d;
}

/* ========================================
   BLOG SECTION
   ======================================== */
.blog-ornament {
    position: absolute;
    bottom: 0;
    left: 1rem;
    width: 200px;
    opacity: 0.25;
    z-index: 1;
    pointer-events: none;
}

.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px !important;
    overflow: hidden;
    border: 3px solid #e06538;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.blog-card .badge {
    font-size: 0.75rem;
}

.blog-card .card-title:hover {
    color: #e06538 !important;
}

.blog-content h3 {
    color: #e06538;
    font-weight: 700;
}

.blog-content p {
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-content ul {
    line-height: 2;
    font-size: 1.1rem;
}

/* ========================================
   ACCORDION
   ======================================== */
.accordion-item {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 4px 16px rgba(224, 101, 56, 0.15);
}

.accordion-button {
    background: white;
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.5rem 1.75rem;
    border: none;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #fff5f0, #ffe8dc);
    color: #e06538;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-button::after {
    width: 1.5rem;
    height: 1.5rem;
    background-size: 1.5rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23e06538'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

.accordion-body {
    padding: 1.5rem 1.75rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    background: white;
}

.accordion-button .fa-question-circle {
    font-size: 1.25rem;
}

/* ========================================
   SEARCH BAR
   ======================================== */
.search-bar {
    position: relative;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    overflow: hidden;
}

.search-bar .input-group-text {
    background: white;
    border: none;
    padding: 0.75rem 1rem;
}

.search-bar .form-control {
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.search-bar .form-control:focus {
    box-shadow: none;
}

.search-bar:focus-within {
    border-color: #e06538;
}

/* ========================================
   TABS
   ======================================== */
#menuTabs .nav-link,
#galleryTabs .nav-link,
#blogTabs .nav-link {
    color: #333;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

#menuTabs .nav-link:hover,
#galleryTabs .nav-link:hover,
#blogTabs .nav-link:hover {
    background: #f5f5f5;
    border-color: #e06538;
    color: #e06538;
}

#menuTabs .nav-link.active,
#galleryTabs .nav-link.active,
#blogTabs .nav-link.active {
    background: #e06538;
    border-color: #e06538;
    color: white;
}

#testimonialTabs .nav-link {
    color: #333;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

#testimonialTabs .nav-link:hover {
    background: #f5f5f5;
    border-color: #e06538;
    color: #e06538;
}

#testimonialTabs .nav-link.active {
    background: #e06538;
    border-color: #e06538;
    color: white;
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination .page-link {
    color: #e06538;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: #e06538;
    border-color: #e06538;
    color: white;
    transform: scale(1.1);
}

.pagination .page-item.active .page-link {
    background: #e06538;
    border-color: #e06538;
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #ccc;
    border-color: #e0e0e0;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    border-radius: 25px;
    width: auto;
    padding: 0 20px;
}

/* WordPress pagination */
nav .page-numbers {
    color: #e06538;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1;
    vertical-align: middle;
}

nav .page-numbers:hover {
    background: #e06538;
    border-color: #e06538;
    color: white;
    transform: scale(1.1);
    text-decoration: none;
}

nav .page-numbers.current {
    background: #e06538;
    border-color: #e06538;
    color: white;
}

nav .page-numbers.prev,
nav .page-numbers.next {
    border-radius: 25px;
    width: auto;
    padding: 0 20px;
    height: 45px;
}

nav .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
}

nav .page-numbers.dots:hover {
    background: transparent;
    transform: none;
}

.pagination-nav {
    text-align: center;
}

/* ========================================
   ANIMATIONS
   ======================================== */
.animate-pulse {
    animation: pulse 2s infinite !important;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(30, 169, 82, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(30, 169, 82, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(30, 169, 82, 0);
    }
}

@keyframes tada {
    0% {
        transform: scale(1);
    }
    10%, 20% {
        transform: scale(0.9) rotate(-3deg);
    }
    30%, 50%, 70%, 90% {
        transform: scale(1.1) rotate(3deg);
    }
    40%, 60%, 80% {
        transform: scale(1.1) rotate(-3deg);
    }
    100% {
        transform: scale(1) rotate(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   PAGE BUILDER SUPPORT
   ======================================== */
.page-builder-full-width {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.page-template-blank {
    margin: 0;
    padding: 0;
}

.page-template-fullwidth .page-builder-full-width {
    padding: 0;
}

/* Elementor compatibility */
.elementor-page .container {
    max-width: 100%;
}

/* Remove default spacing for page builder pages */
.page-template-blank main,
.page-template-fullwidth main {
    padding: 0;
    margin: 0;
}
