/* ========================================
   The DEVOTE Programme - Main Stylesheet
   ======================================== */

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

:root {
    --clr-primary: #14532d;
    --clr-primary-light: #1a7a40;
    --clr-accent: #b8860b;
    --clr-accent-light: #d4a435;
    --clr-dark: #111827;
    --clr-text: #1f2937;
    --clr-text-light: #6b7280;
    --clr-bg: #ffffff;
    --clr-bg-warm: #f9faf7;
    --clr-bg-alt: #f0f2ec;
    --clr-border: #d1d5db;
    --clr-white: #ffffff;
    --ff-heading: 'DM Serif Display', Georgia, serif;
    --ff-body: 'Work Sans', 'Segoe UI', sans-serif;
    --container-width: 1140px;
    --header-h: 72px;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: var(--ff-body);
    color: var(--clr-text);
    background-color: var(--clr-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--clr-primary); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--clr-accent); }

h1, h2, h3, h4 {
    font-family: var(--ff-heading);
    color: var(--clr-dark);
    line-height: 1.25;
    font-weight: 400;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.15rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }

p + p { margin-top: 1rem; }

.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* ---- SITE HEADER ---- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    background: var(--clr-dark);
    z-index: 900;
    display: flex;
    align-items: center;
}

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

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--clr-white);
    font-family: var(--ff-heading);
    font-size: 1.15rem;
    white-space: nowrap;
}

.brand-link:hover { color: var(--clr-accent-light); }

.brand-link svg { height: 38px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.primary-nav a {
    color: rgba(255,255,255,0.82);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.3rem 0;
    position: relative;
}
.primary-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--clr-accent);
    transition: width 0.3s ease;
}
.primary-nav a:hover,
.primary-nav a.current {
    color: var(--clr-white);
}
.primary-nav a:hover::after,
.primary-nav a.current::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--clr-white);
    margin: 5px 0;
    transition: all 0.3s;
}

/* ---- HERO AREA ---- */

.hero-area {
    margin-top: var(--header-h);
    background: linear-gradient(145deg, var(--clr-dark) 0%, var(--clr-primary) 100%);
    color: var(--clr-white);
    padding: 5.5rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero-area::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(184,134,11,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-area::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-inner {
    max-width: 680px;
    position: relative;
    z-index: 1;
}

.hero-area h1 {
    color: var(--clr-white);
    margin-bottom: 1.5rem;
    font-size: 2.85rem;
}

.hero-tagline {
    font-size: 1.1rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.88);
    margin-bottom: 2rem;
}

.hero-phrases {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-phrases span {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 0.45rem 1.1rem;
    border-radius: 4px;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.92);
}

.btn-primary {
    display: inline-block;
    background: var(--clr-accent);
    color: var(--clr-white);
    font-family: var(--ff-body);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.75rem 1.8rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.15s ease;
    letter-spacing: 0.02em;
}
.btn-primary:hover {
    background: var(--clr-accent-light);
    color: var(--clr-white);
    transform: translateY(-1px);
}

.btn-outline {
    display: inline-block;
    border: 1.5px solid var(--clr-primary);
    color: var(--clr-primary);
    font-family: var(--ff-body);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.7rem 1.7rem;
    border-radius: 4px;
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
}
.btn-outline:hover {
    background: var(--clr-primary);
    color: var(--clr-white);
}

/* ---- SECTION GENERIC ---- */

.content-section {
    padding: 4.5rem 0;
}

.content-section.bg-warm { background-color: var(--clr-bg-warm); }
.content-section.bg-alt { background-color: var(--clr-bg-alt); }

.section-label {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--clr-accent);
    margin-bottom: 0.6rem;
}

.section-heading {
    font-size: 2.15rem;
    margin-bottom: 1.2rem;
}

.section-intro {
    max-width: 700px;
    color: var(--clr-text-light);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

/* ---- MISSION BLOCK ---- */

.mission-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.mission-visual {
    border-radius: 6px;
    overflow: hidden;
}

.mission-visual svg {
    width: 100%;
    height: auto;
}

.mission-text p {
    color: var(--clr-text);
    font-size: 1rem;
    line-height: 1.8;
}

.mission-text p + p {
    margin-top: 1.1rem;
}

/* ---- PILLARS GRID ---- */

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pillar-card {
    background: var(--clr-white);
    border: 1px solid var(--clr-border);
    border-radius: 6px;
    padding: 2.2rem 1.8rem;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.pillar-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.pillar-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.2rem;
}

.pillar-icon svg { width: 100%; height: 100%; }

.pillar-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
}

.pillar-card p {
    color: var(--clr-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.3rem;
}

.pillar-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--clr-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.pillar-link:hover { color: var(--clr-accent); gap: 0.55rem; }

/* ---- APPROACH SECTION ---- */

.approach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.approach-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.approach-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--clr-primary);
    color: var(--clr-white);
    font-family: var(--ff-heading);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.approach-item h3 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}

