/*
Theme Name: Stronghold Counselling
Theme URI: https://strongholdcounselling.co.za
Author: Stronghold Counselling
Author URI: https://strongholdcounselling.co.za
Description: A warm, dignified WordPress theme for Stronghold Counselling, a Christian counselling practice in South Africa. Features auto-deploying content, built-in SEO, contact form, and BookingPress compatibility. Optimised for emotional safety with generous breathing room throughout.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stronghold-counselling
Tags: one-column, custom-colors, custom-logo, custom-menu, featured-images, theme-options, translation-ready
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES
   ========================================================================== */

:root {
    /* Brand Colours */
    --sd-gold: #b77916;
    --sd-green: #688762;
    --sd-warm-stone: #e9e5df;
    --sd-soft-grey: #dad9d6;
    --sd-cta: #b77916;
    --sd-cta-hover: #9a6512;
    --sd-green-dark: #4e6948;
    --sd-text: #3B3128;
    --sd-text-secondary: #6B5E50;
    --sd-dark-bg: #2C2A26;
    --sd-white: #FFFFFF;
    --sd-success: #688762;
    --sd-error: #C45C4A;

    /* Typography */
    --sd-font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sd-font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --sd-section-pad: 7rem;
    --sd-section-pad-mobile: 4rem;
    --sd-hero-pad: 9rem;
    --sd-hero-pad-mobile: 5rem;
    --sd-container: 1200px;
    --sd-content-width: 750px;

    /* Borders */
    --sd-radius: 10px;
    --sd-radius-lg: 12px;
    --sd-radius-pill: 30px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html {
    font-size: 100%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--sd-font-body);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.85;
    color: var(--sd-text);
    background-color: var(--sd-warm-stone);
    overflow-x: hidden;
}

/* Subtle linen/paper texture via CSS */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
    color: var(--sd-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--sd-cta-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--sd-gold);
    outline-offset: 2px;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sd-font-heading);
    color: var(--sd-text);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.625rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.5rem;
    line-height: 1.85;
}

.sd-scripture {
    font-family: var(--sd-font-body);
    font-style: italic;
    font-size: 0.95em;
    color: var(--sd-text-secondary);
}

.sd-pull-quote {
    font-family: var(--sd-font-heading);
    font-style: italic;
    font-weight: 400;
    font-size: 1.375rem;
    line-height: 1.6;
    color: var(--sd-gold);
    border-left: 4px solid var(--sd-gold);
    padding-left: 1.5rem;
    margin: 2.5rem 0;
    max-width: var(--sd-content-width);
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.sd-container {
    max-width: var(--sd-container);
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.sd-content-width {
    max-width: var(--sd-content-width);
    margin: 0 auto;
}

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

/* ==========================================================================
   SKIP LINK (Accessibility)
   ========================================================================== */

.sd-skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--sd-gold);
    color: var(--sd-white);
    padding: 0.75rem 1.5rem;
    z-index: 100000;
    font-weight: 600;
    transition: top 0.3s ease;
}

.sd-skip-link:focus {
    top: 0;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.sd-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    padding: 1rem 0;
}

/* When WP admin bar is present, push header down */
.admin-bar .sd-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .sd-header {
        top: 46px;
    }
}

.sd-header.sd-header--scrolled {
    background: var(--sd-warm-stone);
    box-shadow: 0 2px 20px rgba(59, 49, 40, 0.08);
    padding: 0.5rem 0;
}

.sd-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sd-header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.sd-header__logo img {
    height: 94px;
    width: auto;
    transition: height 0.3s ease, filter 0.3s ease;
}

.sd-header--scrolled .sd-header__logo img {
    height: 75px;
}

/* White logo on transparent header (dark hero pages, before scroll) */
.sd-header--transparent .sd-header__logo img {
    filter: brightness(0) invert(1);
}

/* Restore original colours once scrolled */
.sd-header--transparent.sd-header--scrolled .sd-header__logo img {
    filter: none;
}

.sd-header__logo-text {
    font-family: var(--sd-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sd-gold);
    text-decoration: none;
}

/* Navigation */
.sd-nav {
    display: flex;
    align-items: center;
}

.sd-nav__list {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
}

