/* 
 * Devanteam Main Stylesheet
 * 
 * Design System:
 * - Font: Roboto
 * - Container: 1200px
 * - Border Radius: 12px
 * - Colors: Handled via inline CSS Variables in head
 */

/* ==========================================================================
   1. Base & Reset
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color, #161616);
    background-color: var(--bg-color, #f4f4f4);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: #000;
}

p {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color, #8100D1);
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    padding-left: 1.5rem;
}

/* ==========================================================================
   2. Layout & Utilities
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.mb-24 {
    margin-bottom: 24px;
}

.bg-light {
    background-color: #ffffff;
}

/* Grids */
.grid-2-cols,
.grid-3-cols,
.grid-4-cols {
    display: grid;
    gap: 32px;
}

.grid-2-cols {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3-cols {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4-cols {
    grid-template-columns: repeat(4, 1fr);
}

.align-items-center {
    align-items: center;
}

/* Custom Layouts */
.grid-layout.has-sidebar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
}

/* Shadows & Radius */
.shadow-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shadow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   3. Components
   ========================================================================== */
/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    /* Slightly sharper than cards */
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color, #8100D1);
    color: #fff;
}

.btn-primary:hover {
    background-color: #0046c8;
    color: #fff;
    opacity: 1;
}

.btn-secondary {
    background-color: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background-color: #ccc;
    color: #111;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color, #8100D1);
    color: var(--primary-color, #8100D1);
}

.btn-outline:hover {
    background-color: var(--primary-color, #8100D1);
    color: #fff;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Forms */
.devanteam-form input[type="text"],
.devanteam-form input[type="email"],
.devanteam-form input[type="url"],
.devanteam-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 16px;
    font-family: 'Roboto', sans-serif;
}

.devanteam-form input[type="submit"] {
    background-color: var(--primary-color, #8100D1);
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

/* ==========================================================================
   4. Header & Navigation
   ========================================================================== */
.site-header {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-branding .site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.site-branding .site-title a {
    color: var(--primary-color, #8100D1);
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
}

.main-navigation a {
    color: #333;
    font-weight: 500;
    font-size: 1rem;
}

.main-navigation a:hover {
    color: var(--primary-color, #8100D1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Language Switcher */
.language-switcher {
    position: relative;
    cursor: pointer;
    font-weight: 500;
}

.current-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f4f4f4;
    transition: background 0.3s ease;
}

.current-lang:hover {
    background: #e9ecef;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    padding: 12px 0;
    list-style: none;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 200;
}

.language-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li {
    margin: 0;
    padding: 0;
}

.lang-dropdown li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    color: #333;
    transition: background 0.2s;
}

.lang-dropdown li a:hover {
    background: #f4f4f4;
    color: var(--primary-color, #8100D1);
}

/* ==========================================================================
   5. Sections (Hero, Services, CTA, etc)
   ========================================================================== */
/* Hero */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 48px;
}

.hero-content {
    flex: 1;
}

.hero-headline {
    font-size: 3.5rem;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-subheadline {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-image-placeholder {
    flex: 1;
}

.mockup-frame {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Common Section Header */
.section-header {
    margin-bottom: 48px;
}

.section-title {
    font-size: 2.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #666;
}

/* Services */
.service-icon {
    margin-bottom: 16px;
}

/* For dashicons or small imgs as icons */
.service-icon img {
    max-width: 64px;
    height: auto;
}

.service-card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.read-more-link {
    display: inline-block;
    margin-top: 16px;
    font-weight: 500;
}

/* CTA Banner */
.cta-banner-section {
    background-color: var(--primary-color, #8100D1);
    color: #fff;
    padding: 80px 0;
}

.cta-banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.cta-title {
    color: #fff;
    margin-bottom: 12px;
    font-size: 2.5rem;
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: 0;
    opacity: 0.9;
}

.cta-action .btn-primary {
    background-color: #fff;
    color: var(--primary-color, #8100D1);
}

.cta-action .btn-primary:hover {
    background-color: #f4f4f4;
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    color: #fff;
}

/* ==========================================================================
   6. Blog & Archives
   ========================================================================== */
.post-thumbnail-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 16px;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.post-meta {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 8px;
}

.post-card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Blog Filter Bar */
.blog-filter-bar {
    padding: 24px;
    background: #fff;
    border-radius: 12px;
}

.blog-filter-form {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group input[type="text"],
.filter-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
}

.filter-action {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-wrapper .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-wrapper .page-numbers.current,
.pagination-wrapper .page-numbers:hover {
    background: var(--primary-color, #8100D1);
    color: #fff;
    border-color: var(--primary-color, #8100D1);
}

/* Sidebar */
.widget {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 16px;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    margin-bottom: 8px;
    border-bottom: 1px solid #f4f4f4;
    padding-bottom: 8px;
}

.widget ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ==========================================================================
   7. Footer
   ========================================================================== */
.site-footer {
    background-color: #111;
    color: #ccc;
    padding-top: 64px;
}

.site-footer h3 {
    color: #fff;
    margin-bottom: 24px;
    font-size: 1.25rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.footer-widget-column ul {
    list-style: none;
    padding: 0;
}

.footer-widget-column ul li {
    margin-bottom: 12px;
}

.footer-widget-column a {
    color: #ccc;
}

.footer-widget-column a:hover {
    color: #fff;
}

.site-info {
    border-top: 1px solid #333;
    padding: 24px 0;
    font-size: 0.875rem;
}

.site-info-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-info ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 16px;
}

.copyright {
    margin: 0;
}

/* ==========================================================================
   8. Responsive Design (Media Queries)
   ========================================================================== */

/* Tablet (Max 992px) */
@media (max-width: 992px) {
    .grid-4-cols {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3-cols {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-layout.has-sidebar {
        grid-template-columns: 1fr;
    }

    .hero-headline {
        font-size: 2.5rem;
    }

    .cta-banner-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile (Max 768px) */
@media (max-width: 768px) {

    .grid-2-cols,
    .grid-3-cols,
    .grid-4-cols {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-padding {
        padding: 48px 0;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    /* Mobile Menu */
    .mobile-menu-toggle {
        display: flex;
    }

    .header-cta {
        display: none;
        /* Hide header CTA on very small screens or move it into menu */
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 24px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .main-navigation.toggled {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 16px;
    }

    /* Toggle Animation */
    .mobile-menu-toggle.is-active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.is-active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .site-info-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}
