/*
  Components: buttons, hero, cards, timeline, certificates, testimonials,
  gallery, FAQ accordion, contact form, WhatsApp FAB, lightbox.
*/

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1rem 1.9rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform var(--dur-fast) var(--ease-premium), background var(--dur-fast) ease, border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
    white-space: nowrap;
}

.btn-gold {
    background: linear-gradient(135deg, var(--c-gold-bright), var(--c-gold));
    color: var(--c-black);
    box-shadow: 0 8px 30px -8px rgba(var(--c-gold-rgb), 0.55);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -6px rgba(var(--c-gold-rgb), 0.7); }

.btn-ghost {
    background: transparent;
    color: var(--c-white);
    border-color: var(--c-border-strong);
}
.btn-ghost:hover { border-color: var(--c-gold); color: var(--c-gold); transform: translateY(-2px); }

.btn-whatsapp {
    background: #1f2a24;
    color: #eafff2;
    border-color: rgba(37, 211, 102, 0.4);
}
.btn-whatsapp:hover { background: #25D366; color: #06210f; border-color: #25D366; transform: translateY(-2px); }
.btn-whatsapp svg { width: 18px; height: 18px; }

/* Placed after the :hover variants so equal-specificity cascade order gives
   the press state priority — otherwise clicking a hovered button (the
   normal way anyone clicks) silently discards this feedback because the
   :hover rule above wins the tie, and the button only ever visibly "snaps"
   on mouse-leave instead of responding to the click itself. */
.btn:active { transform: scale(0.97); }

.btn-block { width: 100%; }
.btn-sm { padding: 0.75rem 1.4rem; font-size: 0.74rem; }

/* Floating WhatsApp button, always accessible */
.whatsapp-fab {
    position: fixed;
    right: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 2rem);
    z-index: 90;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #06210f;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px -6px rgba(37, 211, 102, 0.6);
    animation: fab-pulse 2.8s ease-in-out infinite;
    transition: transform var(--dur-fast) var(--ease-premium);
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 30px; height: 30px; }

@keyframes fab-pulse {
    0%, 100% { box-shadow: 0 10px 30px -6px rgba(37, 211, 102, 0.6); }
    50% { box-shadow: 0 10px 30px -6px rgba(37, 211, 102, 0.95), 0 0 0 10px rgba(37, 211, 102, 0.08); }
}

/* ---------- Hero ---------- */
.hero {
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
    background: var(--c-black);
}
.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 68% center;
    transform: scale(1.08);
    will-change: transform;
}
.hero-media::after {
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(7,8,10,0.55) 0%, rgba(7,8,10,0.35) 35%, rgba(7,8,10,0.92) 92%),
        linear-gradient(90deg, rgba(7,8,10,0.96) 0%, rgba(7,8,10,0.55) 42%, rgba(7,8,10,0.15) 75%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-block: 8rem 5rem;
    width: 100%;
}
.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(3.2rem, 7vw, 5.6rem);
    /* Slightly looser than a "flush" 1:1 line-height so ascenders and dotted
       Turkish capitals (İ) have room — a tighter value clips them against
       the .line mask below. */
    line-height: 1.28;
    letter-spacing: 0.005em;
    margin-top: 1rem;
    max-width: 16ch;
}
/* The mask that hides the slide-up reveal animation; padding-top keeps it
   from clipping ascenders/dots at the very top of the glyph. */
    .hero-title .line { display: block; overflow: hidden; padding-top: 0.14em; margin-top: -0.14em; }
.hero-title .line span { display: inline-block; }
.hero-title .accent { color: var(--c-gold); }

.hero-subtitle {
    margin-top: 1.75rem;
    max-width: 46ch;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    color: var(--c-white-dim);
    line-height: 1.7;
}
.hero-ctas {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-stats {
    margin-top: clamp(3rem, 6vw, 4.5rem);
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: clamp(1.5rem, 4vw, 4rem);
    max-width: fit-content;
}
.hero-stat-value {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--c-gold);
    line-height: 1;
}
.hero-stat-label {
    margin-top: 0.4rem;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-white-dim);
    max-width: 16ch;
}

.scroll-indicator {
    position: absolute;
    bottom: 1.75rem;
    left: var(--gutter);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-white-dim);
}

/*
 * Laptop-height fix: the hero was tuned against wide desktop monitors
 * (~1080px+ tall), but common laptop viewports (1366x768, 1280x800,
 * 1440x900) are wide enough to hit the title's max font-size yet far
 * shorter — the vw-driven spacing above doesn't know about that, so the
 * content stack ends up taller than the viewport and the stats row
 * collides with the scroll indicator. Compact the vertical rhythm (using
 * svh, which *does* track viewport height) and drop the purely decorative
 * scroll indicator whenever height is tight. min-width guards this so
 * phones in portrait (short but narrow) are unaffected.
 */
@media (min-width: 700px) and (max-height: 900px) {
    .hero-content {
        padding-block: clamp(3.25rem, 11svh, 6rem) clamp(2rem, 7svh, 3.5rem);
    }
    .hero-title {
        font-size: clamp(2.6rem, 7.5vw, 5.4rem);
        margin-top: 0.6rem;
    }
    .hero-subtitle {
        margin-top: 1rem;
    }
    .hero-ctas {
        margin-top: 1.5rem;
    }
    .hero-stats {
        margin-top: clamp(1.25rem, 3.5svh, 2.25rem);
    }
    .scroll-indicator {
        display: none;
    }
}
.scroll-indicator .line-wrap {
    width: 1px; height: 40px;
    background: var(--c-border-strong);
    position: relative;
    overflow: hidden;
}
.scroll-indicator .line-wrap::after {
    content: "";
    position: absolute;
    top: -100%; left: 0;
    width: 100%; height: 100%;
    background: var(--c-gold);
    animation: scroll-line 2.2s ease-in-out infinite;
}
@keyframes scroll-line {
    0% { top: -100%; }
    50% { top: 0; }
    100% { top: 100%; }
}

/* ---------- Cards: Why Us / Services ---------- */
.feature-card, .service-card {
    background: var(--c-black-soft);
    border: 1px solid var(--c-border);
    border-radius: 18px;
    padding: 2.2rem 1.9rem;
    transition: border-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-premium), background var(--dur-fast) ease;
}
.feature-card:hover, .service-card:hover {
    border-color: var(--c-gold-dim);
    transform: translateY(-6px);
    background: var(--c-black-elevated);
}
.card-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: rgba(var(--c-gold-rgb), 0.1);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.4rem;
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--c-gold); }
.feature-card h3, .service-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin-bottom: 0.7rem;
}
.feature-card p, .service-card p {
    color: var(--c-white-dim);
    font-size: 0.94rem;
    line-height: 1.65;
}
.service-card { display: flex; flex-direction: column; }
.service-card .btn { margin-top: 1.5rem; align-self: flex-start; }

/* ---------- Achievements timeline ---------- */
.timeline-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: clamp(2rem, 4vw, 2.75rem);
}
.filter-pill {
    border: 1px solid var(--c-border-strong);
    background: transparent;
    color: var(--c-white-dim);
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--dur-fast) ease;
}
.filter-pill:hover { color: var(--c-white); border-color: var(--c-white-dim); }
.filter-pill.is-active { background: var(--c-gold); color: var(--c-black); border-color: var(--c-gold); }

/* Horizontal scroll carousel (swipeable/draggable via native scroll + snap,
   with the same prev/next arrow pattern used by the testimonial slider). */
.timeline-carousel { position: relative; }
.timeline-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 0.9rem;
    padding-top: 0.4rem;
    margin-top: -0.4rem;
    cursor: grab;
}
.timeline-track::-webkit-scrollbar { display: none; }
.timeline-track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
    -webkit-user-select: none;
}

.timeline-item {
    scroll-snap-align: start;
    flex: 0 0 min(300px, 78vw);
}
.timeline-item[hidden] { display: none; }

