:root {
    --primary: #193858;
    --text: #feebe2;
    --text-muted: rgba(254, 235, 226, 0.65);
    --border: rgba(254, 235, 226, 0.12);
    --card-bg: rgba(254, 235, 226, 0.05);
    --card-hover: rgba(254, 235, 226, 0.09);
    --accent: #e67e22;
}

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

html {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    font-family: 'DM Sans', sans-serif;
    background: var(--primary);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
}

a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--text-muted);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s;
}

a:hover {
    text-decoration-color: var(--text);
}

/* ─── TYPOGRAPHY ─────────────────────────────── */

h1,
h2,
h3,
h4 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text);
}

.section-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

/* ─── HEADER & NAV ───────────────────────────── */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 5rem;
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.logo {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.02em;
}

nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.85;
    position: relative;
    padding-bottom: 3px;
    transition: opacity 0.25s ease;
}

/* Animated underline — draws in from left on hover */
nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover {
    opacity: 1;
}

nav a:hover::after {
    width: 100%;
}

nav .nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 1;
    font-weight: 700;
    transition: gap 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav .nav-cta::before {
    content: '→';
    color: var(--accent);
    font-size: 1.1rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav .nav-cta:hover {
    gap: 0.75rem;
}

nav .nav-cta:hover::before {
    transform: translateX(3px);
}

nav .nav-cta::after {
    display: none;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
}

/* ─── HERO ───────────────────────────────────── */

.hero {
    padding: 7rem 5rem 6rem;
    max-width: 1300px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 700;
    max-width: 800px;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text);
    max-width: 560px;
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 0;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    position: relative;
    transition: gap 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::before,
.btn-secondary::before {
    content: '→';
    color: var(--accent);
    font-size: 1.2rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover,
.btn-secondary:hover {
    gap: 0.75rem;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    transform: translateX(3px);
}

.btn-primary::after {
    content: '';
    position: absolute;
    bottom: 0.6rem;
    left: 0;
    right: 0;
    height: 1.5px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover::after {
    transform: scaleX(1);
}

.btn-secondary {
    font-weight: 400;
    opacity: 0.85;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    bottom: 0.6rem;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--text-muted);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover::after {
    transform: scaleX(1);
}

.btn-secondary:hover {
    opacity: 1;
}

.btn-cta-large {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    border: 2px solid var(--accent);
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.btn-cta-large:hover {
    background: var(--accent);
    color: var(--primary);
}

/* ─── SHARED SECTION WRAPPER ─────────────────── */

.section-wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 6rem 5rem;
}

.section-header {
    margin-bottom: 3.5rem;
}

#approach .section-header {
    margin-bottom: 6rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 600;
}

.section-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}

/* ─── BLOG POSTS ─────────────────────────────── */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    width: 100%;
    max-width: 100%;
}

.blog-card {
    display: flex;
    text-decoration: none;
    color: var(--text);
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: background 0.25s, transform 0.25s, border-color 0.25s;
    width: 100%;
    max-width: 100%;
}

.blog-card:hover {
    background: var(--card-hover);
    border-color: rgba(254, 235, 226, 0.25);
    transform: translateY(-3px);
}

.blog-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: block;
}

.blog-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.blog-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.blog-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.blog-cta-row {
    display: flex;
    justify-content: flex-start;
}

/* ─── ABOUT ──────────────────────────────────── */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    aspect-ratio: 3/4;
    max-width: 400px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    opacity: 1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder shown when no image is set */
.about-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    padding: 2rem;
}

.about-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.stat h4 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.25rem;
}

.stat p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ─── CASE STUDIES ───────────────────────────── */

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
}

.case-study-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2.5rem;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: background 0.25s, transform 0.25s, border-color 0.25s;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.case-study-card:hover {
    background: var(--card-hover);
    border-color: rgba(254, 235, 226, 0.25);
    transform: translateY(-3px);
}

.case-study-card.featured {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
}

.case-study-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: rgba(254, 235, 226, 0.08);
    border-radius: 4px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.case-study-card.featured .case-study-image {
    width: 55%;
    max-width: 650px;
    aspect-ratio: 16/9;
}

.case-study-industry {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.case-study-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
}

.case-study-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.case-study-results {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 1.5rem;
}

.result-pill {
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    background: rgba(254, 235, 226, 0.1);
    border: 1px solid var(--border);
    border-radius: 100px;
    white-space: nowrap;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.case-studies-grid .case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ─── TESTIMONIALS ───────────────────────────── */

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

.testimonial-card {
    background: rgba(254, 235, 226, 0.08);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--text);
    line-height: 1;
    font-family: Georgia, serif;
    opacity: 0.3;
}

