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

:root {
    --deep-teal: #164E52;
    --jade: #438A78;
    --sage: #8EAD91;
    --clay: #C9785A;
    --apricot: #E8A36B;
    --mist: #CFE2DC;
    --pale-sand: #EFE3CF;
    --white: #FFFFFF;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--deep-teal);
    background-color: var(--pale-sand);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--deep-teal);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

a:hover {
    color: var(--clay);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

.bg-white { background-color: var(--white); }
.bg-mist { background-color: var(--mist); }
.bg-deep-teal { 
    background-color: var(--deep-teal); 
    color: var(--white);
}
.bg-deep-teal h1, .bg-deep-teal h2, .bg-deep-teal h3, .bg-deep-teal p {
    color: var(--white);
}

.bg-jade {
    background-color: var(--jade);
    color: var(--white);
}
.bg-jade h1, .bg-jade h2, .bg-jade h3, .bg-jade p {
    color: var(--white);
}

.bg-clay {
    background-color: var(--clay);
    color: var(--white);
}
.bg-clay h1, .bg-clay h2, .bg-clay h3, .bg-clay p {
    color: var(--white);
}

.text-center { text-align: center; }

/* Grid Systems */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.align-center { align-items: center; }

/* Header & Navigation */
.site-header {
    background-color: var(--white);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--mist);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.brand-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--deep-teal);
    letter-spacing: 1px;
}

.site-title {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--jade);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.main-nav a {
    color: var(--deep-teal);
    font-size: 1rem;
    font-weight: 400;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--jade);
    border-bottom: 2px solid var(--clay);
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-img-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(22, 78, 82, 0.4), rgba(22, 78, 82, 0.7));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 3rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    backdrop-filter: blur(5px);
}

.hero-content h1 {
    color: var(--deep-teal);
    margin-bottom: 1.5rem;
}

.hero-content p {
    color: var(--deep-teal);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--clay);
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    text-align: center;
}

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

.btn-secondary {
    background-color: var(--jade);
}

.btn-secondary:hover {
    background-color: var(--deep-teal);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--deep-teal);
    color: var(--deep-teal);
}

.btn-outline:hover {
    background-color: var(--deep-teal);
    color: var(--white);
}

/* Cards */
.card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(22, 78, 82, 0.08);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(22, 78, 82, 0.15);
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--clay);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card h3 {
    margin-bottom: 0.5rem;
}

.card-location {
    font-style: italic;
    color: var(--sage);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.card p {
    font-size: 1rem;
    color: var(--deep-teal);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

/* Editorial Split */
.editorial-img {
    border-radius: 50% 50% 0 0;
    height: 600px;
    object-fit: cover;
    width: 100%;
}

.editorial-content {
    padding: 2rem;
}

/* Subpage Heroes */
.subpage-hero {
    padding: 6rem 0 4rem;
    background-color: var(--mist);
    text-align: center;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--deep-teal);
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--sage);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--white);
    color: var(--deep-teal);
}

.form-control:focus {
    outline: none;
    border-color: var(--clay);
    box-shadow: 0 0 0 3px rgba(201, 120, 90, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-message {
    display: none;
    padding: 1rem;
    background-color: var(--mist);
    color: var(--deep-teal);
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    font-weight: 700;
}

/* Footer */
.site-footer {
    background-color: var(--deep-teal);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--apricot);
    margin-bottom: 1.5rem;
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 0.75rem;
}

.footer-nav a {
    color: var(--white);
}

.footer-nav a:hover {
    color: var(--apricot);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
}

.legal-nav {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.disclaimer-box {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--mist);
}

.disclaimer-box p:last-child {
    margin-bottom: 0;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(22, 78, 82, 0.2);
    z-index: 9999;
    display: none; /* Controlled by JS */
    border: 2px solid var(--jade);
}

.cookie-content h3 {
    margin-bottom: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(22, 78, 82, 0.8);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.cookie-modal-inner {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--mist);
}

/* Checkbox Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--sage);
    transition: .4s;
    border-radius: 24px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider { background-color: var(--jade); }
input:checked + .slider:before { transform: translateX(26px); }

/* Standard Content Pages */
.content-wrapper {
    background-color: var(--white);
    padding: 4rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(22, 78, 82, 0.05);
}

.content-wrapper h2 { margin-top: 2rem; }
.content-wrapper ul { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.content-wrapper li { margin-bottom: 0.5rem; }

/* Responsive */
@media (max-width: 1200px) {
    .container { max-width: 960px; }
    h1 { font-size: 3rem; }
}

@media (max-width: 992px) {
    .container { max-width: 720px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero-content { margin: 0 2rem; }
}

@media (max-width: 768px) {
    .container { max-width: 100%; }
    .grid-2 { grid-template-columns: 1fr; }
    .header-top { flex-direction: column; text-align: center; }
    .main-nav { gap: 1rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .editorial-img { height: 400px; border-radius: 20px; }
    .hero { min-height: 500px; }
    .cookie-banner { bottom: 1rem; left: 1rem; right: 1rem; padding: 1.5rem; }
    .content-wrapper { padding: 2rem; }
}

@media (max-width: 480px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .main-nav { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .main-nav a { padding: 0.5rem; font-size: 0.95rem; }
    .btn { width: 100%; display: block; margin-bottom: 1rem; }
    .hero-buttons { flex-direction: column; gap: 0; width: 100%; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .legal-nav { flex-wrap: wrap; justify-content: center; }
    .cookie-buttons { flex-direction: column; }
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    section { padding: 4rem 0; }
}