/* ============================================================
   Palos Psychiatric and Recovery — Styles
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #2d1f2d;
    background-color: #fffaf7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: 'Lora', 'Georgia', serif; line-height: 1.3; color: #3a1a2e; }

/* ---------- Focus ---------- */
:focus-visible { outline: 3px solid #c45763; outline-offset: 2px; border-radius: 4px; }
.skip-link {
    position: absolute; top: -100%; left: 1rem;
    background: #6b1d3a; color: #fff; padding: .5rem 1rem;
    border-radius: 0 0 8px 8px; z-index: 200; font-weight: 700;
}
.skip-link:focus { top: 0; }

/* ---------- Container ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Color Palette ---------- */
:root {
    --burgundy-deep: #4a0e28;
    --burgundy: #6b1d3a;
    --burgundy-light: #8c2d4f;
    --blush: #f4c2c2;
    --blush-light: #fce8e8;
    --blush-lighter: #fff5f5;
    --cream: #fffaf7;
    --white: #ffffff;
    --text-dark: #2d1f2d;
    --text-medium: #5a3d5a;
    --text-light: #8a6a8a;
    --shadow-sm: 0 2px 8px rgba(107, 29, 58, 0.08);
    --shadow-md: 0 4px 20px rgba(107, 29, 58, 0.12);
    --shadow-lg: 0 8px 40px rgba(107, 29, 58, 0.16);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: 0.3s ease;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: 'Nunito', sans-serif; font-weight: 700;
    border-radius: 50px; transition: all var(--transition);
    white-space: nowrap; border: 2px solid transparent;
}
.btn-primary {
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-light) 100%);
    color: var(--white); box-shadow: var(--shadow-md);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--burgundy-deep) 0%, var(--burgundy) 100%);
}
.btn-secondary {
    background: var(--blush); color: var(--burgundy-deep);
}
.btn-secondary:hover { background: var(--blush-light); transform: translateY(-2px); }
.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.7); color: var(--white);
    background: rgba(255,255,255,0.1); backdrop-filter: blur(4px);
}
.btn-outline-light:hover {
    background: var(--white); color: var(--burgundy);
    border-color: var(--white); transform: translateY(-2px);
}
.btn-outline-burgundy {
    border: 2px solid var(--burgundy); color: var(--burgundy);
}
.btn-outline-burgundy:hover {
    background: var(--burgundy); color: var(--white); transform: translateY(-2px);
}
.btn-cta {
    background: var(--white); color: var(--burgundy);
    box-shadow: var(--shadow-lg);
}
.btn-cta:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 12px 48px rgba(107,29,58,0.25); }
.btn-sm { padding: .5rem 1.25rem; font-size: .875rem; }
.btn-lg { padding: .875rem 2rem; font-size: 1.0625rem; }
.btn-full { width: 100%; justify-content: center; }

/* ---------- Section Tags ---------- */
.section-tag {
    display: inline-block; font-size: .8125rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .12em; color: var(--burgundy);
    background: var(--blush-light); padding: .375rem 1rem;
    border-radius: 50px; margin-bottom: 1rem;
}

/* ---------- Section Header ---------- */
.section-header { max-width: 680px; margin: 0 auto 3.5rem; }
.section-header h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.section-desc { color: var(--text-medium); font-size: 1.0625rem; }
.text-center { text-align: center; }

/* ---------- Section Spacing ---------- */
.section { padding: 5rem 0; }