.sd-nav__item {
    position: relative;
}

.sd-nav__link {
    display: block;
    padding: 0.5rem 1rem;
    font-family: var(--sd-font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--sd-text);
    text-decoration: none;
    transition: color 0.3s ease;
    border-radius: var(--sd-radius);
}

.sd-nav__link:hover,
.sd-nav__link--active {
    color: var(--sd-gold);
}

/* Header on dark hero pages: light text */
.sd-header--transparent .sd-nav__link {
    color: var(--sd-white);
}

.sd-header--transparent .sd-nav__link:hover {
    color: var(--sd-gold);
}

.sd-header--transparent.sd-header--scrolled .sd-nav__link {
    color: var(--sd-text);
}

.sd-header--transparent.sd-header--scrolled .sd-nav__link:hover {
    color: var(--sd-gold);
}

/* Dropdown */
.sd-nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 300px;
    background: var(--sd-white);
    border-radius: var(--sd-radius);
    box-shadow: 0 8px 30px rgba(59, 49, 40, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 0.5rem;
    z-index: 9999;
}

.sd-nav__item:hover .sd-nav__dropdown,
.sd-nav__item--open .sd-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sd-nav__dropdown-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--sd-text);
    font-size: 0.9375rem;
    font-weight: 400;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sd-nav__dropdown-link:hover {
    background: var(--sd-warm-stone);
    color: var(--sd-gold);
}

/* Mobile Menu Toggle */
.sd-nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    width: 32px;
    height: 24px;
    margin-left: auto;
}

.sd-nav__toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--sd-text);
    transition: all 0.3s ease;
    position: absolute;
    left: 0;
}

.sd-nav__toggle span:nth-child(1) { top: 0; }
.sd-nav__toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.sd-nav__toggle span:nth-child(3) { bottom: 0; }

.sd-header--transparent .sd-nav__toggle span {
    background: var(--sd-white);
}

.sd-header--transparent.sd-header--scrolled .sd-nav__toggle span {
    background: var(--sd-text);
}

.sd-nav__toggle--active span:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
}

.sd-nav__toggle--active span:nth-child(2) {
    opacity: 0;
}

.sd-nav__toggle--active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: auto;
    top: 50%;
}

