/* ===================================
   The Higher Tide - Minimal Design Approach
   Clean, Modern, Spacious
   =================================== */

:root {
    --primary: #0066ff;
    --primary-dark: #0052cc;
    --accent: #ff4d4f;
    --text: #1a1a1a;
    --text-light: #666666;
    --text-lighter: #999999;
    --bg: #ffffff;
    --bg-subtle: #fafbfc;
    --border: #e1e5e9;
    --border-light: #f0f0f0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
    --radius: 8px;
    --max-width: 1140px;
}

/* ===================================
   Reset & Base
   =================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(600px circle at 20% 30%, rgba(0, 102, 255, 0.05), transparent),
        radial-gradient(800px circle at 80% 70%, rgba(255, 77, 79, 0.05), transparent),
        radial-gradient(400px circle at 40% 80%, rgba(0, 102, 255, 0.03), transparent);
    z-index: -1;
    pointer-events: none;
}

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

/* ===================================
   Typography
   =================================== */

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

p {
    color: var(--text-light);
    margin-bottom: 16px;
}

/* ===================================
   Navigation
   =================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    padding: 16px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.nav-brand a {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.logo-icon {
    margin-right: 8px;
}

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

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.nav-cta {
    background: var(--primary) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
}

.mobile-menu-toggle {
    display: none;
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    padding: 120px 0 80px;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.93) 0%, rgba(250, 251, 252, 0.96) 100%),
        url('hero-water.jpg') center/cover no-repeat fixed;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        conic-gradient(from 45deg at 50% 50%, transparent, rgba(0, 102, 255, 0.03), transparent),
        conic-gradient(from 225deg at 50% 50%, transparent, rgba(255, 77, 79, 0.03), transparent);
    animation: rotate-slow 60s linear infinite;
    z-index: 0;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@keyframes rotate-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-title {
    margin-bottom: 24px;
}

.hero-title .highlight {
    color: var(--primary);
}

#rotating-word {
    display: inline-block;
    min-width: 140px;
    text-align: center;
    transition: all 0.3s ease;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 64px;
    margin-bottom: 48px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    display: block;
}

.stat-label {
    font-size: 14px;
    color: var(--text-lighter);
    margin-top: 4px;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-subtle);
    border-color: var(--primary);
}

/* ===================================
   Services Section
   =================================== */

