/* ========================================
   PAPOUTSAS.GR - COMMON STYLES
   ======================================== */

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #22313f;
    --secondary: #34495e;
    --accent: #2199a1;
    --accent-dark: #1a7a80;
    --gold: #d4af37;
    --light: #f8f9fa;
    --white: #ffffff;
    --dark: #22313f;
    --text: #333;
    --text-light: #666;
    --gradient1: linear-gradient(135deg, #22313f 0%, #34495e 50%, #2c3e50 100%);
    --shadow: 0 20px 60px rgba(34,49,63,0.15);
    --shadow-lg: 0 30px 80px rgba(34,49,63,0.25);
}

/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--light);
    overflow-x: hidden;
    line-height: 1.7;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10003;
    padding: 15px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(34,49,63,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a {
    color: #22313f;
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active,
.navbar.scrolled .nav-links a:focus {
    color: #2199a1;
    background: rgba(33, 153, 161, 0.08);
    outline: 2px solid rgba(33, 153, 161, 0.4);
}

.navbar.scrolled .hamburger span {
    background: #22313f;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo img {
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s;
    display: block;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links a:focus {
    color: #fff;
    background: rgba(33, 153, 161, 0.25);
    outline: 2px solid rgba(33, 153, 161, 0.5);
    outline-offset: 2px;
}

/* ===== DROPDOWN MENU ===== */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(34, 49, 63, 0.15);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    margin: 0;
}

.nav-links li:hover .dropdown-menu,
.nav-links li:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    color: #22313f !important;
    font-size: 0.85rem;
    padding: 12px 20px;
    border-radius: 0;
    background: transparent !important;
    outline: none !important;
}

.dropdown-menu a:hover {
    background: rgba(33, 153, 161, 0.1) !important;
    color: #2199a1 !important;
}

.dropdown-toggle::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 6px;
    font-size: 0.7rem;
    transition: transform 0.3s;
    display: inline-block;
}

.nav-links li:hover .dropdown-toggle::after,
.has-dropdown.open .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* ===== HAMBURGER & CLOSE BUTTONS ===== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s;
}

.menu-close {
    display: none;
}

/* ===== MOBILE STYLES ===== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(34, 49, 63, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 90px 30px 30px;
        transition: all 0.4s;
        gap: 8px;
        z-index: 9999;
        overflow-y: auto;
        opacity: 0;
        pointer-events: none;
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: auto;
        z-index: 10002;
    }

    .nav-links.open ~ .menu-close {
        display: flex;
    }

    .nav-links.open ~ .hamburger {
        display: none !important;
    }

    .hamburger {
        display: flex;
        position: relative;
        z-index: 10002;
    }

    .nav-links li {
        display: block;
        font-size: 1.3rem;
        padding: 16px 24px;
        border-radius: 12px;
        font-weight: 600;
        color: #ffffff;
        border: 1px solid rgba(255,255,255,0.25);
        background: rgba(255,255,255,0.15);
        transition: all 0.3s ease;
    }

    .nav-links a {
        color: #ffffff;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
        display: block;
        width: 100%;
    }

    /* Make all items clearly visible */
    .nav-links li:not(:has(.active)) a:hover {
        background: rgba(255,255,255,0.25);
        color: #ffffff;
        border-color: rgba(255,255,255,0.35);
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(33, 153, 161, 0.45);
        color: #ffffff;
        border-color: rgba(33, 153, 161, 0.7);
        text-shadow: 0 2px 4px rgba(0,0,0,0.6);
        box-shadow: 0 3px 12px rgba(33, 153, 161, 0.4);
        transform: translateY(-1px);
    }

    .menu-close {
        position: fixed;
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: rgba(255,255,255,0.15);
        border: 2px solid rgba(255,255,255,0.3);
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        transition: all 0.3s;
        z-index: 10004;
    }

    .menu-close:hover {
        background: rgba(33, 153, 161, 0.4);
        transform: rotate(90deg);
    }

    /* Mobile Dropdown */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(0, 0, 0, 0.25);
        box-shadow: none;
        border-radius: 8px;
        margin: 8px 0;
        padding: 10px;
        display: none !important;
        border: 1px solid rgba(255,255,255,0.2);
    }

    .has-dropdown.open > .dropdown-menu {
        display: block !important;
    }

    .dropdown-menu a {
        color: #ffffff !important;
        font-size: 1rem;
        font-weight: 500;
        padding: 14px 20px 14px 30px;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
        border-radius: 6px;
        transition: all 0.3s ease;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.1);
    }

    .dropdown-menu a:hover {
        background: rgba(33, 153, 161, 0.4) !important;
        color: #ffffff !important;
        box-shadow: 0 2px 8px rgba(33, 153, 161, 0.3);
        border-color: rgba(33, 153, 161, 0.3);
    }
}

/* ===== FOOTER ===== */
footer {
    background: #22313f;
    color: rgba(255,255,255,0.6);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.footer-brand .logo {
    font-size: 1.8rem;
    margin-bottom: 15px;
    display: block;
}

.footer-brand p {
    line-height: 1.8;
    font-size: 0.9rem;
}

.footer-col h4 {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.footer-col ul li a:hover {
    color: #2199a1;
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-contact li i {
    color: #2199a1;
    margin-top: 4px;
    width: 16px;
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: #2199a1;
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 25px;
    font-size: 0.85rem;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.powered-by {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.3s;
}

.powered-by:hover {
    color: #2199a1;
}

.footer-bottom p {
    text-align: right;
    margin: 0;
}

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

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

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom-inner {
        flex-direction: column;
        gap: 10px;
    }
    .footer-bottom p {
        text-align: center;
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(33, 153, 161, 0.3);
}

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

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

/* ===== SECTION STYLES ===== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    .section-header h2 {
        font-size: 2rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
