@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

/* ===== HOMEPAGE ===== */
html,
body { overflow-x: clip; }
body { background: #fbfcfa; color: #141817; }

:root {
    --hp-section-gap: 100px;
    --color-teal: #0d9e7e;
    --color-teal-hover: #0a7f63;
    --color-dark-green: #0c1513;
    --color-sage: #dfe8e2;
    --color-border: rgba(12, 26, 26, 0.08);
    --color-burgundy: #8b1a2b;
    --color-light-burgundy: #9c2a38;
    --color-marquee-bg: #dfe8e2; /* SafeStep sage-green background */
}

/* Fixed Header (Always Sticky from the Start) */
.v2-hdr.v2-hdr-light {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(12, 26, 26, 0.05) !important;
    box-shadow: none !important;
    transition: background 0.3s ease, border-color 0.3s ease !important;
    
    /* Center and align header content width with the hero container (shifted slightly more to the right) */
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    height: 68px !important;
    padding-left: max(36px, calc((100vw - 1440px) / 2 + 36px)) !important;
    padding-right: max(36px, calc((100vw - 1440px) / 2 + 36px)) !important;
}

/* Disable sticky scroll transform/styles overrides since it is always fixed */
.v2-hdr.v2-hdr-light.v2-hdr-sticky {
    position: fixed !important;
    background: rgba(255, 255, 255, 0.72) !important;
    border-bottom: 1px solid rgba(12, 26, 26, 0.05) !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Logo Color Override */
.v2-logo img {
    filter: none !important;
}

/* Redesigned Headers Typography */
.hp-hero h1,
.hp-about-dark h2,
.hp-how-we-work h2,
.services-intro h2,
.pubs-intro h2,
.how-step-card h3 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 300 !important;
}

/* ===== NEW HERO SECTION ===== */
.hp-hero {
    position: relative;
    display: flex;
    min-height: 100svh;
    padding: 140px 0 80px;
    overflow: hidden;
    background: #fbfcfa;
    color: #141817;
}

.hp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: 
        radial-gradient(circle at 10% 20%, rgba(13, 158, 126, 0.04), transparent 30%),
        radial-gradient(circle at 90% 15%, rgba(197, 160, 89, 0.04), transparent 25%),
        linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.98) 25%, rgba(255,255,255,0.85) 45%, rgba(255,255,255,0.2) 70%, transparent 95%);
    z-index: 1;
}

.hp-hero .container {
    position: relative;
    z-index: 3;
    max-width: 1440px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hp-hero-content {
    max-width: 680px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: hpFadeUp 0.8s ease 0.1s both;
}

@media(min-width: 1025px) {
    .hp-hero-content {
        margin-top: clamp(-56px, -4.8vh, -28px);
    }
}

.hp-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 8px 18px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: #f4f7f3;
    box-shadow: 0 8px 20px rgba(17, 21, 24, 0.03);
    color: var(--color-dark-green);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hp-hero h1 {
    margin-bottom: 20px;
    font-size: clamp(2.3rem, 4.8vw, 4.2rem);
    color: var(--color-dark-green);
    line-height: 1.05;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.hp-hero h1 em {
    color: var(--color-teal);
    font-style: normal;
}

.hp-hero-sub {
    max-width: 540px;
    margin-bottom: 32px;
    font-size: clamp(0.92rem, 1.1vw, 1.05rem);
    color: #4a5450;
    line-height: 1.7;
    text-wrap: balance;
}

.hp-hero-form {
    width: 100%;
    max-width: 480px;
    margin-bottom: 36px;
}

.hp-form-group {
    display: flex;
    gap: 12px;
    width: 100%;
}

.hp-hero-input {
    flex: 1;
    min-height: 56px;
    border: 1px solid var(--color-border);
    background: #f5f5f2;
    border-radius: 999px;
    padding: 0 24px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--color-dark-green);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 24px rgba(17, 21, 24, 0.02);
}

.hp-hero-input::placeholder {
    color: #94a09c;
}

.hp-hero-input:focus {
    border-color: var(--color-teal);
    box-shadow: 0 10px 24px rgba(13, 158, 126, 0.08);
}

.hp-hero-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 28px;
    background: var(--color-dark-green);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.hp-hero-submit:hover {
    background: var(--color-burgundy) !important;
    transform: translateY(-1px);
}

.hp-hero-trust {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hp-hero-trust-text {
    font-size: 0.82rem;
    line-height: 1.45;
    color: #55625c;
}

.hp-hero-trust-text strong {
    color: var(--color-dark-green);
    font-weight: 600;
}

/* Hero Visual / Background Masking */
.hp-hero-visual {
    position: absolute;
    inset: 0 0 0 auto;
    width: 58%; /* Expanded image area from 50% to 58% */
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hp-hero-bg-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hp-hero-bg-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 76% 38%; /* Keep the right-side signage in frame */
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.05) 5%, rgba(0, 0, 0, 0.8) 25%, #000 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.05) 5%, rgba(0, 0, 0, 0.8) 25%, #000 100%);
    opacity: 0.92;
}

/* Drifting Pollen Animation */
.hp-pollen-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.pollen-dot {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.8) 0%, rgba(197, 160, 89, 0.4) 25%, rgba(197, 160, 89, 0.08) 60%, transparent 80%);
    mix-blend-mode: screen;
    animation: pollen-drift 20s ease-in-out infinite;
    filter: blur(1px);
}

.pollen-dot-teal {
    background: radial-gradient(circle, rgba(13, 158, 126, 0.8) 0%, rgba(13, 158, 126, 0.4) 25%, rgba(13, 158, 126, 0.08) 60%, transparent 80%);
}

@keyframes pollen-drift {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate3d(60px, -100px, 0) scale(1.3);
        opacity: 0.95;
    }
    75% {
        transform: translate3d(-30px, -40px, 0) scale(0.85);
        opacity: 0.6;
    }
}

/* ===== NEW MARQUEE BANNER ===== */
.hp-marquee {
    position: relative;
    overflow: hidden;
    background: var(--color-marquee-bg); /* Softest pinkish-white background */
    border-top: 1px solid rgba(139, 26, 43, 0.06);
    border-bottom: 1px solid rgba(139, 26, 43, 0.06);
    padding: 16px 0;
    z-index: 5;
    box-shadow: 0 10px 28px rgba(17, 21, 24, 0.03);
}

.hp-marquee-mask {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 40px;
    animation: marquee-scroll 40s linear infinite;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 40px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-dark-green); /* Text is black */
    font-family: var(--font-body);
}

.marquee-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-teal); /* Teal dot */
}

@keyframes marquee-scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* ===== NEW DARK ABOUT SECTION ===== */
.hp-about-dark {
    position: relative;
    background: var(--color-dark-green);
    color: #fff;
    padding: 100px 0;
    overflow: hidden;
    text-align: center;
    z-index: 4;
}

.hp-about-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 10%, rgba(13, 158, 126, 0.09), transparent 32%);
    pointer-events: none;
    z-index: 1;
}

.hp-about-dark .container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.about-dark-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 32px;
}

.hp-about-dark h2 {
    font-size: clamp(1.8rem, 3.8vw, 3.1rem);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 32px;
    text-wrap: balance;
}

.about-dark-desc {
    max-width: 800px;
    margin: 0 auto 24px;
    font-size: clamp(0.9rem, 1.15vw, 1.08rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.76);
    text-wrap: balance;
}

/* ===== NEW HOW WE WORK SECTION ===== */
.hp-how-we-work {
    position: relative;
    background: 
        radial-gradient(circle at 30% 25%, rgba(13, 158, 126, 0.08), transparent 35%),
        radial-gradient(circle at 70% 75%, rgba(197, 160, 89, 0.09), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
    padding: 100px 0 40px; /* Reduced bottom padding */
    z-index: 3;
}

/* Elegant large blur orb behind the glass cards */
.hp-how-we-work::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 158, 126, 0.04) 0%, rgba(197, 160, 89, 0.03) 50%, transparent 70%);
    z-index: 1;
    pointer-events: none;
    filter: blur(80px);
}

.hp-how-we-work .container {
    max-width: 1440px;
    padding: 0 24px;
    margin: 0 auto;
}

