/*
Theme Name: SleekCard SEO
Theme URI: https://yourdomain.com/sleekcard
Author: Your Name
Description: A lightweight, SEO-optimized business card theme. 
Version: 1.2.1
License: GNU General Public License v2 or later
Text Domain: sleekcard
*/

/* --- 1. CORE RESET & VARIABLES --- */
:root {
    --accent-color: #0073aa; 
    --text-main: #222;
    --text-muted: #666;
    --bg-light: #ffffff;
    --white: #ffffff;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

/* --- 2. LAYOUT CONTAINERS --- */
.container {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 30px;
    text-align: center;
}

/* --- 3. THE SLEEK HEADER BANNER --- */
.site-header {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--accent-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.header-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* ADJUSTED HEADER SIZES (Back to Compact) */
.padding-small { padding: 30px 0; }
.padding-medium { padding: 60px 0; }
.padding-large { padding: 100px 0; }
.is-full-height { min-height: 100vh; }

/* ADJUSTED TYPOGRAPHY (Back to Sleek) */
.site-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -1px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.4);
}

.tagline {
    font-size: 1.1rem;
    font-weight: 400;
    margin: 10px auto 0 auto;
    max-width: 600px;
    opacity: 1;
    text-shadow: 0 1px 5px rgba(0,0,0,0.4);
}

/* --- 4. NAVIGATION --- */
.main-navigation { margin-top: 30px; }

.nav-menu {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.2s;
}

.nav-menu li a:hover { opacity: 0.7; }

/* --- 5. PILL-STYLE SOCIAL BUTTONS --- */
.social-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.social-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white) !important;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--white);
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

/* --- 6. MAIN CONTENT & FOOTER --- */
.site-main { padding: 60px 0; }
.site-footer { padding: 40px 0; border-top: 1px solid #eee; font-size: 0.9rem; }

/* --- 7. UTILITIES --- */
.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); height: 1px; 
    margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;
}

img { max-width: 100%; height: auto; }

@media (max-width: 600px) {
    .site-title { font-size: 2.2rem; }
    .nav-menu { flex-direction: column; gap: 10px; }
}

/* Mobile Menu Toggle */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; margin: 20px auto; }
.hamburger { display: block; width: 25px; height: 3px; background: #fff; position: relative; }
.hamburger::before, .hamburger::after { content: ''; width: 25px; height: 3px; background: #fff; position: absolute; left: 0; }
.hamburger::before { top: -8px; } .hamburger::after { bottom: -8px; }

/* Footer Grid */
.footer-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; text-align: left; margin-bottom: 40px; }
.footer-contact p { margin: 5px 0; font-size: 0.9rem; }
.footer-menu { list-style: none; padding: 0; display: flex; justify-content: center; gap: 20px; font-size: 0.8rem; border-top: 1px solid #eee; padding-top: 20px; }

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-menu { display: none; flex-direction: column; width: 100%; gap: 10px; }
    .nav-menu.is-open { display: flex; }
    .footer-layout { grid-template-columns: 1fr; text-align: center; }
}
/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-bottom: 3px solid var(--accent-color);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: bold;
    font-size: 1.2rem;
}

.service-card h3 {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    color: var(--text-main);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}
/* Horizontal Services Box */
/* Updated Horizontal Services Box */
.services-horizontal-box {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    margin: -60px auto 50px auto; 
    position: relative;
    z-index: 99;
    overflow: hidden; /* Keeps the rounded corners clean */
}

.services-inner {
    display: flex;
    width: 100%;
    flex-wrap: wrap; /* This allows the 4th item to move down if needed */
}

.service-item {
    flex: 1 1 200px; /* Flex-grow, Flex-shrink, and a 200px base width */
    padding: 25px 20px;
    border-right: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0; /* Added to handle wrapping rows */
    transition: background 0.2s ease;
    box-sizing: border-box;
}

/* Remove borders on the right-most items for desktop (4 columns) */
@media (min-width: 1025px) {
    .service-item:nth-child(4n) {
        border-right: none;
    }
    .service-item {
        border-bottom: none; /* No bottom border needed on a single row */
    }
}

/* Tablet View: 2x2 Grid */
@media (max-width: 1024px) {
    .service-item {
        flex: 1 1 50%; /* Takes up half the width */
    }
    .service-item:nth-child(even) {
        border-right: none;
    }
}

/* Mobile View: 1x4 Grid */
@media (max-width: 600px) {
    .service-item {
        flex: 1 1 100%; /* Takes up full width */
        border-right: none;
    }

}

.service-item:hover {
    background: #fafafa;
}

.service-number {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 800;
    margin-right: 10px;
    font-size: 1.2rem;
}

.service-item h3 {
    margin: 0 0 10px 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.service-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Mobile Adjustments */
@media (max-width: 800px) {
    .services-horizontal-box { margin-top: 20px; }
    .service-item {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    .service-item:last-child { border-bottom: none; }
}

/* Service Box Overlap */
.services-horizontal-box {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    margin: -60px auto 50px auto; 
    position: relative;
    z-index: 99; /* Ensure it stays above everything */
    display: flex;
    overflow: hidden;
}

.services-inner {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
}

.service-item {
    flex: 1;
    padding: 25px 20px;
    border-right: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.service-item:last-child { border-right: none; }

.service-item h3 {
    font-size: 1rem;
    margin: 0 0 8px 0;
    color: #222;
    display: flex;
    align-items: center;
}

.service-number {
    color: var(--accent-color);
    font-weight: 800;
    margin-right: 8px;
}

.service-item p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Responsive Table & Mobile */
@media (max-width: 1024px) {
    .services-inner { flex-wrap: wrap; }
    .service-item { 
        flex: 1 1 50%; /* 2x2 on tablets */
        border-bottom: 1px solid #f0f0f0; 
    }
    .service-item:nth-child(even) { border-right: none; }
}

@media (max-width: 600px) {
    .services-horizontal-box { margin-top: 20px; }
    .service-item { flex: 1 1 100%; border-right: none; }
}