/*
  Sanctum & Soil Website Stylesheet
  Version: 1.4 (Includes Nav Button Fix)
  Palette: Coastal & Serene
*/

/* --- 1. Global Settings & Variables --- */
:root {
    --primary-color: #5C7080; /* Slate Blue */
    --primary-dark: #4C5D6A; /* Darker Slate Blue */
    --background-color: #FDFDFD; /* Clean Off-White */
    --surface-color: #ffffff; /* Pure White for cards */
    --light-accent: #F1F2F4; /* Light Mist */
    --accent-color: #D9C3B0; /* Warm Sand */
    --text-color: #434F58; /* Deep Slate */
    --text-muted: #74828C;
    --heading-color: #434F58; /* Deep Slate for headings */
    --border-color: #E5E7E9;
    --white-color: #ffffff;
    --font-primary: 'Lora', serif;
    --font-secondary: 'Montserrat', sans-serif;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    color: var(--heading-color);
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 3.2rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
p { margin-bottom: 1.5rem; max-width: 700px; }
p:last-child { margin-bottom: 0; }
a { color: var(--primary-color); text-decoration: none; transition: color var(--transition-speed) ease; }
a:hover { color: var(--primary-dark); }

/* --- 2. Reusable Components --- */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: var(--white-color);
    text-decoration: none;
    border-radius: 50px;
    margin-top: 1rem;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
    font-weight: 500;
    border: 2px solid var(--primary-color);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

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

.btn-light:hover {
    background: var(--light-accent);
    color: var(--primary-dark);
    border-color: var(--primary-color);
}

.section {
    padding: 6rem 0;
}

.section-alt {
    background: var(--surface-color);
}

.section-light {
    background: var(--light-accent);
}

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

.section-header .tagline {
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-muted);
}

.pull-quote {
    padding: 2.5rem;
    margin: 3rem auto;
    text-align: center;
    max-width: 700px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.pull-quote p {
    font-family: var(--font-primary);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--heading-color);
    margin: 0;
    line-height: 1.6;
}

/* --- 3. Header & Navigation --- */
.main-header {
    background: var(--surface-color);
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--heading-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center; /* Vertically align nav items */
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    padding-bottom: 5px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--primary-color);
    background: none;
    border: none;
}

/* --- 4. Footer --- */
.main-footer {
    background: var(--heading-color); /* Deep Slate footer */
    color: var(--light-accent);
    text-align: center;
    padding: 4rem 2rem;
}

.footer-logo {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--white-color);
    font-weight: 600;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--light-accent);
    text-decoration: none;
    font-weight: 400;
}

.footer-links a:hover {
    color: var(--white-color);
    text-decoration: underline;
}

.footer-info {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* --- 5. Page Specific Styles --- */
.hero {
    padding: 6rem 0;
    text-align: center;
}

.hero .subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
}

.home-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.home-intro-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.services-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card-sm {
    padding: 2.5rem;
    background: var(--surface-color);
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.service-card-sm:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 35px rgba(0,0,0,0.08);
}

.service-card-sm h3 {
    color: var(--primary-color);
}

.testimonial-feature {
    background: var(--primary-dark);
    color: var(--white-color);
    padding: 5rem 2rem;
    border-radius: 12px;
    text-align: center;
}

.testimonial-feature p {
    font-family: var(--font-primary);
    font-style: italic;
    font-size: 1.4rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.testimonial-feature .author {
    font-family: var(--font-secondary);
    font-style: normal;
    font-weight: 600;
    font-size: 1rem;
    opacity: 0.9;
}

.page-header {
    background: var(--light-accent);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.main-content {
    max-width: 700px;
    margin: 0 auto;
}

.main-content .lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-style: italic;
    font-family: var(--font-primary);
    margin-bottom: 2rem;
}

.manifesto-list {
    list-style: none;
    margin-top: 3rem;
}

.manifesto-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.manifesto-list .icon {
    font-size: 1.5rem;
    color: var(--accent-color); /* Warm Sand Icons */
    margin-top: 5px;
}

.service-offering {
    padding: 3rem;
    background: var(--surface-color);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 3rem;
    box-shadow: 0 4px 25px rgba(0,0,0,0.05);
}

.service-offering h3 {
    font-size: 1.8rem;
}
.service-offering[style*="border-color"] { /* Style for the special event card */
    border-color: var(--accent-color) !important; 
    background: var(--background-color) !important;
}

.journal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.journal-card {
    background: var(--surface-color);
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.journal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 35px rgba(0,0,0,0.1);
}

/* ** RULE UPDATED HERE ** */
.journal-card img {
    width: 100%;
    height: auto; /* This allows the image to set its own height */
    display: block; /* Prevents extra space below the image */
}

.journal-card-content {
    padding: 1.5rem;
}

.journal-card-content h3 {
    font-size: 1.3rem;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--surface-color);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.07);
}

.btn-nav {
    padding: 0.5rem 1.5rem;
    margin-top: 0;
}

/* --- 7. Responsive Design --- */
@media (max-width: 992px) {
    .home-intro, .content-wrapper { grid-template-columns: 1fr; }
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .section { padding: 4rem 0; }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--surface-color);
        position: absolute;
        top: 75px; /* Adjust based on header height */
        left: 0;
        text-align: center;
        padding: 1rem 0 2rem;
        box-shadow: 0 10px 15px rgba(0,0,0,0.06);
        gap: 1.5rem;
    }

    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
    .footer-links { flex-direction: column; gap: 1rem; }

    .home-intro-img {
        max-height: 400px;
        object-fit: cover;
    }
}

/* --- FIX FOR NAVIGATION BUTTON --- */
/* This rule specifically targets the button in the nav to ensure its text is white */
.nav-links .btn {
    color: var(--white-color);
}
.crafted-by {
    text-align: center;
    margin-top: 2rem; /* Adds space above it */
    font-size: 0.75rem; /* Smallest readable size, adjust if needed */
    color: #6c757d; /* Muted gray color, less prominent */
    letter-spacing: 0.5px; /* Optional: slightly wider spacing */
}

.crafted-by a {
    color: inherit; /* The link will have the same muted color */
    text-decoration: none; /* No underline */
}

.crafted-by a:hover {
    text-decoration: underline; /* Shows it's a link only on hover */
}
.honeypot-field {
    display: none;
}