.testimonial-card p {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.7;
    font-weight: 400;
    flex: 1;
}

.testimonial-author {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    min-height: 72px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-author div {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ─── FOOTER ─────────────────────── */

footer {
    padding: 4rem 5rem;
    border-top: 1px solid var(--border);
    background: var(--card-bg);
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.footer-cta h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-cta p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

/* ─── BLOG / INNER PAGES ─────────────────────── */

.page-hero {
    padding: 5rem 5rem 3rem;
    max-width: 1300px;
    margin: 0 auto;
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
}

.page-hero p {
    margin-top: 0.75rem;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.blog-listing {
    max-width: 1300px;
    margin: 0 auto;
    padding: 4rem 5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Single post */
.post-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 5rem 6rem;
}

.post-wrap h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.post-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.post-body h2 {
    font-size: 1.6rem;
    margin: 2.5rem 0 1rem;
}

.post-body h3 {
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
}

.post-body p {
    margin-bottom: 1.4rem;
    color: var(--text);
    font-weight: 400;
    font-size: 1.05rem;
}

.post-body ul,
.post-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.4rem;
}

.post-body li {
    color: var(--text);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.post-body a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--text-muted);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s;
}

.post-body a:hover {
    text-decoration-color: var(--text);
}

.post-body img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 4px;
    border: 1px solid var(--border);
}

/* About page */
.about-page {
    max-width: 1300px;
    margin: 0 auto;
    padding: 4rem 5rem 6rem;
}

/* Contact page */
.contact-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem 5rem 6rem;
}

.contact-page h1 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-page>p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-weight: 400;
}

.contact-methods {
    display: grid;
    gap: 1rem;
}

.contact-item {
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: background 0.2s;
}

.contact-item:hover {
    background: var(--card-hover);
}

.contact-item h3 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.contact-item a {
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* ─── RESPONSIVE ─────────────────────────────── */

@media (max-width: 1024px) {

    header,
    .hero,
    .section-wrap,
    .page-hero,
    .blog-listing,
    .post-wrap,
    .about-page,
    .contact-page {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        aspect-ratio: 16/9;
    }

    .case-study-card.featured {
        flex-direction: column;
    }

    .case-study-card.featured .case-study-image {
        width: 100%;
        max-width: 100%;
    }

    footer {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

@media (max-width: 768px) {
    body {
        width: 100%;
    }

    body > *:not(header) {
        overflow-x: hidden;
    }

    * {
        max-width: 100%;
    }

    header {
        position: sticky;
        top: 0;
        padding: 0 1.5rem;
    }

    .section-wrap,
    .hero,
    .case-studies-grid,
    .blog-grid,
    .principles-item,
    .about-grid,
    footer {
        max-width: 100vw;
        overflow-x: hidden;
    }

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

    .case-study-card,
    .blog-card,
    .testimonial-card {
        min-width: 0;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 72px;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 72px);
        background: var(--primary);
        border-left: 1px solid var(--border);
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        padding: 2rem 0;
        transition: right 0.3s ease;
        z-index: 99;
    }

    nav.open {
        right: 0;
    }

    nav a {
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--border);
    }

    nav a::after {
        display: none;
    }

    #theme-toggle {
        margin: 1rem 2rem;
        align-self: flex-start;
    }

    .hero,
    .section-wrap,
    .page-hero,
    .blog-listing,
    .post-wrap,
    .about-page,
    .contact-page {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .blog-grid,
    .case-studies-grid,
    .blog-listing {
        grid-template-columns: 1fr;
    }

    .case-study-card,
    .blog-card {
        max-width: 100%;
    }

    .case-study-card.featured {
        grid-column: span 1;
    }

    .case-study-results {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .result-pill {
        width: fit-content;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        aspect-ratio: 3/4;
        max-width: 100%;
    }

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

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .principles-item,
    .principles-item.img-left,
    .principles-item.img-right {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        grid-template-areas: none !important;
        gap: 2rem;
        margin-bottom: 3rem;
        padding-bottom: 3rem;
    }

    .principles-image {
        aspect-ratio: 16/9;
        width: 100%;
        opacity: 1 !important;
        transform: translateX(0) !important;
        order: -1;
    }

    .principles-text {
        width: 100%;
        max-width: 100%;
    }

    .principles-text p {
        max-width: 100%;
    }

    footer {
        padding: 3rem 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        justify-content: flex-start;
    }
}

/* ─── ANIMATIONS ─────────────────────────────── */

/* Hero entrance */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero p {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-ctas {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

/* Scroll-triggered fade-in */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* ─── CLIENTS ────────────────────────────────── */

.clients {
    padding-top: 4rem;
    padding-bottom: 3rem;
}

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    justify-content: flex-start;
}

.clients-grid img {
    height: 56px;
    min-width: 120px;
    width: auto;
    opacity: 0.55;
    filter: brightness(0) invert(1);
    transition: opacity 0.25s;
    object-fit: contain;
}

.clients-grid img:hover {
    opacity: 0.95;
}

/* ─── FEATURED QUOTE ─────────────────────────── */

blockquote {
    margin: 3rem 0 4rem 0;
    padding: 2rem 2.5rem;
    border-left: 3px solid var(--text);
    background: var(--card-bg);
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
    font-style: italic;
    color: var(--text);
}

blockquote p {
    margin-bottom: 0;
}

blockquote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-style: normal;
    opacity: 0.7;
}

/* ─── CTA SECTION ────────────────────────────── */

.cta-section {
    padding: 6rem 5rem;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .cta-section {
        padding: 4rem 2rem;
    }
}

/* ─── MY PRINCIPLES ─────────────────────────────── */

.principles-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 6rem;
    padding-bottom: 6rem;
    border-bottom: 1px solid var(--border);
}

.principles-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Image left, text right (default) */
.principles-item.img-left {
    grid-template-areas: "image text";
}

.principles-item.img-left .principles-image {
    grid-area: image;
}

.principles-item.img-left .principles-text {
    grid-area: text;
}

/* Image right, text left */
.principles-item.img-right {
    grid-template-areas: "text image";
}

.principles-item.img-right .principles-image {
    grid-area: image;
}

.principles-item.img-right .principles-text {
    grid-area: text;
}

.principles-image {
    aspect-ratio: 4/3;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.principles-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.principles-image.slide-in-left {
    transform: translateX(-40px);
}

.principles-image.slide-in-right {
    transform: translateX(40px);
}

.principles-image.visible {
    opacity: 1;
    transform: translateX(0);
}

.principles-text h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
    line-height: 1.15;
}

.principles-text p {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 42em;
}

.principles-text p:last-child {
    margin-bottom: 0;
}

.principles-text a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 2px;
    transition: opacity 0.2s;
}