.services {
    padding: 100px 0;
    background: 
        linear-gradient(135deg, var(--bg-subtle), var(--bg)),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%230066ff' fill-opacity='0.01'%3E%3Cpath d='M50 50c0-5.5 4.5-10 10-10s10 4.5 10 10-4.5 10-10 10-10-4.5-10-10zm-20 0c0-5.5 4.5-10 10-10s10 4.5 10 10-4.5 10-10 10-10-4.5-10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(0, 102, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 77, 79, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.services > .container {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: 
        radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, rgba(0, 102, 255, 0.05) 50%, transparent 100%);
    border-radius: 50%;
    z-index: 0;
}

.section-header h2 {
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.section-header p {
    font-size: 20px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
    align-items: start;
}

/* Featured service (Community Health Audit) takes up left column */
.service-card:nth-child(1) {
    grid-row: 1 / 3;
}

/* Other services stack on the right */
.service-card:nth-child(2),
.service-card:nth-child(3),
.service-card:nth-child(4) {
    grid-column: 2 / 4;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .service-card:nth-child(1) {
        grid-row: auto;
    }
    
    .service-card:nth-child(2),
    .service-card:nth-child(3),
    .service-card:nth-child(4) {
        grid-column: auto;
    }
}

.service-card {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.2s ease;
}

.service-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Featured service styling */
.service-card:nth-child(1) {
    border: 2px solid var(--primary);
    background: 
        linear-gradient(135deg, var(--bg) 0%, var(--bg-subtle) 100%),
        url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%230066ff' fill-opacity='0.02'%3E%3Cpolygon points='10,1 4,7 1,4 1,16 16,16 16,4 13,7'/%3E%3C/g%3E%3C/svg%3E");
    position: relative;
    box-shadow: 
        var(--shadow-lg),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.service-card:nth-child(1)::before {
    content: "Featured";
    position: absolute;
    top: -1px;
    right: -1px;
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 0 var(--radius) 0 8px;
}

/* Compact styling for non-featured services */
.service-card:nth-child(n+2) {
    padding: 24px;
}

.service-card:nth-child(n+2) .service-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.service-card:nth-child(n+2) h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.service-card:nth-child(n+2) .service-tagline {
    font-size: 14px;
    margin-bottom: 16px;
}

.service-card:nth-child(n+2) .service-details {
    margin-top: 16px;
}

.service-card:nth-child(n+2) .service-details h4 {
    font-size: 14px;
    margin: 16px 0 8px 0;
}

.service-card:nth-child(n+2) .service-details p,
.service-card:nth-child(n+2) .service-details li {
    font-size: 13px;
}

.service-card:nth-child(n+2) .service-pricing {
    font-size: 14px;
    font-weight: 600;
}

.service-icon {
    font-size: 40px;
    margin-bottom: 24px;
    display: block;
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

.service-tagline {
    color: var(--text-light);
    margin-bottom: 32px;
    font-size: 16px;
    font-style: normal;
}

.service-details {
    margin-top: 24px;
}

.service-details h4 {
    font-size: 16px;
    color: var(--text);
    margin: 24px 0 8px 0;
}

.service-details h5 {
    font-size: 18px;
    color: var(--primary);
    margin: 24px 0 12px 0;
    font-weight: 600;
}

.service-details h6 {
    font-size: 16px;
    color: var(--text);
    margin: 16px 0 8px 0;
    font-weight: 600;
}

.service-details ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.service-details li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-light);
    font-size: 15px;
}

.service-details li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.service-details p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 12px;
}

/* Community Health Audit & Fractional Service Styling */
.audit-framework,
.fractional-framework {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
    margin: 24px 0;
}

.audit-pillars,
.service-pillars {
    margin-top: 16px;
}

.pillar {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 12px;
}

.pillar h6 {
    color: var(--primary);
    margin-bottom: 8px;
}

.pillar p {
    font-size: 14px;
    margin-bottom: 0;
}

.audit-process {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
    margin: 24px 0;
}

.process-item {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 8px;
    font-size: 14px;
}

.audit-guarantee {
    background: linear-gradient(135deg, rgba(255, 77, 79, 0.05), rgba(0, 102, 255, 0.05));
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    padding: 24px;
    margin: 24px 0;
    text-align: center;
}

.audit-guarantee h4 {
    color: var(--primary);
    margin-bottom: 12px;
}

.service-proof {
    background: var(--bg-subtle);
    padding: 16px;
    border-radius: var(--radius);
    margin: 16px 0;
    font-size: 15px;
}

.service-pricing {
    color: var(--primary);
    font-weight: 600;
    margin: 16px 0;
}

.btn-service {
    background: var(--primary);
    color: white;
    margin-top: 24px;
    width: 100%;
    justify-content: center;
}

.btn-service:hover {
    background: var(--primary-dark);
}

/* ===================================
   Case Studies
   =================================== */

.case-studies {
    padding: 100px 0;
    background: 
        linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 251, 252, 0.97) 100%),
        url('hero-water.jpg') center bottom/cover no-repeat fixed;
    position: relative;
}

.case-studies::before {
    content: '🚀';
    position: absolute;
    top: 15%;
    left: 3%;
    font-size: 100px;
    opacity: 0.02;
    animation: float 10s ease-in-out infinite;
    pointer-events: none;
}

.case-studies-grid {
    display: grid;
    gap: 48px;
}

.case-study {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

.case-study:nth-child(even) {
    grid-template-columns: 2fr 1fr;
}

.case-study:nth-child(even) .case-study-content {
    order: -1;
}

.case-study-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius);
}

