/*
Theme Name: EirSpace Custom
Theme URI: https://eirspace.ie/
Version: 1.4
Text Domain: eirspace
*/

/* ==========================================================================
   1. GLOBAL RESET & BASE STYLES
   ========================================================================== */
* { box-sizing: border-box; }

body {
    margin: 0; padding: 0;
    font-family: 'Exo 2', sans-serif;
    line-height: 1.6;
    background-color: #050a12;
    color: #e0e0e0;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    color: #ffffff;
    letter-spacing: 3px; /* Keep this for that high-tech feel */
    text-transform: uppercase;
    margin-top: 0;
    font-weight: 700; /* Use the boldest weight for maximum impact */
}

a { transition: all 0.3s ease; text-decoration: none; }

/* Global Bullet Reset */
ul, li { list-style: none !important; padding: 0; margin: 0; }

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    background-color: rgba(5, 10, 18, 0.95);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(82, 199, 238, 0.2);
    backdrop-filter: blur(10px);
}

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

.logo img { max-height: 55px; width: auto; display: block; }
/* Container for Logo and New Tagline */
/* Container for Logo and New Tagline */
.logo-area {
    display: flex;
    flex-direction: column; /* Stacked below logo */
    justify-content: center;
    margin-right: 30px; /* Space between logo and menu */
}

/* Updated logo styles without the crop */
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible; /* CRUCIAL: Remove the overflow: hidden */
}

/* Specific styling for the new clean logo image */
.logo img {
    height: 35px; /* Clean, horizontal logo height */
    width: auto;
    display: block;
    object-fit: contain; /* CRUCIAL: Remove the object-fit: cover */
}

/* ==========================================================================
   New Live Text Tagline Styles
   ========================================================================== */
.site-tagline {
    font-family: 'Exo 2', sans-serif; /* exo 2 for high contrast */
    font-size: 11px;
    font-weight: 400;
    color: #52c7ee; /* brand cyan */
    letter-spacing: 0.5px;
    text-transform: none; /* mixed case to distinguish from main nav */
    margin-top: -5px; /* Pulls it closer to the logo */
    text-align: center;
    text-shadow: 0 0 5px rgba(82, 199, 238, 0.3);
}

@media (max-width: 768px) {
    .logo-area {
        align-items: center;
        margin-right: 0;
        margin-bottom: 10px;
    }
    .site-tagline {
        font-size: 10px;
    }
}

/* New Live Text Tagline Styles */
.site-tagline {
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    color: #52c7ee;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: -5px; /* Pulls it closer to the logo */
    font-weight: 500;
    text-shadow: 0 0 5px rgba(82, 199, 238, 0.3);
}

/* Optional: Crop the old tagline out of the logo image if needed */
.logo img {
    max-height: 45px; /* Adjusted to make room for text */
    width: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 768px) {
    .logo-area {
        align-items: center;
        text-align: center;
    }
    .site-tagline {
        font-size: 9px;
    }
}

.nav-menu { display: flex; align-items: center; gap: 25px; }

.nav-menu li { position: relative; }

.nav-menu li a {
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px; /* Slightly smaller for an elegant, high-end tech look */
    font-weight: 400;
    letter-spacing: 1.5px; /* Critical for reading Orbitron at small sizes */
    padding: 10px 0;
    display: block;
}

.nav-menu li a:hover {
    color: #52c7ee;
    text-shadow: 0 0 8px rgba(82, 199, 238, 0.6);
}

/* Hamburger Icon Styling */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2000;
}

.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: #52c7ee;
    border-radius: 10px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) { .menu-toggle { display: flex; } }

/* Desktop Dropdown */
@media (min-width: 769px) {
    .nav-menu .sub-menu {
        display: none;
        position: absolute;
        top: 100%; left: 0;
        background: #ffffff;
        min-width: 240px;
        padding: 15px 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        border-top: 3px solid #52c7ee;
    }

    .nav-menu li:hover > .sub-menu { display: block; animation: fadeIn 0.2s; }

    .nav-menu .sub-menu li a {
        color: #1a2a3a !important; /* Dark text for white background */
        padding: 10px 20px;
        font-family: 'Exo 2', sans-serif;
        text-transform: none;
        border-bottom: 1px solid #f0f0f0;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero-section {
    background: radial-gradient(circle at center, #102a43 0%, #050a12 100%);
    padding: 120px 0;
    text-align: center;
}
.hero-content h1 { 
    font-size: 3.5rem; 
    margin-bottom: 20px; 
    font-weight: 700; 
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    font-weight: 300; /* Lighter weight for Exo 2 creates a premium, airy feel */
    color: #b0c4de;
    max-width: 800px;
    margin: 0 auto 40px;
}
.glow-text { color: #52c7ee; text-shadow: 0 0 15px rgba(82, 199, 238, 0.6); }

/* ==========================================================================
   4. COMPONENTS (Buttons)
   ========================================================================== */
.hero-btns { display: flex; justify-content: center; gap: 20px; }
.btn-primary { background: #52c7ee; color: #050a12; padding: 15px 35px; border-radius: 4px; font-weight: bold; }
.btn-secondary { border: 2px solid #52c7ee; color: #52c7ee; padding: 13px 33px; border-radius: 4px; }

/* ==========================================================================
   5. SPECIALIZATIONS (Homepage Grid) 
   ========================================================================== */
.services-section { 
    padding: 80px 0; 
    background: #050a12; 
}

.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 35px;
    border-radius: 12px;
    border: 1px solid rgba(82, 199, 238, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: #52c7ee;
    background: rgba(82, 199, 238, 0.05);
}

.service-card h3 {
    color: #ffffff;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(82, 199, 238, 0.2);
    padding-bottom: 15px;
}

.service-card h3 a {
    color: #ffffff;
}

.service-card ul li { 
    padding: 8px 0; 
    position: relative; 
}
.service-card ul li a {
    color: #52c7ee;
    font-family: 'Exo 2', sans-serif;
    font-size: 0.95rem; /* Slightly smaller list items help headers stand out */
    font-weight: 400;
    transition: all 0.2s ease;
}

.service-card ul li a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(82, 199, 238, 0.8);
    padding-left: 5px;
}

.service-card ul li::before {
    content: "▹"; 
    color: #52c7ee;
    margin-right: 10px;
    font-weight: bold;
    display: inline-block;
}
.learn-more-link {
    color: #52c7ee !important;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 20px;
}

.learn-more-link:hover {
    color: #ffffff !important;
    text-shadow: 0 0 10px #52c7ee;
}

/* ==========================================================================
   6. RESPONSIVE DESIGN (Fixed Mobile Readability & Hierarchy)
   ========================================================================== */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: row !important;
        justify-content: space-between;
        padding: 0 15px;
    }

    /* Standardize the Mobile Nav Container */
    .nav-menu {
        display: none; 
        flex-direction: column;
        background: #050a12; /* Matches deep space background */
        width: 100%;
        position: absolute;
        top: 100%; left: 0;
        padding: 20px;
        z-index: 999;
        border-bottom: 1px solid rgba(82, 199, 238, 0.2);
    }

    .nav-menu.is-active { display: flex !important; }

    /* Fix expanded sub-menus */
    .nav-menu .sub-menu {
        display: none; 
        background: rgba(255, 255, 255, 0.05) !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .nav-menu li.is-open > .sub-menu { display: block !important; }

    /* MOBILE READABILITY: Force white text for sub-items */
    .nav-menu .sub-menu li a {
        color: #ffffff !important; /* High contrast for dark mobile background */
        background: transparent !important;
        padding: 15px 20px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left;
        font-family: 'Exo 2', sans-serif;
        text-transform: none;
        letter-spacing: 0;
    }

    /* Parent categories style */
    .nav-menu > li > a {
        color: #52c7ee !important; 
        padding: 15px 0;
        text-align: center;
        font-family: 'Orbitron', sans-serif;
    }
}

/* ==========================================================================
   7. CONTACT CTA & DESKTOP RESET
   ========================================================================== */
/* Targets ONLY the main top bar Contact button */
.nav-menu > li:last-child > a {
    background: #52c7ee !important;
    color: #050a12 !important;
    padding: 10px 20px !important;
    border-radius: 4px;
    margin-left: 10px;
    font-weight: 700;
}

.nav-menu > li:last-child > a:hover {
    background: #ffffff !important;
    box-shadow: 0 0 15px rgba(82, 199, 238, 0.4);
}

/* DESKTOP ONLY: High contrast for white dropdown background */
@media (min-width: 769px) {
    .nav-menu .sub-menu li a {
        background: transparent !important;
        color: #1a2a3a !important; /* Dark text for desktop contrast */
        padding: 10px 20px !important;
        border-radius: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu .sub-menu li a:hover {
        background: #f8f9fa !important;
        color: #52c7ee !important;
    }
}


/* ==========================================================================
   8. FOOTER STYLING
   ========================================================================== */
.site-footer {
    background: #050a12;
    color: #b0c4de;
    padding: 60px 0 0;
    border-top: 1px solid rgba(82, 199, 238, 0.1);
}

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

.footer-column h3 {
    color: #52c7ee;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
}

.footer-column p, .footer-column li {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-column ul {
    list-style: none !important;
    padding: 0;
}

.footer-column a {
    color: #b0c4de;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #52c7ee;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(82, 199, 238, 0.1);
    color: #52c7ee;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(82, 199, 238, 0.2);
}

.footer-social a:hover {
    background: #52c7ee;
    color: #050a12;
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(82, 199, 238, 0.5);
}

@media (max-width: 768px) {
    .footer-bottom-flex {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ==========================================================================
   9. SERVICE PAGE TEMPLATE STYLES
   ========================================================================== */
.service-page-header {
    background: linear-gradient(rgba(5, 10, 18, 0.8), rgba(5, 10, 18, 0.8)), 
                radial-gradient(circle at top right, #102a43, #050a12);
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid rgba(82, 199, 238, 0.2);
}

.service-subtitle {
    color: #52c7ee;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.service-page-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    padding: 60px 20px;
}

.service-main-content .entry-content {
    font-size: 1.1rem;
    color: #b0c4de;
}

.service-main-content h2, .service-main-content h3 {
    margin-top: 40px;
    color: #ffffff;
}

.sidebar-cta-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(82, 199, 238, 0.2);
    position: sticky;
    top: 120px;
}

.sidebar-cta-card h3 {
    color: #52c7ee;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.sidebar-contact-info {
    margin-top: 25px;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

@media (max-width: 992px) {
    .service-page-layout {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   10. CONTACT SECTION (Space-Themed)
   ========================================================================== */
.contact-section {
    padding: 100px 0;
    background: radial-gradient(circle at bottom left, #102a43, #050a12);
    border-top: 1px solid rgba(82, 199, 238, 0.1);
}

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

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-details li {
    padding: 10px 0;
    color: #b0c4de;
    font-family: 'Exo 2', sans-serif;
}

.contact-details i {
    color: #52c7ee;
    margin-right: 15px;
    text-shadow: 0 0 10px #52c7ee;
}

/* The Glowing Form */
.space-form {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(82, 199, 238, 0.2);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.space-form input, .space-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: rgba(5, 10, 18, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: 'Exo 2', sans-serif;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.space-form input:focus, .space-form textarea:focus {
    outline: none;
    border-color: #52c7ee;
    box-shadow: 0 0 10px rgba(82, 199, 238, 0.3);
}

.space-form .btn-primary {
    width: 100%;
    cursor: pointer;
    border: none;
}

@media (max-width: 768px) {
    .contact-flex { grid-template-columns: 1fr; text-align: center; }
}

/* ==========================================================================
   11. SPECIFIC SERVICE PAGE (Common Template)
   ========================================================================== */
.specific-service-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Main Content + Sidebar */
    gap: 60px;
    padding: 80px 20px;
}

.specific-service-content .entry-content {
    font-size: 1.15rem;
    color: #e0e0e0; /* Clean white text for readability */
    line-height: 1.8;
}

.specific-service-content .entry-content p {
    margin-bottom: 30px;
}

.specific-service-content .entry-content ul {
    list-style: none !important;
    padding-left: 10px;
}

.specific-service-content .entry-content li {
    font-family: 'Exo 2', sans-serif; /* exo 2 for high contrast */
    font-weight: 400;
    margin-bottom: 15px;
    font-size: 1rem;
    position: relative;
    color: #b0c4de;
    padding-left: 25px;
}

.specific-service-content .entry-content li::before {
    content: "▹"; /* Uses the same cyan arrow as your cards */
    color: #52c7ee;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Ensure images within the content are styled well */
.specific-service-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(82, 199, 238, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 992px) {
    .specific-service-layout {
        grid-template-columns: 1fr;
        padding: 50px 20px;
    }
}