/* 
    American Institute of Mental Health INC
    Premium Stylesheet 
*/

:root {
    /* Color Palette - Calming, Professional, Vibrant */
    --primary: #0077b6;
    --primary-light: #00b4d8;
    --secondary: #023e8a;
    --accent: #48cae4;
    --accent-light: #ade8f4;
    --text-dark: #1b263b;
    --text-light: #778da9;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions & Shadows */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0, 119, 182, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 119, 182, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary);
}

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

/* Common Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-primary, .btn-primary-small {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary-small {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
}

.btn-primary:hover, .btn-primary-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 119, 182, 0.4);
    color: var(--white);
}

.btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--accent-light);
    color: var(--secondary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    will-change: transform, opacity;
}

.slide-up {
    transform: translateY(40px);
}

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

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Navbar (Glassmorphism) */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 50px;
    width: auto;
    border-radius: 50%; /* Make circular image round */
    box-shadow: var(--shadow-sm);
}

.logo-accent {
    color: var(--primary);
    font-weight: 800;
}

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

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 3px;
    transition: var(--transition);
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
}

.hero-content {
    max-width: 600px;
    padding: 2rem;
    margin-left: 5%;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* About Section */
.about {
    padding: 8rem 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.icon-box {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.ambient-blob {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--accent-light);
    filter: blur(80px);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.5;
}

.glass-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.gradient-line {
    height: 4px;
    width: 50px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin-top: 1.5rem;
    border-radius: 2px;
}

/* Services Section */
.services {
    padding: 8rem 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.service-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.service-image-container {
    height: 250px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-content {
    padding: 2.5rem;
    flex-grow: 1;
}

.single-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    background: linear-gradient(145deg, var(--white) 0%, #f8fcfd 100%);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.btn-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--primary);
    font-weight: 600;
    font-family: var(--font-heading);
}

.btn-link:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--white);
    position: relative;
}

.glass-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--secondary);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-info {
    padding: 4rem;
    color: var(--white);
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle fill="rgba(255,255,255,0.05)" cx="10" cy="10" r="2"></circle></pattern></defs><rect x="0" y="0" width="100%" height="100%" fill="url(%23dots)"></rect></svg>');
}

.contact-info h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--accent-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.info-item {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form-container {
    padding: 4rem;
    background: var(--white);
}

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

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

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: #f8fafc;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--bg-light);
    padding: 3rem 0;
    border-top: 1px solid #e2e8f0;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

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

/* Responsive */
@media (max-width: 900px) {
    .about-grid, .glass-panel {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        margin-left: 0;
        text-align: center;
        margin: 0 auto;
        padding-top: 4rem;
    }
    
    .hero-overlay {
        background: rgba(255,255,255,0.85); /* fully cover on mobile so text is legible */
    }

    .hero-buttons {
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 2rem;
        transition: 0.3s ease-in-out;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .contact-info, .contact-form-container {
        padding: 2rem;
    }
}

/* Page Subheaders */
.page-header {
    margin-top: 80px; /* Offset for navbar */
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    color: var(--accent-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Extended Footer Styles */
.footer {
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #e2e8f0;
    padding-top: 2rem;
    margin-top: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-col[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }
}
