/*
Theme Name: Stoke Theme
Theme URI: https://github.com/JoshRN30/stoke-wordpress
Author: Joshwyn Naidoo
Description: Custom theme for Coffee Creative Studio Assessment
Version: 1.0
Requires at least: 6.7
Tested up to: 7.0
Text Domain: stoke-theme
*/

:root {
    --color-navy: #1b2a5e;
    --color-navy-dark: #14203f;
    --color-coral: #f4623a;
    --color-coral-dark: #e04e28;
    --color-yellow: #f6c944;
    --color-teal: #14a08c;
    --color-pink-hero-1: #e7a6bd;
    --color-pink-hero-2: #d88ba8;
    --color-pink-light: #fbdbe0;
    --color-text: #1a1a1a;
    --color-text-muted: #5c5c5c;
    --color-white: #ffffff;
    --font-display: 'Poppins', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
    --container-width: 1200px;
    --radius-pill: 999px;
    --radius-md: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, figure { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

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

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-align: center;
}
.btn:hover { transform: translateY(-2px); }

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

.btn-yellow { background: var(--color-yellow); color: var(--color-navy); }

.btn-pink-light { background: var(--color-pink-light); color: var(--color-coral-dark); }

.btn-teal-outline { background: rgba(255,255,255,0.15); color: var(--color-white); border: 2px solid var(--color-white); }

.section-pad { padding: 80px 0; }

@media (max-width: 768px) {
    .section-pad { padding: 48px 0; }
}

.site-header {
    background: var(--color-navy);
    position: sticky;
    top: 0;
    z-index: 999;
}

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

.site-logo a {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-white);
}

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

.primary-nav ul {
    display: flex;
    gap: 28px;
}

.primary-nav a {
    color: var(--color-white);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.15s ease;
}

.primary-nav a:hover,
.primary-nav .current-menu-item a {
    color: var(--color-coral);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    width: 32px;
    height: 24px;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
}
.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--color-white);
    border-radius: 2px;
}

@media (max-width: 900px) {
    .nav-toggle { display: flex; }

    .primary-nav {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        padding-left: 25px;
        background: var(--color-navy);
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .primary-nav.is-open {
        max-height: 500px;
        padding-bottom: 32px;
    }
    .primary-nav ul {
        flex-direction: column;
        gap: 18px;
        width: 100%;
    }
    .primary-nav .btn { width: 100%; text-align: center; }
}

.hero {
    background: linear-gradient(135deg, var(--color-pink-hero-1), var(--color-pink-hero-2));
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
}

.hero h1 {
    font-size: 3rem;
    color: var(--color-white);
    margin-bottom: 20px;
}

.hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.05rem;
    max-width: 480px;
    margin-bottom: 28px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-visual .placeholder-graphic {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
}

@media (max-width: 900px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero p { margin-left: auto; margin-right: auto; }
    .hero h1 { font-size: 2.2rem; }
    .hero-visual { order: -1; }
}

.stats {
    padding: 56px 0;
}
.stats .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-navy);
}
.stat-label {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: 6px;
}
@media (max-width: 700px) {
    .stats .container { grid-template-columns: repeat(2, 1fr); }
}

.intro-split .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.intro-split-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: linear-gradient(135deg, #f4a06a, #f4623a);
    aspect-ratio: 4/3.2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}
.intro-split h2 { font-size: 2rem; margin-bottom: 16px; }
.intro-split p { color: var(--color-text-muted); margin-bottom: 24px; }
.intro-actions { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 800px) {
    .intro-split .container { grid-template-columns: 1fr; }
}

.how-we-do-it .section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.how-we-do-it h2 { font-size: 1.8rem; }
.carousel-arrows { display: flex; gap: 10px; }
.carousel-arrows button {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--color-teal);
    color: var(--color-white);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.card { text-align: center; }
.card-icon {
    width: 90px; height: 90px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
}
.card:nth-child(1) .card-icon { background: var(--color-pink-light); }
.card:nth-child(2) .card-icon { background: var(--color-yellow); }
.card:nth-child(3) .card-icon { background: var(--color-coral); }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--color-text-muted); font-size: 0.92rem; }

