@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #cd5c3c;
    --primary-hover: #b84f31;
    --dark-green: #334338;
    --dark-green-light: #3a4a3f;
    --bg-cream: #f9f7f4;
    --text-dark: #2d2d2d;
    --text-muted: #6b6b6b;
    --white: #ffffff;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition: all 0.3s ease;
    
    /* Legacy variables for old components */
    --primary-color: var(--primary);
    --secondary-color: #f59e0b;
    --text-main: var(--text-dark);
    --bg-light: var(--bg-cream);
    --bg-white: var(--white);
    --font-family: var(--font-body);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-cream);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}

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

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: var(--white);
}

.btn-dark {
    background-color: var(--dark-green);
    color: var(--white);
}

.btn-dark:hover {
    background-color: var(--dark-green-light);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}
.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Header */
.site-header {
    background-color: var(--bg-cream);
    padding: 20px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.site-header.home-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
    border-bottom: none;
}

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

.logo img {
    height: 60px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Footer */
.site-footer {
    background-color: var(--dark-green);
    color: var(--white);
    position: relative;
    padding-top: 60px;
    padding-bottom: 30px;
    margin-top: 60px;
}

.footer-wave {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    line-height: 0;
}

.footer-wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-logo p {
    font-size: 14px;
    color: #a0a8a3;
    max-width: 250px;
}

.footer-col h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

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

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    font-size: 14px;
    color: #a0a8a3;
}

.footer-col ul a:hover {
    color: var(--primary);
}

.newsletter-form {
    display: flex;
    margin-top: 16px;
}

.newsletter-form input {
    background: transparent;
    border: 1px solid #a0a8a3;
    padding: 10px 16px;
    border-radius: 30px 0 0 30px;
    color: white;
    outline: none;
    width: 100%;
}

.newsletter-form button {
    background: var(--primary);
    border: none;
    padding: 10px 20px;
    border-radius: 0 30px 30px 0;
    color: white;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    color: #a0a8a3;
}

/* Helper classes */
.text-primary { color: var(--primary); }
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

/* Section Titles */
.section-title-wrap {
    text-align: center;
    margin-bottom: 40px;
}

.section-subtitle {
    font-family: var(--font-body);
    color: var(--primary);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 42px;
}

/* Hero Block (Pages) */
.block-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}
.hero-content {
    position: relative;
    z-index: 10;
}
.block-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    color: white;
}
.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Rich Text */
.block-rich-text {
    padding: 4rem 0;
}
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.content-wrapper h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}
.content-wrapper h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.content-wrapper p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    color: #444;
}
.content-wrapper ul, .content-wrapper ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}
.content-wrapper li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #444;
}
.content-wrapper a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .block-hero h1 { font-size: 2.25rem; }
    .content-wrapper { padding: 1.5rem; }
}

/* Pagination */
.pagination {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}
.pagination li a, .pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: var(--text-dark);
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: var(--transition);
}
.pagination li a:hover {
    background: var(--primary);
    color: white;
}
.pagination li.active span {
    background: var(--primary);
    color: white;
}
.pagination li.disabled span {
    color: #ccc;
    background: transparent;
    box-shadow: none;
}
nav[aria-label="Pagination Navigation"] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
nav[aria-label="Pagination Navigation"] > div {
    display: flex;
    gap: 12px;
}
nav[aria-label="Pagination Navigation"] p {
    color: var(--text-muted);
    font-size: 14px;
}