/* 
 * iTEK Kurumsal - Main Stylesheet
 * Ferah ve Kurumsal Tasarım (Fresh & Spacious Corporate Design)
 */

/* ==========================================================================
   CSS Variables (Colors & Typography)
   ========================================================================== */
:root {
    --primary-color: #c9102e;
    /* Main logo red */
    --secondary-color: #9e0b23;
    /* Darker secondary red */
    --text-color: #334155;
    /* Slate 700 - softer than pure black */
    --heading-color: #0f172a;
    /* Slate 900 */
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    /* Slate 50 - very light grey/blue for sections */
    --border-color: #e2e8f0;
    /* Slate 200 */
    --white: #ffffff;

    --font-main: 'Inter', system-ui, -apple-system, sans-serif;

    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --border-radius: 8px;
    --border-radius-lg: 16px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 600;
}

p {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.section-divider {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin-bottom: 2rem;
    border-radius: 2px;
}

.section-divider.center {
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #9e0b23;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
}

.site-title a {
    color: var(--heading-color);
}

.custom-logo {
    max-height: 60px;
    width: auto;
    display: block;
    border-radius: 4px;
    /* Slight rounding for a sleek look */
}

.site-description {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.main-navigation ul {
    display: flex;
    gap: 30px;
}

.main-navigation a {
    color: var(--heading-color);
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 0;
    position: relative;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, #fce8eb 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--heading-color);
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    color: var(--primary-color);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image-placeholder {
    width: 100%;
    max-width: 500px;
    height: 400px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.hero-image-placeholder::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    bottom: 20px;
    left: 20px;
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius-lg);
    z-index: -1;
}

/* ==========================================================================
   About / Partner Section
   ========================================================================== */
.about-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
}

.about-container {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1.125rem;
}

.about-badges {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.badge-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.badge-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.badge-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.badge-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.badge-card p {
    font-size: 0.9375rem;
    margin-bottom: 0;
    color: #64748b;
}

/* ==========================================================================
   Services Section (Spacious Cards)
   ========================================================================== */
.services-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.service-desc {
    color: #64748b;
    margin-bottom: 20px;
    font-size: 0.9375rem;
}

.service-link {
    font-weight: 600;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.cta-container {
    max-width: 800px;
}

.cta-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-actions .btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
}

.cta-actions .btn-primary:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--heading-color);
    color: #94a3b8;
    padding: var(--spacing-lg) 0 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: var(--spacing-lg);
}

.footer-title {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-about p {
    max-width: 400px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.contact-info-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-info-list i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.partner-badge-small span {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--white);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ==========================================================================
   Logo Showcase Section
   ========================================================================== */
.logo-showcase-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
}

.logo-showcase-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.logo-showcase-image {
    flex: 1;
}

.logo-showcase-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(5deg);
    transition: transform 0.5s ease;
}

.logo-showcase-image:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

.logo-showcase-content {
    flex: 1;
}

.showcase-title {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.showcase-desc {
    font-size: 1.125rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.showcase-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
}

.showcase-features li {
    font-size: 1.05rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.showcase-features i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.showcase-btn {
    padding: 14px 28px;
    font-size: 1.1rem;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 992px) {

    .hero-container,
    .about-container,
    .logo-showcase-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-description {
        margin: 0 auto 2rem;
    }

    .hero-actions {
        justify-content: center;
        margin-bottom: 3rem;
    }

    .section-divider {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about p {
        margin: 0 auto;
    }

    .contact-info-list li,
    .showcase-features li {
        justify-content: center;
    }

    .site-info {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        color: var(--heading-color);
    }

    .header-menu-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: var(--shadow-md);
        padding: 20px;
        border-top: 1px solid var(--border-color);
    }

    .header-menu-container.toggled {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .about-badges {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }
}

/* ==========================================================================
   Page Templates (page.php)
   ========================================================================== */
.page-header-unit {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: var(--spacing-lg) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header-unit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M10 10 L90 90 M90 10 L10 90" stroke="rgba(255,255,255,0.05)" stroke-width="2"/></svg>') repeat;
    opacity: 0.5;
}

.page-header-unit .page-title {
    color: var(--white);
    font-size: 3rem;
    margin: 0;
    position: relative;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-container {
    padding: var(--spacing-xl) 0;
}

.page-layout-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 50px;
}

.page-content-area {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.page-content-area h2 {
    color: var(--primary-color);
    margin-top: 2rem;
}

/* Sidebar Styling */
.sidebar-widget {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.subpage-nav li {
    margin-bottom: 10px;
}

.subpage-nav a {
    display: block;
    padding: 10px 15px;
    background: var(--white);
    border-radius: var(--border-radius);
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.subpage-nav a:hover,
.subpage-nav .current_page_item>a {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-color);
}

/* More Visual Tweaks */
.main-navigation a.current-menu-item {
    color: var(--primary-color);
}

.main-navigation a.current-menu-item::after {
    width: 100%;
}

@media (max-width: 992px) {
    .page-layout-grid {
        grid-template-columns: 1fr;
    }
}