/* style.css - Albuquerque Recovery Treatment LLC */
:root {
    /* Brand Colors - Warm, Earthy, Professional */
    --sand: #F8F1E7;
    --cream: #FFFDF8;
    --terra: #B75E32;
    --rust: #8E3F26;
    --sage: #6F8B76;
    --teal: #27646B;
    --charcoal: #172126;
    --muted: #647174;
    --line: #E7D8C9;
    
    /* Legacy variables for compatibility */
    --red: var(--terra);
    --gold: #D4A373;
    --black: var(--charcoal);
    --dark-bg: #0a0a0a;
    --gray-light: var(--sand);
    --text-dark: var(--charcoal);
    --text-muted: var(--muted);
    --white: #ffffff;
    --border-light: var(--line);
    
    --primary: var(--terra);
    --primary-dark: var(--rust);
    --primary-light: #D4885A;
    --secondary: var(--teal);
    --secondary-dark: #1D4E54;
    --light: var(--white);
    --dark: var(--charcoal);
    --gray: var(--muted);
    --border: var(--line);
    
    --radius: 24px;
    --radius-sm: 14px;
    --radius-pill: 999px;
    --shadow: 0 22px 60px rgba(56, 37, 25, 0.12);
    --shadow-lg: 0 30px 80px rgba(56, 37, 25, 0.18);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--muted);
    background-color: var(--cream);
    font-size: 17px;
}

h1, h2, h3, h4 {
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--charcoal);
    line-height: 1.08;
    margin: 0 0 18px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(42px, 6vw, 78px);
    letter-spacing: -0.035em;
}

h2 {
    font-size: clamp(34px, 4vw, 54px);
    letter-spacing: -0.025em;
}

h3 {
    font-size: 26px;
}

p {
    margin: 0 0 18px;
}

a {
    color: var(--teal);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--rust);
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    width: min(1180px, 92%);
}

.section {
    padding: 90px 0;
}

.section-title {
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.08;
    margin: 8px 0 14px;
    color: var(--charcoal);
    position: relative;
    font-family: Georgia, 'Times New Roman', serif;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--terra);
    border-radius: 2px;
}

.section-title.centered {
    text-align: center;
}

.section-title.centered:after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.08rem;
    color: var(--text-muted);
    max-width: 760px;
}

.section-subtitle.centered {
    text-align: center;
    margin: 0 auto 30px;
}

.eyebrow {
    color: var(--terra);
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 14px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 14px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    white-space: nowrap;
}

.btn-small {
    padding: 11px 16px;
    font-size: 0.82rem;
    box-shadow: none;
}

.btn-large {
    padding: 18px 32px;
    font-size: 1rem;
}

.btn-red {
    background: var(--terra);
    color: var(--white);
}

.btn-red:hover {
    background: var(--rust);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(183, 94, 50, 0.3);
    color: var(--white);
}

.btn-gold {
    background: var(--teal);
    color: var(--white);
}

.btn-gold:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(39, 100, 107, 0.3);
    color: var(--white);
}

.btn-outline {
    border: 2px solid var(--terra);
    color: var(--terra);
    background: transparent;
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--terra);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-light {
    background: var(--white);
    color: var(--rust);
}

.btn-light:hover {
    background: var(--sand);
    transform: translateY(-2px);
    color: var(--rust);
}

.btn-accent {
    background: var(--teal);
    color: var(--white);
}

.btn-accent:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    color: var(--white);
}

/* ===== HEADER ===== */
header {
    background: rgba(255, 253, 248, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--line);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    min-height: 86px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    max-height: 62px;
    width: auto;
    object-fit: contain;
}

nav {
    display: flex;
    gap: 22px;
    align-items: center;
}

.nav-link {
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--terra);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--terra);
}

.nav-link:hover:after {
    width: 100%;
}

.nav-link.active {
    color: var(--terra);
}

.nav-link.active:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--charcoal);
    cursor: pointer;
    padding: 10px;
    font-weight: 900;
}

/* ===== HERO - центрированный ===== */
.hero {
    min-height: 760px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(23, 33, 38, 0.86), rgba(23, 33, 38, 0.62)), 
                url('../images/hero.jpg') center/cover no-repeat;
    color: var(--white);
    text-align: center;
}

.hero:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--cream);
    clip-path: polygon(0 70%, 100% 20%, 100% 100%, 0% 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    padding: 90px 0 120px;
}

.badge {
    display: inline-flex;
    background: var(--terra);
    color: var(--white);
    border-radius: var(--radius-pill);
    padding: 8px 18px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.hero-content h1 {
    color: var(--white);
    margin: 18px 0;
}

.hero-subtitle {
    font-size: 21px;
    color: rgba(255, 255, 255, 0.86);
    max-width: 670px;
    line-height: 1.6;
    margin: 0 auto 28px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 28px;
}

/* ===== QUICK BAR ===== */
.quickbar {
    background: var(--sand);
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.quickgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.quick-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px 22px;
}

.quick-item strong {
    display: block;
    color: var(--charcoal);
    font-size: 0.9rem;
    font-weight: 700;
}

.quick-item span {
    color: var(--muted);
    font-size: 0.95rem;
}

.quick-item a {
    color: var(--teal);
    font-weight: 700;
}

.quick-item a:hover {
    color: var(--rust);
}

/* ===== APPROACH SECTION ===== */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.approach-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 10px 30px rgba(56, 37, 25, 0.06);
    transition: var(--transition);
}

