/*
Theme Name: iKaral Store
Theme URI: https://ikaral-store.com
Author: Kapten Yanri
Author URI: https://ikaral-store.com
Description: Professional Apple Device Service theme for iKaral Store. Clean, modern design inspired by Apple aesthetics. Features portfolio gallery, customer testimonials, and WhatsApp contact integration.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ikaral-store
Tags: custom-background, custom-logo, custom-menu, featured-images, theme-options, translation-ready, one-column, two-columns
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.4
*/

/* ========================================
   CSS RESET & BASE
======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ik-primary: #0071E3;
    --ik-primary-dark: #0059B3;
    --ik-primary-light: #E8F2FD;
    --ik-dark: #1D1D1F;
    --ik-gray: #6E6E73;
    --ik-gray-light: #86868B;
    --ik-gray-bg: #F5F5F7;
    --ik-white: #FFFFFF;
    --ik-border: #D2D2D7;
    --ik-success: #34C759;
    --ik-wa-green: #25D366;
    --ik-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --ik-shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --ik-radius: 12px;
    --ik-radius-lg: 20px;
    --ik-font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --ik-max-width: 1200px;
    --ik-transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--ik-font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ik-dark);
    background: var(--ik-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--ik-primary);
    transition: var(--ik-transition);
}

a:hover {
    color: var(--ik-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.ik-container {
    max-width: var(--ik-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   HEADER & NAVIGATION
======================================== */
.ik-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--ik-transition);
}

.ik-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--ik-shadow);
}

.ik-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: var(--ik-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.ik-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--ik-dark);
    letter-spacing: -0.5px;
}

.ik-logo img {
    height: 36px;
    width: auto;
}

.ik-logo .ik-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--ik-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 800;
}

.ik-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.ik-menu a {
    color: var(--ik-gray);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: var(--ik-transition);
}

.ik-menu a:hover {
    color: var(--ik-dark);
}

.ik-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--ik-dark);
    padding: 8px;
}

/* ========================================
   HERO SECTION
======================================== */
.ik-hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, var(--ik-gray-bg) 0%, var(--ik-white) 100%);
    text-align: center;
}

.ik-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--ik-primary-light);
    color: var(--ik-primary);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.ik-hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--ik-dark);
    margin-bottom: 16px;
}

.ik-hero h1 span {
    color: var(--ik-primary);
}

.ik-hero p {
    font-size: clamp(17px, 2vw, 21px);
    color: var(--ik-gray);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.5;
}

.ik-hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.ik-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ik-transition);
    border: none;
    text-align: center;
}

.ik-btn-primary {
    background: var(--ik-primary);
    color: white;
}

.ik-btn-primary:hover {
    background: var(--ik-primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,113,227,0.3);
}

.ik-btn-secondary {
    background: transparent;
    color: var(--ik-primary);
    border: 2px solid var(--ik-primary);
}

.ik-btn-secondary:hover {
    background: var(--ik-primary);
    color: white;
}

.ik-btn-wa {
    background: var(--ik-wa-green);
    color: white;
}

.ik-btn-wa:hover {
    background: #20BD5A;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}

/* ========================================
   STATS BAR
======================================== */
.ik-stats {
    padding: 40px 0;
    border-bottom: 1px solid var(--ik-border);
}

.ik-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.ik-stat-item h3 {
    font-size: 36px;
    font-weight: 700;
    color: var(--ik-primary);
    letter-spacing: -0.02em;
}

.ik-stat-item p {
    font-size: 14px;
    color: var(--ik-gray);
    margin-top: 4px;
    font-weight: 500;
}

/* ========================================
   SERVICES SECTION
======================================== */
.ik-section {
    padding: 80px 0;
}

.ik-section-alt {
    background: var(--ik-gray-bg);
}

.ik-section-header {
    text-align: center;
    margin-bottom: 56px;
}

.ik-section-header h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    color: var(--ik-dark);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.ik-section-header p {
    font-size: 18px;
    color: var(--ik-gray);
    max-width: 560px;
    margin: 0 auto;
}

.ik-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.ik-service-card {
    background: var(--ik-white);
    border-radius: var(--ik-radius-lg);
    padding: 36px 28px;
    border: 1px solid var(--ik-border);
    transition: var(--ik-transition);
}

.ik-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ik-shadow-lg);
    border-color: var(--ik-primary);
}

.ik-service-icon {
    width: 56px;
    height: 56px;
    background: var(--ik-primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.ik-service-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ik-dark);
    margin-bottom: 8px;
}

.ik-service-card p {
    font-size: 15px;
    color: var(--ik-gray);
    line-height: 1.5;
}

/* ========================================
   PORTFOLIO GALLERY
======================================== */
.ik-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.ik-gallery-item {
    position: relative;
    border-radius: var(--ik-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    background: var(--ik-gray-bg);
}

.ik-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--ik-transition);
}

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

.ik-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    opacity: 0;
    transition: var(--ik-transition);
}

.ik-gallery-item:hover .ik-gallery-overlay {
    opacity: 1;
}

.ik-gallery-overlay h4 {
    font-size: 16px;
    font-weight: 600;
}

.ik-gallery-overlay span {
    font-size: 13px;
    opacity: 0.8;
}

