/*
Theme Name: Italian Girl in Cornwall
Theme URI: https://italiangirlincornwall.com
Author: Antigravity AI
Author URI: https://italiangirlincornwall.com
Description: Custom "Sunset on the Cliffs" theme for Italian Girl in Cornwall.
Version: 1.0
*/

/* =========================================
   VARIABLES & DESIGN SYSTEM
   ========================================= */
:root {
    /* Color Palette: "Sunset on the Cliffs" */
    --clr-terracotta: #D87C51;
    --clr-slate-blue: #4A6FA5;
    --clr-sage-green: #9CB4A6;
    --clr-background: #FCF9F2;
    --clr-text-dark: #2C3E50;
    --clr-text-light: #F4EFEB;

    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-background);
    color: var(--clr-text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.site-header {
    text-align: center;
    padding-top: 3rem;
    margin-bottom: 2rem;
}

.brand-name {
    font-size: 3.5rem;
    color: var(--clr-text-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.top-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    padding: 1.5rem 5%;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.top-nav a {
    text-decoration: none;
    color: var(--clr-text-dark);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.top-nav a:hover {
    color: var(--clr-terracotta);
}

.site-content {
    flex: 1;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem 5%;
}

/* For Pages & Front Page */
.full-width-content {
    flex: 1;
    width: 100%;
    margin: 0;
    padding: 0;
}

.page-content-wrapper p,
.page-content-wrapper ul,
.page-content-wrapper ol,
.page-content-wrapper h1,
.page-content-wrapper h2,
.page-content-wrapper h3 {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.page-content-wrapper .wp-block-cover,
.page-content-wrapper .wp-block-image,
.page-content-wrapper .alignfull {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0;
}

/* Typography for Posts */
.content-box {
    max-width: 100%;
    margin: 0 auto;
    background: white;
    padding: 3rem 5%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.content-box p,
.content-box ul,
.content-box ol {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #444;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.content-box h1,
.content-box h2,
.content-box h3 {
    color: var(--clr-terracotta);
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.content-box img,
.content-box .wp-block-image,
.content-box .wp-block-cover {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* =========================================
   HERO SLIDER
   ========================================= */
.hero-slider {
    position: relative;
    width: 100%;
}

.splide__slide {
    position: relative;
}

.slide-bg {
    width: 100%;
    height: 65vh;
    min-height: 450px;
    object-fit: cover;
    display: block;
}

.placeholder-bg {
    background-color: #E2E2E2;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1));
}

.slide-content {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    width: 90%;
    max-width: 800px;
}

.slide-cat {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--clr-terracotta);
}

.slide-content h2 a {
    color: white;
    font-size: 3rem;
    font-family: var(--font-heading);
    text-decoration: none;
    line-height: 1.1;
}

.slide-content h2 a:hover {
    color: var(--clr-sage-green);
}

.btn-read-more {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.6rem 1.8rem;
    border: 1px solid white;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-read-more:hover {
    background: white;
    color: var(--clr-slate-blue);
}

/* =========================================
   POST MASONRY GRID (HOMEPAGE)
   ========================================= */
.latest-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.2rem;
    color: var(--clr-slate-blue);
    margin-bottom: 2.5rem;
    text-align: center;
}

.post-grid {
    column-count: 3;
    column-gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.post-card {
    display: inline-block;
    width: 100%;
    margin-bottom: 2.5rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    text-align: center;
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-card-img-wrapper img,
.placeholder-img {
    width: 100%;
    height: auto;
    display: block;
}

.placeholder-img {
    height: 250px;
    background-color: #E2E2E2;
}

.post-card-body {
    padding: 1.8rem;
}

.post-card-date {
    display: block;
    font-size: 0.8rem;
    color: var(--clr-sage-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.post-card-body h3 {
    margin-bottom: 1rem;
}

.post-card-body h3 a {
    color: var(--clr-slate-blue);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    line-height: 1.3;
}

.post-card-body h3 a:hover {
    color: var(--clr-terracotta);
}

.post-card-body p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.post-card-read-more {
    font-size: 0.85rem;
    color: var(--clr-terracotta);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
}

.post-card-read-more:hover {
    color: var(--clr-slate-blue);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    text-align: center;
    padding: 3rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 3rem;
    font-size: 0.85rem;
    color: #888;
}

.footer-socials {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-socials a {
    color: var(--clr-slate-blue);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer-socials a:hover {
    color: var(--clr-terracotta);
}

/* =========================================
   MEDIA QUERIES
   ========================================= */
@media (max-width: 900px) {
    .post-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .brand-name {
        font-size: 2.5rem;
    }

    .top-nav {
        gap: 1.5rem;
        flex-direction: column;
        padding: 1rem 0;
    }

    .site-content {
        padding: 1rem;
    }

    .content-box {
        padding: 1.5rem;
    }

    .slide-content h2 a {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .post-grid {
        column-count: 1;
    }
}