/* ============================================
   Pure Elegance Wallpaper Atlanta - Main Styles
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
    --color-bg-primary: #F8FAFC;
    --color-bg-secondary: #E7EDF3;
    --color-bg-white: #FFFFFF;
    --color-text-primary: #243447;
    --color-text-secondary: #4A6178;
    --color-accent: #5F92C4;
    --color-accent-hover: #4B7CA8;
    --color-accent-light: rgba(95, 146, 196, 0.1);
    --color-border: #D1DAE3;
    --color-error: #ff6b6b;
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(36, 52, 71, 0.08);
    --shadow-md: 0 4px 12px rgba(36, 52, 71, 0.1);
    --shadow-lg: 0 8px 30px rgba(36, 52, 71, 0.12);
    --transition: 0.3s ease;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-primary);
    line-height: 1.3;
    margin-bottom: 0.75em;
}

h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 1.85rem; font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p {
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    background: var(--color-bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

.header-top {
    background: var(--color-text-primary);
    padding: 8px 0;
}

.header-top .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.header-top a {
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-top a:hover {
    color: var(--color-accent);
}

.header-top svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.header-main {
    padding: 12px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1.2;
}

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

/* Desktop Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.main-nav > ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.main-nav > ul > li {
    position: relative;
    margin: 0;
}

.main-nav > ul > li > a {
    display: block;
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-primary);
    transition: color var(--transition);
}

.main-nav > ul > li > a:hover {
    color: var(--color-accent);
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--color-bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 8px 0;
    z-index: 1001;
    list-style: none;
}

.main-nav > ul > li:hover > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown li {
    margin: 0;
    opacity: 0;
    transform: translateX(-10px);
    animation: dropdownItemIn 0.3s ease forwards;
}

.main-nav > ul > li:hover > .nav-dropdown li {
    opacity: 1;
    transform: translateX(0);
}

.nav-dropdown li:nth-child(1) { animation-delay: 0.05s; }
.nav-dropdown li:nth-child(2) { animation-delay: 0.1s; }
.nav-dropdown li:nth-child(3) { animation-delay: 0.15s; }
.nav-dropdown li:nth-child(4) { animation-delay: 0.2s; }
.nav-dropdown li:nth-child(5) { animation-delay: 0.25s; }
.nav-dropdown li:nth-child(6) { animation-delay: 0.3s; }
.nav-dropdown li:nth-child(7) { animation-delay: 0.35s; }
.nav-dropdown li:nth-child(8) { animation-delay: 0.4s; }
.nav-dropdown li:nth-child(9) { animation-delay: 0.45s; }
.nav-dropdown li:nth-child(10) { animation-delay: 0.5s; }

@keyframes dropdownItemIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-dropdown a {
    display: block;
    padding: 8px 20px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    transition: all var(--transition);
}

.nav-dropdown a:hover {
    background: var(--color-accent-light);
    color: var(--color-accent);
    padding-left: 24px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    margin: 5px 0;
    transition: all var(--transition);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 50%;
    height: 100vh;
    background: var(--color-bg-white);
    z-index: 1050;
    transition: right 0.4s ease;
    overflow-y: auto;
    padding: 70px 24px 30px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: var(--color-bg-secondary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.mobile-nav-close:hover {
    background: var(--color-accent-light);
}

.mobile-nav-close svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-text-primary);
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav > ul > li {
    margin: 0;
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav > ul > li > a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-primary);
    text-align: left;
}

.mobile-nav .mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-primary);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.mobile-nav .mobile-dropdown-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition);
}

.mobile-nav .mobile-dropdown-toggle.active svg {
    transform: rotate(180deg);
}

.mobile-nav .mobile-sub-menu {
    display: none;
    padding-left: 16px;
    padding-bottom: 10px;
}

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

.mobile-nav .mobile-sub-menu li {
    margin: 0;
    border: none;
}

.mobile-nav .mobile-sub-menu a {
    display: block;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    text-align: left;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1040;
}

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-text-primary);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    color: #FFFFFF;
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero-content p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.hero-form {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-accent);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(95, 146, 196, 0.35);
}

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

.btn-outline:hover {
    background: var(--color-accent);
    color: #FFFFFF;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 80px 0;
}

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

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

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    margin-bottom: 0.5rem;
}

.section-title p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   CARDS / GRID
   ============================================ */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

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

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

