/* --- PERFECT STYLE MATCH FOR HOA --- */
:root {
    --primary-orange: #f39c12;
    --primary-dark: #d68910;
    --heading-dark: #333333;
    --text-grey: #777777;
    --nav-height: 90px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-grey);
    line-height: 1.8;
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Quicksand', sans-serif;
    color: var(--heading-dark);
    font-weight: 700;
}

.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- HEADER & NAVIGATION --- */
header {
    background-color: var(--primary-orange);
    height: var(--nav-height);
    position: relative;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    color: #ffffff;
    font-size: 19px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.logo i {
    font-size: 42px;
    margin-right: 15px;
}

.nav-links {
    display: flex;
    list-style: none;
    height: 100%;
}

.nav-links li {
    height: 100%;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 0 25px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: all 0.2s ease-in-out;
    border-bottom: 5px solid transparent; /* Placeholder for the line */
}

/* The EXACT "Home" state: White background with the orange line at the bottom */
.nav-links a.active {
    background-color: #ffffff;
    color: var(--heading-dark);
    border-bottom: 5px solid var(--primary-orange); /* The "little line" */
}

.nav-links a:hover:not(.active) {
    color: var(--heading-dark);
}

/* --- HERO SECTION & SHADOW --- */
.hero {
    height: 350px; /* Fixed taller height to match reference */
    background: url('../img/pic.jpg') center 30% / cover no-repeat;
    position: relative;
}

/* The Vignette Shadow at the bottom of the image */
.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    z-index: 1;
}

/* --- THE LAYERED WAVE CURVE --- */
.hero-overlay {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 10;
}

.hero-overlay svg {
    width: 100%;
    height: 110px;
    display: block;
}

/* Back foggy wave */
.wave-back {
    fill: rgba(255, 255, 255, 0.45);
}

/* Front solid white wave */
.wave-front {
    fill: #ffffff;
}

/* --- FEATURES SECTION --- */
.features {
    padding: 90px 0;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.icon-wrapper {
    background: var(--primary-orange);
    width: 85px;
    height: 85px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.icon-wrapper i {
    color: #ffffff;
    font-size: 34px;
}

.feature-card h2 {
    font-size: 26px;
    margin-bottom: 15px;
    color: var(--heading-dark);
}

.feature-card p {
    font-size: 15px;
    padding: 0 10px;
}

.btn-read-more {
    display: inline-block;
    background: #222222;
    color: #ffffff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    margin-top: 25px;
    transition: background 0.3s;
}

.btn-read-more:hover {
    background: #444444;
}

/* --- CONTACT SECTION (PAGE 2) --- */
.contact-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1.2fr;
    gap: 50px;
}


.contact-info ul {
    list-style: none;
    margin-top: 25px;
}

.contact-info li {
    margin-bottom: 12px;
    font-size: 15px;
    display: flex;
    align-items: center;
}

/* Dot Bullet */
.contact-info li::before {
    content: "•";
    color: #ccc;
    margin-right: 10px;
    font-size: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #555;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 11px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
}

.btn-send {
    background: var(--primary-orange);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-send:hover {
    background: var(--primary-dark);
}

/* --- NEWS & EVENTS (PAGE 3) --- */
.news-section {
    padding: 80px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr;
    gap: 45px;
}

.event-item {
    margin-bottom: 35px;
}

.event-item h4 {
    color: var(--primary-orange);
    font-size: 19px;
    margin-bottom: 3px;
}

.event-item span {
    font-size: 12px;
    color: #999;
    display: block;
    margin-bottom: 8px;
}

.post-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 3px;
    margin-bottom: 15px;
}

.post-card a {
    color: #222222;
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
}

/* --- FOOTER SECTION --- */
footer {
    background: linear-gradient(rgba(34, 34, 34, 0.85), rgba(34, 34, 34, 0.85)), 
                url('../img/footer-bg.jpg') center/cover no-repeat;
    color: #ffffff;
    padding: 100px 0 0;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 90px;
}

.footer-col i {
    font-size: 50px;
    color: #ffffff;
    margin-bottom: 25px;
    display: block;
}

.footer-col h3 {
    color: var(--primary-orange);
    font-size: 26px;
    margin-bottom: 15px;
}

.footer-col p {
    font-size: 16px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-icons i {
    background: rgba(255, 255, 255, 0.15);
    width: 44px;
    height: 44px;
    line-height: 44px;
    border-radius: 4px;
    font-size: 18px;
    margin-bottom: 0;
}

.social-icons i:hover {
    background: var(--primary-orange);
}

/* Bottom Copyright Bar */
.copyright-bar {
    background: #000000;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-text {
    font-size: 14px;
    color: #ffffff;
}

.back-to-top {
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
}