/* =========================================
   Variables & Reset
   ========================================= */
:root {
    /* Chestnut Brown Palette */
    --primary: #8b5a2b;
    --primary-light: #cd853f;
    --primary-hover: #a0522d;
    --bg-dark: #2c1e16;
    --bg-darker: #1e130d;
    --text-light: #fdf8f5;
    --text-muted: #d5bda9;
    --glass-bg: rgba(255, 235, 205, 0.05);
    /* slightly warm glass */
    --glass-border: rgba(255, 235, 205, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    --font-main: 'Montserrat', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   Typography & Utilities
   ========================================= */
.text-center {
    text-align: center;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(to right, var(--text-light), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 90, 43, 0.4);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 90, 43, 0.6);
}

.btn-outline {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary-light);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(205, 133, 63, 0.1);
    transform: translateY(-3px);
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary-light);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.btn-text span {
    transition: transform 0.3s ease;
}

.btn-text:hover {
    color: var(--text-light);
}

.btn-text:hover span {
    transform: translateX(5px);
}

.w-100 {
    width: 100%;
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

/* Filter to tint existing images to brown */
.tint-brown {
    filter: sepia(0.6) hue-rotate(330deg) saturate(1.5) brightness(0.8);
}

/* =========================================
   Animations
   ========================================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible,
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* SVG Drawing Animation */
.svg-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 2s ease-in-out;
}

.svg-container.active .svg-path {
    stroke-dashoffset: 0;
}

/* =========================================
   Navigation (Glassmorphism)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(44, 30, 22, 0.85);
    /* Brown glass */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-light);
    transition: 0.3s;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.background-layer {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-image: url('../assets/images/hero_garden_bg.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(44, 30, 22, 0.4) 0%, rgba(44, 30, 22, 0.95) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    color: var(--text-light);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    opacity: 0.7;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* =========================================
   Glassmorphism Sections
   ========================================= */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* About Section */
.about {
    position: relative;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.secondary-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150%;
    background-image: url('../assets/images/abstract_leaves_bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: -1;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-light);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.features-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.features-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-size: 1.5rem;
    line-height: 1;
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    height: 500px;
}

.about-img {
    width: 100%;
    height: 130%;
    /* for parallax stretch */
    object-fit: cover;
}

/* =========================================
   Info & Docs Section
   ========================================= */
.info-docs {
    padding: 6rem 0;
    position: relative;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.doc-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.doc-card:hover {
    transform: translateY(-10px);
    border-color: rgba(205, 133, 63, 0.3);
}

.doc-card .svg-container {
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
}

.doc-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.doc-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* =========================================
   Payments Section
   ========================================= */
.payments {
    padding: 6rem 0;
    background: linear-gradient(180deg, rgba(44, 30, 22, 0) 0%, rgba(30, 19, 13, 1) 100%);
}

.payments-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.payment-box h3,
.payment-actions h3 {
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.requisites p {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

.requisites strong {
    color: var(--text-light);
}

.requisites .note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--primary-light);
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.payment-actions p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.payment-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* =========================================
   Meter Reading Section
   ========================================= */
.meter-reading {
    padding: 4rem 0 8rem;
    background-color: var(--bg-darker);
}

.meter-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.meter-content h2 {
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.meter-content>p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.meter-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-light);
}

.form-group input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 8px;
    color: var(--text-light);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-light);
    background: rgba(0, 0, 0, 0.4);
}

.form-messages {
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
    min-height: 20px;
}

/* =========================================
   Modal
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-dark);
    margin: 10% auto;
    padding: 3rem;
    width: 90%;
    max-width: 600px;
    position: relative;
    border: 1px solid var(--primary-light);
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: var(--text-muted);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--primary-light);
}

.modal-docs-list {
    margin-top: 2rem;
}

.modal-docs-list li {
    margin-bottom: 1rem;
}

.modal-docs-list li a {
    display: block;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-light);
    transition: background 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.modal-docs-list li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-light);
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: #170f0a;
    /* Deepest brown */
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-info h3 {
    color: var(--primary-light);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-info p {
    color: var(--text-muted);
}

.footer-links h4 {
    margin-bottom: 1rem;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #8b7d72;
    font-size: 0.9rem;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 992px) {

    .about-container,
    .payments-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .about-image-wrapper {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(44, 30, 22, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }
}