.approach-item p {
    color: var(--clr-text-light);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* ---- CTA PANEL ---- */

.cta-panel {
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-dark) 100%);
    color: var(--clr-white);
    padding: 4rem 0;
    text-align: center;
}

.cta-panel h2 {
    color: var(--clr-white);
    margin-bottom: 1rem;
}

.cta-panel p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 2rem;
}

.cta-panel .btn-primary {
    background: var(--clr-accent);
}

/* ---- BLOGROLL ---- */

.blogroll-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.blogroll-entry {
    border-bottom: 1px solid var(--clr-border);
    padding-bottom: 2.5rem;
}
.blogroll-entry:last-child { border-bottom: none; }

.blogroll-meta {
    font-size: 0.82rem;
    color: var(--clr-text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.blogroll-entry h3 {
    font-size: 1.4rem;
    margin-bottom: 0.7rem;
}

.blogroll-entry h3 a { color: var(--clr-dark); }
.blogroll-entry h3 a:hover { color: var(--clr-primary); }

.blogroll-excerpt {
    color: var(--clr-text);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.blogroll-excerpt p + p { margin-top: 0.8rem; }

.read-on {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--clr-primary);
}
.read-on:hover { color: var(--clr-accent); }

/* ---- SITE FOOTER ---- */

.site-footer {
    background: var(--clr-dark);
    color: rgba(255,255,255,0.72);
    padding: 3.5rem 0 1.5rem;
    font-size: 0.88rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand {
    font-family: var(--ff-heading);
    font-size: 1.15rem;
    color: var(--clr-white);
    margin-bottom: 1rem;
    display: block;
}

.footer-desc { line-height: 1.65; color: rgba(255,255,255,0.6); }

.footer-heading {
    font-family: var(--ff-body);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--clr-white);
    margin-bottom: 1rem;
}

.footer-links { list-style: none; }
.footer-links li + li { margin-top: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.footer-links a:hover { color: var(--clr-accent-light); }

.footer-contact-line { color: rgba(255,255,255,0.6); margin-bottom: 0.3rem; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.2rem;
    text-align: center;
    color: rgba(255,255,255,0.45);
    font-size: 0.8rem;
}
.footer-legal {
    display: inline-block;
    margin-left: 0.8rem;
}
.footer-legal a { color: rgba(255,255,255,0.45); }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ---- COOKIE BAR ---- */

.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--clr-dark);
    color: rgba(255,255,255,0.85);
    padding: 1rem 1.5rem;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.2);
}

.cookie-bar.visible { display: flex; flex-wrap: wrap; }

.cookie-bar p { max-width: 600px; line-height: 1.55; }
.cookie-bar a { color: var(--clr-accent-light); text-decoration: underline; }

.cookie-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }

.cookie-accept {
    background: var(--clr-accent);
    color: var(--clr-white);
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--ff-body);
}
.cookie-accept:hover { background: var(--clr-accent-light); }

.cookie-decline {
    background: transparent;
    color: rgba(255,255,255,0.65);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.5rem 1.2rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    font-family: var(--ff-body);
}
.cookie-decline:hover { color: var(--clr-white); border-color: rgba(255,255,255,0.5); }

/* ---- PAGE HERO (inner pages) ---- */

.page-hero {
    margin-top: var(--header-h);
    background: linear-gradient(140deg, var(--clr-dark) 0%, var(--clr-primary) 100%);
    color: var(--clr-white);
    padding: 3.5rem 0;
}

.page-hero h1 {
    color: var(--clr-white);
    font-size: 2.4rem;
    margin-bottom: 0.6rem;
}

.page-hero p {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
    max-width: 560px;
}

/* ---- PAGE CONTENT ---- */

.page-content {
    padding: 3.5rem 0;
}

.page-content h2 { margin-top: 2rem; }
.page-content h2:first-child { margin-top: 0; }

.page-content p {
    max-width: 740px;
    line-height: 1.8;
}

/* ---- BLOG POST ---- */

.post-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--clr-border);
}

.post-date {
    font-size: 0.85rem;
    color: var(--clr-text-light);
    margin-bottom: 0.5rem;
}

.post-body {
    max-width: 740px;
}

.post-body h2 {
    font-size: 1.55rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.post-body p {
    line-height: 1.85;
}

.post-body p + p {
    margin-top: 1.1rem;
}

/* ---- BLOG INDEX ---- */

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

.post-list-item {
    border-bottom: 1px solid var(--clr-border);
    padding: 1.8rem 0;
}
.post-list-item:first-child { padding-top: 0; }

.post-list-item h2 { font-size: 1.45rem; margin-bottom: 0.5rem; }
.post-list-item h2 a { color: var(--clr-dark); }
.post-list-item h2 a:hover { color: var(--clr-primary); }

/* ---- CONTACT ---- */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-detail-block {
    margin-top: 1.5rem;
}
.contact-detail-block h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--clr-primary);
}
.contact-detail-block p {
    color: var(--clr-text-light);
}
.contact-detail-block a { color: var(--clr-accent); }
.contact-detail-block a:hover { color: var(--clr-primary); }