.approach-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.approach-card .num {
    font-weight: 900;
    color: var(--terra);
    font-size: 14px;
    margin-bottom: 10px;
}

.approach-card h3 {
    font-size: 22px;
    color: var(--charcoal);
}

.approach-card p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
}

/* ===== SERVICES ===== */
.services-section {
    background: var(--sand);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card .service-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.service-card .service-body {
    padding: 26px;
}

.service-card h3 {
    margin: 0 0 12px;
    font-size: 1.2rem;
    color: var(--charcoal);
    font-family: Georgia, 'Times New Roman', serif;
}

.service-card .service-description {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 16px;
}

.service-card ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.service-card ul li {
    margin: 8px 0;
    padding-left: 27px;
    position: relative;
    font-size: 0.95rem;
    color: var(--charcoal);
}

.service-card ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--sage);
    font-weight: 900;
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: linear-gradient(135deg, var(--teal), var(--charcoal));
    color: var(--white);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 44px;
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--white);
}

.stat-item span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
}

/* ===== WHO WE HELP ===== */
.who-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 58px;
    align-items: center;
}

.who-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.who-image img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    display: block;
}

.check-list {
    padding: 0;
    margin: 18px 0 0;
    list-style: none;
}

.check-list li {
    margin: 12px 0;
    padding-left: 30px;
    position: relative;
    font-size: 1.05rem;
    color: var(--charcoal);
}

.check-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--sage);
    font-weight: 900;
    font-size: 1.2rem;
}

/* ===== WHY CHOOSE ===== */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.why-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 10px 30px rgba(56, 37, 25, 0.06);
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.why-card h3 {
    font-size: 22px;
    color: var(--charcoal);
    margin: 0 0 8px;
    font-family: Georgia, 'Times New Roman', serif;
}

.why-card p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
    position: relative;
    background: linear-gradient(90deg, rgba(23, 33, 38, 0.88), rgba(39, 100, 107, 0.78)), 
                url('../images/cta.webp') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    padding: 90px 0;
}

.cta-section h2,
.cta-section p {
    color: var(--white);
}

.cta-section .eyebrow {
    color: var(--sand);
}

/* ===== CONTACT ===== */
.contact-section {
    background: var(--cream);
    padding: 90px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 38px;
    align-items: start;
}

.contact-box {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow);
}

.contact-box a {
    color: var(--teal);
    font-weight: 900;
    text-decoration: none;
}

.contact-box a:hover {
    color: var(--rust);
}

.contact-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    margin: 8px 0 18px;
    line-height: 1.1;
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--charcoal);
}

.contact-details p {
    margin: 10px 0;
    font-size: 1.05rem;
    color: var(--charcoal);
}

.contact-details strong {
    color: var(--charcoal);
}

/* ===== FORM ===== */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    font: inherit;
    background: var(--white);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--terra);
    box-shadow: 0 0 0 3px rgba(183, 94, 50, 0.1);
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ===== FOOTER ===== */
footer {
    background: var(--charcoal);
    color: rgba(255, 255, 255, 0.75);
    padding: 45px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white);
    font-family: Georgia, 'Times New Roman', serif;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.82);
    display: block;
    margin: 8px 0;
}

.footer-section a:hover {
    color: var(--sand);
}

.footer-license {
    color: var(--sand);
    font-weight: bold;
    margin: 0.5rem 0;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--sand);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ===== MOBILE STICKY CTA ===== */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--line);
    padding: 12px 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 900;
}

.sticky-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sticky-buttons .btn {
    padding: 13px 10px;
    font-size: 0.9rem;
    box-shadow: none;
}

/* ===== FLOATING BUTTONS ===== */
.floating-btn {
    display: none;
}

/* ===== FORM MESSAGES ===== */
.form-message.form-message--error {
    border: 2px solid #dc2626;
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    margin: 15px 0;
    font-weight: 500;
    text-align: center;
}

.form-message.form-message--success {
    border: 2px solid #059669;
    background: rgba(5, 150, 105, 0.08);
    color: #059669;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    margin: 15px 0;
    font-weight: 500;
    text-align: center;
}

/* ======================================== */
/* ===== RESPONSIVE ===== */
/* ======================================== */

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .approach-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 20px;
        box-shadow: var(--shadow);
        border-bottom: 1px solid var(--line);
        max-height: 100vh;
        overflow-y: auto;
        z-index: 999;
    }
    
    nav.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-sticky-cta {
        display: block;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .approach-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .who-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .who-image img {
        height: 320px;
    }
    
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .quickgrid {
        grid-template-columns: 1fr 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .logo-image {
        max-height: 48px;
    }
    
    .hero {
        min-height: 600px;
    }
    
    .hero-content {
        padding: 50px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 2.4rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .services-grid {
        gap: 16px;
    }
    
    .service-card .service-image {
        height: 180px;
    }
    
    .approach-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .who-image img {
        height: 240px;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .quickgrid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-links a {
        display: inline-block;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .stat-item strong {
        font-size: 32px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-box {
        padding: 24px 20px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .service-card .service-body {
        padding: 18px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-item strong {
        font-size: 28px;
    }
    
    .contact-title {
        font-size: 1.4rem;
    }
    
    .contact-details p {
        font-size: 0.95rem;
    }
}

/* ===== GALLERY - empty but kept for compatibility ===== */
.gallery-section {
    display: none;
}

/* ===== TESTIMONIALS - empty but kept for compatibility ===== */
.testimonials-section {
    display: none;
}