@media (max-width: 800px) {
    .cards-grid { grid-template-columns: 1fr; gap: 40px; }
}

.why-it-works {
    background: var(--color-pink-light);
}
.why-it-works .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.why-it-works h2 { font-size: 1.9rem; margin-bottom: 16px; }
.why-it-works p { color: var(--color-text-muted); margin-bottom: 24px; }
.why-it-works-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: linear-gradient(135deg, #ffd9e6, #f4a4c4);
    aspect-ratio: 4/2.6;
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem;
}
@media (max-width: 800px) {
    .why-it-works .container { grid-template-columns: 1fr; }
}

.insights .section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.insights h2 { font-size: 1.9rem; }
.insights .subtitle { color: var(--color-text-muted); margin-bottom: 40px; }

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.insight-card-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffd68a, #f4623a);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
}
.insight-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}
.insight-card .read-more {
    color: var(--color-coral);
    font-weight: 600;
    font-size: 0.9rem;
}
.insight-card .post-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

@media (max-width: 900px) {
    .insights-grid { grid-template-columns: 1fr; }
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 48px;
}
.pagination a, .pagination span {
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    background: var(--color-pink-light);
    color: var(--color-coral-dark);
    font-weight: 600;
}
.pagination .current { background: var(--color-coral); color: var(--color-white); }

.contact-cta {
    background: var(--color-teal);
    border-radius: var(--radius-md);
    padding: 56px;
    margin: 0 24px 80px;
    max-width: calc(var(--container-width) - 48px);
    margin-left: auto;
    margin-right: auto;
}
.contact-cta h2 {
    color: var(--color-navy);
    font-size: 1.8rem;
    margin-bottom: 28px;
}
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 18px;
}
.contact-form label {
    display: block;
    color: var(--color-white);
    font-size: 0.85rem;
    margin-bottom: 6px;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    border: none;
    border-radius: var(--radius-pill);
    padding: 12px 18px;
    font-size: 0.95rem;
}
.contact-form textarea {
    border-radius: 20px;
    min-height: 120px;
    resize: vertical;
}
.contact-form-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 20px;
}
@media (max-width: 700px) {
    .contact-cta { padding: 32px 24px; margin: 0 16px 56px; }
    .contact-form .form-row { grid-template-columns: 1fr; }
}

.site-footer {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 24px 0;
}
.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}
.site-footer a { color: var(--color-white); }
@media (max-width: 600px) {
    .site-footer .container { flex-direction: column; gap: 10px; text-align: center; }
}

.single-post-wrap {
    padding: 48px 0 80px;
}
.single-post-wrap .container {
    display: grid;
    grid-template-columns: 2.3fr 1fr;
    gap: 48px;
    align-items: start;
}
.back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-teal);
    font-weight: 600;
    margin-bottom: 24px;
}
.single-featured-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 32px;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #2a2a2a, #444);
}
.single-post-title {
    font-size: 2rem;
    color: var(--color-coral);
    margin-bottom: 24px;
}
.single-post-content p {
    margin-bottom: 20px;
    color: var(--color-text);
}

.similar-stories {
    background: var(--color-pink-light);
    border-radius: var(--radius-md);
    padding: 32px;
}
.similar-stories h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(0,0,0,0.08);
    padding-bottom: 14px;
}
.similar-story {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.similar-story:last-child { border-bottom: none; margin-bottom: 0; }
.similar-story h4 { font-size: 0.95rem; margin-bottom: 8px; }
.similar-story a.read-more { color: var(--color-coral); font-weight: 600; font-size: 0.85rem; }

@media (max-width: 800px) {
    .single-post-wrap .container { grid-template-columns: 1fr; }
}

.page-text-only {
    padding: 64px 0 96px;
}
.page-text-only .container { max-width: 800px; }
.page-text-only h1 {
    font-size: 2.4rem;
    color: var(--color-navy);
    margin-bottom: 28px;
}
.page-text-only .page-content p {
    margin-bottom: 20px;
    color: var(--color-text);
}
.page-text-only .page-content h2 {
    margin: 32px 0 16px;
    color: var(--color-coral-dark);
}

.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }