/*
Theme Name: TheAdVibe
Theme URI: https://theadvibe.agency
Author: TheAdVibe Agency
Author URI: https://theadvibe.agency
Description: A bold, dynamic single-page theme for real estate marketing agencies. Features smooth scroll navigation, animated sections, testimonials carousel, and contact form modal.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theadvibe
Tags: one-page, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ===================================
   CSS Variables / Design Tokens
   =================================== */
:root {
    --navy: #0A2647;
    --navy-light: #144272;
    --off-white: #F8F9FA;
    --text-gray: #4A5568;
    --light-gray: #E2E8F0;
    --white: #ffffff;
    --accent: #144272;
    --radius: 0.5rem;
    --shadow: 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);
}

/* ===================================
   Reset & Base Styles
   =================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--navy);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
    color: var(--text-gray);
}

/* ===================================
   Layout & Container
   =================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .container { padding: 0 2rem; }
}

.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: var(--off-white);
}

/* ===================================
   Utility Classes
   =================================== */
.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-navy { color: var(--navy); }
.text-accent { color: var(--accent); }

.gradient-navy {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--navy);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent);
    transform: scale(1.05);
}

.btn-white {
    background-color: var(--white);
    color: var(--navy);
}

.btn-white:hover {
    background-color: var(--off-white);
    transform: scale(1.05);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ===================================
   Navigation
   =================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    transition: color 0.3s;
}

.scrolled .site-logo {
    color: var(--navy);
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-menu { display: flex; }
}

.nav-menu a {
    font-weight: 500;
    color: var(--white);
    transition: color 0.3s;
}

.scrolled .nav-menu a {
    color: var(--navy);
}

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

.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: var(--white);
    border-radius: var(--radius);
    transition: all 0.3s;
}

.scrolled .mobile-menu-toggle {
    color: var(--navy);
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.scrolled .mobile-menu-toggle:hover {
    background: var(--off-white);
}

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

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--light-gray);
    padding: 1rem;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    color: var(--navy);
    font-weight: 500;
}

.mobile-menu .btn {
    width: 100%;
    margin-top: 1rem;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 5rem;
    left: 2.5rem;
    width: 18rem;
    height: 18rem;
    background: rgba(20, 66, 114, 0.2);
    border-radius: 50%;
    filter: blur(60px);
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 5rem;
    right: 2.5rem;
    width: 24rem;
    height: 24rem;
    background: rgba(20, 66, 114, 0.1);
    border-radius: 50%;
    filter: blur(60px);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
    padding-top: 5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    color: var(--white);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero h1 span {
    display: block;
    opacity: 0.8;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 42rem;
    margin: 0 auto 2rem;
}

@media (min-width: 640px) {
    .hero-subtitle { font-size: 1.25rem; }
}

.pain-points {
    display: grid;
    gap: 0.75rem;
    max-width: 42rem;
    margin: 0 auto 2.5rem;
}

@media (min-width: 640px) {
    .pain-points { grid-template-columns: repeat(2, 1fr); }
}

.pain-point {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.pain-point::before {
    content: '';
    width: 0.375rem;
    height: 0.375rem;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1.5rem;
    height: 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0.5rem;
}

.scroll-indicator span {
    width: 0.375rem;
    height: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 9999px;
    animation: scroll-bounce 1.5s infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(0.5rem); opacity: 0.5; }
}

/* ===================================
   Who We Work With Section
   =================================== */
.audience-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 640px) {
    .audience-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .audience-grid { grid-template-columns: repeat(4, 1fr); }
}

.audience-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.audience-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-lg);
}

.audience-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    background: var(--off-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audience-icon svg {
    width: 2rem;
    height: 2rem;
    color: var(--navy);
}

.audience-card h3 {
    margin-bottom: 0.5rem;
}

/* ===================================
   Services Section
   =================================== */
.services-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 3rem;
}

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

@media (min-width: 1024px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
}

.service-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--white);
}

.service-header h3 {
    flex: 1;
}

.service-toggle {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.service-card.active .service-toggle {
    transform: rotate(180deg);
}

.service-content {
    display: none;
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid var(--light-gray);
}

.service-card.active .service-content {
    display: block;
}

.service-step {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
}

.service-step:not(:last-child) {
    border-bottom: 1px solid var(--light-gray);
}

.step-number {
    width: 2rem;
    height: 2rem;
    background: var(--off-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--navy);
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 0.25rem;
}

.step-content p {
    font-size: 0.875rem;
}

/* ===================================
   Why Choose Us Section
   =================================== */
.benefits-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 640px) {
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .benefits-grid { grid-template-columns: repeat(3, 1fr); }
}

.benefit-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.benefit-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--white);
}

.benefit-card h3 {
    margin-bottom: 0.5rem;
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonials-wrapper {
    position: relative;
    max-width: 56rem;
    margin: 3rem auto 0;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    flex: 0 0 100%;
    padding: 0 1rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.testimonial-quote {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-quote::before {
    content: '"';
    font-size: 3rem;
    color: var(--accent);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.testimonial-author {
    font-weight: 700;
    color: var(--navy);
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.testimonial-dot {
    width: 0.75rem;
    height: 0.75rem;
    background: var(--light-gray);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.testimonial-dot.active {
    background: var(--navy);
    transform: scale(1.25);
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.testimonial-nav:hover {
    background: var(--navy);
    color: var(--white);
}

.testimonial-nav.prev { left: 0; }
.testimonial-nav.next { right: 0; }

@media (max-width: 640px) {
    .testimonial-nav { display: none; }
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 36rem;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.cta-contact-info {
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.cta-contact-info a {
    color: var(--white);
    text-decoration: underline;
}

/* ===================================
   Footer
   =================================== */
.site-footer {
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-about h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ===================================
   Contact Modal
   =================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: var(--radius);
    max-width: 32rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.modal-header h2 {
    font-size: 1.5rem;
}

.modal-close {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: background 0.3s;
}

.modal-close:hover {
    background: var(--off-white);
}

.modal-body {
    padding: 1.5rem;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy);
}

.form-group textarea {
    min-height: 8rem;
    resize: vertical;
}

.form-submit {
    width: 100%;
}

.form-success {
    text-align: center;
    padding: 2rem;
}

.form-success svg {
    width: 4rem;
    height: 4rem;
    color: #10b981;
    margin: 0 auto 1rem;
}

.form-success h3 {
    margin-bottom: 0.5rem;
}

/* ===================================
   Animations
   =================================== */
.fade-in {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-1.5rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(1.5rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger animations */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
