/* ============================================
    NORTH ROSE TOWNE HOUSES IMPROVEMENT ASSOCIATION WEBSITE
   Professional HOA Style Sheet
   ============================================ */

:root {
    --primary-color: #1e5f74;
    --secondary-color: #2a7f8a;
    --accent-color: #e67e22;
    --light-bg: #f5f7fa;
    --dark-text: #2c3e50;
    --gray-text: #7f8c8d;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
}

.nav-brand .tagline {
    font-size: 0.75rem;
    opacity: 0.9;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}

.btn-portal {
    background-color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: var(--transition);
}

.btn-portal:hover {
    background-color: #d46a1f;
    color: white !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, #2f8ba3 0%, #43a2b1 55%, #5ab8c0 100%);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 45%),
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 36%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 920px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 3rem;
    line-height: 1.2;
    max-width: 20ch;
    margin: 0 auto 1rem;
    text-wrap: balance;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
    animation: slideInDown 0.8s ease;
}

.hero-title {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.01em;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    padding: 0.4rem 0.9rem;
    display: inline-block;
}

.hero-content p {
    font-size: 1.3rem;
    max-width: 40ch;
    margin: 0 auto 2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: slideInUp 0.8s ease;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: #d46a1f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ============================================
   MAIN CONTENT SECTIONS
   ============================================ */

main {
    padding: 3rem 2rem;
}

section {
    margin-bottom: 3rem;
}

section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 3px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 0.5rem;
}

/* ============================================
   QUICK LINKS GRID
   ============================================ */

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.link-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--dark-text);
    transition: var(--transition);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.link-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.link-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.link-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.link-card p {
    color: var(--gray-text);
    font-size: 0.95rem;
}

/* ============================================
   FEATURED SECTION
   ============================================ */

.featured {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
}

.featured-card {
    background: white;
    padding: 2rem;
    border-left: 5px solid var(--accent-color);
    border-radius: 5px;
    box-shadow: var(--shadow);
}

.featured-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.featured-card .date {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.featured-card p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.featured-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.featured-card a:hover {
    color: var(--accent-color);
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: scale(1.05);
}

.stat-card h3 {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.stat-card .number {
    font-size: 2.5rem;
    font-weight: bold;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 1rem;
    text-align: center;
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* ============================================
   FORM STYLES
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(30, 95, 116, 0.2);
}

/* ============================================
   CARD LAYOUT
   ============================================ */

.card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.card .date {
    color: var(--gray-text);
    font-size: 0.9rem;
}

.card p {
    color: var(--dark-text);
    margin-top: 0.5rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hamburger {
        display: flex;
    }

    .hero-content h2 {
        font-size: 2.1rem;
        line-height: 1.22;
        max-width: 18ch;
    }

    .hero-content p {
        font-size: 1.08rem;
        max-width: 34ch;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .navbar .container {
        flex-wrap: wrap;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.75rem;
        line-height: 1.28;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .nav-brand h1 {
        font-size: 1.3rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.pt-2 { padding-top: 2rem; }
.pb-2 { padding-bottom: 2rem; }

.hidden {
    display: none;
}

.success {
    color: #27ae60;
}

.error {
    color: #e74c3c;
}

.warning {
    color: var(--accent-color);
}