/* Fully Centered Intro Header (Reusable for Services and Pubs) */
.how-we-work-intro,
.services-intro,
.pubs-intro {
    max-width: 800px;
    margin: 0 auto 56px;
    padding-left: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.how-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-dark-green);
    margin-bottom: 16px;
    box-shadow: 0 8px 20px rgba(17, 21, 24, 0.03);
}

.hp-how-we-work h2,
.services-intro h2,
.pubs-intro h2 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: clamp(1.8rem, 3.8vw, 2.9rem) !important;
    font-weight: 300 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.03em !important;
    color: var(--color-dark-green) !important;
    margin: 0 auto 16px !important;
    text-align: center !important;
}

.how-sub {
    font-size: clamp(0.92rem, 1.1vw, 1.05rem) !important;
    line-height: 1.65 !important;
    color: #55625c !important;
    text-align: center !important;
    margin: 0 auto 24px !important;
    max-width: 720px !important;
}

/* Balanced 3-Column Grid: Centers step content under top headers on desktop */
.how-we-work-grid {
    display: grid;
    grid-template-columns: 240px 1fr 240px;
    gap: 30px;
    align-items: start;
}

/* Step list side */
.how-steps-timeline {
    position: relative;
    padding-left: 0;
    width: 100%;
}

/* Sticky Left Vertical Navigation Column - Centered Vertically in Viewport */
.how-step-nav-col {
    position: sticky;
    top: calc(50vh - 130px); /* Centers it vertically relative to viewport */
    z-index: 10;
    background: transparent !important;
}

.how-nav-track-vertical {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 20px;
}

/* Sleek thin vertical timeline line running down */
.vertical-timeline-line {
    position: absolute;
    left: 24px;
    top: 20px;
    bottom: 20px;
    width: 1px;
    background: linear-gradient(180deg, rgba(13, 158, 126, 0) 0%, rgba(13, 158, 126, 0.15) 15%, rgba(13, 158, 126, 0.15) 85%, rgba(13, 158, 126, 0) 100%);
    z-index: 1;
}

.how-nav-btn-v {
    display: flex;
    align-items: center;
    gap: 18px;
    background: transparent;
    border: none;
    padding: 10px 0;
    cursor: pointer;
    color: #8c9c96; /* Muted sage gray */
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.18rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    text-transform: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 3;
    text-align: left;
}

.how-nav-btn-v:hover {
    color: var(--color-teal);
}

.nav-v-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fbfcfa;
    border: 1px solid rgba(13, 158, 126, 0.25);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.how-nav-btn-v.active {
    color: var(--color-dark-green);
    font-weight: 500;
}

.how-nav-btn-v.active .nav-v-dot {
    background: var(--color-teal);
    border-color: var(--color-teal);
    box-shadow: 0 0 0 5px rgba(13, 158, 126, 0.15);
    transform: scale(1.15);
}

.nav-v-text {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), font-style 0.3s;
}

.how-nav-btn-v.active .nav-v-text {
    transform: translateX(6px);
    font-style: italic;
}

/* Right Column Step Cards Centered */
.how-step-card {
    position: relative;
    min-height: 52vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    border-bottom: none !important;
}

.how-step-card:last-child {
    padding-bottom: 20px; /* Reduced bottom spacing significantly */
}

/* Glassmorphic floating card animation for the active step text */
.how-step-card-content {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    opacity: 0.35;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.4s ease,
                border-color 0.4s ease,
                box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 44px 40px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.how-step-card.active .how-step-card-content {
    opacity: 1;
    transform: translateY(0) scale(1);
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 30px 60px rgba(12, 26, 26, 0.03),
        0 4px 20px rgba(12, 26, 26, 0.01),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* Background Watermarked Serif Numbers for depth */
.how-step-card-content::after {
    position: absolute;
    right: 24px;
    bottom: -10px;
    font-size: 8.5rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    color: rgba(13, 158, 126, 0.02);
    line-height: 0.8;
    pointer-events: none;
    z-index: 1;
    transition: color 0.5s ease, transform 0.5s ease;
    transform: translateY(10px);
}

.how-step-card.active .how-step-card-content::after {
    color: rgba(13, 158, 126, 0.05);
    transform: translateY(0);
}

.how-step-card[data-step-index="0"] .how-step-card-content::after { content: "01"; }
.how-step-card[data-step-index="1"] .how-step-card-content::after { content: "02"; }
.how-step-card[data-step-index="2"] .how-step-card-content::after { content: "03"; }
.how-step-card[data-step-index="3"] .how-step-card-content::after { content: "04"; }
.how-step-card[data-step-index="4"] .how-step-card-content::after { content: "05"; }

.step-num,
.how-step-card h3,
.how-step-card p,
.step-features {
    position: relative;
    z-index: 2;
}

.step-num {
    font-size: 0.68rem;
    font-weight: 700;
    color: #7b8a85;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.how-step-card h3 {
    font-size: clamp(1.4rem, 2.5vw, 2.1rem);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-dark-green);
    margin-bottom: 16px;
    text-align: center;
}

.how-step-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #55625c;
    margin-bottom: 24px;
    text-align: center;
}

