/*
 * Styles that lived in inline <style> blocks in the legacy HTML.
 *
 * They are collected here rather than repeated in every template: the original
 * duplicated them on every page, so any tweak had to be made in 70 files. The
 * rules themselves are copied verbatim to preserve the design.
 *
 * Loaded last (see functions.php), so it overrides css/style.css.
 */

/* --- Homepage sections authored as blocks -------------------------------
 *
 * The homepage body is edited in the block editor, so these sections are
 * core/columns rather than Bootstrap rows. Bootstrap's .row/.col grid and the
 * block editor's flex columns are different systems; these rules make the
 * block markup render like the original grid so the design survives the move
 * to visual editing.
 *
 * Anything here is presentation only - the block structure is what the
 * customer sees and edits.
 */

/* Stat boxes */
.sixa-stats.wp-block-columns {
    gap: 1.5rem;
}

.sixa-stats .wp-block-column {
    background: #fff;
    border-radius: .3rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175);
    padding: 1rem;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease;
}

.sixa-stats .wp-block-column > * {
    margin-top: 0;
}

.sixa-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px !important;
}

.sixa-stat-icon i {
    font-size: 30px;
}

.sixa-stats h4 {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    margin-bottom: .25rem;
}

.sixa-stats .sixa-stat-label {
    font-size: 16px;
    color: #000;
    margin-bottom: 0;
}

/* About section */
.sixa-about .wp-block-column {
    align-self: center;
}

.sixa-about .sixa-about-eyebrow {
    font-size: calc(1.625rem + 4.5vw);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 0;
}

.sixa-feature {
    border-left: 1px solid #dee2e6;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.sixa-feature:last-child {
    margin-bottom: 0;
}

.sixa-feature i {
    font-size: 3em;
    margin-bottom: 1rem;
    display: block;
}

.sixa-feature h4 {
    margin-bottom: 1rem;
}

@media (min-width: 992px) {
    .sixa-about .sixa-about-eyebrow {
        font-size: 5rem;
    }
}

/* --- References grid ----------------------------------------------------
 * Copied from the inline <style> in legacy/referanslarimiz.html, but scoped.
 *
 * The original wrote bare `img { border-radius; transition }` and
 * `img:hover { transform: scale(1.05) }`, which applied to every image on the
 * page - the header logo and the footer icons included. That was survivable on
 * a standalone HTML file; in a theme those selectors leak into every template.
 * Scoping to the grid keeps the grid itself pixel-identical.
 */
.referanslar-grid .referanslar-col {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
}

.referanslar-grid .referanslar-col img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: transform .3s ease;
}

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

/* --- FAQ block ----------------------------------------------------------
 * The legacy service pages used a hand-written Bootstrap accordion with gold
 * headers. That content now comes from Rank Math's FAQ block, which emits its
 * own flat markup and generates FAQPage schema - the reason it was chosen over
 * a custom field. These rules restyle that markup back to the original look,
 * and faq-accordion.js restores the expand/collapse behaviour.
 *
 * Rank Math's classes are the contract here. If a plugin update changes them,
 * the FAQ will still render and still emit schema - it will just lose this
 * styling, which is a visible but non-breaking failure.
 */
#rank-math-faq .rank-math-list-item {
    border: 1px solid rgba(0, 0, 0, .125);
    margin-bottom: -1px;
    background-color: #fff;
}

#rank-math-faq .rank-math-list-item:first-child {
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
}

#rank-math-faq .rank-math-list-item:last-child {
    border-bottom-left-radius: .25rem;
    border-bottom-right-radius: .25rem;
    margin-bottom: 0;
}

#rank-math-faq .rank-math-question {
    position: relative;
    margin: 0;
    padding: 1rem 3rem 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    transition: background-color .15s ease-in-out;
    user-select: none;
}

#rank-math-faq .rank-math-question:hover {
    background-color: rgba(238, 209, 70, .25);
}

/* Matches the legacy rule: .accordion-button:not(.collapsed) */
#rank-math-faq .rank-math-list-item.is-open > .rank-math-question {
    background-color: #eed146;
}

#rank-math-faq .rank-math-question::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1.25rem;
    width: .75rem;
    height: .75rem;
    margin-top: -.5rem;
    border-right: 2px solid #212529;
    border-bottom: 2px solid #212529;
    transform: rotate(45deg);
    transition: transform .2s ease-in-out;
}

#rank-math-faq .rank-math-list-item.is-open > .rank-math-question::after {
    transform: rotate(-135deg);
}

#rank-math-faq .rank-math-answer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, .125);
}

#rank-math-faq .rank-math-answer > :last-child {
    margin-bottom: 0;
}

/*
 * Collapsed state is applied by JavaScript, never by default: without JS every
 * answer stays visible, so the content is always readable and always crawlable.
 */
#rank-math-faq .rank-math-list-item.is-collapsed > .rank-math-answer {
    display: none;
}

/* --- WhatsApp floating button (was inline in footer.html) ---------------- */
.whatsapp-btn {
    position: fixed;
    bottom: 35px;
    left: 25px;
    background-color: #25D366;
    color: white;
    font-size: 40px;
    width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 9999;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: white;
}

.whatsapp-btn i {
    line-height: 1;
    font-size: 24px;
}

/* --- Form placeholders --------------------------------------------------
 * Marks the spots where the contact and CV forms will be built. Visible on the
 * front end on purpose: a silently missing form is worse than an obvious gap,
 * and it disappears the moment the real form replaces it.
 */
.sixa-form-placeholder {
    border: 1px dashed #c3c4c7;
    border-radius: 4px;
    padding: 1.25rem;
    color: #787c82;
    background: #f6f7f7;
}

/* Honeypot: off-screen rather than display:none, because some bots skip
   anything that is not rendered. Kept out of the accessibility tree by
   aria-hidden on the wrapper. */
.sixa-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --- Form inputs --------------------------------------------------------
 * The legacy markup carried Bootstrap's border-0 on every field, which reads
 * as floating text rather than something to type into - there is no edge to
 * tell the visitor where the field starts.
 *
 * Scoped to the form wrappers so the rest of the site keeps whatever Bootstrap
 * gives it. The focus ring uses the brand colour so keyboard users get the same
 * cue as everyone else.
 */
[id^="sixa-form-"] .form-control,
[id^="sixa-form-"] .form-select {
    border: 1px solid #ced4da;
    border-radius: .375rem;
    background-color: #fff;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

[id^="sixa-form-"] .form-control:hover,
[id^="sixa-form-"] .form-select:hover {
    border-color: #adb5bd;
}

[id^="sixa-form-"] .form-control:focus,
[id^="sixa-form-"] .form-select:focus {
    border-color: #eed146;
    box-shadow: 0 0 0 .25rem rgba(238, 209, 70, .25);
    outline: none;
}

/* Invalid state after the browser has validated, not while still typing. */
[id^="sixa-form-"] .form-control:user-invalid {
    border-color: #dc3545;
}

[id^="sixa-form-"] input[type="file"] {
    padding-top: .75rem;
    padding-bottom: .75rem;
}