.card {
    background: var(--color-bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--color-border);
}

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

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 24px;
}

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

.card-body p {
    font-size: 0.95rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ============================================
   FORM STYLES
   ============================================ */
.feedback-form-container {
    max-width: 600px;
}

.feedback-form-container h3 {
    margin-bottom: 20px;
    color: var(--color-text-primary);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.contact-form .form-group {
    margin-bottom: 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text-primary);
    background: var(--color-bg-primary);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(95, 146, 196, 0.15);
}

.contact-form textarea {
    min-height: 100px;
    resize: vertical;
    margin-bottom: 16px;
}

.contact-form .form-submit {
    margin-top: 8px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--color-accent);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.submit-btn:hover {
    background: var(--color-accent-hover);
    box-shadow: 0 4px 15px rgba(95, 146, 196, 0.35);
}

#form-success {
    text-align: center;
    padding: 20px;
}

#form-success p {
    color: var(--color-accent);
    font-weight: 500;
    font-size: 1.05rem;
}

/* ============================================
   MAP
   ============================================ */
.map-container {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: none;
}

/* ============================================
   CTA BLOCKS
   ============================================ */
.cta-block {
    background: var(--color-accent);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    margin: 40px 0;
}

.cta-block h2,
.cta-block h3 {
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.cta-block p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
}

.cta-block .btn {
    background: #FFFFFF;
    color: var(--color-accent);
}

.cta-block .btn:hover {
    background: var(--color-bg-primary);
    box-shadow: var(--shadow-md);
}

/* ============================================
   FAQ
   ============================================ */
.faq-item {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition);
}

.faq-question:hover {
    background: var(--color-accent-light);
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--color-accent);
    transition: transform var(--transition);
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--color-text-primary);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 30px;
}

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

.footer-brand h3 {
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-col h4 {
    color: #FFFFFF;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ============================================
   STICKY QUOTE BUTTON
   ============================================ */
.sticky-quote-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--color-accent);
    color: #FFFFFF;
    padding: 16px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(95, 146, 196, 0.4);
    z-index: 999;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
}

.sticky-quote-btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(95, 146, 196, 0.5);
    color: #FFFFFF;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

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

.modal-content {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 550px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: var(--color-bg-secondary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.modal-close:hover {
    background: var(--color-accent-light);
}

.modal-close svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-text-primary);
}

/* ============================================
   PAGE HERO (Internal pages)
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, var(--color-text-primary) 0%, #1a2a3a 100%);
    padding: 60px 0;
    text-align: center;
}

.page-hero h1 {
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.page-hero p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content-section {
    padding: 60px 0;
}

.content-section h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-section h2:first-child {
    margin-top: 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin: 40px 0;
}

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}

.content-img {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.content-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Areas/Neighborhoods list */
.areas-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    list-style: none;
    padding: 0;
}

.areas-list li {
    padding: 8px 12px;
    background: var(--color-accent-light);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--color-text-primary);
}

/* Contact Info */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.contact-info-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
}

.contact-info-card svg {
    width: 40px;
    height: 40px;
    stroke: var(--color-accent);
    margin-bottom: 16px;
}

.contact-info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.contact-info-card p {
    font-size: 0.95rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .header-top .container {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-form {
        max-width: 100%;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .content-grid.reverse {
        direction: ltr;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .areas-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .sticky-quote-btn {
        bottom: 16px;
        right: 50%;
        transform: translateX(50%);
    }
    
    .sticky-quote-btn:hover {
        transform: translateX(50%) translateY(-2px);
    }
    
    .section {
        padding: 50px 0;
    }
    
    .cta-block {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    
    .hero {
        min-height: 500px;
    }
    
    .areas-list {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}