/* CTA in nav */
.sd-nav__cta {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--sd-cta);
    color: var(--sd-white) !important;
    border-radius: var(--sd-radius-pill);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.sd-nav__cta:hover {
    background: var(--sd-cta-hover);
    color: var(--sd-white) !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.sd-section {
    padding: var(--sd-section-pad) 0;
    position: relative;
    z-index: 1;
}

.sd-section--warm-stone {
    background-color: var(--sd-warm-stone);
}

.sd-section--soft-grey {
    background-color: var(--sd-soft-grey);
}

.sd-section--green {
    background-color: var(--sd-green);
    color: var(--sd-white);
}

.sd-section--green h2,
.sd-section--green h3,
.sd-section--green p {
    color: var(--sd-white);
}

.sd-section--green .sd-scripture {
    color: rgba(255, 255, 255, 0.75);
}

.sd-section--dark {
    background-color: var(--sd-dark-bg);
    color: var(--sd-white);
}

.sd-section--dark h2,
.sd-section--dark h3,
.sd-section--dark p {
    color: var(--sd-white);
}

.sd-section--cta {
    background-color: var(--sd-warm-stone);
    border-top: 3px solid var(--sd-gold);
}

/* Gold accent divider between sections */
.sd-section--gold-divider::before {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--sd-gold);
    margin: 0 auto 2.5rem;
    border-radius: 2px;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.sd-hero {
    padding-top: 10rem;
    padding-bottom: var(--sd-hero-pad);
    background-color: var(--sd-green);
    color: var(--sd-white);
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

/* Subtle gradient overlay */
.sd-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(160deg, rgba(104, 135, 98, 0.9) 0%, rgba(44, 42, 38, 0.6) 100%);
    z-index: 0;
}

.sd-hero .sd-container {
    z-index: 1;
    width: 100%;
}

.sd-hero h1 {
    color: var(--sd-white);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 0.75rem;
}

.sd-hero__tagline {
    font-family: var(--sd-font-heading);
    font-style: italic;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--sd-gold);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.sd-hero__description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.sd-hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Service page hero (smaller) */
.sd-hero--service {
    min-height: auto;
    padding-top: 10rem;
    padding-bottom: var(--sd-hero-pad);
    text-align: left;
}

.sd-hero--service::before {
    background: linear-gradient(160deg, rgba(44, 42, 38, 0.85) 0%, rgba(104, 135, 98, 0.7) 100%);
}

.sd-hero--service h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.sd-hero--service .sd-content-width {
    max-width: 800px;
    margin: 0;
}

.sd-hero--service p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.0625rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.sd-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-family: var(--sd-font-body);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: var(--sd-radius-pill);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

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

.sd-btn--primary:hover {
    background: var(--sd-cta-hover);
    border-color: var(--sd-cta-hover);
    color: var(--sd-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(183, 121, 22, 0.3);
}

.sd-btn--outline {
    background: transparent;
    color: var(--sd-white);
    border-color: var(--sd-white);
}

.sd-btn--outline:hover {
    background: var(--sd-white);
    color: var(--sd-text);
    transform: translateY(-2px);
}

.sd-btn--outline-dark {
    background: transparent;
    color: var(--sd-gold);
    border-color: var(--sd-gold);
}

.sd-btn--outline-dark:hover {
    background: var(--sd-gold);
    color: var(--sd-white);
    transform: translateY(-2px);
}

.sd-cta-block {
    margin-top: 3rem;
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.sd-card-grid {
    display: grid;
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.sd-card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.sd-card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.sd-card {
    background: var(--sd-white);
    border-radius: var(--sd-radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: 0 2px 12px rgba(59, 49, 40, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sd-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(59, 49, 40, 0.1);
}

.sd-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--sd-warm-stone);
    color: var(--sd-gold);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.sd-card__icon svg {
    width: 28px;
    height: 28px;
    fill: var(--sd-gold);
}

.sd-card__title {
    font-family: var(--sd-font-heading);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--sd-text);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.sd-card__text {
    color: var(--sd-text-secondary);
    line-height: 1.75;
}

/* Approach cards (on green background) */
.sd-section--green .sd-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.sd-section--green .sd-card__title {
    color: var(--sd-white);
}

.sd-section--green .sd-card__text {
    color: rgba(255, 255, 255, 0.85);
}

.sd-section--green .sd-card__icon {
    background: rgba(255, 255, 255, 0.15);
}

.sd-section--green .sd-card__icon svg {
    fill: var(--sd-gold);
}

/* Icon list cards (for service pages) */
.sd-icon-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
    max-width: var(--sd-content-width);
}

.sd-icon-list__item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: var(--sd-white);
    border-radius: var(--sd-radius);
    box-shadow: 0 2px 8px rgba(59, 49, 40, 0.05);
    transition: transform 0.3s ease;
}

.sd-icon-list__item:hover {
    transform: translateX(4px);
}

.sd-icon-list__marker {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--sd-gold);
    color: var(--sd-white);
    font-family: var(--sd-font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.sd-icon-list__text {
    color: var(--sd-text);
    line-height: 1.7;
    font-size: 1rem;
}

/* Who I Help cards */
.sd-help-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.sd-help-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--sd-white);
    border-radius: var(--sd-radius);
    border-left: 4px solid var(--sd-gold);
    box-shadow: 0 2px 8px rgba(59, 49, 40, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 0 1 calc(33.333% - 1rem);
    min-width: 280px;
}

.sd-help-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 49, 40, 0.08);
}

.sd-help-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--sd-warm-stone);
    flex-shrink: 0;
}

.sd-help-card__icon svg {
    width: 22px;
    height: 22px;
    fill: var(--sd-gold);
}

.sd-help-card__text {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--sd-text);
    line-height: 1.5;
}

/* ==========================================================================
   BLOG / POST CARDS
   ========================================================================== */

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