/* ---------- Header ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255, 250, 247, 0.92); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(107, 29, 58, 0.08);
    transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 76px;
}
.logo {
    display: flex; align-items: center; gap: .625rem;
    font-family: 'Lora', serif; font-weight: 600; font-size: 1rem;
    color: var(--burgundy-deep); line-height: 1.2;
}
.logo-icon { color: var(--burgundy); flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; }
.logo-accent { color: var(--burgundy-light); font-weight: 400; font-size: .875rem; }
.logo-footer { color: var(--white); }
.logo-footer .logo-accent { color: var(--blush); }

/* ---------- Nav ---------- */
.nav-menu { display: flex; align-items: center; gap: .25rem; }
.nav-menu a {
    padding: .5rem .875rem; border-radius: 50px; font-weight: 600;
    font-size: .9375rem; color: var(--text-dark); transition: all var(--transition);
}
.nav-menu a:hover { background: var(--blush-light); color: var(--burgundy); }
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    padding: .5rem; z-index: 110;
}
.hamburger, .hamburger::before, .hamburger::after {
    display: block; width: 24px; height: 2px; background: var(--burgundy);
    border-radius: 2px; transition: all var(--transition);
}
.hamburger::before, .hamburger::after { content: ''; position: absolute; }
.hamburger::before { transform: translateY(-7px); }
.hamburger::after { transform: translateY(7px); }
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after { transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 92vh; display: flex; align-items: center;
    justify-content: center; text-align: center; overflow: hidden;
    background: linear-gradient(145deg, #4a0e28 0%, #6b1d3a 30%, #8c2d4f 60%, #c45763 100%);
    padding: 8rem 1.5rem 6rem;
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(244,194,194,0.25) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(140,45,79,0.4) 0%, transparent 50%),
        radial-gradient(ellipse 40% 40% at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 780px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
    color: var(--white); font-size: .875rem; font-weight: 700;
    padding: .5rem 1.25rem; border-radius: 50px; margin-bottom: 1.75rem;
    border: 1px solid rgba(255,255,255,0.2);
}
.hero h1 {
    font-size: clamp(2.25rem, 6vw, 3.75rem); color: var(--white);
    margin-bottom: 1.25rem; font-weight: 600; line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hero-subtitle {
    font-size: clamp(1.0625rem, 2vw, 1.3125rem); color: rgba(255,255,255,0.9);
    margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto;
    line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-trust { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; }
.trust-item {
    display: flex; align-items: center; gap: .5rem;
    color: rgba(255,255,255,0.85); font-size: .9375rem; font-weight: 600;
}
.trust-item svg { color: var(--blush); flex-shrink: 0; }
.hero-wave {
    position: absolute; bottom: -1px; left: 0; right: 0;
    width: 100%; line-height: 0;
}
.hero-wave svg { display: block; width: 100%; height: 80px; }

/* ---------- Services ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.service-card {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 2rem; box-shadow: var(--shadow-sm);
    border: 1px solid rgba(107,29,58,0.06);
    transition: all var(--transition);
}
.service-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-lg);
    border-color: rgba(196,87,99,0.2);
}
.service-icon {
    width: 64px; height: 64px; border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--blush-light) 0%, var(--blush) 100%);
    display: flex; align-items: center; justify-content: center;
    color: var(--burgundy); margin-bottom: 1.25rem;
}
.service-card h3 { font-size: 1.25rem; margin-bottom: .75rem; color: var(--burgundy-deep); }
.service-card p { color: var(--text-medium); font-size: .9875rem; }

/* ---------- About ---------- */
.section-about { background: var(--white); }
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.about-image-wrapper { position: relative; }
.about-image-wrapper img {
    border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
    width: 100%; height: 420px; object-fit: cover;
}
.about-image-accent {
    position: absolute; bottom: -20px; right: -20px;
    width: 120px; height: 120px; border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--blush) 0%, var(--blush-light) 100%);
    z-index: -1;
}
.about-content h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); margin-bottom: 1.25rem; color: var(--burgundy-deep); }
.about-text { color: var(--text-medium); margin-bottom: 1rem; font-size: 1.025rem; }
.about-stats {
    display: flex; gap: 1.5rem; align-items: center;
    margin: 2rem 0; padding: 1.5rem 0;
    border-top: 1px solid var(--blush-light);
    border-bottom: 1px solid var(--blush-light);
}
.stat { text-align: center; flex: 1; }
.stat-number {
    display: block; font-family: 'Lora', serif; font-size: 2rem;
    font-weight: 700; color: var(--burgundy); line-height: 1;
}
.stat-label { font-size: .8125rem; color: var(--text-light); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: .25rem; display: block; }
.stat-divider { width: 1px; height: 40px; background: var(--blush); flex-shrink: 0; }

/* ---------- Approach ---------- */
.section-approach { background: linear-gradient(180deg, var(--cream) 0%, var(--blush-lighter) 100%); }
.approach-steps { max-width: 800px; margin: 0 auto; }
.approach-step {
    display: flex; gap: 2rem; align-items: flex-start;
    padding: 2rem 0; border-bottom: 1px solid rgba(107,29,58,0.1);
}
.approach-step:last-child { border-bottom: none; }
.step-number {
    font-family: 'Lora', serif; font-size: 3rem; font-weight: 700;
    color: transparent;
    background: linear-gradient(135deg, var(--blush) 0%, var(--burgundy-light) 100%);
    -webkit-background-clip: text; background-clip: text;
    line-height: 1; flex-shrink: 0; width: 60px;
}
.step-content h3 { font-size: 1.25rem; margin-bottom: .5rem; color: var(--burgundy-deep); }
.step-content p { color: var(--text-medium); }

