/*
Theme Name: Trater starter
Theme URI: https://trater-solutions.com
Author: Trater Solutions
Author URI: https://trater-solutions.com
Description: Starter theme optimized for Elementor. Clean, fast, fully customizable.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: trater-starter
*/

:root {
    --ts-primary: #02A9F7;
    --ts-dark: #1e293b;
    --ts-light: #f8fafc;
    --ts-text: #334155;
    --ts-muted: #94a3b8;
    --ts-border: #e2e8f0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ts-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ts-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Elementor full-width support */
.elementor-page .site-content { padding: 0; }
.elementor-page .site-content .entry-content { margin: 0; padding: 0; }

/* Topbar */
.site-topbar {
    background: var(--ts-dark);
    color: rgba(255,255,255,0.7);
    font-size: 0.8125rem;
    padding: 6px 0;
}
.topbar-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}
.site-topbar a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.2s; }
.site-topbar a:hover { color: #fff; }
.site-topbar i { margin-right: 4px; font-size: 0.75rem; }

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 1px 10px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.site-header .header-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.site-logo img { max-height: 45px; width: auto; }
.site-logo a { display: flex; align-items: center; text-decoration: none; }
.site-logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ts-dark);
    text-decoration: none;
    letter-spacing: -0.02em;
}

/* Navigation */
.site-nav ul { list-style: none; display: flex; gap: 0.25rem; margin: 0; padding: 0; }
.site-nav a {
    color: var(--ts-text);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
    text-decoration: none;
}
.site-nav a:hover { color: var(--ts-primary); background: rgba(99,102,241,0.06); }
.site-nav .current-menu-item a { color: var(--ts-primary); background: rgba(99,102,241,0.08); }

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 32px;
    height: 24px;
    position: relative;
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ts-dark);
    position: absolute;
    left: 0;
    transition: all 0.3s;
}
.menu-toggle span:nth-child(1) { top: 2px; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 2px; }
.menu-toggle.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* Footer */
.site-footer {
    background: var(--ts-dark);
    color: rgba(255,255,255,0.7);
    padding: 2.5rem 0 0;
    font-size: 0.875rem;
}
/* Footer 3 columns */
.footer-cols {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1.5rem;
}
.footer-col h3 { color: #fff; font-size: 1.35rem; margin: 0 0 0.75rem; font-weight: 700; }
.footer-col h4 { color: #fff; font-size: 1rem; margin: 0 0 1rem; font-weight: 600; }
.footer-desc { color: rgba(255,255,255,0.5); line-height: 1.6; margin: 0; }
.footer-col p { margin: 0 0 0.6rem; font-size: 0.875rem; }
.footer-col i { width: 16px; margin-right: 8px; color: #89D6FB; font-size: 0.8rem; }
.footer-col a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col li a { font-size: 0.9rem; }
.footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.footer-credit a { color: #02A9F7; text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 0.8125rem; text-decoration: none; }
.footer-links a:hover { color: #fff; }

/* ANPC Banners */
.anpc-banners {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}
.anpc-banners a img { height: 36px; width: auto; opacity: 0.8; transition: opacity 0.2s; }
.anpc-banners a:hover img { opacity: 1; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-legal a { color: rgba(255,255,255,0.5); font-size: 0.8125rem; text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: rgba(255,255,255,0.8); }

/* Cookie Consent */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ts-dark);
    color: #fff;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 9999;
    font-size: 0.875rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p { margin: 0; flex: 1; }
.cookie-banner a { color: var(--ts-primary); }
.cookie-btn {
    background: var(--ts-primary);
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}
.cookie-btn:hover { opacity: 0.9; }

/* Off-canvas mobile menu */
.offcanvas-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 9998; opacity: 0; visibility: hidden; transition: all 0.3s;
}
.offcanvas-overlay.open { opacity: 1; visibility: visible; }

.offcanvas-menu {
    position: fixed; top: 0; right: -320px; width: 300px; max-width: 85vw;
    height: 100vh; background: #fff; z-index: 9999;
    display: flex; flex-direction: column;
    box-shadow: -8px 0 30px rgba(0,0,0,0.15);
    transition: right 0.3s ease;
}
.offcanvas-menu.open { right: 0; }

.offcanvas-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--ts-border);
}
.offcanvas-brand { font-weight: 700; font-size: 1.1rem; color: var(--ts-dark); }
.offcanvas-close {
    background: none; border: none; font-size: 1.75rem; color: var(--ts-muted);
    cursor: pointer; line-height: 1; padding: 0;
}

.offcanvas-body { flex: 1; overflow-y: auto; padding: 1rem 0; }
.offcanvas-body ul { list-style: none; padding: 0; margin: 0; }
.offcanvas-body li { border-bottom: 1px solid #f1f5f9; }
.offcanvas-body a {
    display: block; padding: 1rem 1.5rem; color: var(--ts-dark);
    text-decoration: none; font-weight: 500; font-size: 1rem; transition: all 0.2s;
}
.offcanvas-body a:hover { background: #f8fafc; color: var(--ts-primary); }
.offcanvas-body .current-menu-item a { color: var(--ts-primary); background: rgba(99,102,241,0.05); }

.offcanvas-footer {
    padding: 1.25rem 1.5rem; border-top: 1px solid var(--ts-border);
    display: flex; flex-direction: column; gap: 0.5rem;
}
.offcanvas-footer a { color: var(--ts-text); text-decoration: none; font-size: 0.875rem; }
.offcanvas-footer i { margin-right: 0.5rem; color: var(--ts-primary); width: 16px; }

/* Desktop only nav */
.site-nav-desktop ul { list-style: none; display: flex; gap: 0.25rem; margin: 0; padding: 0; }
.site-nav-desktop a {
    color: var(--ts-text); font-weight: 500; font-size: 0.9375rem;
    padding: 0.5rem 1rem; border-radius: 6px; transition: all 0.2s; text-decoration: none;
}
.site-nav-desktop a:hover { color: var(--ts-primary); background: rgba(99,102,241,0.06); }
.site-nav-desktop .current-menu-item a { color: var(--ts-primary); background: rgba(99,102,241,0.08); }

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .site-topbar { display: none; }
    .site-nav-desktop { display: none; }
    .footer-cols { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 1rem; }
    .anpc-banners { justify-content: center; }
}
@media (min-width: 769px) {
    .menu-toggle { display: none; }
    .offcanvas-menu, .offcanvas-overlay { display: none !important; }
}