/* Centered list features container */
.step-features {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin: 0 auto;
    text-align: left;
}

.step-feature-item {
    display: flex;
    align-items: start;
    gap: 10px;
    font-size: 0.88rem;
    color: #4a5450;
    line-height: 1.5;
}

.feature-check {
    display: flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #d4ebe3;
    color: var(--color-teal);
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-check svg {
    width: 11px;
    height: 11px;
    stroke-width: 2.2;
}

/* Transitions Line Separator between How We Work and Bento Services */
.how-services-separator {
    width: 100%;
    max-width: 1200px;
    height: 1px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent 0%, rgba(13, 158, 126, 0.12) 20%, rgba(13, 158, 126, 0.18) 50%, rgba(13, 158, 126, 0.12) 80%, transparent 100%);
    border: none;
}

/* Responsive Redesign Adjustments */
@media(max-width:1024px) {
    .how-we-work-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .how-step-nav-col {
        position: sticky;
        top: 68px; /* Sticky below fixed header */
        background: transparent !important;
        padding: 10px 0;
        margin-bottom: 12px;
    }
    .how-nav-track-vertical {
        flex-direction: row;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        gap: 8px;
        padding-left: 0;
    }
    .how-nav-track-vertical::-webkit-scrollbar {
        display: none;
    }
    .vertical-timeline-line, .nav-v-dot {
        display: none;
    }
    .how-nav-btn-v {
        padding: 8px 16px;
        background: #fff;
        border-radius: 999px;
        border: 1px solid var(--color-border);
    }
    .how-nav-btn-v.active {
        background: var(--color-dark-green);
        color: #fff;
        border-color: var(--color-dark-green);
    }
    .how-nav-btn-v.active .nav-v-text {
        transform: none;
    }
    .how-step-card {
        min-height: 0;
        padding: 40px 0;
    }
    .how-step-card-content {
        align-items: center;
        text-align: center;
        opacity: 1; /* Keep fully visible on mobile scrolling */
        transform: none !important;
        background: rgba(255, 255, 255, 0.6) !important;
        box-shadow: 0 10px 30px rgba(12, 26, 26, 0.02) !important;
        border: 1px solid rgba(255, 255, 255, 0.8) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 30px 20px;
        border-radius: 20px;
    }
    .how-step-card-content::after {
        display: none !important; /* Hide watermark on mobile to keep clean readability */
    }
    .how-step-card h3 {
        text-align: center;
    }
    .how-step-card p {
        text-align: center;
    }
    .step-features {
        align-items: flex-start;
    }
}

@media(max-width:768px) {
    .hp-hero {
        padding: 120px 0 60px;
    }
    .hp-hero .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    .hp-hero h1 {
        font-size: clamp(2.1rem, 10vw, 3.2rem);
    }
    .hp-form-group {
        flex-direction: column;
        gap: 10px;
    }
    .hp-hero-input {
        width: 100%;
    }
    .hp-hero-submit {
        width: 100%;
    }
    .hp-hero-trust {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .hp-about-dark {
        padding: 68px 0;
    }
    .hp-about-dark h2 {
        font-size: clamp(1.6rem, 8vw, 2.3rem);
    }
    .hp-how-we-work {
        padding: 68px 0;
    }
    .hp-how-we-work h2 {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }
    .how-step-card {
        min-height: 0;
        padding: 30px 0;
    }
}

/* ===== SERVICES PREVIEW (PRESERVED) ===== */
.hp-services {
    position: relative;
    z-index: 0;
    margin-top: 0;
    padding: 32px 0 56px; /* Tightened top padding from 64px to 32px to reduce section distance */
    background: #fbfcfa; /* Harmonized background color */
}

.hp-arrow-link { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-size: .875rem; font-weight: 600; text-decoration: none; transition: gap .3s; margin-top: 4px; }
.hp-arrow-link:hover { gap: 14px; }
.hp-arrow-link svg { width: 18px !important; height: 18px !important; stroke: var(--gold); flex-shrink: 0; display: inline-block !important; }

/* Section header */
.hp-sec-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 44px; }
.hp-sec-head h2 {
    font-family: var(--serif);
    font-size: clamp(1.2rem, 2.4vw, 2rem);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0;
}
.hp-services .hp-sec-head,
.hp-pubs .hp-sec-head {
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}
.hp-services .hp-tabbar { display: flex; justify-content: center; margin-bottom: 36px; }