.contact-areas .pillar-card {
    margin-bottom: 1rem;
}

/* ---- LEGAL ---- */

.legal-content {
    max-width: 780px;
}
.legal-content h2 {
    font-size: 1.3rem;
    margin-top: 2.2rem;
    margin-bottom: 0.6rem;
    color: var(--clr-primary);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
    line-height: 1.85;
    color: var(--clr-text);
}
.legal-content p + p { margin-top: 0.8rem; }
.legal-content em { color: var(--clr-text-light); font-size: 0.9rem; }

/* ---- RESPONSIVE ---- */

@media (max-width: 900px) {
    .mission-block,
    .approach-grid {
        grid-template-columns: 1fr;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-grid,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    h1 { font-size: 2.1rem; }
    .hero-area h1 { font-size: 2.2rem; }
    .hero-area { padding: 3.5rem 0 3rem; }
}

@media (max-width: 720px) {
    .primary-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        width: 100%;
        background: var(--clr-dark);
        flex-direction: column;
        align-items: flex-start;
        padding: 1.2rem 1.5rem 1.5rem;
        gap: 0.8rem;
        transform: translateY(-110%);
        transition: transform 0.3s ease;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    .primary-nav.open {
        transform: translateY(0);
    }

    .nav-toggle { display: block; }

    .hero-phrases { gap: 0.8rem; }
    .hero-phrases span { font-size: 0.8rem; padding: 0.35rem 0.8rem; }

    .cookie-bar { flex-direction: column; text-align: center; gap: 1rem; }

    .blogroll-grid { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .blog-article-body { padding: 0; }
}

/* ---- Blog listing ---- */
.blog-listing {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.blog-listing-item {
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--clr-border);
}

.blog-listing-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.blog-listing-item time {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--clr-accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.blog-listing-item h2 {
    font-family: var(--ff-heading);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.blog-listing-item h2 a {
    color: var(--clr-primary);
    text-decoration: none;
}

.blog-listing-item h2 a:hover {
    color: var(--clr-accent);
}

.blog-listing-item p {
    line-height: 1.7;
    margin-bottom: 0.6rem;
    color: var(--clr-text);
}

.blog-read-more {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--clr-accent);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}

.blog-read-more:hover {
    color: var(--clr-primary);
}

/* ---- Blog article ---- */
.blog-article-header {
    margin-bottom: 2.5rem;
}

.blog-back-link {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--clr-accent);
    text-decoration: none;
    margin-bottom: 1rem;
}

.blog-back-link:hover {
    color: var(--clr-primary);
}

.blog-article-header time {
    display: block;
    font-size: 0.85rem;
    color: var(--clr-accent);
    font-weight: 600;
    margin-bottom: 0.7rem;
}

.blog-article-header h1 {
    font-family: var(--ff-heading);
    font-size: 2.2rem;
    color: var(--clr-primary);
    line-height: 1.3;
}

.blog-article-body {
    max-width: 760px;
}

.blog-article-body p {
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.blog-article-body h2 {
    font-family: var(--ff-heading);
    font-size: 1.4rem;
    color: var(--clr-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-article-body a {
    color: var(--clr-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-article-body a:hover {
    color: var(--clr-primary);
}

/* ---- Blogroll on homepage ---- */
.blogroll-section {
    padding: 5rem 0;
    background: var(--clr-bg-warm);
}

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

.blogroll-card {
    background: var(--clr-white);
    border-radius: 6px;
    padding: 1.8rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}

.blogroll-card time {
    font-size: 0.8rem;
    color: var(--clr-accent);
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.blogroll-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.blogroll-card h3 a {
    color: var(--clr-dark);
    text-decoration: none;
}

.blogroll-card h3 a:hover {
    color: var(--clr-primary);
}

.blogroll-card .card-excerpt {
    font-size: 0.9rem;
    color: var(--clr-text);
    line-height: 1.7;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.blogroll-card .card-excerpt a {
    color: var(--clr-primary);
    text-decoration: underline;
}

.blogroll-card .card-excerpt a:hover {
    color: var(--clr-accent);
}

.blogroll-card .card-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-primary);
    text-decoration: none;
    margin-top: auto;
}

.blogroll-card .card-more:hover {
    color: var(--clr-accent);
}

.blogroll-heading {
    text-align: center;
    margin-bottom: 0.5rem;
}

.blogroll-subtitle {
    text-align: center;
    color: var(--clr-text-light);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

.blogroll-footer {
    text-align: center;
    margin-top: 2.5rem;
}
