/*
Theme Name: Kitapsinas
Theme URI: https://www.kitapsinas.com.tr/
Author: Kitapsinas
Description: Kitapsinas sosyal sorumluluk projesi icin hafif, modern ve Elementor bagimsiz WordPress temasi.
Version: 0.5.2
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: kitapsinas
*/


/* ==========================================
   1. HOME PROJECT CARDS
   ========================================== */

.ks-home-projects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.ks-home-project {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 26px;
    background: #F9F0EF;
    border-radius: 16px;
    box-sizing: border-box;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.ks-home-project:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(64, 82, 111, 0.10);
}

.ks-home-project-status {
    display: inline-block;
    align-self: flex-start;
    color: #527A65;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    line-height: 1.5;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.ks-home-project-status.ks-planned {
    color: #A36A4B;
}

.ks-home-project h3 {
    color: #40526F;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 14px;
}

.ks-home-project p {
    color: #40526F;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    margin: 0 0 20px;
}

.ks-home-project a {
    display: inline-block;
    align-self: flex-start;
    margin-top: auto;
    color: #40526F;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.ks-home-project a:hover {
    color: #C88D6C;
    border-bottom-color: #C88D6C;
}

.ks-home-project a:focus-visible {
    outline: 3px solid #C88D6C;
    outline-offset: 4px;
}


/* ==========================================
   2. ABOUT PAGE WIDTH
   ========================================== */