.case-study-tag {
    display: inline-block;
    background: var(--bg-subtle);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-study h3 {
    margin-bottom: 24px;
    font-size: 24px;
}

.case-study-details h4 {
    margin-top: 24px;
    margin-bottom: 8px;
    font-size: 16px;
}

.case-study-details p {
    margin-bottom: 16px;
}

.case-study-details ul {
    list-style: none;
    padding: 0;
}

.case-study-details li {
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
    font-size: 15px;
    color: var(--text-light);
}

.case-study-details li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.btn-text {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    margin-top: 16px;
    display: inline-block;
}

.btn-text:hover {
    text-decoration: underline;
}

/* ===================================
   Testimonials
   =================================== */

.testimonials {
    padding: 100px 0;
    background: 
        linear-gradient(135deg, #f0f4ff 0%, #fff5f5 25%, #f5f0ff 50%, #f0fff5 75%, #fff0f5 100%),
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230066ff' fill-opacity='0.03'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h40v40H40V0zM0 40h40v40H0V40z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    position: relative;
    overflow: hidden;
    overflow: hidden;
}

.testimonials::before {
    content: '💬';
    position: absolute;
    top: 10%;
    right: 5%;
    font-size: 120px;
    opacity: 0.03;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.testimonials::after {
    content: '🌟';
    position: absolute;
    bottom: 20%;
    left: 8%;
    font-size: 80px;
    opacity: 0.04;
    animation: float 8s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.testimonial {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 252, 255, 0.95) 100%);
    border: 1px solid transparent;
    background-clip: padding-box;
    border-image: linear-gradient(135deg, rgba(0, 102, 255, 0.2), rgba(255, 77, 79, 0.1)) 1;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.08);
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.12);
    border-image: linear-gradient(135deg, rgba(0, 102, 255, 0.3), rgba(255, 77, 79, 0.2)) 1;
}

.testimonial.featured {
    grid-column: 1 / -1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    color: var(--text);
}

.testimonial-author strong {
    color: var(--text);
    font-weight: 600;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 14px;
}

/* ===================================
   About & Contact Sections
   =================================== */

.about {
    padding: 100px 0;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 251, 252, 0.98) 100%),
        url('hero-water.jpg') center top/cover no-repeat fixed;
}

.contact {
    padding: 100px 0;
    background: 
        linear-gradient(180deg, rgba(250, 251, 252, 0.94) 0%, rgba(255, 255, 255, 0.97) 100%),
        url('hero-water.jpg') center/cover no-repeat fixed;
    position: relative;
}

.about::before {
    content: '🎯';
    position: absolute;
    top: 20%;
    right: 5%;
    font-size: 90px;
    opacity: 0.02;
    animation: float 12s ease-in-out infinite;
    pointer-events: none;
}

.labs {
    padding: 100px 0;
    background: var(--bg-subtle);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-options {
    display: grid;
    gap: 32px;
    margin: 48px 0;
}

.contact-option h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.contact-option p {
    margin-bottom: 16px;
}

.contact-form {
    background: var(--bg-subtle);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.contact-form h3 {
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: inherit;
}

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

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background: var(--text);
    color: white;
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.footer-brand h3 {
    color: white;
    margin-bottom: 8px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    gap: 32px;
}

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

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

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ===================================
   Section Separators
   =================================== */

.section-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 80px auto;
    max-width: 200px;
}

/* ===================================
   Enhanced Testimonials
   =================================== */

.quote-mark {
    font-size: 48px;
    color: var(--primary);
    font-family: Georgia, serif;
    line-height: 1;
    margin-bottom: 16px;
    display: block;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.testimonial.featured {
    grid-column: 1 / -1;
    max-width: 900px;
    margin: 0 auto 32px auto;
    padding: 40px;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-subtle), var(--bg));
    border: 2px solid var(--border-light);
    position: relative;
    z-index: 2;
}

.testimonial.featured .quote-mark {
    font-size: 64px;
    margin: 0 auto 24px auto;
    text-align: center;
}

.testimonial.featured p {
    font-size: 20px;
    font-style: italic;
    color: var(--text);
    margin-bottom: 24px;
}

/* ===================================
   Enhanced About Section
   =================================== */

.about-content {
    display: grid;
    gap: 80px;
}

/* Founder Section with Headshot */
.founder-header {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 32px;
}

.founder-headshot {
    flex-shrink: 0;
}

.headshot-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.headshot-img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.25);
}

.founder-text h3 {
    margin: 0 0 8px 0;
    font-size: 28px;
}

.founder-text .founder-title {
    margin: 0 0 16px 0;
    color: var(--primary);
    font-weight: 600;
    font-size: 16px;
}