/* Mini tab bar */
.hp-tabcon { display: inline-flex; gap: 8px; background: #fff; padding: 8px 12px; border-radius: 28px; border: 1px solid var(--brd); }
.hp-tab { font-family: var(--sans); font-size: .82rem; font-weight: 500; color: var(--txt3); background: none; border: none; cursor: pointer; padding: 8px 18px; border-radius: 20px; transition: all .3s; }
.hp-tab:hover { color: #4b5563; }
.hp-tab.act { color: var(--txt); background: var(--bg2); box-shadow: 0 1px 4px rgba(0,0,0,.06); }

.hp-tabpanel { display: none; }
.hp-tabpanel.act { display: block; animation: hpFade .4s ease; }
@keyframes hpFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.hp-services .bento-content p { text-align: justify; text-justify: inter-word; }
.hp-services .bento-card-enter { animation: none; opacity: 1; }
.hp-services .bento-card.hp-scroll-reveal {
    opacity: 0;
    transform: translateY(46px);
    transition: opacity .62s ease, transform .62s cubic-bezier(.22,.61,.36,1), background .5s, border-color .5s, box-shadow .5s;
    transition-delay: var(--hp-reveal-delay, 0ms);
}
.hp-services .bento-card.hp-scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.hp-services .bento-card.hp-scroll-reveal.is-visible:hover {
    transform: translateY(-5px);
}

/* Service Cards — matching hizmetlerimiz.html */
.hp-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hp-svc-card { position: relative; background: #fff; border-radius: 16px; overflow: hidden; transition: all .5s cubic-bezier(.23,1,.32,1); text-decoration: none; display: flex; flex-direction: column; min-height: 220px; padding: 28px; border: 1px solid var(--brd); }
.hp-svc-card:hover { transform: translateY(-5px); background: var(--bg3); border-color: rgba(139,26,43,.15); box-shadow: 0 16px 40px rgba(0,0,0,.1); }
.hp-svc-icon { width: 48px; height: 48px; background: rgba(139,26,43,.08); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; transition: all .4s; }
.hp-svc-icon svg { width: 24px; height: 24px; stroke: var(--gold); stroke-width: 1.5; fill: none; }
.hp-svc-card:hover .hp-svc-icon { background: var(--gold); }
.hp-svc-card:hover .hp-svc-icon svg { stroke: #fff; }
.hp-svc-card h3 { font-family: var(--sans); font-size: 1.1rem; font-weight: 600; color: var(--txt); margin-bottom: 10px; }
.hp-svc-card p { font-size: .85rem; line-height: 1.65; color: var(--txt2); margin-bottom: auto; flex-grow: 1; }
.hp-svc-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 500; color: var(--gold); text-decoration: none; margin-top: 16px; transition: gap .3s; }
.hp-svc-arrow:hover { gap: 14px; }
.hp-svc-arrow svg { width: 16px; height: 16px; stroke: var(--gold); stroke-width: 2; fill: none; flex-shrink: 0; }

/* ===== PUBLICATIONS PREVIEW (PRESERVED) ===== */
.hp-pubs { padding: 80px 0; background: #ffffff; }
.hp-pubs .container { position: relative; } /* Enable absolute placement of carousel arrows */

.hp-pub-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 24px;
    padding: 10px 4px 24px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.hp-pub-grid::-webkit-scrollbar {
    display: none;
}
.hp-pub-card {
    flex: 0 0 360px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    border: 1px solid var(--brd);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.hp-pub-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,0,0,.1); }
.hp-pub-img { height: 160px; flex-shrink: 0; overflow: hidden; background: var(--bg3); }
.hp-pub-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hp-pub-card:hover .hp-pub-img img { transform: scale(1.05); }
.hp-pub-body { flex: 1; display: flex; flex-direction: column; padding: 18px; }
.hp-pub-date { font-size: .75rem; color: var(--txt3); margin-bottom: 8px; }
.hp-pub-body h3 { font-family: var(--serif); font-size: 1rem; font-weight: 400; color: var(--txt); line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hp-pub-body p { font-size: .84rem; line-height: 1.55; color: var(--txt2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: auto; }
.hp-pub-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.hp-pub-cat { display: inline-block; padding: 5px 14px; background: var(--bg2); border-radius: 20px; font-size: .72rem; font-weight: 500; color: var(--txt2); }
.hp-pub-more { font-size: .8rem; font-weight: 500; color: var(--gold); display: flex; align-items: center; gap: 4px; }
.hp-pub-more svg { width: 14px; height: 14px; stroke: var(--gold); stroke-width: 2; fill: none; }

/* Edge-aligned Slide Controls overlaying the grid sides */
.pub-slide-btn {
    position: absolute;
    top: 58%; /* Vertically centers relative to publication grid cards height */
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--color-dark-green);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(17, 21, 24, 0.05);
}
.pub-slide-btn:hover {
    border-color: var(--color-teal);
    color: var(--color-teal);
    box-shadow: 0 6px 16px rgba(13, 158, 126, 0.12);
}
.pub-slide-btn#pub-prev-btn {
    left: -24px; /* Sits on the outer left edge of container */
}
.pub-slide-btn#pub-next-btn {
    right: -24px; /* Sits on the outer right edge of container */
}
.pub-slide-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
}

/* Preserved Animations and Responsive rules for Services/Publications */
@keyframes hpFadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hp-pubs { animation: hpFadeUp .8s ease .5s both; }

@media(max-width:1200px){
    .pub-slide-btn#pub-prev-btn { left: 8px; }
    .pub-slide-btn#pub-next-btn { right: 8px; }
}
@media(max-width:1024px){
    .hp-svc-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-pub-card { flex: 0 0 320px; }
    .pub-slide-btn { width: 42px; height: 42px; }
    .pub-slide-btn svg { width: 14px; height: 14px; }
}
@media(max-width:768px) {
    .hp-services { padding: 48px 0 44px; }
    .hp-svc-grid { grid-template-columns: 1fr; }
    .hp-pubs { padding: 56px 0; }
    .hp-pub-card { flex: 0 0 290px; }
    .hp-sec-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 32px; }
    .hp-services .hp-sec-head,
    .hp-pubs .hp-sec-head { align-items: center; text-align: center; }
    .hp-tabcon { flex-direction: column; gap: 4px; padding: 8px; border-radius: 16px; width: 100%; }
    .hp-tab { width: 100%; text-align: center; }
    .pub-slide-btn { display: none !important; } /* Hide outer arrows on mobile, letting users swipe naturally */
}

