/* 
   Anumobiles - Phone Repair & Sales
   Reset and Base Styles 
*/
:root {
    --primary-color: #3b82f6;      /* Professional subtle blue */
    --primary-hover: #2563eb;
    --secondary-color: #1e293b;    /* Dark slate for text */
    --bg-dark: #1e293b;            /* Dark backgrounds (Newsletters/Footer contacts) */
    --text-dark: #334155;
    --text-light: #64748b;
    --text-white: #ffffff;         /* Absolute white for contrast on dark backgrounds */
    --bg-light: #f1f5f9;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
    --primary-color: #3b82f6;
    --primary-hover: #60a5fa;
    --secondary-color: #f1f5f9;    /* Light text for headings */
    --bg-dark: #0b1120;            /* Very dark bg for newsletter/footer contacts */
    --text-dark: #cbd5e1;
    --text-light: #94a3b8;
    --text-white: #ffffff;         /* Absolute white for contrast on dark backgrounds */
    --bg-light: #1e293b;
    --bg-white: #0f172a;
    --border-color: #334155;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

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

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
    border: 2px solid var(--primary-color);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.btn-outline:hover {
    background-color: var(--text-white);
    color: #0f172a; /* Keep hover text dark for high contrast */
}

/* Titles */
.section-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.title-line {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin-bottom: 30px;
}

.title-line.center {
    margin: 0 auto 40px auto;
}

.read-more {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    color: var(--primary-color);
    text-transform: uppercase;
    position: relative;
    padding-bottom: 2px;
}

.read-more::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.read-more:hover::after {
    width: 100%;
}

/* Top Bar */
.top-bar {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    font-size: 13px;
    color: var(--text-light);
}

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

.top-bar i {
    margin-right: 5px;
    color: var(--primary-color);
}

.top-phone a {
    font-weight: 600;
    color: var(--text-dark);
}

.top-phone a:hover {
    color: var(--primary-color);
}

/* Main Header */
.main-header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -1px;
}

.logo-text span {
    font-weight: 400;
    color: var(--text-light);
}

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

.nav-list a {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--secondary-color);
    position: relative;
    padding: 10px 0;
}

.nav-list a i {
    font-size: 10px;
    margin-left: 3px;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color);
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--secondary-color);
}

.theme-toggle {
    font-size: 18px;
    cursor: pointer;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    background-image: url('https://images.unsplash.com/photo-1597872200969-2b65d56bd16b?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(44, 62, 80, 0.9) 0%, rgba(44, 62, 80, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--text-white);
    max-width: 600px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

/* Features Ribbon */
.features-ribbon {
    background-color: var(--bg-white);
    padding: 40px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: relative;
    z-index: 20;
    margin-top: -30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.feature-text {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--secondary-color);
    line-height: 1.4;
}

/* Services Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.slider-nav {
    display: flex;
    gap: 10px;
}

.slide-btn {
    width: 40px;
    height: 40px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
}

.slide-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

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

.service-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    border-radius: 4px;
    overflow: hidden;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    height: 40px;
}

.service-content p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    height: 80px;
}

/* Privacy Banner */
.privacy-banner {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 40px 0;
}

.privacy-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.privacy-icon {
    font-size: 48px;
    color: #e67e22; /* Warning orange */
}

.privacy-text h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.privacy-text p {
    color: var(--text-light);
    font-size: 14px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-desc {
    margin-bottom: 20px;
    color: var(--text-light);
}

.about-features {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.about-feat-item {
    display: flex;
    gap: 15px;
}

.about-feat-icon {
    font-size: 32px;
    color: var(--primary-color);
}

.about-feat-content h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    margin-bottom: 5px;
}

.about-feat-content p {
    font-size: 13px;
    color: var(--text-light);
}

.img-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.img-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(59,130,246,0.2) 0%, transparent 100%);
}

/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.process-step {
    background-color: var(--bg-white);
    padding: 30px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.process-step:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.step-img {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    position: relative;
    border: 3px solid #eee;
}

.step-img img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.step-num {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-family: var(--font-heading);
    box-shadow: var(--shadow-sm);
}

.step-content h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.step-content h3 span {
    color: var(--primary-color);
}

.step-content p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Newsletter & Footer structure will follow... (Adding partial styles out of space) */
.newsletter {
    background-color: var(--bg-dark);
    padding: 40px 0;
    color: var(--text-white);
}

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

.news-title {
    font-family: var(--font-heading);
    font-size: 18px;
}

.news-form {
    display: flex;
    width: 500px;
}

.news-form input {
    flex-grow: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    border-radius: 4px 0 0 4px;
    font-family: var(--font-body);
    background-color: var(--bg-white);
    color: var(--text-dark);
}

.news-form button {
    border-radius: 0 4px 4px 0;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.social-links a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Base Footer Styles */
.footer {
    background-color: #1a222a; /* Even darker blue/gray for footer */
    color: #a0a5aa;
}

.footer-contacts {
    background-color: var(--bg-dark);
    padding: 20px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-white);
    font-size: 14px;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 18px;
}

.map-container {
    width: 100%;
}

.footer-main {
    padding: 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-brand .logo-text {
    color: var(--text-white);
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 14px;
}

.footer-links h4 {
    color: var(--text-white);
    font-family: var(--font-heading);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.link-list li {
    margin-bottom: 10px;
}

.link-list a {
    font-size: 14px;
}

.link-list a:hover {
    color: var(--primary-color);
}

.footer-bullets li {
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.footer-bullets i {
    color: var(--primary-color);
    margin-top: 4px;
}

.footer-bottom {
    background-color: #11171d;
    padding: 20px 0;
    text-align: center;
    position: relative;
    font-size: 14px;
}

.back-to-top {
    position: absolute;
    right: 20px;
    top: -20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--text-white);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
}

.back-to-top:hover {
    background-color: var(--text-white);
    color: var(--primary-color);
}

/* Responsiveness */
@media (max-width: 992px) {
    .features-grid, .services-grid, .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .nav-list {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        gap: 15px;
    }

    .nav-list.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-title {
        font-size: 36px;
    }

    .features-ribbon {
        margin-top: 0;
        border-radius: 0;
    }

    .newsletter-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .news-form {
        width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .features-grid, .services-grid, .process-grid, .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }
}

/* Pages Header Shared */
.page-header {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.page-header-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.7);
}
.page-header-content {
    position: relative;
    z-index: 10;
    color: white;
}
.page-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
}

/* Service Details Section */
.service-detail-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}
.service-detail-section:nth-child(even) {
    background-color: var(--bg-light);
}
.service-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}
.service-content-wrapper h2 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 20px;
}
.service-content-wrapper p {
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 16px;
}
.service-price {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 10px;
}

/* Shop Section */
.shop-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.product-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}
.product-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.product-card h3 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 18px;
}
.product-card p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 25px;
    height: 60px;
}

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