/*
Theme Name: Kayset Premium Theme
Theme URI: https://github.com/metan/kayset
Description: Kayset Mimari Cam ve Cephe Sistemleri için özel olarak tasarlanmış, yüksek performanslı, mobil uyumlu ve premium koyu mod WordPress teması.
Version: 1.1.1
Author: fx8 Studio
Author URI: https://fx8.studio
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kayset
*/

/* ----------------------------------------------------
   1. DESIGN SYSTEM & VARIABLES
---------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@600;700;800&display=swap');

:root {
    --primary: #0d1013;      /* Graphite Black */
    --secondary: #33363b;    /* Dark Steel */
    --accent: #ea770d;       /* Industrial Orange */
    --neutral: #9699a0;      /* Neutral Gray */
    --light: #efeeea;        /* Light Surface */
    --white: #ffffff;
    --black: #050608;
    
    /* Layout Tokens */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
    
    /* Glassmorphism & UI Accents */
    --glass-bg: rgba(13, 16, 19, 0.85);
    --glass-border: rgba(150, 153, 160, 0.15);
    --accent-glow: 0 0 20px rgba(234, 119, 13, 0.35);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary);
    color: var(--light);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--primary);
}
::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--light);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

h3 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 700;
}

p {
    color: var(--neutral);
    margin-bottom: 1.5rem;
}

a {
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Common */
.section {
    padding: 100px 0;
    position: relative;
}

.section-light {
    background-color: var(--secondary);
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
}

.section-header p {
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(234, 119, 13, 0.3);
}

.btn-primary:hover {
    background-color: var(--white);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: var(--accent-glow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--light);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    border-color: var(--accent);
    background-color: rgba(234, 119, 13, 0.05);
    transform: translateY(-2px);
}

/* ----------------------------------------------------
   2. HEADER & NAVIGATION
---------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent;
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    background-color: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrapper a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--light);
    letter-spacing: 0.05em;
}

.logo-wrapper span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item a::after {
    width: 100%;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Hamburger Menu for Mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--light);
    transition: var(--transition);
}

/* ----------------------------------------------------
   3. HERO SECTION
---------------------------------------------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background: linear-gradient(135deg, rgba(13,16,19,0.95) 0%, rgba(51,54,59,0.85) 100%), 
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="%2333363b" stroke-width="0.5"/></svg>');
    background-size: cover, 40px 40px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero-has-bg .hero-grid {
    grid-template-columns: 1fr;
}

.hero-has-bg .hero-content {
    max-width: 680px;
}

.hero-content h1 span {
    color: var(--accent);
    display: block;
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--glass-border);
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(13,16,19,0) 60%, rgba(13,16,19,0.8));
    pointer-events: none;
}

.hero-image-wrapper img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: var(--transition);
}

.hero-image-wrapper:hover img {
    transform: scale(1.05);
}

/* ----------------------------------------------------
   4. SERVICES SECTION
---------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.service-card {
    background-color: var(--secondary);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 35px 25px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
    border-color: rgba(234, 119, 13, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
    display: inline-block;
}

.service-card h3 {
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link:hover {
    color: var(--light);
}

/* ----------------------------------------------------
   5. WHY KAYSET SECTION
---------------------------------------------------- */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.feature-box {
    background-color: rgba(51, 54, 59, 0.4);
    border-radius: 8px;
    padding: 25px;
    border-left: 3px solid var(--accent);
}

.feature-box h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.feature-box p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ----------------------------------------------------
   6. PORTFOLIO & FILTER GRID
---------------------------------------------------- */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    list-style: none;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--secondary);
    border: 1px solid var(--glass-border);
    color: var(--light);
    padding: 8px 20px;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(234, 119, 13, 0.2);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background: var(--secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.portfolio-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    border-color: rgba(234, 119, 13, 0.2);
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.05);
}

.portfolio-info {
    padding: 25px;
}

.portfolio-tag {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
    display: inline-block;
}

.portfolio-info h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.portfolio-info p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ----------------------------------------------------
   7. PROCESS FLOW
---------------------------------------------------- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.process-grid::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    width: 80%;
    height: 2px;
    background-color: var(--secondary);
    z-index: 1;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-num {
    width: 80px;
    height: 80px;
    background-color: var(--secondary);
    border: 3px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
}

.process-step:hover .step-num {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: var(--accent-glow);
    transform: scale(1.05);
}

.process-step h4 {
    margin-bottom: 10px;
}

.process-step p {
    font-size: 0.85rem;
    max-width: 200px;
    margin: 0 auto;
}

/* ----------------------------------------------------
   8. FAQ ACCORDION
---------------------------------------------------- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--secondary);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--accent);
}

.faq-icon {
    font-size: 1.2rem;
    transition: var(--transition);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-answer p {
    padding-bottom: 20px;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-top: 10px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--accent);
}

/* ----------------------------------------------------
   9. CTA & FOOTER
---------------------------------------------------- */
.cta-section {
    background: linear-gradient(rgba(13,16,19,0.9), rgba(13,16,19,0.9)), 
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="%23ea770d" stroke-width="0.1" stroke-opacity="0.2"/></svg>');
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
}

.cta-box h2 {
    margin-bottom: 1.5rem;
}

.cta-box h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.site-footer {
    background-color: var(--black);
    padding: 80px 0 30px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-logo span {
    color: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--neutral);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact p {
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact strong {
    color: var(--light);
}

.footer-map {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    height: 150px;
}

/* ============================================
   CONTACT SECTION — Front Page 2-column grid
   ============================================ */
.contact-grid {
    display: flex;
    flex-direction: row;
    gap: 50px;
    align-items: stretch;
    margin-top: 20px;
}

.contact-info-col {
    flex: 0 0 38%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: rgba(234, 119, 13, 0.1);
    border: 1px solid rgba(234, 119, 13, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-info-item strong {
    display: block;
    color: var(--light);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-info-item p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--neutral);
    line-height: 1.5;
}

.contact-info-item a {
    color: var(--neutral);
    transition: color 0.2s;
}

.contact-info-item a:hover {
    color: var(--accent);
}

.contact-map-col {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    height: 420px;
}

.contact-map-col iframe {
    display: block;
    width: 100%;
    height: 420px;
}

@media (max-width: 900px) {
    .contact-grid {
        flex-direction: column;
        gap: 32px;
    }
    .contact-info-col {
        flex: none;
        width: 100%;
    }
    .contact-map-col {
        height: 260px;
    }
    .contact-map-col iframe {
        height: 260px;
    }
}

/* ============================================ */

.footer-bottom {
    border-top: 1px solid rgba(150, 153, 160, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* ----------------------------------------------------
   10. RESPONSIVE MEDIA QUERIES
---------------------------------------------------- */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content p {
        margin: 0 auto 2.5rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image-wrapper img {
        height: 350px;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .process-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .process-grid::after {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: var(--transition);
        border-top: 1px solid var(--glass-border);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .header-cta .btn {
        display: none; /* Hide on mobile to save space */
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}

/* ----------------------------------------------------
   11. CONTACT PAGE (/iletisim/) — two columns on desktop, stacked below 900px
---------------------------------------------------- */
.contact-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 50px;
    align-items: start;
}

.contact-page-grid p,
.contact-page-grid a {
    overflow-wrap: anywhere;
}

.contact-page-form {
    background-color: var(--primary);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    min-width: 0;
}

@media (max-width: 900px) {
    .contact-page-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
    .contact-page-form {
        padding: 24px 18px;
    }
}

/* Footer credit (kayset_footer_credit()) */
.footer-credit a {
    color: var(--accent);
    font-weight: 600;
}
