/* ===== HOMEPAGE ===== */
html,
body { overflow-x: clip; }
body { background: #fff; color: #1a1a1a; }
:root { --hp-section-gap: 100px; }

/* Logo alignment fixed and unified with v2-common.css */

/* Hero */
.hp-hero {
    min-height: 560px;
    padding-bottom: 78px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hp-hero-content { max-width: 560px; text-align: left; display: flex; flex-direction: column; align-items: flex-start; }
html.cms-hero-pending .hp-hero-content { opacity: 0 !important; visibility: hidden; animation: none !important; }
html.cms-hero-ready .hp-hero-content { visibility: visible; }
.hp-hero h1 { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.5rem); font-weight: 400; color: #fff; line-height: 1.2; margin-bottom: 20px; }
.hp-hero-sub { font-size: 1rem; color: rgba(255,255,255,.72); line-height: 1.7; max-width: 360px; margin-bottom: 0; text-align: left; }

/* About scroll prototype */
.hp-about {
    position: relative;
    height: 100vh;
    min-height: 640px;
    padding: 0;
    background: transparent;
    border-top: 1px solid rgba(0,0,0,.05);
    border-bottom: 1px solid rgba(0,0,0,.05);
}
.hp-about-sticky {
    position: sticky;
    top: 0;
    height: min(100vh, 470px);
    min-height: 0;
    overflow: hidden;
    z-index: 2;
    background: #fff;
}
.hp-about-stage {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    max-width: 1240px;
    margin: 0 auto;
    text-align: center;
    padding: 76px 24px 38px;
    transform: none;
}
.hp-about-eyebrow {
    --button-radius: .75em;
    --button-color: #f7f3f1;
    --button-outline-color: var(--gold);
    display: inline-block;
    margin: 0 0 48px;
    border-radius: var(--button-radius);
    background: var(--button-outline-color);
    color: var(--button-outline-color);
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-decoration: none;
}
.hp-about-eyebrow-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-sizing: border-box;
    padding: .5em .85em;
    border: 1px solid var(--button-outline-color);
    border-radius: var(--button-radius);
    background: var(--button-color);
    transform: translateY(-.16em);
    transition: transform .1s ease;
}
.hp-about-eyebrow:hover .hp-about-eyebrow-top,
.hp-about-eyebrow:focus-visible .hp-about-eyebrow-top {
    transform: translateY(-.25em);
}
.hp-about-eyebrow:active .hp-about-eyebrow-top {
    transform: translateY(0);
}
.hp-about-eyebrow:focus-visible {
    outline: 3px solid rgba(139,26,43,.32);
    outline-offset: 4px;
}
.hp-about-eyebrow svg {
    width: 9px;
    height: 9px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
}
.hp-about-statements {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 0;
    width: min(1080px, 88vw);
}
.hp-about-statement {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    pointer-events: none;
}
.hp-about-title {
    position: relative;
    display: inline-block;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.75rem, 3.15vw, 2.85rem);
    font-weight: 400;
    letter-spacing: -.035em;
    line-height: 1.12;
    max-width: 1040px;
}
.hp-about-statement.is-long .hp-about-title {
    font-size: clamp(1.55rem, 2.65vw, 2.35rem);
    line-height: 1.16;
    max-width: 1080px;
}
.hp-about-text {
    display: block;
    color: #171717;
}
.hp-about-word {
    display: inline-block;
    white-space: nowrap;
}
.hp-about-letter {
    display: inline;
    opacity: .13;
    transition: opacity .06s linear;
}
.hp-about-progress {
    width: min(520px, 62vw);
    height: 1px;
    margin-top: 28px;
    background: rgba(0,0,0,.1);
    overflow: hidden;
}
.hp-about-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: #171717;
    transform: scaleX(0);
    transform-origin: left center;
}
.hp-about-scroll-hint {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 10px 0 0;
    font-family: var(--serif);
    font-size: .78rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: .015em;
    color: rgba(26,26,26,.54);
    text-decoration: none;
    transition: color .2s ease;
}
.hp-about-scroll-hint:hover,
.hp-about-scroll-hint:focus-visible {
    color: var(--gold);
}
.hp-about-scroll-arrow {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: hpAboutArrow 1.25s ease-in-out infinite;
}
@keyframes hpAboutArrow {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}
.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; height: 18px; stroke: var(--gold); flex-shrink: 0; }

/* 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; }

/* Services Preview */
.hp-services {
    position: relative;
    z-index: 0;
    margin-top: 0;
    padding: 24px 0 48px;
    background: var(--bg2);
}

/* Mini tab bar */
.hp-tabbar { margin-bottom: 36px; }
.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 — matching yayinlar.html */
.hp-pubs { padding: 100px 0; background: #fff; }
.hp-pub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.hp-pub-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06); border: 1px solid var(--brd); transition: all .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; }

/* Animations */
@keyframes hpFadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hp-hero-content { animation: hpFadeUp .8s ease .2s both; }
.hp-about { animation: none; }
.hp-services { animation: none; }
.hp-pubs { animation: hpFadeUp .8s ease .5s both; }

/* Responsive */
@media(max-width:1024px){
    .hp-about-title { font-size: clamp(1.7rem, 4.8vw, 2.7rem); max-width: 900px; }
    .hp-about-statement.is-long .hp-about-title { font-size: clamp(1.45rem, 3.7vw, 2.1rem); }
    .hp-svc-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-pub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width:768px){
    :root { --hp-section-gap: 56px; }
    .hp-hero { min-height: 430px; padding-bottom: 54px; }
    .hp-hero h1 { font-size: 1.7rem; }
    .hp-hero-content { text-align: left; align-items: flex-start; }
    .hp-about { height: 100vh; min-height: 620px; }
    .hp-about-sticky { height: min(100vh, 470px); min-height: 0; }
    .hp-about-stage { padding: 64px 20px 36px; transform: none; }
    .hp-about-eyebrow { margin-bottom: 36px; font-size: 9px; }
    .hp-about-statements { width: 100%; }
    .hp-about-title { font-size: clamp(1.65rem, 7.8vw, 2.45rem); line-height: 1.16; letter-spacing: -.02em; }
    .hp-about-statement.is-long .hp-about-title { font-size: clamp(1.25rem, 5.7vw, 1.75rem); line-height: 1.2; }
    .hp-about-progress { width: 72vw; margin-top: 26px; }
    .hp-about-scroll-hint { max-width: 30ch; font-size: .74rem; line-height: 1.45; }
    .hp-services { padding: 24px 0 44px; }
    .hp-svc-grid { grid-template-columns: 1fr; }
    .hp-pubs { padding: 56px 0; }
    .hp-pub-grid { grid-template-columns: 1fr; }
    .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; }
}

@media(prefers-reduced-motion:reduce){
    .hp-about-scroll-arrow { animation: none; }
    .hp-services .bento-card.hp-scroll-reveal { opacity: 1; transform: none; transition: none; }
    .hp-about { height: auto; min-height: 0; padding: 80px 0; }
    .hp-about-sticky { position: relative; height: auto; min-height: 0; overflow: visible; }
    .hp-about-stage { min-height: 0; padding-top: 0; }
    .hp-about-statements { display: block; height: auto; }
    .hp-about-statement { position: relative; opacity: 1; transform: none; }
    .hp-about-letter { opacity: 1 !important; }
    .hp-about-progress,.hp-about-scroll-hint { display: none; }
}