.sd-post-card {
    background: var(--sd-white);
    border-radius: var(--sd-radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(59, 49, 40, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sd-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(59, 49, 40, 0.1);
}

.sd-post-card__image {
    width: 100%;
    height: 220px;
    background: var(--sd-soft-grey);
    overflow: hidden;
}

.sd-post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sd-post-card:hover .sd-post-card__image img {
    transform: scale(1.03);
}

.sd-post-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--sd-soft-grey) 0%, var(--sd-warm-stone) 100%);
}

.sd-post-card__placeholder svg {
    width: 48px;
    height: 48px;
    fill: var(--sd-text-secondary);
    opacity: 0.3;
}

.sd-post-card__body {
    padding: 2rem;
}

.sd-post-card__category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--sd-gold);
    color: var(--sd-white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.sd-post-card__title {
    font-family: var(--sd-font-heading);
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.sd-post-card__title a {
    color: var(--sd-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sd-post-card__title a:hover {
    color: var(--sd-gold);
}

.sd-post-card__excerpt {
    color: var(--sd-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.sd-post-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--sd-text-secondary);
}

.sd-post-card__read-more {
    font-weight: 600;
    color: var(--sd-gold);
    transition: color 0.3s ease;
}

.sd-post-card__read-more:hover {
    color: var(--sd-cta-hover);
}

/* Pagination */
.sd-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
}

.sd-pagination a,
.sd-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.75rem;
    border-radius: var(--sd-radius);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.sd-pagination a {
    background: var(--sd-white);
    color: var(--sd-text);
    text-decoration: none;
}

.sd-pagination a:hover {
    background: var(--sd-gold);
    color: var(--sd-white);
}

.sd-pagination .current {
    background: var(--sd-gold);
    color: var(--sd-white);
}

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */

.sd-about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.sd-about-photo {
    width: 100%;
    border-radius: var(--sd-radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(59, 49, 40, 0.1);
}

.sd-about-photo__placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--sd-soft-grey) 0%, var(--sd-warm-stone) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: var(--sd-text-secondary);
}

.sd-about-photo__placeholder svg {
    width: 64px;
    height: 64px;
    fill: var(--sd-text-secondary);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.sd-about-photo__placeholder p {
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 300px;
}

.sd-about-photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ==========================================================================
   BOOKING PAGE
   ========================================================================== */

.sd-booking-placeholder {
    background: var(--sd-white);
    border: 2px dashed var(--sd-soft-grey);
    border-radius: var(--sd-radius-lg);
    padding: 3rem;
    text-align: center;
    margin: 2.5rem 0;
}

.sd-booking-placeholder__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--sd-warm-stone);
    margin: 0 auto 1.5rem;
}

.sd-booking-placeholder__icon svg {
    width: 32px;
    height: 32px;
    fill: var(--sd-gold);
}

.sd-booking-placeholder__title {
    font-family: var(--sd-font-heading);
    font-size: 1.25rem;
    color: var(--sd-text);
    margin-bottom: 0.75rem;
}

.sd-booking-placeholder__text {
    color: var(--sd-text-secondary);
    font-size: 0.9375rem;
}

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */

.sd-contact-form {
    max-width: 650px;
    margin: 0 auto;
}

.sd-form-group {
    margin-bottom: 1.5rem;
}

.sd-form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--sd-text);
    margin-bottom: 0.5rem;
}

.sd-form-group input,
.sd-form-group textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-family: var(--sd-font-body);
    font-size: 1rem;
    color: var(--sd-text);
    background: var(--sd-white);
    border: 2px solid var(--sd-soft-grey);
    border-radius: var(--sd-radius);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
}

.sd-form-group input:focus,
.sd-form-group textarea:focus {
    border-color: var(--sd-gold);
    box-shadow: 0 0 0 3px rgba(183, 121, 22, 0.15);
    outline: none;
}

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

.sd-form-group input::placeholder,
.sd-form-group textarea::placeholder {
    color: var(--sd-text-secondary);
    opacity: 0.6;
}

/* Honeypot field */
.sd-form-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.sd-form-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--sd-text-secondary);
    line-height: 1.6;
}

.sd-form-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--sd-gold);
}

.sd-form-message {
    padding: 1rem 1.5rem;
    border-radius: var(--sd-radius);
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: none;
}

