/*
Theme Name: Cuando Tech 2026
Theme URI: https://cuandotech.com
Author: Cuando Tech
Author URI: https://cuandotech.com
Description: Minimalist, warm, approachable theme for Cuando Tech. Inspired by Nyton.se and Studio Yoke.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cuando-tech
*/

/* Base Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1B3A5C;
    --accent-orange: #E8702A;
    --background: #FAFAFA;
    --text-dark: #1A1A1A;
    --light-blue: #E8EEF4;
    --warm-gray: #8B8B8B;
    --dark-gray: #4A4A4A;
    
    /* Page Background Colors */
    --bg-home: #FFF5EE;
    --bg-about: #E8F4EC;
    --bg-work: #EDE8F5;
    --bg-insights: #E8F0F8;
    --bg-contact: #FFE0D0;
    --bg-case-study: #FFF0E6;
    --bg-default: #F2F2F0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Page-Specific Background Colors */
body.page-home { background: var(--bg-insights); }
body.page-about { background: var(--bg-about); }
body.page-work { background: var(--bg-work); }
body.page-insights { background: var(--bg-insights); }
body.page-contact { background: var(--bg-contact); }
body.page-default { background: var(--bg-default); }
body.single-case_study { background: var(--bg-case-study); }
body.single-case_study .site-header { background: transparent; }
body.single-case_study .site-header .site-logo img { filter: brightness(0) invert(1); transition: filter 0.5s ease; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-blue);
}

/* Navigation */
.admin-bar .site-header {
    top: 32px;
}
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background 0.3s ease;
}

/* Non-home pages: nav gets page bg color immediately */
body.page-about .site-header { background: var(--bg-about); }
body.page-work .site-header { background: var(--bg-work); }
body.page-insights .site-header { background: var(--bg-insights); }
body.page-contact .site-header { background: var(--bg-contact); }
body.page-default .site-header { background: var(--bg-default); }
body.single-post { background: var(--bg-default); }
body.single-post .site-header { background: var(--bg-default); }

/* Home page: scrolled state handled by JS */

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo img {
    height: 50px;
    width: auto;
}

.primary-navigation ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
}

.primary-navigation a {
    color: #143DB2;
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.primary-navigation a:hover {
    color: var(--accent-orange);
}

/* Nav items with black pill bg for readability over video */
.primary-navigation a {
    background: #000000;
    color: #fff !important;
    padding: 3px 8px;
    border-radius: 3px;
}

.primary-navigation a:hover {
    color: var(--accent-orange) !important;
}

.primary-navigation .current-menu-item a,
.primary-navigation .current_page_item a {
    background: #143DB2 !important;
    color: #fff !important;
}

.home .site-logo img {
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Full-screen Video Hero */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-insights);
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

/* Hero Segment Overlays */
.hero-segments {
    position: absolute;
    bottom: 6rem;
    left: 2.5rem;
    z-index: 3;
}

.hero-segment {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: absolute;
    bottom: 0;
    left: 0;
    pointer-events: none;
}

.hero-segment.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-segment__label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: #fff;
    letter-spacing: 0.02em;
}

.hero-segment__desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.01em;
}

.hero-segment__note {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    font-style: italic;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.02em;
    margin-top: 0.15rem;
}

/* Play/Pause Button */
.hero-play-pause {
    position: absolute;
    bottom: 2rem;
    right: 2.5rem;
    z-index: 3;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hero-play-pause:hover {
    background: rgba(0,0,0,0.6);
}

.hero-play-pause:focus-visible {
    outline: 2px solid var(--accent-orange);
    outline-offset: 2px;
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background: transparent;
}

.services-section h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 4rem;
    text-align: center;
    color: var(--primary-blue);
}

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

.service-card {
    background: rgba(255, 255, 255, 0.6);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(27, 58, 92, 0.15);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.service-card p {
    color: var(--dark-gray);
    line-height: 1.7;
}

.service-card--linked {
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 1.5rem;
}

.service-list li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--dark-gray);
    line-height: 1.5;
}

.service-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: 600;
}

.service-card__cta {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-orange);
    letter-spacing: 0.01em;
    transition: color 0.2s;
}

.service-card--linked:hover .service-card__cta {
    color: var(--primary-blue);
}

/* Featured Work */
.featured-work {
    padding: 4rem 0;
}

.featured-work h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-blue);
}

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

.work-card {
    display: block;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.work-card:hover {
    transform: scale(1.02);
}

.work-thumbnail {
    height: 250px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-orange));
    overflow: hidden;
}

.work-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.work-card:hover .work-thumbnail img {
    transform: scale(1.05);
}