@media (max-width: 768px) {
    .founder-header {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    
    .headshot-img {
        width: 100px;
        height: 100px;
    }
}

.philosophy-header {
    text-align: center;
    margin-bottom: 48px;
}

.philosophy-header h3 {
    font-size: 32px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.philosophy-header p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.process-steps {
    display: grid;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.2s ease;
}

.process-step:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateX(8px);
}

.step-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
}

.step-content h4 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text);
}

.step-content p {
    margin-bottom: 16px;
    color: var(--text-light);
}

.step-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.step-details span {
    color: var(--text-lighter);
    font-size: 14px;
}

.about-founder {
    background: linear-gradient(135deg, var(--bg-subtle), var(--bg));
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 48px;
}

.founder-content {
    max-width: 800px;
    margin: 0 auto;
}

.founder-link {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.founder-link:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.founder-title {
    font-size: 18px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 16px !important;
}

.founder-bio {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 24px;
    font-weight: 500;
}

.founder-story p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.7;
}

.founder-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    transition: all 0.2s ease;
}

.highlight:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.highlight-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.highlight-content {
    display: flex;
    flex-direction: column;
}

.highlight-content strong {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 4px;
}

.highlight-content span {
    color: var(--text-light);
    font-size: 14px;
}

/* ===================================
   Labs Section Improvements
   =================================== */

.lab-img {
    width: 120px !important;
    height: auto;
    margin-bottom: 24px;
    border-radius: var(--radius);
}

/* ===================================
   Mobile Responsiveness
   =================================== */

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .services, .case-studies, .testimonials, .about, .contact, .labs {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .case-study {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .case-study:nth-child(even) {
        grid-template-columns: 1fr;
    }
    
    .case-study:nth-child(even) .case-study-content {
        order: 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .step-icon {
        margin: 0 auto;
    }
    
    .about-founder {
        padding: 32px 24px;
    }
    
    .founder-highlights {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .founder-highlights {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .section-separator {
        margin: 40px auto;
    }
}

/* ===================================
   Photo Enhancements
   =================================== */

/* Hero Gallery */
.hero-gallery {
    margin-top: 60px;
    padding: 40px 0;
    border-top: 1px solid var(--border-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-img:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-caption {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    margin-top: 16px;
}

/* Service Photos */
.service-photo {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 16px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-photo {
    opacity: 1;
}

/* Case Study Media */
.case-study-media {
    position: relative;
    margin-bottom: 24px;
}

/* Pivotal Slideshow */
.pivotal-slideshow {
    margin-bottom: 32px;
}

.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
}

.slide {
    display: none;
    position: relative;
}

.slide.active {
    display: block;
}

.slide-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.slide-prev, .slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 16px 12px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: background 0.3s ease;
    z-index: 2;
}

.slide-prev {
    left: 0;
    border-radius: 0 4px 4px 0;
}

.slide-next {
    right: 0;
    border-radius: 4px 0 0 4px;
}

.slide-prev:hover, .slide-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slide-indicators {
    text-align: center;
    padding: 16px 0;
}

.indicator {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #ccc;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.indicator.active, .indicator:hover {
    background-color: var(--primary);
}

/* Video Embed */
.video-embed {
    margin-top: 24px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: var(--radius);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-caption {
    text-align: center;
    margin-top: 12px;
    color: var(--text-light);
    font-size: 14px;
}

/* Testimonial Background Photos */
.testimonial-photos {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
    opacity: 0.03;
}

.testimonial-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-bg:first-child {
    top: 10%;
    right: 10%;
}

.testimonial-bg:last-child {
    bottom: 10%;
    left: 10%;
}

.testimonials {
    position: relative;
}

.testimonials .container {
    position: relative;
    z-index: 1;
}

/* Mobile Photo Adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .gallery-img {
        height: 140px;
    }
    
    .service-photo {
        height: 140px;
    }
    
    .testimonial-bg {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .gallery-img {
        height: 120px;
    }
}

/* Pivotal Photo Grid */
.pivotal-photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.pivotal-grid-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pivotal-grid-img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .pivotal-photo-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .pivotal-grid-img {
        height: 180px;
    }
}