.timeline-card {
    height: 100%;
    background: var(--c-black-soft);
    border: 1px solid var(--c-border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-premium);
}
.timeline-card:hover { border-color: var(--c-gold-dim); transform: translateY(-4px); }
.timeline-item.is-featured .timeline-card { border-color: var(--c-gold); }
.timeline-card .thumb {
    aspect-ratio: 16/10;
    overflow: hidden;
}
.timeline-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-premium); }
.timeline-card:hover .thumb img { transform: scale(1.06); }
.timeline-card .body { padding: 1.4rem 1.5rem 1.6rem; }
.timeline-year {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--c-gold);
    line-height: 1;
}
.timeline-card h3 {
    font-size: 1.05rem;
    margin-top: 0.5rem;
    color: var(--c-white);
    line-height: 1.3;
}
.timeline-card p {
    margin-top: 0.5rem;
    font-size: 0.88rem;
    color: var(--c-white-dim);
    line-height: 1.55;
}
.badge-cert {
    display: inline-block;
    margin-top: 0.7rem;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-black);
    background: var(--c-gold);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-weight: 700;
}

/* ---------- Certificates ---------- */
.cert-card {
    background: var(--c-black-soft);
    border: 1px solid var(--c-border);
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--dur-fast) var(--ease-premium), border-color var(--dur-fast) ease;
}
.cert-card:hover { transform: translateY(-6px); border-color: var(--c-gold-dim); }
.cert-card .thumb { aspect-ratio: 4/3; background: var(--c-black); overflow: hidden; }
.cert-card .thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s var(--ease-premium); }
.cert-card:hover .thumb img { transform: scale(1.04); }
.cert-card .body { padding: 1.5rem 1.6rem; }
.cert-card h3 { font-size: 1.15rem; color: var(--c-white); }
.cert-card .meta { margin-top: 0.4rem; font-size: 0.82rem; color: var(--c-gold); }
.cert-card .meta + .meta { color: var(--c-white-dim); }
.cert-card .view-tag {
    margin-top: 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-white-dim);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* ---------- Success stories / testimonials slider ---------- */
.testi-slider { position: relative; }
.testi-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    cursor: grab;
}
.testi-track::-webkit-scrollbar { display: none; }
.testi-track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
    -webkit-user-select: none;
}
.testi-card {
    scroll-snap-align: start;
    flex: 0 0 min(420px, 86vw);
    background: var(--c-black-soft);
    border: 1px solid var(--c-border);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}
.testi-media {
    aspect-ratio: 4/3;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1.4rem;
}
.testi-media img { width: 100%; height: 100%; object-fit: cover; }
.testi-result {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--c-gold);
    text-transform: uppercase;
    line-height: 1.15;
}
.testi-quote {
    margin-top: 0.9rem;
    color: var(--c-white-dim);
    font-size: 0.96rem;
    line-height: 1.7;
    flex-grow: 1;
}
.testi-name {
    margin-top: 1.2rem;
    font-size: 0.85rem;
    color: var(--c-white);
    font-weight: 600;
}
.testi-controls { display: flex; gap: 0.75rem; margin-top: 2rem; justify-content: flex-end; }
.testi-arrow {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1px solid var(--c-border-strong);
    background: transparent;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all var(--dur-fast) ease;
}
.testi-arrow:hover { border-color: var(--c-gold); background: rgba(var(--c-gold-rgb), 0.08); }
.testi-arrow svg { width: 18px; height: 18px; stroke: var(--c-white); }

