/* ===========================================
   THE FOREST VILLAS BY LILY - MAIN STYLESHEET
   =========================================== */

:root {
    --primary-color: #698f3fff;
    --secondary-color: #0a122aff;
    --accent-color: #804e49ff;
    --light-bg: #fbfaf8ff;
    --dark-text: #2c2c2c;
    --border-color: #e7decdff;
    --transition-duration: 0.3s;
    --transition-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --prussian-blue: #0a122aff;
    --sage-green: #698f3fff;
    --bright-snow: #fbfaf8ff;
    --bone: #e7decdff;
    --clay-soil: #804e49ff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans', sans-serif;
    color: var(--dark-text);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== */
/* TYPOGRAPHY */
/* ==================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Noto Serif Display', serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-text);
}

h1 {
    font-family: 'Noto Serif Display', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-family: 'Noto Serif Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-family: 'Noto Serif Display', serif;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

h4 {
    font-family: 'Noto Serif Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #333;
}

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

/* ==================== */
/* LAYOUT */
/* ==================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: 'Noto Serif Display', serif;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: #444;
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== */
/* HEADER & NAVIGATION */
/* ==================== */

header {
    background-color: var(--bone);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 48px;
    display: block;
}

nav {
    display: flex;
    gap: 40px;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark-text);
    position: relative;
    transition: color var(--transition-duration) var(--transition-ease);
    font-family: 'Noto Serif Display', serif;
}

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-text);
    margin: 4px 0;
    transition: all var(--transition-duration) var(--transition-ease);
    border-radius: 2px;
}

body.menu-open .nav-toggle span:nth-child(1) {
    transform: rotate(-45deg) translate(-8px, 8px);
}

body.menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

body.menu-open .nav-toggle span:nth-child(3) {
    transform: rotate(45deg) translate(-7px, -7px);
}

/* ==================== */
/* FOOTER */
/* ==================== */

footer {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 30px 20px 30px;
    /*margin-top: 80px;*/
}

footer .container {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: grid;
    /*grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));*/
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-family: 'Noto Serif Display', serif;
    color: var(--bone);
    margin-bottom: 20px;
}

.footer-logo {
    max-width: 340px;
    height: auto;
    margin: 0 auto 20px auto;
    display: block;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section p {
    color: var(--bright-snow);
    text-align: center;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.95);
    transition: color var(--transition-duration) var(--transition-ease);
}

.footer-section a:hover {
    color: var(--bone);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color var(--transition-duration) var(--transition-ease);
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--sage-green);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* ==================== */
/* RESPONSIVE DESIGN */
/* ==================== */

@media (max-width: 768px) {
    h1 {
        font-family: 'Noto Serif Display', serif;
        font-size: 2.5rem;
    }

    h2 {
        font-family: 'Noto Serif Display', serif;
        font-size: 2rem;
    }

    h3 {
        font-family: 'Noto Serif Display', serif;
        font-size: 1.5rem;
    }

    .section {
        padding: 50px 20px;
    }

    nav {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #ffffff;
        width: 100%;
        text-align: center;
        transition: right 0.3s;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        gap: 0;
    }

    nav.active {
        right: 0;
    }

    nav a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
    }

    nav a::after {
        display: none;
    }

    nav a:hover {
        background-color: var(--light-bg);
    }

    .nav-toggle {
        display: flex;
    }

    footer .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .section {
        padding: 40px 15px;
    }

    p {
        font-size: 0.95rem;
    }
}

/* ==================== */
/* UTILITY CLASSES */
/* ==================== */

.text-center {
    text-align: center;
}

/* Social icon images sizing */
.social-icon-img,
.social-card .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.social-card .social-card-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

/* Footer icons: keep small and circular background sizing */
.social-links .social-icon-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    vertical-align: middle;
}

.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;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease-out forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.6s ease-out forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 0.6s ease-out forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}