.work-info {
    padding: 1.5rem;
}

.work-info h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.work-info p {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.work-tag {
    display: inline-block;
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    margin-right: 0.3rem;
    font-weight: 500;
    text-transform: lowercase;
}

.work-card-link {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    text-decoration: underline;
    transition: color 0.2s ease;
}
.work-card-link:hover {
    color: var(--accent-orange);
}

/* Work page: no underlines or orange hover on cards/tags/CTA */
.work-section .entry-content a {
    text-decoration: none;
    color: inherit;
}
.work-section .entry-content a:hover {
    color: inherit;
}
.work-section .entry-content a.cta-btn,
.entry-content a.cta-btn {
    color: white;
    text-decoration: none;
}
.work-section .entry-content a.cta-btn:hover,
.entry-content a.cta-btn:hover {
    color: white;
    text-decoration: none;
}

/* Work Page Hero */
.work-hero {
    padding: 10rem 0 4rem;
    background: var(--primary-blue);
    color: white;
    text-align: center;
}

.work-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.work-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Work Section */
.work-section {
    padding: 5rem 0;
    background: transparent;
}

/* Work Grid V2 */
.work-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2.5rem;
}

.work-card-v2 {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
}

.work-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.work-card-v2.featured {
    grid-column: 1 / -1;
}

.work-card-v2.featured .work-card-image {
    height: 420px;
}

.work-card-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2a5a8c 50%, var(--accent-orange) 100%);
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.work-card-v2:hover .work-card-image img {
    transform: scale(1.05);
}

.work-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-card-placeholder span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 6rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
}

.work-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(27, 58, 92, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.work-card-v2:hover .work-card-overlay {
    opacity: 1;
}

.view-project {
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.work-card-info {
    padding: 1.8rem 2rem 2rem;
}

.work-card-info h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.work-card-info p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.work-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Work CTA */
.work-cta {
    padding: 5rem 0;
}

.work-cta h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.work-cta p {
    color: var(--dark-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-btn {
    display: inline-block;
    background: var(--accent-orange);
    color: white;
    padding: 0.9rem 2.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s, transform 0.2s;
}

.cta-btn:hover {
    background: #d4631f;
    transform: translateY(-2px);
}

/* Legacy case study card styles */

/* Single Case Study */
.case-study-hero {
    position: relative;
    height: 60vh;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

.case-study-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.case-study-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-study-content {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.case-study-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1rem;
}
.case-study-title-row h1 {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}
.case-study-client-logo {
    flex-shrink: 0;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
}
.case-study-client-logo img {
    max-height: var(--logo-height, 60px);
    width: auto;
    display: block;
}

.case-study-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(27, 58, 92, 0.15);
}
.case-study-nav a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: color 0.2s ease;
}
.case-study-nav a:hover {
    color: var(--accent-orange);
}
.case-study-nav__label {
    display: block;
    font-size: 0.85rem;
    text-transform: lowercase;
    margin-bottom: 0.25rem;
}
.case-study-nav__title {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
}
.case-study-nav__next {
    text-align: right;
}

.case-study-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-blue);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.case-study-content h2 {
    font-size: 2rem;
    margin: 3rem 0 1rem;
    color: var(--primary-blue);
}

.case-study-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

/* About Page */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    padding: 0;
}

.about-text h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    color: var(--primary-blue);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

p.stat-number,
.about-text p.stat-number,
.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    color: var(--accent-orange) !important;
    font-weight: 700;
    margin: 0;
}

p.stat-label,
.about-text p.stat-label,
.stat-label {
    font-size: 0.85rem;
    color: var(--primary-blue) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.about-video {
    border-radius: 12px;
    overflow: hidden;
}
.about-video video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.about-photo {
    height: 500px;
    background: linear-gradient(135deg, var(--light-blue), var(--primary-blue));
    border-radius: 8px;
    overflow: hidden;
}

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

/* Contact Page */
.contact-section {
    padding: 6rem 0;
}

.contact-section h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.contact-intro {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-detail {
    margin-bottom: 1.5rem;
}

.contact-detail label {
    display: block;
    font-size: 0.85rem;
    color: var(--warm-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.contact-detail a {
    color: var(--accent);
    text-decoration: none;
    font-size: 1.2rem;
}

.ai-assistant-box {
    background: var(--light-blue);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--accent-orange);
    margin-top: 1rem;
}

.ai-assistant-box label {
    color: var(--accent-orange) !important;
}

.ai-assistant-box p {
    font-size: 0.85rem;
    color: var(--warm-gray);
    margin-top: 0.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid rgba(139, 139, 139, 0.2);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
}

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

.submit-btn {
    background: var(--accent-orange);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: var(--primary-blue);
}

/* Contact Form 7 Styles */
.wpcf7-form p {
    margin-bottom: 1.2rem;
}

.wpcf7-form label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 0.95rem;
}

.wpcf7-form select,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid rgba(139, 139, 139, 0.2);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s;
    margin-top: 0.3rem;
}

.wpcf7-form select:focus,
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
}

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

