/*
Theme Name: Horse & Travel
Theme URI: https://horseandtravel.com
Author: Your Name
Description: A clean, chic, elegant WordPress theme for equestrian and luxury lifestyle content
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: horse-travel
*/

/* Fonts */
@font-face {
    font-family: 'Androgy';
    src: url('fonts/Androgy Demo.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #2c2c2c;
    background: #fff;
    line-height: 1.7;
    font-weight: 300;
}

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

a {
    color: #333;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* Typography */
h1, h2, h3 {
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* Header */
.site-header {
    background: transparent;
    padding: 2rem 0;
    border-bottom: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all 0.4s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 1.5rem 0;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo a {
    color: #fff;
    transition: color 0.4s ease;
}

.site-header.scrolled .logo a {
    color: #333;
}

.logo-monogram {
    font-family: 'Androgy', cursive;
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.logo-image {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter 0.4s ease;
}

.site-header.scrolled .logo-image {
    filter: none;
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0;
    padding: 0;
}

.nav-left {
    flex: 1;
    justify-content: flex-start;
}

.nav-right {
    flex: 1;
    justify-content: flex-end;
}

.main-nav a {
    color: #fff;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.site-header.scrolled .main-nav a {
    color: #333;
}

.main-nav a:hover {
    opacity: 0.7;
}

.social-link {
    font-size: 0.85rem;
    font-weight: 400;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
    position: relative;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.site-header.scrolled .hamburger span {
    background: #333;
}

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

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

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    margin: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 900px;
    z-index: 10;
}

.hero-text h1 {
    font-family: 'Androgy', cursive;
    font-size: 4.5rem;
    font-weight: 300;
    line-height: 1.3;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    margin-bottom: 3rem;
    letter-spacing: 0.02em;
}

.hero-link {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    font-weight: 400;
    transition: all 0.4s ease;
}

.hero-link:hover {
    background: rgba(255,255,255,0.95);
    color: #333;
    opacity: 1;
    border-color: #fff;
}

/* Blog Posts Section */
.blog-posts {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10rem 4rem 12rem;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Georgia', serif;
    font-size: 2.75rem;
    margin-bottom: 2rem;
    letter-spacing: 0.03em;
    font-weight: 400;
    color: #2c2c2c;
}

.section-divider {
    width: 60px;
    height: 1px;
    background: #2c2c2c;
    margin: 0 auto;
}

.post-grid {
    display: grid;
    gap: 4rem;
}

.post-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: start;
}

.post-card:nth-child(even) {
    grid-template-columns: 1fr 1.2fr;
}

.post-card:nth-child(even) .post-image {
    order: 2;
}

.post-card:nth-child(even) .post-content {
    order: 1;
}

.post-image {
    overflow: hidden;
}

.post-image a {
    display: block;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 2rem 0;
}

.post-meta {
    margin-bottom: 1.5rem;
}

.post-date {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #999;
    font-weight: 400;
}

.post-content h2 {
    margin-bottom: 2rem;
}

.post-content h2 a {
    font-family: 'Georgia', serif;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.4;
    color: #2c2c2c;
    transition: color 0.3s ease;
}

.post-content h2 a:hover {
    color: #666;
    opacity: 1;
}

.post-content p {
    margin-bottom: 2.5rem;
    color: #666;
    line-height: 1.9;
    font-size: 1rem;
    font-weight: 300;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #2c2c2c;
    transition: all 0.3s ease;
    position: relative;
}

.read-more .arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.read-more:hover {
    opacity: 1;
    color: #666;
}

.read-more:hover .arrow {
    transform: translateX(5px);
}

/* Footer */
.site-footer {
    background: #1a4d2e;
    color: #fff;
    padding: 6rem 2rem 3rem;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-title {
    font-family: 'Androgy', cursive;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    color: #fff;
}

.footer-description {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-contact {
    margin-bottom: 3rem;
}

.contact-email {
    font-size: 1.1rem;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.3rem;
    transition: all 0.3s ease;
}

.contact-email:hover {
    border-bottom-color: #fff;
    opacity: 1;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.social-icon {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #fff;
    opacity: 1;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05em;
}

/* Custom Contact Form - Fancy Design */
.footer-contact-form {
    max-width: 750px;
    margin: 3rem auto;
}

.custom-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-field {
    position: relative;
}

.custom-contact-form input,
.custom-contact-form textarea {
    width: 100%;
    padding: 0.85rem 1.1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.custom-contact-form input::placeholder,
.custom-contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.custom-contact-form input:focus,
.custom-contact-form textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    outline: none;
}

.custom-contact-form textarea {
    min-height: 100px;
    resize: vertical;
}

.form-submit {
    text-align: center;
    margin-top: 0.5rem;
}

.custom-contact-form button {
    background: #fff;
    color: #1a4d2e;
    border: none;
    padding: 0.9rem 3rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.custom-contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Responsive */
@media (max-width: 1324px) {
    .header-container {
        padding: 0 2rem;
        flex-wrap: wrap;
        position: relative;
    }

    .hamburger {
        display: flex;
        position: absolute;
        left: 2rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .logo {
        position: static;
        transform: none;
        order: 0;
        flex: 0 0 auto;
        margin: 0 auto;
    }

    .nav-left,
    .nav-right {
        position: fixed;
        top: 0;
        bottom: 0;
        width: 50%;
        background: #fff;
        padding: 8rem 2rem 2rem;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateY(-100%);
        transition: transform 0.4s ease;
        z-index: 100;
        overflow-y: auto;
    }

    .nav-left {
        left: 0;
        border-right: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-right {
        right: 0;
    }

    .header-container.menu-open .nav-left,
    .header-container.menu-open .nav-right {
        transform: translateY(0);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .main-nav a {
        color: #2c2c2c !important;
        background: #fff !important;
        font-size: 0.95rem;
        padding: 0.75rem 1.5rem;
        letter-spacing: 0.1em;
        text-align: center;
        transition: opacity 0.3s ease;
    }

    .main-nav a:hover {
        opacity: 0.8 !important;
    }

    body.menu-open {
        overflow: hidden;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .blog-posts {
        padding: 8rem 3rem 10rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .post-grid {
        gap: 3rem;
    }

    .post-card {
        gap: 4rem;
    }

    .post-image img {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 1.5rem 0;
    }

    .site-header.scrolled {
        padding: 1rem 0;
    }

    .header-container {
        padding: 0 1rem;
    }

    .hamburger {
        left: 1rem;
    }

    .logo-image {
        height: 40px;
    }

    .nav-left,
    .nav-right {
        width: 50%;
    }

    .main-nav a {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }

    .hero {
        height: 70vh;
        min-height: 500px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-link {
        padding: 1rem 2rem;
        font-size: 0.7rem;
    }

    .blog-posts {
        padding: 6rem 1.5rem 8rem;
    }

    .section-header {
        margin-bottom: 4rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .post-grid {
        gap: 2.5rem;
    }

    .post-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .post-card:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .post-card:nth-child(even) .post-image {
        order: 0;
    }

    .post-card:nth-child(even) .post-content {
        order: 0;
    }

    .post-content {
        padding: 1.5rem 0;
    }

    .post-content h2 a {
        font-size: 1.65rem;
    }

    .post-content p {
        font-size: 0.95rem;
    }

    .post-image img {
        height: 350px;
    }
}

/* Pagination */
.pagination {
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
}

.pagination-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-links ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    align-items: center;
}

.pagination-links a,
.pagination-links .current {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #2c2c2c;
    padding: 0.8rem 1.2rem;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-links .current {
    background: #2c2c2c;
    color: #fff;
    border-color: #2c2c2c;
}

.pagination-links a:hover {
    background: #2c2c2c;
    color: #fff;
    border-color: #2c2c2c;
    opacity: 1;
}

.pagination-links .arrow {
    font-size: 1rem;
}

.pagination-links .dots {
    padding: 0 0.5rem;
    color: #999;
    border: none;
}

@media (max-width: 768px) {
    .pagination {
        padding: 3rem 1.5rem;
    }

    .pagination-links ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination-links a,
    .pagination-links .current {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}
