/* ==========================================================================
   1 Way Tech Solutions - Global Styles (Responsive & Brand Update)
   ========================================================================== */

:root {
    /* Brand Colors Extracted from Logo */
    --brand-blue: #0A6EB4; 
    --brand-dark: #222222;
    --accent-orange: #FF6B00; 
    
    /* UI Colors */
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #f4f7f6;
    --bg-white: #ffffff;
    
    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --transition: all 0.3s ease;
}

/* Resets & Typography */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); color: var(--text-main); line-height: 1.6; background: var(--bg-light); overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--brand-dark); }
a { text-decoration: none; color: var(--brand-blue); transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
.img-fluid { width: 100%; height: auto; object-fit: cover; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }

/* Layout Utilities */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }

/* Buttons */
/* Buttons - Apple Pill Style */
.btn { 
    display: inline-block; 
    padding: 14px 32px; /* Slightly increased padding to balance the curved ends */
    border-radius: 999px; /* This creates the perfect, continuous Apple pill shape */
    font-size: 1.1rem;
    font-weight: 520;
    cursor: pointer; 
    transition: var(--transition); 
    border: none; 
    text-align: center; 
}.btn-primary { background: var(--accent-orange); color: var(--bg-white); }
.btn-primary:hover { background: #e65c00; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(255, 107, 0, 0.3); color: var(--bg-white); }
.btn-outline { border: 2px solid var(--brand-blue); color: var(--brand-blue); }
.btn-outline:hover { background: var(--brand-blue); color: var(--bg-white); }

/* Header & Logo */
.site-header { background: var(--bg-white); padding: 15px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.header-inner { display: flex; justify-content: space-between; align-items: center; position: relative; }

/* INCREASED LOGO SIZE */
.logo img { max-height: 92px; width: auto; transition: var(--transition); }

/* Desktop Navigation */
.main-nav ul { display: flex; list-style: none; gap: 30px; align-items: center; }
.main-nav a { font-weight: 520; color: var(--brand-dark); }
.main-nav a:hover { color: var(--brand-blue); }

/* Mobile Menu Toggle Button (Hidden on Desktop) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}
.mobile-menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--brand-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero { 
    background: linear-gradient(180deg, rgba(0, 153, 199, 0.9) 0%, rgba(0, 99, 148, 0.10) 100%), 
                url('../images/hero-bg.jpg') no-repeat center center/cover; /* Make sure the file name matches your downloaded image */
    color: var(--bg-white); 
    padding: 150px 0; 
    text-align: center; 
}
/* Base Hero Section Text (Applies to ALL pages) */
.hero h1 { 
    color: var(--bg-white); 
    font-size: 3rem; 
    margin-bottom: 20px; 
}

.hero p { 
    font-size: 1.2rem; 
    margin-bottom: 30px; 
    opacity: 1; 
    max-width: 700px; 
    margin-inline: auto; 
    color: var(--bg-white); 
}

/* Shadow applied ONLY to the Homepage */
.home-hero h1 {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.home-hero p {
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.8);
}

/* Explicitly remove text shadow from buttons just in case */
.hero .btn {
    text-shadow: none;
}
.hero-btns { display: flex; justify-content: center; gap: 15px; }

/* Service Cards */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 40px; }
.service-card { background: var(--bg-white); border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: var(--transition); border-top: 4px solid transparent; overflow: hidden; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-5px); border-top-color: var(--brand-blue); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.service-card-img { height: 200px; width: 100%; object-fit: cover; }
.service-card-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.service-card-content h3 { margin-bottom: 15px; font-size: 1.25rem; color: var(--brand-blue); }
.service-card-content p { flex-grow: 1; }
.link-arrow { font-weight: 600; color: var(--brand-blue); display: inline-block; margin-top: 15px; align-self: flex-start; }
.link-arrow:hover { color: var(--accent-orange); }

/* Contact Form */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 40px; }
.contact-info { background: var(--brand-blue); color: var(--bg-white); padding: 40px; border-radius: 8px; }
.contact-info h3 { color: var(--bg-white); margin-bottom: 20px; }
.contact-info a { color: var(--bg-white); font-weight: 600; }
.contact-info a:hover { color: var(--accent-orange); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--brand-dark); }
.form-control { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(10, 110, 180, 0.1); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ==========================================================================
   Mobile Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
    /* Show Hamburger Menu */
    .mobile-menu-toggle { display: flex; }

    /* Adjust Logo slightly for very small screens */
    .logo img { max-height: 45px; }

    /* Mobile Navigation Dropdown */
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }

    /* When menu is active, expand it */
    .main-nav.active {
        max-height: 400px; /* Adjust if menu gets very long */
        padding: 20px 0;
        border-top: 1px solid #eee;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    /* Hamburger Animation to 'X' */
    .mobile-menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .mobile-menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* General Mobile Fixes */
    .hero h1 { font-size: 2.2rem; }
    .hero-btns { flex-direction: column; width: 100%; }
    .hero-btns .btn { width: 100%; text-align: center; }
    .contact-wrapper { grid-template-columns: 1fr; }
    
    /* Fix interior page grids */
    div[style*="display: grid; grid-template-columns: 1fr 1fr;"] {
        grid-template-columns: 1fr !important;
    }
}
/* ==========================================================================
   Services Page Hero (Right-Side block, Center-Aligned text)
   ========================================================================== */
.services-hero {
    /* Significantly lightened the overlay so the image is much brighter */
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2)), 
                url('../images/services.jpg') no-repeat center center/cover;
}

.services-hero .container {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Pushes the entire block to the right side of the screen */
    text-align: center;    /* Centers the text lines relative to each other */
}

.services-hero h1 {
    color: #ffffff !important; 
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
    width: 100%;
    max-width: 650px; /* Constrains the width so the centering looks neat */
}

.services-hero p {
    color: #ffffff !important; 
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.9);
    width: 100%;
    max-width: 650px; /* Matches the heading width for a perfect text block */
    margin-left: 0; 
    margin-right: 0;
}

/* ==========================================================================
   Header WhatsApp Button
   ========================================================================== */
.btn-whatsapp {
    background-color: #25D366;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
}
.btn-whatsapp:hover {
    background-color: #1DA851;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

/* ==========================================================================
   Footer Layout & Social Icons
   ========================================================================== */
.footer-grid {
    display: grid;
    /* minmax(0, 1fr) forces the grid to make all 4 columns strictly equal width */
    grid-template-columns: repeat(4, minmax(0, 1fr)); 
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    max-height: 80px; 
    width: auto;
    display: block;
    margin: 0 auto 25px auto; 
}

/* Default state for Social Links */
.social-link {
    color: var(--bg-white) !important;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    text-decoration: none;
    font-weight: 400; /* Removed the bold hover effect */
}

/* Base Icon Colors */
.icon-fb { color: #1877F2; }
.icon-li { color: #0A66C2; }
.icon-x { color: #ffffff; } 
.icon-ig { color: #E1306C; }
.icon-wa { color: #25D366; }

/* New Hover Effects: Text changes to brand color */
.social-fb:hover { color: #1877F2 !important; }
.social-li:hover { color: #0A66C2 !important; }
.social-x:hover { color: #aab8c2 !important; } /* Slight grey so you can see the hover on dark bg */
.social-ig:hover { color: #E1306C !important; }
.social-wa:hover { color: #25D366 !important; }

/* Mobile Responsiveness for Footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Stacks to 1 column on mobile */
        text-align: center;
    }
    .footer-logo {
        margin: 0 auto 20px auto;
    }
}