/*
Theme Name: Clario Pro
Description: Professional WordPress theme for window coverings, blinds, and smart glass solutions
Version: 2.0
Author: Clario Team
*/

/* CDN Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* Reset & Base Styles - NO BORDER RADIUS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 !important;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    font-size: 16px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    position: relative;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    max-height: 40px;
    width: auto;
}

@media (max-width: 768px) {
    .logo {
        font-size: 24px;
    }
    
    .logo img {
        max-height: 32px;
    }
    
    .logo-tagline {
        font-size: 10px;
    }
}

.logo-content {
    display: flex;
    flex-direction: column;
}

.logo-tagline {
    font-size: 11px;
    color: #6b7280;
    font-weight: 400;
    display: block;
    margin-top: 2px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: #1f2937;
    margin: 3px 0;
    transition: all 0.3s ease;
    display: block;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
}

.main-nav a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 12px 0;
    position: relative;
    font-size: 15px;
}

.main-nav a:hover {
    color: #1f2937;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: width 0.2s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 140px 0 100px;
    text-align: center;
}

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: #3b82f6;
    color: white;
    padding: 16px 32px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Products Section */
.products {
    padding: 100px 0;
    background: #f9fafb;
}

.products h2 {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1f2937;
    letter-spacing: -0.5px;
}

.products-subtitle {
    text-align: center;
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.product-card {
    background: white;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    padding: 40px 32px;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-card h3 {
    font-family: 'Poppins', sans-serif;
    color: #1f2937;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 20px;
}

.product-card .icon {
    width: 60px;
    height: 60px;
    background: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.product-card .icon i {
    font-size: 24px;
    color: white;
}

/* About Section */
.about {
    padding: 100px 0;
    background: white;
}

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

.about h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #1f2937;
    color: white;
    text-align: center;
}

.contact h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: -0.5px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 32px;
}

.contact-item h3 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-item i {
    font-size: 32px;
    color: #3b82f6;
    margin-bottom: 16px;
}

/* Footer */
.site-footer {
    background: #111827;
    color: white;
    text-align: center;
    padding: 60px 0 32px;
}

/* Page Styles */
.page-content {
    padding: 120px 0 80px;
    min-height: 60vh;
}

.page-header {
    background: #f9fafb;
    padding: 140px 0 80px;
    text-align: center;
}

.page-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.page-header p {
    font-size: 20px;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Enhanced Mobile Responsive */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 24px;
    }
    
    .about-content {
        gap: 40px;
    }
    
    .header-content .cta-button {
        display: none;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .header-content .cta-button {
        display: none !important;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 8px 32px rgba(0,0,0,0.15);
        z-index: 999;
        transform: translateY(-10px);
        opacity: 0;
        transition: all 0.3s ease;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .main-nav.active {
        display: block;
        transform: translateY(0);
        opacity: 1;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 0;
        margin: 0;
    }
    
    .main-nav li {
        border-bottom: 1px solid #e5e7eb;
        transform: translateX(-20px);
        opacity: 0;
        animation: slideIn 0.3s ease forwards;
    }
    
    .main-nav li:nth-child(1) { animation-delay: 0.1s; }
    .main-nav li:nth-child(2) { animation-delay: 0.2s; }
    .main-nav li:nth-child(3) { animation-delay: 0.3s; }
    .main-nav li:nth-child(4) { animation-delay: 0.4s; }
    .main-nav li:nth-child(5) { animation-delay: 0.5s; }
    .main-nav li:nth-child(6) { animation-delay: 0.6s; }
    
    .main-nav a {
        display: block;
        padding: 18px 24px;
        color: #374151;
        font-size: 16px;
    }
    
    .main-nav a:hover {
        background: #f9fafb;
        color: #3b82f6;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero h1 {
        font-size: 32px;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 16px;
        margin-bottom: 32px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 24px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-card {
        padding: 30px 24px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .page-header h1 {

    }
}

/* Mobile Menu Animations */
@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-overlay.fade-out {
    opacity: 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #3b82f6;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1f2937;
    color: white;
    padding: 20px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.cookie-text p {
    margin: 0;
    font-size: 14px;
}

.cookie-text a {
    color: #3b82f6;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
}

.cookie-btn {
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cookie-btn.accept {
    background: #3b82f6;
    color: white;
}

.cookie-btn.accept:hover {
    background: #2563eb;
}

.cookie-btn.decline {
    background: transparent;
    color: #9ca3af;
    border: 1px solid #374151;
}

.cookie-btn.decline:hover {
    background: #374151;
    color: white;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    }
    
    .page-header p {
        font-size: 16px;
    }
    
    .products h2, .about h2, .contact h2 {
        font-size: 32px;
    }
    
    .cta-button {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .product-card {
        padding: 24px 16px;
    }
    
    .page-header {
        padding: 120px 0 60px;
    }
}

@keyframes slideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Cookie Consent Styles */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1f2937;
    color: white;
    padding: 20px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 250px;
}

.cookie-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-text a {
    color: #3b82f6;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-btn.accept {
    background: #3b82f6;
    color: white;
}

.cookie-btn.accept:hover {
    background: #2563eb;
}

.cookie-btn.decline {
    background: transparent;
    color: #d1d5db;
    border: 1px solid #374151;
}

.cookie-btn.decline:hover {
    background: #374151;
    color: white;
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #3b82f6;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Admin Product Form Styles */
.product-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border: 1px solid #e5e7eb;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1f2937;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-primary {
    background: #3b82f6;
    color: white;
    padding: 12px 24px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: #2563eb;
}
    }
    
    .page-header p {
        font-size: 16px;
    }
    
    .products h2, .about h2, .contact h2 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .cta-button {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .product-card {
        padding: 24px 16px;
    }
    
    .page-header {
        padding: 120px 0 60px;
    }
}

@keyframes slideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Admin Product Form Styles */
.product-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border: 1px solid #e5e7eb;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1f2937;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-primary {
    background: #3b82f6;
    color: white;
    padding: 12px 24px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: #2563eb;
}

/* Cookie Consent Styles */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1f2937;
    color: white;
    padding: 20px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 250px;
}

.cookie-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-text a {
    color: #3b82f6;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-btn.accept {
    background: #3b82f6;
    color: white;
}

.cookie-btn.accept:hover {
    background: #2563eb;
}

.cookie-btn.decline {
    background: transparent;
    color: #d1d5db;
    border: 1px solid #374151;
}

.cookie-btn.decline:hover {
    background: #374151;
    color: white;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #3b82f6;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility Improvements */
.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;
}

/* Focus States */
.cta-button:focus,
.cookie-btn:focus,
button:focus,
a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Print Styles */
@media print {
    .site-header,
    .cookie-consent,
    .loading-overlay {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}