@media(prefers-reduced-motion:reduce){
    .hp-services .bento-card.hp-scroll-reveal { opacity: 1; transform: none; transition: none; }
}


/* ===== DYNAMIC ISOLATED SOLE-USE FOOTER STYLE (VERBATIM SAFESTEP DETAILS) ===== */
.ss-ftr {
    position: relative;
    background: #0f1917 !important;
    color: #fff !important;
    padding: 72px 0 !important;
    overflow: hidden !important;
    z-index: 10 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Desktop spacing */
@media(min-width: 768px) {
    .ss-ftr {
        padding: 92px 0 !important;
    }
}

/* Background glows */
.ss-ftr-glow-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 158, 126, 0.16) 0%, transparent 70%) !important;
    pointer-events: none;
    z-index: 1;
}

.ss-ftr-glow-2 {
    position: absolute;
    top: 0;
    right: 0;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 26, 43, 0.12) 0%, transparent 70%) !important;
    pointer-events: none;
    z-index: 1;
}

.ss-ftr .container {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.ss-ftr-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr !important;
    gap: 64px !important;
    padding-bottom: 60px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    align-items: start !important;
}

.ss-ftr-brand-col {
    max-width: 620px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ss-ftr-kicker {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.58) !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    margin-bottom: 16px !important;
    font-family: var(--font-mono), monospace !important;
}

