/*
Theme Name: Orka Kuwait
Theme URI: https://orka.kwt
Author: Orka Kuwait
Author URI: https://orka.kwt
Description: A clean, professional one-page theme for Orka Kuwait 3D Printing Services. Features a floating pill navigation, dark forest green palette, and modern card layouts.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: orka-kuwait
Tags: one-page, custom-logo, custom-menu, featured-images, threaded-comments
*/

/* ==========================================================================
   CSS Variables - Dark Forest Green Theme (Matches Lovable)
   ========================================================================== */

:root {
    /* ========================================
       EXACT MATCH to Lovable React index.css
       HSL values converted to HEX
       ======================================== */
    
    /* Core Colors - Dark Theme (Exact from React) */
    --bg: hsl(150, 20%, 14%);               /* #1D2E26 - background */
    --text: hsl(30, 10%, 96%);              /* #F5F4F2 - foreground */
    --primary: hsl(150, 35%, 45%);          /* #4A9472 - primary accent */
    --primary-dark: hsl(150, 35%, 38%);     /* Darker variant */
    --muted: hsl(30, 5%, 55%);              /* #918E89 - muted-foreground */
    --border: hsl(150, 15%, 24%);           /* #303D38 - border */
    --card: hsl(150, 20%, 12%);             /* #172720 - card background */
    --card-alt: rgba(25, 38, 33, 0.95);     /* Process/About sections */
    
    /* Pill Navigation (Exact from React) */
    --pill-bg: hsl(30, 6%, 10%);            /* #1A1918 */
    --pill-text: hsl(30, 10%, 96%);         /* Same as --text */
    --pill-muted: hsl(30, 5%, 64%);         /* Slightly lighter muted */
    
    /* Layout */
    --container-max: 1200px;
    --nav-height: 4.5rem;
    --section-padding: 96px;
    
    /* Typography (Exact from React) */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Shadows (Exact from React) */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px hsla(150, 35%, 45%, 0.3);
    
    /* Transitions (Exact from React) */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   WordPress Reset - Force Theme Colors
   Maximum Specificity for PC View
   ======================================== */
html,
body,
#page,
.site,
main,
.site-content,
.front-page,
body.home,
body.front-page,
body.page-template-front-page {
    background-color: hsl(150, 20%, 14%) !important;
    color: hsl(30, 10%, 96%) !important;
}

/* Main sections - dark forest green */
section,
.hero,
.services,
.portfolio,
.reviews {
    background-color: hsl(150, 20%, 14%) !important;
}

/* Alternate sections - slightly darker/translucent */
.process,
.about {
    background-color: hsla(150, 20%, 12%, 0.95) !important;
}

/* Cards - darker card background */
.service-card:hover,
.review-card,
.partners-card,
.stat-card,
.process-step {
    background-color: hsl(150, 20%, 12%) !important;
}

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

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

ul, ol {
    list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.section-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-description {
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

section {
    padding: var(--section-padding) 0;
}

@media (max-width: 767px) {
    section {
        padding: 64px 0;
    }
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    min-height: 44px;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-light {
    background-color: var(--pill-text);
    color: var(--pill-bg);
}

.btn-light:hover {
    background-color: #E5E4E3;
}

.btn-outline {
    background-color: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background-color: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

/* ==========================================================================
   Header & Floating Pill Navigation
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 1rem;
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
    .site-header {
        padding: 1rem 1.5rem;
    }
}

.floating-pill {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--pill-bg);
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    border-radius: 9999px;
    box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
    .floating-pill {
        gap: 2rem;
        padding: 0.5rem 0.5rem 0.5rem 1.25rem;
    }
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--pill-text);
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--pill-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--pill-text);
}

.nav-cta {
    display: none;
}

.mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: transparent;
    border: none;
    color: var(--pill-text);
    cursor: pointer;
    border-radius: 50%;
}

.mobile-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Desktop Navigation */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    
    .nav-cta {
        display: inline-flex;
    }
    
    .mobile-toggle {
        display: none;
    }
}

/* Mobile Navigation Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--pill-bg);
    padding: 2rem;
    transition: right 0.3s ease;
    z-index: 1001;
}

.mobile-nav.is-open {
    right: 0;
}

.mobile-nav-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    color: var(--pill-text);
    cursor: pointer;
    font-size: 1.5rem;
}

.mobile-nav ul {
    margin-top: 4rem;
}

.mobile-nav li {
    margin-bottom: 1rem;
}

.mobile-nav a {
    display: block;
    padding: 0.75rem 0;
    color: var(--pill-text);
    font-size: 1.125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.mobile-nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: calc(var(--nav-height) + 2rem);
    padding-left: 1rem;
    padding-right: 1rem;
    position: relative;
    background-image: url('assets/images/hero-3d-printing.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Hero Dark Overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(29, 46, 38, 0.85) 0%, 
        rgba(29, 46, 38, 0.75) 50%, 
        rgba(29, 46, 38, 1) 100%
    );
    z-index: 1;
}

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

.hero-content {
    max-width: 800px;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767px) {
    .hero-description {
        font-size: 1rem;
    }
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ==========================================================================
   Services Section
   ========================================================================== */

.services {
    background-color: hsl(150, 20%, 14%) !important;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    background-color: transparent;
    border: none;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    background-color: hsla(150, 20%, 12%, 0.5) !important;
}

.service-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(74, 140, 111, 0.15);
    color: var(--primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ==========================================================================
   How We Work Section (Process)
   ========================================================================== */

.process {
    background-color: hsla(150, 20%, 12%, 0.95) !important;
}

.process-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .process-steps {
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0 !important;
    }
}

.process-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: hsl(150, 20%, 12%) !important;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    min-width: 240px;
    flex: 0 0 auto;
}

.step-icon {
    width: 56px;
    height: 56px;
    background-color: var(--primary);
    color: white;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-icon svg {
    width: 24px;
    height: 24px;
}

.step-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.step-content p {
    color: var(--muted);
    font-size: 0.875rem;
}

/* Arrow connector */
.step-arrow {
    display: none;
    color: rgba(74, 140, 111, 0.4);
    margin: 0 1.5rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .step-arrow {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}

/* Stats Grid - 3 items */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-card {
    background-color: hsl(150, 20%, 12%) !important;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(74, 140, 111, 0.15);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--muted);
    font-size: 0.875rem;
}

/* ==========================================================================
   Portfolio Section
   ========================================================================== */

.portfolio {
    background-color: hsl(150, 20%, 14%) !important;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .portfolio-grid {
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.portfolio-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 1;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

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

.portfolio-overlay span {
    color: var(--primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.portfolio-overlay h3 {
    color: white;
    font-size: 1.125rem;
    margin-top: 0.25rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about {
    background-color: hsla(150, 20%, 12%, 0.95) !important;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
}

.about-text .section-label {
    margin-bottom: 0.5rem;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--muted);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--muted);
}

.about-feature svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* Partners Card */
.partners-card {
    background-color: hsl(150, 20%, 12%) !important;
    border-radius: 1rem;
    padding: 2rem;
}

@media (min-width: 768px) {
    .partners-card {
        padding: 2.5rem;
    }
}

.partners-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.partners-card > p {
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.partners-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--bg);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: var(--muted);
}

.partner-badge svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

/* ==========================================================================
   Reviews Section
   ========================================================================== */

.reviews {
    background-color: hsl(150, 20%, 14%) !important;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.review-card {
    background-color: hsl(150, 20%, 12%) !important;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    overflow: hidden;
    flex-shrink: 0;
}

.review-avatar.pink {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.review-avatar.cyan {
    background-color: #06b6d4;
}

.review-avatar.orange {
    background-color: #f97316;
}

.review-avatar.purple {
    background: linear-gradient(135deg, #a855f7, #9333ea);
}

.review-avatar.blue {
    background-color: #3b82f6;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-info h4 {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.review-stars {
    display: flex;
    gap: 0.125rem;
    color: #FACC15;
}

.review-stars svg {
    width: 14px;
    height: 14px;
}

.review-text {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.6;
    flex: 1;
}

.review-image {
    margin-top: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.review-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

/* ==========================================================================
   Footer - 2 Column Layout
   ========================================================================== */

.site-footer {
    background-color: var(--card);
    color: var(--text);
    padding: 3rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
}

.footer-column h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-column li a {
    color: var(--muted);
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-column li a:hover {
    color: var(--primary);
}

.footer-column li a svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-copyright {
    color: var(--muted);
    font-size: 0.75rem;
}

/* ==========================================================================
   Floating Social Buttons (Stacked)
   ========================================================================== */

.floating-social {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 999;
}

@media (min-width: 768px) {
    .floating-social {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

.floating-social a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

@media (min-width: 768px) {
    .floating-social a {
        width: 56px;
        height: 56px;
    }
}

.floating-social a:hover {
    transform: scale(1.1);
}

.floating-social svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px;
    max-height: 24px;
}

@media (min-width: 768px) {
    .floating-social svg {
        width: 28px !important;
        height: 28px !important;
        max-width: 28px;
        max-height: 28px;
    }
}

/* TikTok - Black */
.floating-tiktok {
    background-color: #000000;
}

.floating-tiktok:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Instagram - Gradient */
.floating-instagram {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.floating-instagram:hover {
    box-shadow: 0 8px 32px rgba(225, 48, 108, 0.4);
}

/* WhatsApp - Green */
.floating-whatsapp {
    background-color: #25D366;
}

.floating-whatsapp:hover {
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* WordPress alignment classes */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Animations
   ========================================================================== */

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }
.animate-delay-600 { animation-delay: 0.6s; }
