/*
Theme Name: Telangana SEO Theme
Theme URI: https://telanganaseo.in/
Author: Expert Builder
Author URI: https://telanganaseo.in/
Description: Custom theme for Telangana SEO, designed to work with the custom Elementor widgets.
Version: 1.0.0
*/

:root {
    --primary: #0A523F;
    --primary-hover: #073a2d;
    --accent: #F28C1A;
    --accent-hover: #e07a0e;
    --dark: #0D1117;
    --dark-light: #161b22;
    --bg-color: #FAFAF8;
    --bg-light: #ffffff;
    --text-main: #333333;
    --text-muted: #555555;
    --border-color: #e0e0e0;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;
    
    --radius: 12px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.03);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.75;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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 1.5rem;
}

.section-padding {
    padding: 5rem 0;
}

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

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

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

.dark-section h2, .dark-section h3, .dark-section h4 {
    color: var(--bg-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

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

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--bg-light);
}

.btn-ghost {
    background-color: transparent;
    color: var(--text-main);
    border-color: var(--border-color);
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* 1. Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-light);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.header.scrolled {
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

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

.nav-menu {
    display: none;
}

.nav-contact {
    display: none;
}

.nav-phone {
    font-weight: 500;
    color: var(--primary);
    font-size: 0.95rem;
}

.nav-phone:hover {
    color: var(--accent);
}

.mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    transition: var(--transition);
}