.page-main .container.ks-about-container {
    width: calc(100% - 48px);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.ks-about-container .ks-about-article {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.ks-about-container .ks-about {
    width: 100%;
    max-width: none;
}


/* ==========================================
   3. GALLERY PAGE WIDTH
   ========================================== */

.ks-gallery-page .container {
    width: calc(100% - 48px);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.ks-gallery-page .gallery-content,
.ks-gallery-page .ks-gallery {
    width: 100%;
    max-width: none;
}


/* ==========================================
   4. PROJECTS PAGE WIDTH
   ========================================== */

.ks-projects-page .container {
    width: calc(100% - 48px);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.ks-projects-page .projects-content,
.ks-projects-page .ks-projects {
    display: block;
    width: 100%;
    max-width: none;
}


/* ==========================================
   5. HEADER AND LOGO
   ========================================== */

.site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 112px;
}

.site-header .brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    line-height: 0;
}

.site-header .brand-logo {
    display: block;
    width: auto;
    height: 90px;
    max-width: 110px;
    object-fit: contain;
}


/* ==========================================
   6. NEW HOME HERO IMAGE
   ========================================== */

.hero-grid .ks-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-width: 0;

    background: transparent;

    padding: 0;
    margin: 0;
}

.hero-grid .ks-hero-image {
    display: block;

    width: 100%;
    max-width: 560px;
    height: auto;

    object-fit: contain;

    border-radius: 28px;

    box-shadow: none;
}

/* Image stays inside the hero grid */
.hero-grid .ks-hero-visual img {
    max-inline-size: 100%;
}


/* ==========================================
   7. LARGE SCREENS
   ========================================== */

@media (min-width: 1400px) {

    .page-main .container.ks-about-container,
    .ks-gallery-page .container,
    .ks-projects-page .container {
        max-width: 1240px;
    }

}


/* ==========================================
   8. TABLET
   ========================================== */

@media (max-width: 900px) {

    /* Home projects */

    .ks-home-projects {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Page widths */

    .page-main .container.ks-about-container,
    .ks-gallery-page .container,
    .ks-projects-page .container {
        width: calc(100% - 36px);
    }

    /* Header */

    .site-header .header-inner {
        min-height: 100px;
        gap: 18px;
    }

    .site-header .brand-logo {
        height: 80px;
        max-width: 100px;
    }

    /* Hero image */

    .hero-grid .ks-hero-image {
        max-width: 500px;
    }

}


/* ==========================================
   9. MOBILE
   ========================================== */

@media (max-width: 600px) {

    /* Home projects */

    .ks-home-projects {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .ks-home-project {
        padding: 22px;
    }

    .ks-home-project h3 {
        font-size: 19px;
    }

    .ks-home-project p {
        font-size: 14px;
    }

    /* Page widths */

    .page-main .container.ks-about-container,
    .ks-gallery-page .container,
    .ks-projects-page .container {
        width: calc(100% - 28px);
    }

    /* Header */

    .site-header .header-inner {
        min-height: 86px;
        gap: 12px;
    }

    .site-header .brand-logo {
        height: 70px;
        max-width: 85px;
    }

    /* Hero image */

    .hero-grid .ks-hero-visual {
        width: 100%;
        margin: 18px auto 0;
    }

    .hero-grid .ks-hero-image {
        width: 100%;
        max-width: 460px;
        height: auto;
        border-radius: 18px;
    }

}


/* ==========================================
   10. ACCESSIBILITY
   ========================================== */

@media (prefers-reduced-motion: reduce) {

    .ks-home-project {
        transition: none;
    }

    .ks-home-project:hover {
        transform: none;
    }

}


/* ==========================================
   KITAPSINAS - CONTACT PAGE V0.5.2
   ========================================== */

.ks-contact-page > .container {
    width: calc(100% - 48px);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.ks-contact {
    --ksc-navy: #40526F;
    --ksc-cream: #F9F0EF;
    --ksc-copper: #C88D6C;
    color: var(--ksc-navy);
}

.ks-contact *,
.ks-contact *::before,
.ks-contact *::after {
    box-sizing: border-box;
}

.ks-contact .ksc-eyebrow {
    display: block;
    color: var(--ksc-copper);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* HERO */

.ks-contact .ksc-hero {
    background: var(--ksc-navy);
    color: #FFFFFF;
    padding: 36px 32px;
    border-radius: 20px;
    margin-bottom: 40px;
}

.ks-contact .ksc-hero h1 {
    color: #FFFFFF;
    font-size: clamp(29px, 3.5vw, 40px);
    line-height: 1.2;
    margin: 0 0 16px;
}

.ks-contact .ksc-hero p {
    max-width: 760px;
    color: #E6E9EF;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

/* SECTION HEADER */

.ks-contact .ksc-section {
    margin-bottom: 40px;
}

.ks-contact .ksc-section-heading {
    margin-bottom: 25px;
}

.ks-contact .ksc-section-heading h2 {
    color: var(--ksc-navy);
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.25;
    margin: 0 0 12px;
}

.ks-contact .ksc-section-heading p {
    color: #718097;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* CARDS */

.ks-contact .ksc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
}

.ks-contact .ksc-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 27px;
    background: #FFFFFF;
    border: 1px solid #E4E6EB;
    border-radius: 17px;
    box-shadow: 0 5px 20px rgba(64,82,111,0.06);
}

.ks-contact .ksc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: var(--ksc-cream);
    color: var(--ksc-navy);
    font-size: 25px;
    margin-bottom: 20px;
}

/* Icons including Instagram SVG */
.ks-contact .ksc-icon svg {
    display: block;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
}

.ks-contact .ksc-card-label {
    color: var(--ksc-copper);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.ks-contact .ksc-card h3 {
    color: var(--ksc-navy);
    font-size: 20px;
    line-height: 1.35;
    margin: 0 0 12px;
}

.ks-contact .ksc-card p {
    color: #718097;
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 22px;
}

.ks-contact .ksc-card a {
    align-self: flex-start;
    margin-top: auto;
    color: var(--ksc-navy);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    overflow-wrap: anywhere;
    text-decoration: none;
    border-bottom: 1px solid var(--ksc-copper);
}

.ks-contact .ksc-card a:hover {
    color: #A96C4E;
}

/* COOPERATION */

.ks-contact .ksc-cooperation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 30px;
    margin-bottom: 35px;
    border-radius: 17px;
    background: var(--ksc-cream);
}

.ks-contact .ksc-cooperation > div {
    max-width: 680px;
}

.ks-contact .ksc-cooperation h2 {
    color: var(--ksc-navy);
    font-size: 26px;
    margin: 0 0 12px;
}

.ks-contact .ksc-cooperation p {
    color: #607089;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

.ks-contact .ksc-button {
    display: inline-block;
    flex-shrink: 0;
    background: var(--ksc-navy);
    color: #FFFFFF;
    padding: 15px 22px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.ks-contact .ksc-button:hover {
    background: #526788;
}

/* CLOSING */

.ks-contact .ksc-closing {
    background: var(--ksc-navy);
    border-radius: 20px;
    padding: 40px 25px;
    text-align: center;
}

.ks-contact .ksc-closing h2 {
    color: #FFFFFF;
    font-size: clamp(26px, 3.5vw, 37px);
    line-height: 1.25;
    margin: 0 0 22px;
}

.ks-contact .ksc-closing a {
    display: inline-block;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid var(--ksc-copper);
    padding-bottom: 5px;
}

.ks-contact a:focus-visible {
    outline: 3px solid var(--ksc-copper);
    outline-offset: 4px;
}

/* LARGE SCREENS */

@media (min-width: 1400px) {
    .ks-contact-page > .container {
        max-width: 1240px;
    }
}

/* TABLET */

@media (max-width: 900px) {
    .ks-contact-page > .container {
        width: calc(100% - 36px);
    }

    .ks-contact .ksc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ks-contact .ksc-cooperation {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .ks-contact-page > .container {
        width: calc(100% - 28px);
    }

    .ks-contact .ksc-hero {
        padding: 28px 22px;
        border-radius: 16px;
    }

    .ks-contact .ksc-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .ks-contact .ksc-card {
        padding: 22px;
    }

    .ks-contact .ksc-cooperation {
        padding: 23px;
    }

    .ks-contact .ksc-button {
        width: 100%;
    }

    .ks-contact .ksc-closing {
        padding: 34px 20px;
        border-radius: 16px;
    }
}


/* ==========================================
   KITAPSINAS - FOOTER LINKS & INSTAGRAM
   Works with footer.php Version 0.5.1
   ========================================== */

.site-footer .ks-footer-instagram,
.site-footer .ks-instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: inherit;
    text-decoration: none;
}

.site-footer .ks-footer-instagram svg,
.site-footer .ks-instagram-icon {
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
}

.site-footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.site-footer .ks-footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.site-footer .ks-footer-links a {
    color: inherit;
    font-size: inherit;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.site-footer .ks-footer-separator {
    opacity: 0.65;
}

.site-footer .ks-footer-links a:hover,
.site-footer .ks-footer-instagram:hover,
.site-footer .ks-instagram-link:hover {
    color: #E7B497;
}

@media (max-width: 600px) {
    .site-footer .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer .ks-footer-links {
        justify-content: flex-start;
        gap: 8px;
    }
}


/* ==========================================
   KITAPSINAS - PRIVACY POLICY
   ========================================== */

.ks-privacy-page > .container {
    width: calc(100% - 48px);
    max-width: 1200px;
    margin: 0 auto;
}

.ks-privacy {
    color: #40526F;
}

.ks-privacy *,
.ks-privacy *::before,
.ks-privacy *::after {
    box-sizing: border-box;
}

.ks-privacy .ksp-hero {
    background: #40526F;
    color: #FFFFFF;
    padding: 36px 32px;
    border-radius: 20px;
    margin-bottom: 36px;
}

.ks-privacy .ksp-eyebrow {
    display: block;
    color: #C88D6C;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.ks-privacy .ksp-hero h1 {
    color: #FFFFFF;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.2;
    margin: 0 0 14px;
}

.ks-privacy .ksp-hero p {
    max-width: 760px;
    color: #E6E9EF;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

.ks-privacy .ksp-layout {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.ks-privacy .ksp-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 25px;
    background: #F9F0EF;
    border-radius: 16px;
}

.ks-privacy .ksp-sidebar strong {
    margin-bottom: 8px;
}

.ks-privacy .ksp-sidebar a {
    color: #40526F;
    text-decoration: none;
    font-size: 13px;
}

.ks-privacy .ksp-sidebar a:hover {
    text-decoration: underline;
}

.ks-privacy .ksp-article {
    min-width: 0;
}

.ks-privacy .ksp-article section {
    padding: 24px 0;
    border-bottom: 1px solid #E5E8ED;
    scroll-margin-top: 100px;
}

.ks-privacy .ksp-article section:first-child {
    padding-top: 0;
}

.ks-privacy .ksp-article h2 {
    color: #40526F;
    font-size: 22px;
    line-height: 1.3;
    margin: 0 0 14px;
}

.ks-privacy .ksp-article p {
    color: #607089;
    font-size: 14px;
    line-height: 1.9;
    margin: 0 0 15px;
}

.ks-privacy .ksp-article a {
    color: #40526F;
    font-weight: 700;
    overflow-wrap: anywhere;
}

@media (min-width: 1400px) {
    .ks-privacy-page > .container {
        max-width: 1240px;
    }
}

@media (max-width: 900px) {
    .ks-privacy-page > .container {
        width: calc(100% - 36px);
    }

    .ks-privacy .ksp-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .ks-privacy .ksp-sidebar {
        position: static;
    }
}

@media (max-width: 600px) {
    .ks-privacy-page > .container {
        width: calc(100% - 28px);
    }

    .ks-privacy .ksp-hero {
        padding: 28px 22px;
        border-radius: 16px;
    }

    .ks-privacy .ksp-sidebar {
        padding: 20px;
    }

    .ks-privacy .ksp-article h2 {
        font-size: 20px;
    }
}


/* ==========================================
   KITAPSINAS - MOBILE PROJECT FIX
   Version: 0.5.3
   ========================================== */

@media screen and (max-width: 767px) {

    .section-projects .ks-home-projects {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 18px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .section-projects .ks-home-project {
        display: flex;
        flex-direction: column;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding: 22px;
        box-sizing: border-box;
        overflow-wrap: break-word;
    }

    .section-projects .ks-home-project h3 {
        font-size: 20px;
        line-height: 1.4;
        word-break: normal;
    }

    .section-projects .ks-home-project p {
        font-size: 14px;
        line-height: 1.75;
        word-break: normal;
    }

    .section-projects .section-head {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

}