.principles-text a:hover {
    opacity: 0.8;
}

/* ─── LIGHT MODE ─────────────────────────────── */

body.light-mode {
    --primary: #feebe2;
    --text: #193858;
    --text-muted: rgba(25, 56, 88, 0.65);
    --border: rgba(25, 56, 88, 0.12);
    --card-bg: rgba(25, 56, 88, 0.05);
    --card-hover: rgba(25, 56, 88, 0.09);
    --accent: #6a8caf;
}

body.light-mode .clients-grid img {
    filter: brightness(0) invert(0);
}

#theme-toggle {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 0;
}

#theme-toggle:hover {
    opacity: 1;
}

/* What I Help With Section */
.what-i-help-with {
    background: rgba(254, 235, 226, 0.02);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.help-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.help-card {
    position: relative;
    display: flex;
    align-items: center;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: background 0.25s, border-color 0.25s;
    overflow: hidden;
}

.help-card:hover {
    background: var(--card-hover);
    border-color: rgba(254, 235, 226, 0.2);
}

.help-card-content {
    flex: 1;
}

.help-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    /* min-height = 3 lines: 3 × 1.2rem × 1.3 line-height */
    min-height: calc(3 * 1.2rem * 1.3);
    margin-bottom: 0.75rem;
}

/* Optional silhouetted number — add <div class="help-card-number">1</div>
   inside .help-card to show it */
.help-card-number {
    font-family: 'Fraunces', serif;
    font-size: 8rem;
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(254, 235, 226, 0.12);
    position: absolute;
    top: -0.75rem;
    left: 1.25rem;
    user-select: none;
    pointer-events: none;
}

.services-card-number {
    font-family: 'Fraunces', serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(254, 235, 226, 0.15);
    position: absolute;
    top: 0.5rem;
    left: 0.75rem;
    user-select: none;
    pointer-events: none;
}

.help-card-separator {
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin-bottom: 1rem;
}

.help-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .help-card {
        padding: 1.5rem;
    }

    .help-card h3 {
        font-size: 1.1rem;
    }
}

/* Inline testimonial for approach sections */
.inline-testimonial {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  background: rgba(254, 235, 226, 0.04);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  font-style: normal;
}

.inline-testimonial p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 1rem 0;
  font-weight: 400;
}

.inline-testimonial cite {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: normal;
  font-weight: 500;
}

@media (max-width: 768px) {
  .inline-testimonial {
    padding: 1.25rem 1.5rem;
  }
  
  .inline-testimonial p {
    font-size: 1rem;
  }
}