.sd-form-message--success {
    background: rgba(104, 135, 98, 0.1);
    color: var(--sd-success);
    border: 1px solid rgba(104, 135, 98, 0.2);
    display: block;
}

.sd-form-message--error {
    background: rgba(196, 92, 74, 0.1);
    color: var(--sd-error);
    border: 1px solid rgba(196, 92, 74, 0.2);
    display: block;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.sd-footer {
    background-color: var(--sd-dark-bg);
    color: rgba(255, 255, 255, 0.8);
    padding: 5rem 0 0;
}

.sd-footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.sd-footer a:hover {
    color: var(--sd-gold);
}

.sd-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
}

.sd-footer__heading {
    font-family: var(--sd-font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--sd-white);
    margin-bottom: 1.5rem;
}

.sd-footer__about p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.sd-footer__links {
    list-style: none;
}

.sd-footer__links li {
    margin-bottom: 0.75rem;
}

.sd-footer__links a {
    font-size: 0.9375rem;
    text-decoration: none;
}

.sd-footer__contact p {
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.sd-footer__social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.sd-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    transition: background 0.3s ease, color 0.3s ease;
}

.sd-footer__social-link:hover {
    background: var(--sd-gold);
    color: var(--sd-white);
}

.sd-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   FLOATING CTA
   ========================================================================== */

.sd-floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    background: var(--sd-cta);
    color: var(--sd-white);
    padding: 0.875rem 1.75rem;
    border-radius: var(--sd-radius-pill);
    font-family: var(--sd-font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.sd-floating-cta:hover {
    background: var(--sd-cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: var(--sd-white);
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

.sd-breadcrumbs {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

.sd-breadcrumbs a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.sd-breadcrumbs a:hover {
    color: var(--sd-gold);
}

.sd-breadcrumbs__sep {
    margin: 0 0.5rem;
    opacity: 0.5;
}

/* ==========================================================================
   SEARCH & 404
   ========================================================================== */

.sd-search-form {
    display: flex;
    max-width: 500px;
    margin: 2rem auto 0;
}

.sd-search-form input[type="search"] {
    flex: 1;
    padding: 0.875rem 1.25rem;
    font-family: var(--sd-font-body);
    font-size: 1rem;
    border: 2px solid var(--sd-soft-grey);
    border-right: none;
    border-radius: var(--sd-radius) 0 0 var(--sd-radius);
    background: var(--sd-white);
    color: var(--sd-text);
}

.sd-search-form input[type="search"]:focus {
    border-color: var(--sd-gold);
    outline: none;
}

.sd-search-form button {
    padding: 0.875rem 1.5rem;
    background: var(--sd-cta);
    color: var(--sd-white);
    border: 2px solid var(--sd-cta);
    border-radius: 0 var(--sd-radius) var(--sd-radius) 0;
    font-family: var(--sd-font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sd-search-form button:hover {
    background: var(--sd-cta-hover);
    border-color: var(--sd-cta-hover);
}

/* ==========================================================================
   SINGLE POST
   ========================================================================== */

.sd-single-content {
    max-width: var(--sd-content-width);
    margin: 0 auto;
}

.sd-single-content h2 {
    margin-top: 2.5rem;
}

.sd-single-content h3 {
    margin-top: 2rem;
}

.sd-single-content ul,
.sd-single-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.sd-single-content li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
}

.sd-single-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--sd-text-secondary);
}

.sd-single-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--sd-gold);
    color: var(--sd-white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.sd-sidebar .widget {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--sd-white);
    border-radius: var(--sd-radius-lg);
    box-shadow: 0 2px 12px rgba(59, 49, 40, 0.06);
}

.sd-sidebar .widget-title {
    font-family: var(--sd-font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--sd-gold);
}

.sd-sidebar .widget ul {
    list-style: none;
}

.sd-sidebar .widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--sd-soft-grey);
}

.sd-sidebar .widget ul li:last-child {
    border-bottom: none;
}

.sd-sidebar .widget ul li a {
    color: var(--sd-text);
    font-size: 0.9375rem;
}

.sd-sidebar .widget ul li a:hover {
    color: var(--sd-gold);
}