/* 2. Hero */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #FAFAF8 0%, #eef5f3 100%);
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero .subtext {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.urgency-text {
    font-size: 0.85rem;
    color: #d32f2f;
    font-weight: 500;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-chip {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stat-chip strong {
    display: block;
    font-size: 1.25rem;
    color: var(--primary);
    font-family: var(--font-heading);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes barGrow {
    from { height: 0; }
    to { height: var(--target-height); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-image {
    display: none;
}

/* 3. Trust bar */
.trust-bar {
    padding: 2rem 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.trust-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.trust-label {
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    z-index: 2;
    background: var(--bg-light);
    padding-right: 1rem;
}

.marquee-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.trust-pills.marquee {
    display: flex;
    gap: 1rem;
    animation: scroll 20s linear infinite;
    width: max-content;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.trust-pills.marquee:hover {
    animation-play-state: paused;
}

.pill {
    padding: 0.5rem 1rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* 4. Problem section */
.section-header {
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.problem-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--accent);
}

.card-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(242, 140, 26, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* 5. Services */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-card {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

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

.service-card.card-highlight {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background-color: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.service-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary);
    font-weight: 500;
}

/* 6. Process */
.timeline-container {
    position: relative;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.timeline-content {
    flex: 1;
}

.timeline-content h4 {
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.timeline-item.active {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.active .timeline-dot {
    background-color: var(--primary);
    color: var(--bg-light);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(10, 82, 63, 0.4);
}

.timeline-dot {
    width: 50px;
    height: 50px;
    background-color: var(--bg-light);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    z-index: 2;
    transition: var(--transition);
}

/* 7. Industries */
.industry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.industry-tag {
    padding: 0.5rem 1rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.industry-tag:hover {
    background-color: var(--primary);
    color: var(--bg-light);
    border-color: var(--primary);
}

/* 8. Case studies */
.case-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.case-card {
    background-color: var(--dark-light);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.1);
}

.case-metric {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

/* 9. Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

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

.stars {
    color: #FFB800;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-card blockquote {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.bg-1 { background-color: var(--primary); }
.bg-2 { background-color: #3b82f6; }
.bg-3 { background-color: var(--accent); }
.bg-4 { background-color: #8b5cf6; }

.author-info strong {
    display: block;
    color: var(--dark);
}

.author-info span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* 10. FAQ */
.accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header .icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.accordion-header.active .icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content p {
    padding: 0 2rem 2.5rem;
    color: var(--text-muted);
}

/* 11. Final CTA + Form */
.split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.audit-checklist {
    margin-top: 1.5rem;
}

.audit-checklist li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.audit-checklist li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
}

.audit-form {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.floating {
    position: relative;
}

.form-group.floating input, .form-group.floating select {
    padding: 1.25rem 0.75rem 0.5rem;
}

.form-group.floating label {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: var(--transition);
    pointer-events: none;
    margin-bottom: 0;
    font-weight: normal;
    background: transparent;
}

.form-group.floating input:focus ~ label,
.form-group.floating input:not(:placeholder-shown) ~ label,
.form-group.floating select:focus ~ label,
.form-group.floating select:valid ~ label {
    top: 12px;
    transform: translateY(0);
    font-size: 0.75rem;
    color: var(--primary);
    background: var(--bg-light);
    padding: 0 0.25rem;
    font-weight: 500;
}

.form-group input, .form-group select {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    background-color: transparent;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(15, 110, 86, 0.2);
}

.error-message {
    color: #d32f2f;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error input, .form-group.error select {
    border-color: #d32f2f;
}

.form-group.error .error-message {
    display: block;
}

.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 1rem;
    display: none;
    text-align: center;
}

.guarantee-badge {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* 12. Footer */
.footer {
    background-color: var(--dark);
    color: var(--bg-color);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    color: var(--bg-light);
    display: inline-block;
    margin-bottom: 1rem;
}

.brand-col p {
    color: #999;
    margin-bottom: 1rem;
}

.brand-col address {
    font-style: normal;
    color: #999;
}

.footer-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    color: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 1rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: #999;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    color: #999;
}

/* Media Queries */
@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    
    .hero {
        padding: 10rem 0 6rem;
    }
    
    .hero-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
    }
    
    .hero-ctas {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .hero-image {
        display: block;
        position: relative;
        height: 100%;
        min-height: 400px;
        perspective: 1000px;
    }
    
    .hero-dashboard {
        background-color: var(--bg-light);
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
        width: 100%;
        max-width: 450px;
        margin-left: auto;
        border: 1px solid var(--border-color);
        transform: rotateY(-5deg) rotateX(5deg);
        transition: transform 0.3s ease;
        position: relative;
    }
    
    .hero-dashboard:hover {
        transform: rotateY(0deg) rotateX(0deg) translateY(-10px);
    }
    
    .dash-header {
        background-color: #f5f5f5;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border-color);
        border-radius: var(--radius) var(--radius) 0 0;
        display: flex;
        gap: 6px;
    }
    
    .dash-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
    }
    .dash-dot.red { background-color: #ff5f56; }
    .dash-dot.yellow { background-color: #ffbd2e; }
    .dash-dot.green { background-color: #27c93f; }
    
    .dash-body {
        padding: 2rem;
    }
    
    .dash-title {
        font-weight: 700;
        margin-bottom: 1.5rem;
        font-size: 1.1rem;
        color: var(--dark);
    }
    
    .dash-chart {
        display: flex;
        align-items: flex-end;
        gap: 12px;
        height: 150px;
        margin-bottom: 2rem;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 10px;
    }
    
    .bar {
        flex: 1;
        background-color: rgba(10, 82, 63, 0.2);
        border-radius: 4px 4px 0 0;
        height: 0;
        animation: barGrow 1.5s ease forwards;
        animation-delay: 0.5s;
    }
    
    .bar:nth-child(1) { --target-height: 30%; background-color: var(--primary); opacity: 0.4;}
    .bar:nth-child(2) { --target-height: 50%; background-color: var(--primary); opacity: 0.5;}
    .bar:nth-child(3) { --target-height: 45%; background-color: var(--primary); opacity: 0.6;}
    .bar:nth-child(4) { --target-height: 70%; background-color: var(--primary); opacity: 0.7;}
    .bar:nth-child(5) { --target-height: 85%; background-color: var(--primary); opacity: 0.8;}
    .bar:nth-child(6) { --target-height: 100%; background-color: var(--accent); }
    
    .dash-card {
        background-color: var(--bg-color);
        padding: 1rem;
        border-radius: var(--radius);
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: 1px solid var(--border-color);
        font-weight: 500;
        margin-bottom: 1rem;
    }
    
    .dash-card .trend.up {
        color: #27c93f;
        background: rgba(39, 201, 63, 0.1);
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-size: 0.85rem;
    }
    
    .float-card {
        position: absolute;
        bottom: -20px;
        left: -40px;
        background-color: var(--bg-light);
        box-shadow: var(--shadow-md);
        animation: float 4s ease-in-out infinite;
        z-index: 10;
    }

    .problem-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .why-choose .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .timeline-line {
        position: absolute;
        top: 25px;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--border-color);
        z-index: 1;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: left;
        width: 19%;
        align-items: flex-start;
    }
    
    .case-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .split-layout {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
    
    .industry-tags {
        gap: 1rem;
    }
    
    .industry-tag {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
    z-index: 1000;
    display: block;
    border-top: 1px solid var(--glass-border);
}

@media (min-width: 768px) {
    .mobile-sticky-cta {
        display: none;
    }
}

@media (min-width: 992px) {
    .nav-menu {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
    
    .nav-links {
        display: flex;
        gap: 2rem;
    }
    
    .nav-links a {
        font-weight: 500;
    }
    
    .nav-links a:hover {
        color: var(--primary);
    }
    
    .nav-contact {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }
    
    .mobile-toggle {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .flex-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
    }
    
    .flex-header h2 {
        margin-bottom: 0;
    }
}

/* Mobile Menu Active State */
.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-light);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    gap: 1.5rem;
}

.nav-menu.active .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
