/* Custom Styling for Ashiana Co-operative Housing Society website */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Color Palette */
    --primary: #0F172A;       /* Deep slate/navy */
    --primary-light: #1E293B; /* Navy light */
    --accent: #B45309;        /* Warm Gold/Amber */
    --accent-hover: #D97706;  /* Brighter Gold */
    --bg-main: #FAF9F6;       /* Warm off-white */
    --bg-card: #FFFFFF;
    --text-main: #1E293B;     /* Charcoal */
    --text-muted: #64748B;    /* Slate grey */
    --border-color: #E2E8F0;
    
    /* Fonts */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Layout Variables */
    --max-width: 1200px;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.25;
}

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

/* Header & Navigation */
header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-top: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    padding: 0.25rem 0;
}

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

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #FFFFFF;
    position: relative;
    padding: 6rem 2rem;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 1;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 680px;
}

.hero-tag {
    display: inline-block;
    background-color: rgba(180, 83, 9, 0.2);
    color: var(--accent-hover);
    border: 1px solid var(--accent);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.8s ease;
}

.hero h1 {
    color: #FFFFFF;
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-address {
    font-size: 1.15rem;
    color: #E2E8F0;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: fadeInUp 1s ease;
}

.hero-address svg {
    color: var(--accent-hover);
    flex-shrink: 0;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1.2s ease;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    gap: 0.5rem;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.3);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease;
}

.hero-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border-radius: var(--border-radius);
    padding: 2rem;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

.hero-card h3 {
    color: #FFFFFF;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
}

.hero-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-stat-label {
    color: #94A3B8;
    font-size: 0.9rem;
}

.hero-stat-val {
    font-weight: 600;
    color: #FFFFFF;
    font-size: 0.95rem;
}

/* Main Container Section */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.4rem;
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Document Portal Controls */
.portal-controls {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 280px;
}

.search-box input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    font-family: var(--font-body);
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.15);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.filter-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-main);
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF;
}

/* Documents Grid */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.doc-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.doc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(180, 83, 9, 0.3);
}

.doc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary);
}

.doc-card.category-annexure::before {
    background-color: var(--accent);
}

.doc-category-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: inline-block;
}

.doc-card.category-annexure .doc-category-tag {
    color: var(--accent);
}

.doc-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.35;
    flex-grow: 1;
}

.doc-meta {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.doc-type {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background-color: #F1F5F9;
    color: #475569;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
}

.btn-download {
    background-color: var(--primary);
    color: #FFFFFF;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-download:hover {
    background-color: var(--accent);
    transform: none;
}

.no-docs-message {
    grid-column: 1 / -1;
    text-align: center;
    background: #FFFFFF;
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 4rem 2rem;
    color: var(--text-muted);
}

/* Contact Us Section */
.contact-section {
    background-color: #FFFFFF;
    border-top: 1px solid var(--border-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-info-panel h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.contact-desc {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    align-items: flex-start;
}

.contact-icon-wrapper {
    background-color: rgba(15, 23, 42, 0.05);
    color: var(--primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.contact-item:hover .contact-icon-wrapper {
    background-color: var(--accent);
    color: #FFFFFF;
    transition: var(--transition);
}

.contact-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.contact-val {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-main);
}

.map-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-top: 2rem;
    height: 250px;
}

/* Contact Form */
.contact-form-panel {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.contact-form-panel h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.contact-form-panel p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

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

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

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.alert-box {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 500;
    display: none;
}

.alert-success {
    background-color: #DCFCE7;
    color: #166534;
    border: 1px solid #BBF7D0;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: #94A3B8;
    padding: 3rem 2rem;
    border-top: 2px solid var(--accent);
    font-size: 0.9rem;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
}

.footer-logo-main {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #FFFFFF;
    font-weight: 700;
}

.footer-disclaimer {
    max-width: 600px;
    font-size: 0.8rem;
    line-height: 1.5;
    text-align: right;
}

.header-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    background-color: rgba(15, 23, 42, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.header-counter:hover {
    border-color: var(--accent);
    background-color: rgba(15, 23, 42, 0.08);
}

.header-counter i {
    color: var(--accent);
}

.header-counter strong {
    color: var(--primary);
    font-weight: 700;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--accent);
    color: #FFFFFF;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-image-container {
        display: none; /* Hide card on medium size to fit content nicely, or wrap */
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-disclaimer {
        text-align: center;
    }
}

@media (max-width: 768px) {
    header {
        position: relative;
    }
    .nav-container {
        padding: 1rem;
    }
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #FFFFFF;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        padding: 1.5rem 2rem;
    }
    nav.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }
    nav ul {
        flex-direction: column;
        gap: 1.25rem;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero {
        padding: 4rem 1rem;
    }
    .container {
        padding: 3rem 1rem;
    }
    .portal-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-tags {
        justify-content: flex-start;
    }
    .doc-grid {
        grid-template-columns: 1fr;
    }
    .contact-form-panel {
        padding: 1.5rem;
    }
}
