/*
Theme Name: Kainos Hoowey
Theme URI:
Description: A custom WordPress theme with a modern, professional, and robotic design. (Revamped - Light Theme)
Version: 3.1
Author:
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kainos-hoowey
Domain Path: /languages
*/

/* 1. Variables - Elite Clean Light Palette */
:root {
    /* Colors - Softer & Elegant */
    --primary-color: #f6c400;
    /* Montech Yellow */
    --primary-hover: #e5b300;
    --primary-soft: rgba(246, 196, 0, 0.1);

    --secondary-color: #0f172a;
    /* Sophisticated Deep Slate/Navy */
    --secondary-light: #334155;

    --accent-color: #f6c400;

    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;

    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    /* Softer, cleaner background */
    --bg-dark: #0f172a;
    /* Matches secondary */

    --border-light: rgba(15, 23, 42, 0.08);
    --border-soft: rgba(15, 23, 42, 0.04);

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --font-mono: 'Montserrat', sans-serif;

    /* Spacing */
    --container-width: 1280px;
    --section-spacing: 120px;

    /* Shadows & Effects - More Layered & Modern */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: auto;
    /* Managed by Lenis */
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.8;
    background-color: var(--bg-white);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

p {
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

/* 3. Layout & Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.container-fluid {
    width: 100%;
    padding: 0 5%;
}

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

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

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

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

.grid {
    display: grid;
    gap: 40px;
}

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

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Flex & Alignment */
.d-flex {
    display: flex;
}

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

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.flex-column {
    flex-direction: column;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}

.gap-40 {
    gap: 40px;
}

@media (max-width: 768px) {
    .d-none-mobile {
        display: none !important;
    }
}

/* 4. Components */

/* 4. Components */

/* Buttons - Friendly & Elegant */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 42px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-full);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ffdb4d 100%);
    color: var(--secondary-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -6px rgba(246, 196, 0, 0.4);
}

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

.btn-outline:hover {
    background: var(--secondary-color);
    color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Cards */
.card {
    background: var(--bg-white);
    padding: 48px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.card-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition);
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color);
    background: var(--bg-white);
    box-shadow: 0 0 0 5px rgba(246, 196, 0, 0.15);
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tech / Decor */
.text-accent {
    color: var(--primary-color);
}

.mono-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.mono-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--primary-color);
}

/* 5. Header (New Structure: Glass & Sticky) */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 1000;
    transition: all 0.5s var(--transition);
    background: transparent;
    display: flex;
    align-items: center;
}

.site-header.is-scrolled {
    height: 80px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar {
    width: 100%;
}

/* Brand */
.brand-link {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--secondary-color);
    letter-spacing: -2px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.brand-dot {
    color: var(--primary-color);
    font-size: 2.5rem;
    line-height: 0.4;
    margin-left: 2px;
}

.custom-logo-link img {
    max-height: 45px;
    width: auto !important;
    display: block;
    border-radius: 0 !important;
}

/* Nav Links */
.nav-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--secondary-color);
    position: relative;
    padding: 10px 0;
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
}

/* Removed ::after underline effect */

/* Header Action Button */
.navbar-actions .btn-sm {
    padding: 8px 30px;
    font-weight: 700;
}

.btn-primary-glow {
    background: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 8px 25px rgba(246, 196, 0, 0.3);
    border: none;
}

.btn-primary-glow:hover {
    box-shadow: 0 12px 35px rgba(246, 196, 0, 0.5);
    transform: translateY(-2px);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle .bar {
    width: 32px;
    height: 2px;
    background: var(--secondary-color);
    transition: 0.4s var(--transition);
    border-radius: 2px;
}

/* X Transformation */
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
    transform: translateY(-5px) rotate(-45deg);
}

/* Mobile Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-white);
    z-index: 999;
    clip-path: circle(0% at top right);
    transition: clip-path 0.8s cubic-bezier(0.7, 0, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-overlay.active {
    clip-path: circle(150% at top right);
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin: 30px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.active .mobile-nav-links li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-links a {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    letter-spacing: -2px;
}

/* Mobile Specifics */
@media (max-width: 768px) {
    .site-header {
        height: 80px;
    }

    .site-header.is-scrolled {
        height: 70px;
    }

    .menu-toggle {
        display: flex;
    }
}

/* 6. Footer (Redesigned for Friendly Elegance) */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 100px 0 0;
    font-size: 1rem;
    position: relative;
    z-index: 10;
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 -20px 50px -20px rgba(246, 196, 0, 0.1);
}

.footer-top {
    padding-bottom: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 80px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--bg-white);
    letter-spacing: -1px;
    margin-bottom: 30px;
    display: inline-block;
}

.footer-logo .dot {
    color: var(--primary-color);
}

.footer-logo .custom-logo-link img {
    max-height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    /* Ensure logo is white in dark footer */
    display: block;
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 320px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 0.8rem;
    font-weight: 700;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-title {
    color: var(--bg-white);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 35px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 16px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.contact-info {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.5);
}

.contact-link {
    display: block;
    color: var(--bg-white);
    font-weight: 600;
    margin-bottom: 12px;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--primary-color);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

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

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-desc {
        max-width: 100%;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 20px;
        text-align: left;
        align-items: flex-start;
    }

    .footer-legal {
        gap: 20px;
    }
}

/* 7. Animations (Scroll Reveal classes) */
.fade-up,
.fade-in,
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-text {
    transform: translateY(20px);
}

.is-in-view.fade-up,
.is-in-view.fade-in,
.is-in-view.reveal-text {
    opacity: 1;
    transform: translateY(0);
}

.stagger-load>* {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.is-in-view.stagger-load>* {
    opacity: 1;
    transform: translateY(0);
}

.stagger-load>*:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-load>*:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger-load>*:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger-load>*:nth-child(4) {
    transition-delay: 0.4s;
}

/* 8. Responsive */
@media (max-width: 1024px) {

    .grid-4,
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    :root {
        --section-spacing: 80px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
        --section-spacing: 60px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Hero adjustments */
    .hero-section .grid {
        gap: 40px;
    }

    .hero-section .hero-visual {
        order: -1;
    }
}

.mb-0 {
    margin-bottom: 0 !important;
}

.gap-0 {
    gap: 0 !important;
}

/* Solutions Page Refinements */
.solution-image-panel {
    position: relative;
    height: 700px;
    overflow: hidden;
    padding: 50px;
    background: transparent;
}

.solution-image-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: transform 0.8s var(--transition);
}

@media (max-width: 768px) {
    .solution-image-panel {
        height: 25rem;
        padding: 20px;
    }

    .m-flex-wrap {
        flex-wrap: wrap;
    }
}

.w-full {
    width: 100% !important;
}