/* ---------- Gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--c-black-soft);
}
.gallery-item img, .gallery-item video {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s var(--ease-premium);
}
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.08); }
.gallery-item::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.75));
    opacity: 0;
    transition: opacity var(--dur-fast) ease;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item .play-icon {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
}
.gallery-item .play-icon svg {
    width: 44px; height: 44px;
    fill: rgba(247,244,236,0.92);
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}
.gallery-item[hidden] { display: none; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; }
.faq-item {
    border-bottom: 1px solid var(--c-border);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 1.6rem;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    text-transform: uppercase;
    color: var(--c-white);
}
.faq-question:hover { color: var(--c-gold); }
.faq-icon {
    flex-shrink: 0;
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 1px solid var(--c-border-strong);
    position: relative;
    transition: transform var(--dur-fast) var(--ease-premium), border-color var(--dur-fast) ease;
}
.faq-icon::before, .faq-icon::after {
    content: "";
    position: absolute;
    background: var(--c-white);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.faq-icon::before { width: 12px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 12px; transition: transform var(--dur-fast) ease; }
.faq-item.is-open .faq-icon { border-color: var(--c-gold); transform: rotate(180deg); }
.faq-item.is-open .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--dur-med) var(--ease-premium);
}
.faq-answer-inner {
    padding-bottom: 1.7rem;
    padding-right: 3rem;
    color: var(--c-white-dim);
    font-size: 0.96rem;
    line-height: 1.7;
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    gap: clamp(2.5rem, 5vw, 5rem);
    grid-template-columns: 1fr;
}
@media (min-width: 980px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; } }

.contact-info-card {
    background: var(--c-black-soft);
    border: 1px solid var(--c-border);
    border-radius: 20px;
    padding: 2.4rem;
}
.contact-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding-block: 1rem;
    border-bottom: 1px solid var(--c-border);
}
.contact-row:last-of-type { border-bottom: none; }
.contact-row svg { width: 20px; height: 20px; stroke: var(--c-gold); flex-shrink: 0; margin-top: 2px; }
.contact-row a, .contact-row span { color: var(--c-white-dim); font-size: 0.95rem; }
.contact-row a:hover { color: var(--c-gold); }
.contact-map {
    margin-top: 1.5rem;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--c-border);
    aspect-ratio: 16/10;
}
.contact-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.4) invert(0.92) contrast(0.9); }

.form-field { margin-bottom: 1.3rem; }
.form-field label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-white-dim);
    margin-bottom: 0.55rem;
}
.form-field input, .form-field textarea, .form-field select {
    width: 100%;
    background: var(--c-black-soft);
    border: 1px solid var(--c-border-strong);
    border-radius: 10px;
    padding: 0.95rem 1.1rem;
    color: var(--c-white);
    transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
    outline: none;
    border-color: var(--c-gold);
    background: var(--c-black-elevated);
}
.form-row-2 { display: grid; gap: 1.3rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }
.form-note {
    font-size: 0.78rem;
    color: var(--c-gray);
    margin-top: 0.9rem;
        padding: 2.4rem;
    box-sizing: border-box;
}
.form-status {
    margin-top: 1rem;
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    display: none;
}
.form-status.is-visible { display: block; }
.form-status.success { background: rgba(37, 211, 102, 0.12); color: #7be6a4; border: 1px solid rgba(37,211,102,0.35); }
.form-status.error { background: rgba(220, 80, 80, 0.12); color: #f0a3a3; border: 1px solid rgba(220,80,80,0.35); }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 4, 5, 0.94);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-fast) ease;
    padding: var(--gutter);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox-content {
    max-width: min(960px, 100%);
    max-height: 88vh;
    position: relative;
    transform: scale(0.96);
    transition: transform var(--dur-fast) var(--ease-premium);
}
.lightbox.is-open .lightbox-content { transform: scale(1); }
.lightbox-content img, .lightbox-content video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    margin-inline: auto;
}
.lightbox-caption {
    text-align: center;
    margin-top: 1rem;
    color: var(--c-white-dim);
    font-size: 0.9rem;
}
.lightbox-close {
    position: absolute;
    top: -50px; right: 0;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--c-border-strong);
    background: rgba(255,255,255,0.03);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.lightbox-close svg { width: 18px; height: 18px; stroke: var(--c-white); }

/* ---------- Sample content badge ---------- */
.sample-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-black);
    background: var(--c-white-dim);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    margin-left: 0.6rem;
    vertical-align: middle;
}
