/* =============================================
   ÖZAY GRUP — Shared Styles (shared.css)
   All common styles across pages.
   ============================================= */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    --brand-blue: #005294;
    --brand-dark: #00335c;
    --midnight: #050a14;
    --midnight-800: #0b1221;
    --stone-light: #f5f5f0;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --font-sans: 'Manrope', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

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

/* ===== BASE ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--midnight);
    color: white;
    overflow-x: hidden;
}

.font-serif {
    font-family: var(--font-serif);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--midnight);
}

::-webkit-scrollbar-thumb {
    background: var(--brand-blue);
    border-radius: 3px;
}

/* ===== CUSTOM CURSOR ===== */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--brand-blue);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 82, 148, 0.5);
    z-index: 9998;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cursor-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    color: white;
    opacity: 0;
    transition: all 0.2s;
}

/* Cursor hover state */
body.hovering .cursor-dot {
    width: 60px;
    height: 60px;
    background: rgba(0, 82, 148, 0.3);
}

body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    border-color: var(--brand-blue);
}

body.hovering .cursor-text {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Desktop: custom cursor */
@media (min-width: 1024px) {
    body.custom-cursor-enabled {
        cursor: none;
    }

    body.custom-cursor-enabled .cursor-dot,
    body.custom-cursor-enabled .cursor-outline {
        display: flex;
    }
}

/* Mobile/Tablet: normal cursor, hide custom */
@media (max-width: 1023px) {
    body {
        cursor: auto !important;
    }

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }
}

/* ===== NAVIGATION ===== */
.ozay-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.ozay-nav > * {
    pointer-events: auto;
}

.ozay-nav img {
    height: 40px;
    cursor: pointer;
}

/* ===== FULL SCREEN MENU OVERLAY ===== */
#menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--midnight);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

#menu-overlay.active {
    pointer-events: auto;
    opacity: 1;
}

#menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0;
    transform: translateY(1rem);
    transition: all 0.3s;
    padding: 1rem;
    color: white;
    background: transparent;
    border: none;
    pointer-events: none;
}

@media (min-width: 768px) {
    #menu-close {
        right: 2rem;
        font-size: 0.875rem;
    }
}

/* ===== NOISE OVERLAY ===== */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (max-width: 1023px) {
    .noise-overlay {
        display: none !important;
    }
}

/* ===== FOOTER ===== */
.ozay-footer {
    background: var(--midnight);
    color: white;
    padding: 4rem 2rem;
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 1024px) {
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-logo-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo-section img {
    height: 40px;
}

.footer-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--gray-400);
    font-weight: 300;
}

.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--brand-blue);
    color: white;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.footer-cta:hover {
    background: white;
    color: var(--midnight);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--brand-blue);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-contact-item {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact-item span.material-icons-outlined {
    color: var(--brand-blue);
    font-size: 1.25rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: white;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.footer-legal a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: white;
}

.footer-legal span {
    color: var(--gray-700);
}

.footer-copyright {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: right;
}

@media (min-width: 768px) {
    .footer-copyright {
        flex-direction: row;
        align-items: center;
    }
}

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

/* ===== ANIMATION UTILITIES ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

.fade-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* gs-fade is managed by GSAP Observer in index.html — do NOT define here */

/* ===== BRAND UTILITIES ===== */
.bg-brand-dark-gradient {
    background: linear-gradient(150deg, #050a14 40%, #00335c 100%);
}

.text-brand-gradient {
    background: linear-gradient(to right, #005294, #00335c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.filter-white {
    filter: brightness(0) invert(1);
}

/* ===== STAT NUMBER ===== */
.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand-blue), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

/* ===== SCROLLBAR HIDE ===== */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--brand-blue);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 90;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    color: white;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: white;
    color: var(--midnight);
}

/* ===== WHATSAPP WIDGET ===== */
.whatsapp-widget {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 90;
    display: none; /* Hidden by default — enabled via admin panel */
    align-items: center;
    gap: 0.75rem;
}

body.wa-enabled .whatsapp-widget {
    display: flex;
}

.whatsapp-btn {
    width: 52px;
    height: 52px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    animation: whatsappPulse 3s ease-in-out infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    animation: none;
}

.whatsapp-btn svg {
    width: 26px;
    height: 26px;
    fill: white;
}

.whatsapp-label {
    background: var(--midnight);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: white;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-widget:hover .whatsapp-label {
    opacity: 1;
    transform: translateX(0);
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7); }
}

@media (max-width: 767px) {
    .whatsapp-widget {
        bottom: 1.25rem;
        left: 1.25rem;
    }
    .whatsapp-label {
        display: none;
    }
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9500;
    background: var(--midnight-800);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.25rem 2rem;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.cookie-banner.show {
    display: flex;
}

.cookie-text {
    font-size: 0.8rem;
    color: #9CA3AF;
    line-height: 1.5;
    flex: 1;
}

.cookie-text a {
    color: var(--brand-blue);
    text-decoration: underline;
    transition: color 0.3s;
}

.cookie-text a:hover {
    color: white;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-accept {
    background: var(--brand-blue);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
}

.cookie-accept:hover {
    background: white;
    color: var(--midnight);
}

.cookie-reject {
    background: transparent;
    color: #6B7280;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.625rem 1.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
}

.cookie-reject:hover {
    border-color: rgba(255,255,255,0.3);
    color: white;
}

@media (max-width: 767px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }
    .cookie-actions {
        width: 100%;
    }
    .cookie-accept, .cookie-reject {
        flex: 1;
    }
}