/* ---------- Testimonials ---------- */
.section-testimonials { background: var(--white); }
.testimonials-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.testimonial-card {
    background: var(--cream); border-radius: var(--radius-lg);
    padding: 2rem; border: 1px solid var(--blush-light);
    transition: all var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.testimonial-stars { display: flex; gap: .25rem; color: #e8a020; margin-bottom: 1rem; }
.testimonial-text {
    font-family: 'Lora', serif; font-style: italic;
    font-size: 1.0625rem; color: var(--text-dark);
    line-height: 1.7; margin-bottom: 1.25rem;
}
.testimonial-author {
    font-size: .875rem; font-weight: 700; color: var(--burgundy);
    font-style: normal;
}

/* ---------- CTA ---------- */
.section-cta { padding: 5rem 0; background: linear-gradient(135deg, var(--burgundy-deep) 0%, var(--burgundy) 50%, var(--burgundy-light) 100%); }
.cta-card {
    display: grid; grid-template-columns: 1fr auto; gap: 3rem;
    align-items: center; background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px); border-radius: var(--radius-xl);
    padding: 3.5rem; border: 1px solid rgba(255,255,255,0.15);
}
.cta-content h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); color: var(--white); margin-bottom: 1rem; }
.cta-text { color: rgba(255,255,255,0.85); font-size: 1.125rem; max-width: 500px; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
}
.contact-info h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); margin-bottom: 1rem; color: var(--burgundy-deep); }
.contact-desc { color: var(--text-medium); margin-bottom: 2rem; font-size: 1.025rem; }
.contact-details { margin-bottom: 2rem; }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.contact-label {
    display: flex; align-items: center; gap: .5rem;
    font-weight: 700; color: var(--burgundy); font-size: .9375rem;
    min-width: 90px;
}
.contact-label svg { flex-shrink: 0; }
dd { color: var(--text-medium); line-height: 1.6; }
dd a { color: var(--burgundy-light); text-decoration: underline; text-underline-offset: 3px; }
dd a:hover { color: var(--burgundy-deep); }

/* ---------- Form ---------- */
.contact-form-wrapper {
    background: var(--white); border-radius: var(--radius-xl);
    padding: 2.5rem; box-shadow: var(--shadow-md);
    border: 1px solid rgba(107,29,58,0.06);
}
.form-title { font-size: 1.375rem; margin-bottom: 1.5rem; color: var(--burgundy-deep); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block; font-weight: 700; font-size: .875rem;
    color: var(--text-dark); margin-bottom: .375rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: .75rem 1rem; border: 2px solid var(--blush);
    border-radius: var(--radius-sm); font-family: 'Nunito', sans-serif;
    font-size: 1rem; color: var(--text-dark); background: var(--cream);
    transition: all var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none; border-color: var(--burgundy);
    box-shadow: 0 0 0 3px rgba(107,29,58,0.1);
    background: var(--white);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-privacy { font-size: .8125rem; color: var(--text-light); text-align: center; margin-top: 1rem; }
.form-success {
    text-align: center; padding: 2rem 1rem;
    color: var(--burgundy);
}
.form-success h4 { font-size: 1.5rem; margin: 1rem 0 .5rem; }
.form-success p { color: var(--text-medium); margin-bottom: 1.5rem; }
.form-success svg { color: #4caf50; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--burgundy-deep); color: rgba(255,255,255,0.8);
    padding: 4rem 0 0;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem; padding-bottom: 3rem;
}
.footer-brand p { margin-top: 1rem; font-size: .9375rem; line-height: 1.7; color: rgba(255,255,255,0.65); }
.footer-links h4,
.footer-contact h4 {
    color: var(--white); font-size: 1rem; margin-bottom: 1rem;
    font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
}
.footer-links ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a {
    color: rgba(255,255,255,0.65); font-size: .9375rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--blush); }
.footer-contact p { font-size: .9375rem; margin-bottom: .5rem; line-height: 1.6; }
.footer-contact a { color: var(--blush); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0; text-align: center;
}
.footer-bottom p { font-size: .8125rem; color: rgba(255,255,255,0.5); }
.footer-disclaimer { margin-top: .5rem; font-size: .75rem; }

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed; bottom: 2rem; right: 2rem;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--burgundy); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-lg); transition: all var(--transition);
    z-index: 90;
}
.back-to-top:hover { background: var(--burgundy-deep); transform: translateY(-3px); }
.back-to-top[hidden] { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .about-grid,
    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-image-wrapper { order: -1; }
    .about-image-wrapper img { height: 320px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta-card { grid-template-columns: 1fr; text-align: center; }
    .cta-actions { justify-content: center; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px;
        height: 100vh; background: var(--white); flex-direction: column;
        align-items: stretch; padding: 5rem 1.5rem 2rem; gap: .25rem;
        box-shadow: -8px 0 40px rgba(0,0,0,0.15);
        transition: right var(--transition);
        overflow-y: auto;
    }
    .nav-menu.open { right: 0; }
    .nav-menu a { padding: .875rem 1rem; font-size: 1.0625rem; border-radius: var(--radius-sm); }
    .nav-menu a:hover { background: var(--blush-light); }
    .nav-menu li:last-child a { margin-top: .5rem; }
    .hero { min-height: 100vh; padding: 7rem 1.25rem 5rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-trust { flex-direction: column; align-items: center; gap: .75rem; }
    .services-grid { grid-template-columns: 1fr; }
    .approach-step { gap: 1rem; }
    .step-number { font-size: 2rem; width: 40px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .section { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero h1 { font-size: 1.875rem; }
    .contact-form-wrapper { padding: 1.5rem; }
    .cta-card { padding: 2rem 1.5rem; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
