/*
Theme Name: Lynmouth Retreat
Theme URI: https://lynmouthretreat.co.uk
Author: The Lynmouth Retreat
Author URI: https://lynmouthretreat.co.uk
Description: Custom theme for The Lynmouth Retreat with Mountain & Clay color palette. Clean, modern, and perfectly matches the main website design.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lynmouth-retreat
Tags: blog, custom-colors, featured-images, threaded-comments, translation-ready

This theme is a custom design for The Lynmouth Retreat hotel website.
*/

/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap');

/* === CSS VARIABLES (Mountain & Clay Palette) === */
:root {
    --slate-green: #4A5D53;
    --slate-green-light: #5C7269;
    --burnt-sienna: #A85B3F;
    --burnt-sienna-light: #C09177;
    --stone-gray: #D4CFC5;
    --ivory: #FBF8F3;
    --deep-brown: #2E2620;
    --white: #FFFFFF;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--deep-brown);
    background-color: var(--ivory);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--deep-brown);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

a {
    color: var(--burnt-sienna);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--slate-green);
}

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

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

/* === HEADER === */
.site-header {
    background: white;
    border-bottom: 1px solid rgba(212, 207, 197, 0.3);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.site-title {
    margin: 0;
}

.site-title a {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--deep-brown);
}

.site-title a:hover {
    color: var(--burnt-sienna);
}

.site-description {
    color: var(--slate-green);
    font-size: 0.9rem;
    margin: 0;
}

/* Navigation */
.main-navigation {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-navigation a {
    color: var(--deep-brown);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.main-navigation a:hover,
.main-navigation a.current {
    color: var(--burnt-sienna);
    border-bottom-color: var(--burnt-sienna);
}

/* Back to Main Site Link */
.back-to-main {
	font-family: 'Playfair Display', serif;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--burnt-sienna);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    background: rgba(168, 91, 63, 0.1);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.back-to-main:hover {
    background: var(--burnt-sienna);
    color: white;
    transform: translateX(4px);
}

/* === MAIN CONTENT === */
.site-content {
    padding: 3rem 0;
    min-height: 60vh;
}

/* === POSTS LIST === */
.posts-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

article.post {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(38, 38, 38, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 207, 197, 0.2);
}

article.post:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(38, 38, 38, 0.12);
}

.post-thumbnail {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

article.post:hover .post-thumbnail img {
    transform: scale(1.05);
}

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

.entry-header {
    margin-bottom: 1rem;
}

.entry-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.entry-title a {
    color: var(--deep-brown);
}

.entry-title a:hover {
    color: var(--burnt-sienna);
}

.entry-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: rgba(46, 38, 32, 0.6);
    margin-bottom: 1rem;
}

.entry-meta a {
    color: rgba(46, 38, 32, 0.6);
}

.entry-meta a:hover {
    color: var(--burnt-sienna);
}

.entry-summary {
    color: rgba(46, 38, 32, 0.8);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--burnt-sienna);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    background: rgba(168, 91, 63, 0.1);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.read-more:hover {
    background: var(--burnt-sienna);
    color: white;
    transform: translateX(4px);
}

/* Categories & Tags */
.cat-links,
.tags-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.cat-links a,
.tags-links a {
    background: rgba(74, 93, 83, 0.1);
    color: var(--slate-green);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.cat-links a:hover,
.tags-links a:hover {
    background: var(--slate-green);
    color: white;
}

/* === SINGLE POST === */
.single-post .post {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 4px 24px rgba(38, 38, 38, 0.08);
}

.single-post .entry-header {
    border-bottom: 2px solid var(--stone-gray);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.single-post .entry-title {
    font-size: 2.5rem;
}

.single-post .post-thumbnail {
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--deep-brown);
}

.entry-content h2,
.entry-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content ul,
.entry-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content blockquote {
    border-left: 4px solid var(--burnt-sienna);
    background: rgba(168, 91, 63, 0.05);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    font-style: italic;
}

.entry-content img {
    border-radius: 12px;
    margin: 2rem 0;
}

/* === PAGINATION === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.page-numbers {
    padding: 0.75rem 1.25rem;
    background: white;
    color: var(--deep-brown);
    border: 1px solid var(--stone-gray);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--burnt-sienna);
    color: white;
    border-color: var(--burnt-sienna);
    transform: translateY(-2px);
}

/* === SIDEBAR === */
.sidebar {
    padding-left: 2rem;
}

.widget {
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 24px rgba(38, 38, 38, 0.08);
}

.widget-title {
    font-size: 1.25rem;
    color: var(--deep-brown);
    border-bottom: 2px solid var(--burnt-sienna);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(212, 207, 197, 0.3);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--deep-brown);
}

.widget a:hover {
    color: var(--burnt-sienna);
}

/* === COMMENTS === */
.comments-area {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: 0 4px 24px rgba(38, 38, 38, 0.08);
}

.comments-title {
    border-bottom: 2px solid var(--burnt-sienna);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
}

.comment {
    background: var(--ivory);
    border-left: 4px solid var(--burnt-sienna);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--deep-brown);
    margin-bottom: 0.5rem;
}

.comment-metadata {
    font-size: 0.85rem;
    color: rgba(46, 38, 32, 0.6);
    margin-bottom: 1rem;
}

/* === FORMS === */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--stone-gray);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    background: white;
    color: var(--deep-brown);
    transition: all 0.2s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--burnt-sienna);
    box-shadow: 0 0 0 3px rgba(168, 91, 63, 0.1);
}

button,
input[type="submit"],
.wp-block-button__link {
    background: var(--burnt-sienna);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
    background: var(--slate-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 93, 83, 0.3);
}

/* === FOOTER === */
.site-footer {
    background: var(--deep-brown);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

.footer-widget li {
    margin-bottom: 0.5rem;
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-widget a:hover {
    color: white;
}

.site-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .posts-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .posts-list {
        grid-template-columns: 1fr;
    }

    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .main-navigation {
        flex-direction: column;
        gap: 0.5rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .single-post .post {
        padding: 1.5rem;
    }

    .single-post .entry-title {
        font-size: 2rem;
    }

    .sidebar {
        padding-left: 0;
        margin-top: 2rem;
    }
}

/* === UTILITIES === */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* === ACCESSIBILITY === */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* === SELECTION === */
::selection {
    background: var(--burnt-sienna);
    color: white;
}

::-moz-selection {
    background: var(--burnt-sienna);
    color: white;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--ivory);
}

::-webkit-scrollbar-thumb {
    background: var(--burnt-sienna);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--slate-green);
}