.ss-ftr-title {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: clamp(34px, 5vw, 56px) !important;
    font-weight: 300 !important;
    line-height: 0.98 !important;
    letter-spacing: -0.05em !important;
    color: #fff !important;
    margin-bottom: 16px !important;
}

.ss-ftr-title em {
    font-style: italic !important;
    font-weight: 300 !important;
}

.ss-ftr-desc {
    font-size: 15px !important;
    line-height: 1.9 !important;
    color: rgba(255, 255, 255, 0.58) !important;
    margin-bottom: 28px !important;
    max-width: 440px !important;
}

.ss-ftr-newsletter {
    width: 100%;
    max-width: 480px;
}

.ss-ftr-form {
    width: 100%;
}

.ss-ftr-input-group {
    display: flex;
    gap: 12px;
    width: 100%;
}

.ss-ftr-input {
    flex: 1;
    min-height: 48px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 999px !important;
    padding: 0 24px !important;
    color: #fff !important;
    font-size: 0.92rem !important;
    outline: none !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
}

.ss-ftr-input::placeholder {
    color: rgba(255, 255, 255, 0.28) !important;
}

.ss-ftr-input:focus {
    border-color: var(--color-teal) !important;
    box-shadow: 0 0 0 4px rgba(13, 158, 126, 0.14) !important;
}

.ss-ftr-submit-btn {
    min-height: 48px !important;
    padding: 0 24px !important;
    background: #fff !important;
    color: #0c1513 !important;
    border: none !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.15s !important;
}

.ss-ftr-submit-btn:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--color-burgundy) !important;
}

.ss-ftr-status-lbl {
    display: block;
    margin-top: 8px;
    font-size: 0.82rem;
    color: var(--color-teal);
    min-height: 20px;
}

.ss-ftr-links-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 40px !important;
}

.ss-ftr-links-subcol {
    display: flex;
    flex-direction: column;
    gap: 16px !important;
}

.ss-ftr-subcol-title {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.4) !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    margin-bottom: 8px !important;
    font-family: var(--font-mono), monospace !important;
}

.ss-ftr-links-subcol a {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    line-height: 1.8 !important;
    transition: color 0.15s ease !important;
}

.ss-ftr-links-subcol a:hover {
    color: var(--color-teal) !important;
}

.ss-ftr-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px !important;
    flex-wrap: wrap;
    gap: 20px;
}

.ss-ftr-status-text {
    font-size: 13.5px !important;
    color: rgba(255, 255, 255, 0.4) !important;
    font-weight: 500 !important;
}

.ss-ftr-copy {
    font-size: 13.5px !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

@media(max-width: 1024px) {
    .ss-ftr-grid {
        grid-template-columns: 1fr !important;
        gap: 48px !important;
    }
}

@media(max-width: 768px) {
    .ss-ftr-input-group {
        flex-direction: column;
        gap: 12px;
    }
    .ss-ftr-submit-btn {
        width: 100%;
    }
    .ss-ftr-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Translucent Glassmorphic Sticky Header when Scrolled Down on Subpages (Matches Homepage Light Header) */
.v2-hdr.v2-hdr-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(12, 26, 26, 0.05) !important;
    box-shadow: none !important;
    
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    height: 68px !important;
    padding-left: max(36px, calc((100vw - 1440px) / 2 + 36px)) !important;
    padding-right: max(36px, calc((100vw - 1440px) / 2 + 36px)) !important;
    
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease !important;
}

@media(max-width: 1024px) {
    .v2-hdr.v2-hdr-light,
    .v2-hdr.v2-hdr-sticky {
        padding-left: 28px !important;
        padding-right: 28px !important;
    }
}
@media(max-width: 768px) {
    .v2-hdr.v2-hdr-light,
    .v2-hdr.v2-hdr-sticky {
        padding-left: 20px !important;
        padding-right: 20px !important;
        height: 60px !important;
    }
}