.wpcf7-form input[type="submit"] {
    background: var(--accent-orange);
    color: white;
    border: none;
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-family: 'Inter', sans-serif;
}

.wpcf7-form input[type="submit"]:hover {
    background: #d4631f;
    transform: translateY(-2px);
}

.wpcf7-not-valid-tip {
    color: #b91c1c;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.3rem;
    display: block;
}

.wpcf7-form .wpcf7-not-valid {
    border-color: #b91c1c;
}

.wpcf7-response-output {
    background: white;
    border: 2px solid #b91c1c !important;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: #b91c1c;
    font-weight: 500;
    margin-top: 1rem;
}

.wpcf7-form.sent .wpcf7-response-output {
    border-color: var(--primary-blue) !important;
    color: var(--primary-blue);
}

/* Blog/Insights */
.articles-list {
    max-width: 900px;
    padding: 0;
}

.article-item {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(139, 139, 139, 0.2);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.article-item:hover {
    padding-left: 1rem;
}

.article-item-content {
    flex: 1;
    min-width: 0;
}

.article-item-thumb {
    flex-shrink: 0;
    width: 160px;
    height: 110px;
    border-radius: 8px;
    overflow: hidden;
}

.article-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-item:hover .article-item-thumb img {
    transform: scale(1.08);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.article-meta .work-tag {
    margin-top: 0;
    background: transparent;
    color: #5A7A9B;
    font-size: 0.75rem;
    padding: 0.15rem 0.6rem;
    border: 1px solid #A0B4C8;
    letter-spacing: 0.02em;
}

.article-date {
    color: #8896A6;
    font-size: 0.82rem;
    font-weight: 400;
}

.article-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
}

.article-item h3 a {
    color: var(--primary-blue);
}

.article-item h3 a:hover {
    color: var(--accent-orange);
}

.article-item p {
    color: var(--dark-gray);
}

/* Single Post */
.post-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(80px + 1.5rem) 2rem 2rem;
}

.post-featured-image {
    float: right;
    max-width: 300px;
    margin: 0 0 1.5rem 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.post-featured-image:hover img {
    transform: scale(1.08);
}

.post-nav {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
    border-top: 1px solid rgba(27, 58, 92, 0.15);
    clear: both;
}
.post-nav a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: color 0.2s ease;
}
.post-nav a:hover {
    color: var(--accent-orange);
}
.post-nav__label {
    display: block;
    font-size: 0.85rem;
    text-transform: lowercase;
    margin-bottom: 0.25rem;
}
.post-nav__title {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
}
.post-nav__next {
    text-align: right;
}

.post-header {
    margin-bottom: 3rem;
}

.post-header h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.post-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.post-content img,
.post-content video,
.post-content iframe {
    max-width: 100%;
    height: auto;
}

.entry-content img,
.entry-content video,
.entry-content iframe {
    max-width: 100%;
    height: auto;
}

/* Studio Yoke-style Large Footer Text — full width, bottom cropped off into footer */
.large-footer {
    position: relative;
    overflow: hidden;
    height: 5.5vw;
    margin-top: 4rem;
    margin-bottom: 0;
}

.large-footer-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10.5vw;
    font-weight: 700;
    line-height: 1;
    color: rgba(20, 61, 178, 0.12);
    white-space: nowrap;
    user-select: none;
    text-align: center;
    width: 100%;
    letter-spacing: 0.02em;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .case-study-title-row {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }
    .case-study-content h1 {
        text-align: center;
    }
    .case-study-tags {
        text-align: center;
    }
    .hero-segments { left: 1.5rem; bottom: 5rem; }
    .hero-play-pause { right: 1.5rem; bottom: 1.5rem; }
    .hero-segment__label { font-size: 1rem; }
    .hero-segment__desc { font-size: 0.75rem; }

    .site-header {
        padding: 1rem;
    }

    .primary-navigation ul {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .site-logo {
        font-size: 1.2rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
    }

    .stats {
        gap: 2rem;
    }

    .case-study-content h1 {
        font-size: 2.2rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .services-grid,
    .work-grid,
    .work-grid-v2 {
        grid-template-columns: 1fr;
    }

    .work-card-v2.featured .work-card-image {
        height: 240px;
    }

    .work-card-image {
        height: 220px;
    }

    .post-content {
        padding: calc(80px + 1rem) 1.5rem 2rem;
    }

    .post-header h1 {
        font-size: 1.8rem;
    }

    .post-featured-image {
        float: none;
        max-width: 100%;
        margin: 0 0 1.5rem 0;
    }

    .post-content p,
    .entry-content p {
        font-size: 1rem;
    }

    .article-item-thumb {
        width: 100px;
        height: 70px;
    }
}

/* Footer Navigation and Social */
.site-footer {
    background: #143DB2;
    color: white;
    padding: 3rem 2rem 1.5rem;
    margin-top: 0;
    position: relative;
    z-index: 2;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2rem;
}

.footer-col {
    text-align: center;
}

.footer-col h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: white;
}