.ik-gallery-filter {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.ik-filter-btn {
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid var(--ik-border);
    background: white;
    font-size: 14px;
    font-weight: 500;
    color: var(--ik-gray);
    cursor: pointer;
    transition: var(--ik-transition);
}

.ik-filter-btn:hover,
.ik-filter-btn.active {
    background: var(--ik-primary);
    color: white;
    border-color: var(--ik-primary);
}

/* ========================================
   TESTIMONIALS
======================================== */
.ik-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.ik-testimonial-card {
    background: var(--ik-white);
    border-radius: var(--ik-radius-lg);
    padding: 32px;
    border: 1px solid var(--ik-border);
    transition: var(--ik-transition);
}

.ik-testimonial-card:hover {
    box-shadow: var(--ik-shadow);
}

.ik-testimonial-stars {
    color: #FFB800;
    font-size: 16px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.ik-testimonial-card blockquote {
    font-size: 15px;
    color: var(--ik-dark);
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.ik-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ik-testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--ik-gray-bg);
}

.ik-testimonial-author h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--ik-dark);
}

.ik-testimonial-author span {
    font-size: 13px;
    color: var(--ik-gray);
}

/* ========================================
   BEFORE/AFTER SECTION
======================================== */
.ik-ba-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.ik-ba-card {
    background: white;
    border-radius: var(--ik-radius-lg);
    overflow: hidden;
    border: 1px solid var(--ik-border);
}

.ik-ba-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
}

.ik-ba-images img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.ik-ba-label {
    position: absolute;
    bottom: 8px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ik-ba-label.before {
    left: 8px;
    background: rgba(255,59,48,0.9);
    color: white;
}

.ik-ba-label.after {
    right: 8px;
    background: rgba(52,199,89,0.9);
    color: white;
}

.ik-ba-info {
    padding: 20px;
}

.ik-ba-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ik-dark);
    margin-bottom: 4px;
}

.ik-ba-info p {
    font-size: 14px;
    color: var(--ik-gray);
}

/* ========================================
   CTA / CONTACT SECTION
======================================== */
.ik-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--ik-primary) 0%, var(--ik-primary-dark) 100%);
    text-align: center;
    color: white;
}

.ik-cta h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.ik-cta p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.ik-cta .ik-btn-wa {
    font-size: 18px;
    padding: 16px 36px;
}

/* ========================================
   CONTACT FORM
======================================== */
.ik-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.ik-contact-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--ik-dark);
}

.ik-contact-info p {
    color: var(--ik-gray);
    margin-bottom: 24px;
}

.ik-contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 15px;
    color: var(--ik-dark);
}

.ik-contact-detail-icon {
    width: 40px;
    height: 40px;
    background: var(--ik-primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.ik-contact-form input,
.ik-contact-form textarea,
.ik-contact-form select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--ik-border);
    border-radius: var(--ik-radius);
    font-size: 16px;
    font-family: var(--ik-font);
    margin-bottom: 16px;
    transition: var(--ik-transition);
    background: var(--ik-white);
}

.ik-contact-form input:focus,
.ik-contact-form textarea:focus {
    outline: none;
    border-color: var(--ik-primary);
    box-shadow: 0 0 0 4px rgba(0,113,227,0.1);
}

.ik-contact-form textarea {
    height: 120px;
    resize: vertical;
}

/* ========================================
   FOOTER
======================================== */
.ik-footer {
    background: var(--ik-dark);
    color: rgba(255,255,255,0.6);
    padding: 48px 0 24px;
}

.ik-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.ik-footer-brand h3 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.ik-footer-brand p {
    font-size: 14px;
    line-height: 1.6;
}

.ik-footer h4 {
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.ik-footer ul {
    list-style: none;
}

.ik-footer ul li {
    margin-bottom: 10px;
}

.ik-footer ul a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: var(--ik-transition);
}

.ik-footer ul a:hover {
    color: white;
}

.ik-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
}

/* ========================================
   WHATSAPP FLOATING BUTTON
======================================== */
.ik-wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background: var(--ik-wa-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    transition: var(--ik-transition);
    cursor: pointer;
}

.ik-wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}

.ik-wa-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* ========================================
   LIGHTBOX
======================================== */
.ik-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.ik-lightbox.active {
    display: flex;
}

.ik-lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--ik-radius);
    box-shadow: var(--ik-shadow-lg);
}

.ik-lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .ik-menu {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--ik-border);
    }

    .ik-menu.active {
        display: flex;
    }

    .ik-menu a {
        font-size: 18px;
    }

    .ik-menu-toggle {
        display: block;
    }

    .ik-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .ik-stat-item h3 {
        font-size: 28px;
    }

    .ik-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .ik-testimonials-grid {
        grid-template-columns: 1fr;
    }

    .ik-contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ik-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ik-ba-grid {
        grid-template-columns: 1fr;
    }

    .ik-hero {
        padding: 100px 0 60px;
    }
}

@media (max-width: 480px) {
    .ik-gallery-grid {
        grid-template-columns: 1fr;
    }

    .ik-services-grid {
        grid-template-columns: 1fr;
    }

    .ik-hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .ik-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   ANIMATIONS
======================================== */
.ik-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.ik-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* WordPress Alignment Classes */
.alignwide {
    max-width: var(--ik-max-width);
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.aligncenter {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* WordPress Content Styles */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    letter-spacing: -0.02em;
}

.entry-content p {
    margin-bottom: 1.2em;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.2em;
    padding-left: 1.5em;
}

.wp-block-image {
    margin-bottom: 1.5em;
}

.wp-block-image img {
    border-radius: var(--ik-radius);
}