/* ==========================================================================
   MOBILE RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .sd-card-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .sd-about-intro {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .sd-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .sd-header {
        padding: 0.5rem 0;
    }

    .sd-header.sd-header--scrolled {
        padding: 0.35rem 0;
    }

    .sd-section {
        padding: var(--sd-section-pad-mobile) 0;
    }

    .sd-hero {
        padding-top: 11rem;
        padding-bottom: var(--sd-hero-pad-mobile);
        min-height: auto;
        align-items: flex-start;
    }

    .sd-hero--service {
        padding-top: 11rem;
        padding-bottom: var(--sd-hero-pad-mobile);
        min-height: auto;
    }

    .sd-hero__description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .sd-hero__tagline {
        margin-bottom: 1rem;
    }

    /* Mobile navigation - fullscreen overlay */
    .sd-nav__toggle {
        display: block;
        z-index: 10002;
    }

    .sd-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: var(--sd-dark-bg);
        z-index: 10001;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .sd-nav--open {
        opacity: 1;
        visibility: visible;
    }

    .sd-nav__list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        list-style: none;
        padding: 0;
        width: 100%;
    }

    .sd-nav__list--open {
        display: flex;
    }

    .sd-nav__item {
        width: 100%;
        text-align: center;
    }

    .sd-nav__link {
        color: var(--sd-warm-stone) !important;
        padding: 1rem 0;
        border-radius: 0;
        font-family: var(--sd-font-heading);
        font-size: 1.25rem;
        font-weight: 500;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        transition: color 0.2s ease;
        border-bottom: none;
    }

    .sd-nav__link:hover,
    .sd-nav__link--active {
        color: var(--sd-gold) !important;
    }

    .sd-nav__dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0.25rem 0 0.75rem;
        display: none;
        background: transparent;
        min-width: auto;
    }

    .sd-nav__item--open .sd-nav__dropdown {
        display: block;
    }

    .sd-nav__dropdown-link {
        padding: 0.5rem 0;
        font-size: 0.9375rem;
        color: rgba(233, 229, 223, 0.6);
        border-bottom: none;
        font-weight: 400;
        letter-spacing: 0.02em;
        text-align: center;
    }

    .sd-nav__dropdown-link:hover {
        color: var(--sd-gold);
        background: transparent;
    }

    .sd-nav__cta {
        margin-left: 0;
        margin-top: 1.5rem;
        text-align: center;
        display: inline-block;
        font-family: var(--sd-font-heading);
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    /* Burger icon turns white on open menu */
    .sd-nav__toggle--active span {
        background: var(--sd-white) !important;
    }

    /* Mobile overlay - z-index must be BELOW header (9990) so nav list stays clickable */
    .sd-nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 9985;
    }

    .sd-nav-overlay--active {
        display: block;
    }

    /* Grid adjustments */
    .sd-card-grid--3,
    .sd-card-grid--2 {
        grid-template-columns: 1fr;
    }

    .sd-posts-grid {
        grid-template-columns: 1fr;
    }

    .sd-footer__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .sd-help-grid {
        flex-direction: column;
    }

    .sd-help-card {
        flex: 1 1 100%;
        min-width: 0;
    }

    /* Split layout stacks on mobile */
    .sd-split-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sd-split-layout__image {
        max-height: 250px;
    }

    /* Section images smaller on mobile */
    .sd-section-image {
        max-height: 220px;
        margin: 1.5rem 0;
    }

    /* About page intro */
    .sd-about-intro {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sd-about-photo__placeholder {
        aspect-ratio: 4 / 3;
    }

    /* Floating CTA mobile */
    .sd-floating-cta {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
        text-align: center;
        border-radius: var(--sd-radius-pill);
    }

    /* Hero actions stack */
    .sd-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .sd-hero__actions .sd-btn {
        width: 100%;
    }

    /* Buttons slightly smaller */
    .sd-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    .sd-pull-quote {
        font-size: 1.1875rem;
        padding-left: 1rem;
    }

    /* Breadcrumbs wrap */
    .sd-breadcrumbs {
        font-size: 0.8125rem;
        flex-wrap: wrap;
    }

    /* CTA block less top margin */
    .sd-cta-block {
        margin-top: 2rem;
    }

    /* Contact form mobile */
    .sd-contact-form {
        padding: 0;
    }

    /* Cards */
    .sd-card {
        padding: 1.5rem;
    }

    /* Help cards */
    .sd-help-card {
        padding: 1rem;
    }

    /* Footer social icons */
    .sd-footer__social {
        justify-content: center;
    }

    /* Header logo text smaller on mobile when scrolled */
    .sd-header__logo-text {
        font-size: 1.25rem;
    }

    .sd-header__logo img {
        height: 75px;
    }

    .sd-header--scrolled .sd-header__logo img {
        height: 64px;
    }
}