/* Column 1: Brand */
.footer-logo {
    max-width: 180px;
    height: auto;
    margin: 0 auto 1rem;
    display: block;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--accent-orange);
}

/* Column 1: Legal links */
.footer-legal {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
    align-items: center;
}

.footer-pipe {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: underline;
    font-size: 0.8rem;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: white;
}

/* Column 2: Follow Us - icons only, row */
.footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-social-icons a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-social-icons a:hover {
    color: var(--accent-orange);
}

/* Column 3: Review CTA */
.footer-review p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.review-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.6rem 1.3rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.3s, color 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.review-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Entry Content (pages, posts) */
.entry-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 0.8rem;
    color: var(--primary-blue);
}

.entry-content h3 {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
}

.entry-content h4 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.entry-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--dark-gray);
}

.entry-content ul {
    margin: 0.8rem 0 1.2rem 2rem;
    list-style: disc;
}

.entry-content ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--dark-gray);
    padding-left: 0.3rem;
}

.entry-content ul li strong {
    color: var(--text-dark);
}

.entry-content ol {
    margin: 0.8rem 0 1.2rem 2rem;
    list-style: decimal;
}

.entry-content ol li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--dark-gray);
    padding-left: 0.3rem;
}

.entry-content a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--accent-orange);
}

/* Page Header — consistent across all inner pages */
.page-header {
    padding-top: calc(80px + 1.5rem);
    padding-bottom: 0;
}

.page-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    padding-bottom: 0.5rem;
}
body.page-about .page-header h1 { border-color: #b8ccb8; }
body.page-work .page-header h1 { border-color: #c4b8d4; }
body.page-insights .page-header h1 { border-color: #b8c8d8; }
body.page-contact .page-header h1 { border-color: #d4b0a0; }

.page-header p {
    color: var(--dark-gray);
    font-size: 1.1rem;
    max-width: 600px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Hamburger Menu Button — hidden on desktop */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}
.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-blue);
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}
.mobile-menu-toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* White hamburger lines on transparent header (hero pages) */
body.page-home .site-header:not([style*="E8F0F8"]) .mobile-menu-toggle span,
body.single-case_study .site-header:not([style*="FFF0E6"]) .mobile-menu-toggle span {
    background: white;
}

/* Footer + Large Footer Mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    .primary-navigation {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(20, 61, 178, 0.97);
        z-index: 1000;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .primary-navigation.is-open {
        display: flex;
    }
    .primary-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    .primary-navigation a {
        color: white;
        font-size: 1.5rem;
    }
    .large-footer {
        height: 6.5vw;
    }
    .large-footer-text {
        font-size: 12vw;
    }
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    .footer-col {
        text-align: center;
    }
    .footer-social {
        justify-content: center;
    }
    .footer-legal {
        justify-content: center;
    }
    .footer-social-icons {
        justify-content: center;
    }
}

/* Team Section — About Page */
.team-section {
    padding: 4rem 0;
    background: transparent;
}

.team-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-blue);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.team-headshot {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-headshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-headshot.placeholder {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-orange));
}

.team-headshot.placeholder .initials {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
}

.team-info {
    text-align: left;
}

.team-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.15rem;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.team-title {
    font-size: 1rem;
    color: var(--warm-gray);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.team-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.team-tag.tag-human {
    background: #d4edda;
    color: #155724;
}

.team-tag.tag-ai {
    background: #cce5ff;
    color: #143DB2;
}

.team-linkedin {
    color: #0A66C2;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
    line-height: 0;
}

.team-linkedin:hover {
    opacity: 0.7;
}

.team-linkedin svg {
    display: block;
}

.team-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--dark-gray);
    margin-top: 0.75rem;
}

/* Responsive: 1 column on mobile */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .team-card {
        padding: 1.25rem;
    }
}
