/*
Theme Name: Willa Ann-tonówka
Theme URI: https://ann-tonowka.pl
Author: Willa Ann-tonówka
Author URI: https://ann-tonowka.pl
Description: A custom landing page theme for Willa Ann-tonówka with a nature-inspired design.
Version: 1.11
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anntonowka-theme
*/

:root {
    --primary-color: #2E4631; /* Deep Forest Green */
    --secondary-color: #A67B5B; /* Earthy Clay */
    --accent-color: #8FBC8F; /* Sage Green */
    --text-color: #3E3E3E; /* Dark Earthy Grey */
    --bg-color: #F9F8F4; /* Cream/Off-white */
    --light-bg: #EFEFE9; /* Light Stone */
    --white: #ffffff;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    --transition-speed: 0.4s;
}

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

html {
    scroll-behavior: smooth;
}

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

.fade-in-up {
    opacity: 1;
    transform: none;
}

.js-animations .fade-in-up {
    opacity: 0;
    transform: translateY(30px);
}

.js-animations .fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.8s ease-out;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
    font-size: 18px;
    overflow-x: hidden;
}

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

p {
    margin-bottom: 1.5rem;
    color: #5a5a5a;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
    transition: all 0.3s ease;
}

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

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

.hamburger {
    display: none;
}

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

nav ul li {
    margin-left: 35px;
}

nav ul li a {
    font-weight: 500;
    color: var(--primary-color);
    font-size: 1rem;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

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

.hero {
    height: 100vh;
    position: relative;
    /* background: url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover; */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 90px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 70, 49, 0.65);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    word-break: keep-all;
}

.hero p {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    font-weight: 300;
}

section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
}

.section-title p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--white);
    padding: 0; 
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    border-bottom: 3px solid transparent;
    overflow: hidden; 
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-bottom-color: var(--secondary-color);
}

.feature-card:hover .feature-img-container img {
    transform: scale(1.1);
}

.feature-img-container {
    width: 100%;
    height: 450px;
    overflow: hidden;
    margin-bottom: 25px;
}

.feature-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    padding: 0 20px;
}

.feature-card p {
    padding: 0 20px 30px;
}

.split-section {
    display: flex;
    align-items: center;
    gap: 60px;
}

.split-section.reverse {
    flex-direction: row-reverse;
}

.split-text {
    flex: 1;
}

.split-image {
    flex: 1;
    position: relative;
}

.split-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.split-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary-color);
    border-radius: 20px;
    z-index: -1;
    transition: transform 0.4s ease;
}

.split-section:hover .split-image::before {
    transform: translate(10px, 10px);
}

.why-us-section {
    background-color: var(--light-bg);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.why-us-item {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.why-us-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.why-us-item h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    border-left: 3px solid var(--secondary-color);
    padding-left: 15px;
}

footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0 30px;
    text-align: center;
    position: relative;
}

.footer-content h2 {
    color: var(--white);
    font-size: 2.5rem;
}

.footer-content p {
    color: rgba(255,255,255,0.8);
}

.contact-info {
    margin: 40px 0;
    font-size: 1.2rem;
}

.contact-info a {
    color: var(--accent-color);
    font-weight: bold;
}

.contact-info a:hover {
    color: var(--white);
}

.copyright {
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .split-section, .split-section.reverse {
        flex-direction: column;
        gap: 40px;
    }
    
    .split-image::before {
        display: none;
    }
}

@media (max-width: 1150px) {
    header .container {
        height: 70px;
    }

    .logo {
        font-size: 1.4rem;
        z-index: 1001;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--primary-color);
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 1000;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
    }

    nav ul li {
        margin: 20px 0;
    }

    nav ul li a {
        font-size: 1.5rem;
    }

    .header-btn {
        display: none; 
    }
}

@media (max-width: 768px) {
    
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }

    section {
        padding: 60px 0;
    }

    .features-grid, .why-us-grid {
        grid-template-columns: 1fr;
    }
}

.page-section {
    padding-top: 190px;
    padding-bottom: 80px;
    min-height: 70vh;
}

.page-content-wrapper {
    background: var(--white);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    max-width: 1000px;
    margin: 0 auto;
}

.entry-header {
    text-align: center;
    margin-bottom: 50px; 
    box-shadow: none;
    background: none;
    backdrop-filter: none;
    position: relative;
}

.entry-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.entry-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #4a4a4a;
}

.entry-content h2, 
.entry-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.entry-content ul, 
.entry-content ol {
    margin-bottom: 30px;
    padding-left: 20px;
}

.entry-content li {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .page-section {
        padding-top: 120px;
    }
    
    .page-content-wrapper {
        padding: 30px 20px;
    }
    
    .entry-title {
        font-size: 2.2rem;
    }
}