@media (max-width: 480px) {
    .sd-container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .sd-hero {
        min-height: auto;
        padding-top: 11rem;
        padding-bottom: 3rem;
    }

    .sd-hero--service {
        padding-top: 11rem;
        padding-bottom: 3rem;
    }

    .sd-hero__description {
        font-size: 0.9375rem;
    }

    /* Introduction card - reduce padding on mobile */
    .sd-intro-card {
        padding: 1.5rem;
    }

    /* Tighter section padding on small screens */
    .sd-section {
        padding: 3rem 0;
    }

    /* Footer tighter */
    .sd-footer__heading {
        font-size: 1.125rem;
    }

    /* Fix overflow from any wide content */
    .sd-content-width {
        max-width: 100%;
    }

    .sd-hero--service .sd-content-width {
        max-width: 100%;
    }

    /* Post cards */
    .sd-post-card__body {
        padding: 1rem;
    }

    /* Floating CTA full width on very small screens */
    .sd-floating-cta {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   WORDPRESS CORE COMPATIBILITY
   ========================================================================== */

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin: 0 auto 1.5rem;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.8125rem;
    color: var(--sd-text-secondary);
    margin-top: 0.5rem;
    text-align: center;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--sd-warm-stone);
    clip: auto !important;
    clip-path: none;
    color: var(--sd-text);
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Introduction card overlay */
.sd-intro-card {
    background: rgba(233, 229, 223, 0.92);
    padding: 3rem;
    border-radius: var(--sd-radius-lg);
}

/* ==========================================================================
   IMAGE-BACKED SECTIONS
   ========================================================================== */

/* Hero with background image */
.sd-hero--has-bg {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Section with background image */
.sd-section--has-bg {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

.sd-section--has-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.sd-section--has-bg > .sd-container {
    position: relative;
    z-index: 1;
}

/* Approach section with bg image */
.sd-section--green.sd-section--has-bg::before {
    background: rgba(104, 135, 98, 0.88);
}

/* CTA section with bg image */
.sd-section--cta.sd-section--has-bg {
    border-top: none;
}

.sd-section--cta.sd-section--has-bg::before {
    background: rgba(233, 229, 223, 0.92);
}

/* Seek counselling section - split layout with image */
.sd-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sd-split-layout__image {
    border-radius: var(--sd-radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(59, 49, 40, 0.1);
}

.sd-split-layout__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

/* Full-width section image (used between content) */
.sd-section-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--sd-radius-lg);
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(59, 49, 40, 0.08);
}

/* ==========================================================================
   MOBILE OVERRIDES FOR IMAGE-BACKED SECTIONS
   These MUST come after the base image-backed styles above.
   ========================================================================== */

@media (max-width: 768px) {
    .sd-split-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .sd-split-layout__image {
        max-height: 250px;
    }

    .sd-split-layout__image img {
        max-height: 250px;
    }

    .sd-section-image {
        max-height: 220px;
        margin: 1.5rem 0;
    }

    .sd-intro-card {
        padding: 2rem 1.5rem;
    }

    .sd-about-intro {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .sd-split-layout {
        gap: 1.5rem;
    }

    .sd-split-layout__image {
        max-height: 200px;
    }

    .sd-split-layout__image img {
        max-height: 200px;
    }

    .sd-section-image {
        max-height: 180px;
    }

    .sd-intro-card {
        padding: 1.5rem 1rem;
    }
}

/* Print styles */
@media print {
    .sd-header,
    .sd-footer,
    .sd-floating-cta,
    .sd-nav__toggle {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }

    .sd-section {
        padding: 2rem 0;
    }
}
