/*
Theme Name: Anay Technical Services
Theme URI: https://example.com
Author: Anay Technical Team
Author URI: https://example.com
Description: Custom theme for Anay Technical Services
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* =========================================
   1. FONTS & VARIABLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700;800&display=swap');

:root {
    --primary-purple: #481E78;
    --light-purple: #7044a0;
    --accent-gold: #D4AF37;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f9f9fb;
}

/* =========================================
   2. GLOBAL RESET
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
header {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(72, 30, 120, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.brand img {
    height: 55px;
    width: auto;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-name {
    font-family: 'Montserrat', sans-serif; 
    font-size: 1.2rem; 
    font-weight: 800; 
    color: var(--primary-purple);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Navigation Menu */
nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
    padding-bottom: 5px;
}

/* WordPress Active Menu State */
nav ul li a:hover, 
nav ul li.current-menu-item a,
nav ul li.current_page_item a {
    color: var(--primary-purple);
    border-bottom: 2px solid var(--accent-gold);
}

/* =========================================
   4. HERO & SECTIONS
   ========================================= */
.hero {
    background: linear-gradient(rgba(72, 30, 120, 0.9), rgba(72, 30, 120, 0.8)), url('https://anayservices.com/wp-content/uploads/2025/12/background-scaled.jpg');
    background-size: cover;
    background-position: center;
    height: 75vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero .hero-tagline {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--accent-gold);
    letter-spacing: 3px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.btn {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--primary-purple);
    padding: 12px 35px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-gold);
    cursor: pointer;
}

.btn:hover {
    background: transparent;
    color: var(--accent-gold);
}

.page-header {
    background: var(--primary-purple);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    font-weight: 700;
    font-size: 2.5rem;
    text-transform: uppercase;
}

.page-header p {
    font-family: 'Montserrat', sans-serif;
    color: var(--accent-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 10px;
}

.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section h2 {
    color: var(--primary-purple);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border-bottom: 4px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    border-bottom: 4px solid var(--accent-gold);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    color: var(--primary-purple);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Forms */
form { width: 100%; }
form input, form select, form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 1rem;
}
form label {
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    margin-bottom: 5px;
}

/* Footer */
footer {
    background: #2a2a2a;
    color: white;
    text-align: center;
    padding: 30px;
    margin-top: auto;
    font-size: 0.9rem;
}

/* Lightbox & Project Styles */
.card-image-link {
    display: block;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.card-image-link img { transition: transform 0.5s ease, filter 0.3s ease; }
.card-image-link:hover img { transform: scale(1.08); filter: brightness(1.1); }

.lightbox-modal {
    display: none;
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); 
    align-items: center;
    justify-content: center;
    padding-top: 0;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    animation: zoomIn 0.3s;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}
.close-btn:hover { color: var(--accent-gold); }

@keyframes zoomIn {
  from {transform:scale(0.8); opacity: 0;}
  to {transform:scale(1); opacity: 1;}
}

@media (max-width: 900px) {
    .container { flex-direction: column; gap: 15px; text-align: center; }
    .brand { flex-direction: column; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .grid-container { grid-template-columns: 1fr; }
}