/*
Theme Name: Cagriwire Custom Theme
Theme URI: https://cagriwire.com
Author: Antigravity
Author URI: https://gemini.google.com
Description: Çağrı Wire için özel olarak geliştirilmiş kurumsal gri-lacivert WordPress teması. Filmaşin hammadde, galvanizli bobin tel ve galvanizli tel çubuk ürünlerini ön plana çıkaran modern tasarım.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cagriwire
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #0F1E36;      /* Deep Navy Blue */
    --primary-light: #1E2E4A;      /* Light Navy */
    --secondary-color: #475569;    /* Steel Gray */
    --accent-color: #E2B65C;       /* Metallic Gold/Amber for CTA and active items */
    --accent-hover: #D1A346;
    --bg-light: #F8FAFC;           /* Off-white background */
    --bg-dark: #0A1424;            /* Darker Navy for footer */
    --text-dark: #0F172A;          /* Slate-900 */
    --text-muted: #64748B;         /* Slate-500 */
    --border-color: #E2E8F0;       /* Slate-200 */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --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 and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

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

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

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-dark {
    background-color: var(--primary-color);
    color: #ffffff;
}

.section-dark h2 {
    color: #ffffff;
}

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

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.section-title.left-align::after {
    left: 0;
    transform: none;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.section-dark .section-subtitle {
    color: #94A3B8;
}

/* Header & Navigation */
header {
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info {
    display: flex;
    gap: 20px;
}

.top-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-social {
    display: flex;
    gap: 15px;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 50px;
    object-fit: contain;
}

/* WordPress Menu styling integration */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 5px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 10px 15px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary-color);
    border-radius: 4px;
}

.nav-menu > li > a:hover, 
.nav-menu > li.current-menu-item > a,
.nav-menu > li.active > a {
    color: var(--accent-color);
}

/* Dropdown Menu */
.nav-menu li ul.sub-menu,
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--accent-color);
    list-style: none;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-radius: 0 0 4px 4px;
    z-index: 999;
}

.nav-menu li:hover ul.sub-menu,
.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu li ul.sub-menu li a,
.dropdown-item a {
    display: block;
    padding: 12px 20px;
    font-size: 0.9rem;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.nav-menu li ul.sub-menu li:last-child a,
.dropdown-item:last-child a {
    border-bottom: none;
}

.nav-menu li ul.sub-menu li a:hover,
.dropdown-item a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding-left: 25px;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 8px;
    margin-left: 15px;
    font-size: 0.85rem;
    border-left: 1px solid var(--border-color);
    padding-left: 15px;
}

.lang-btn {
    padding: 3px 6px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 600;
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 4px 12px rgba(226, 182, 92, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: var(--primary-color);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Hero Section */
.hero {
    position: relative;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 140px 0;
    overflow: hidden;
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.hero p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 35px;
}

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

/* Feature Cards / Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleY(1);
}

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

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Product Cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

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

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

.product-card:hover .product-img img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--accent-color);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.product-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.product-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
}

.product-link:hover {
    color: var(--accent-color);
}

/* Info Section (Split Layout) */
.split-section {
    display: flex;
    align-items: center;
    gap: 50px;
}

.split-col {
    flex: 1;
}

.split-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.split-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-color);
    min-width: 80px;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Inner Page Banner */
.page-banner {
    background: linear-gradient(135deg, rgba(15, 30, 54, 0.95) 50%, rgba(71, 85, 105, 0.8) 100%);
    color: #ffffff;
    padding: 60px 0;
    border-bottom: 4px solid var(--accent-color);
}

.page-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-banner h1 {
    color: #ffffff;
    font-size: 2.5rem;
}

.breadcrumbs {
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
    color: #cbd5e1;
}

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

.breadcrumbs span::after {
    content: '/';
    margin-left: 8px;
}

.breadcrumbs span:last-child::after {
    display: none;
}

.breadcrumbs .current {
    color: var(--accent-color);
    font-weight: 500;
}

/* Corporate Tabs */
.tabs-container {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.tabs-menu {
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
}

.tab-btn {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-left: 4px solid transparent;
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
    background-color: #ffffff;
    border-color: var(--border-color);
    border-left-color: var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.tabs-content {
    flex: 1;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-panel h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.tab-panel h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

.tab-panel p {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* Product Detail Modal/Popups */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 30, 54, 0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #ffffff;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: scale(0.9);
    transition: var(--transition);
    max-height: 90vh;
    overflow-y: auto;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 10;
    background: none;
    border: none;
}

.modal-close:hover {
    color: var(--accent-color);
}

.modal-body {
    padding: 40px;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
}

.modal-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
}

.modal-details h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.modal-details .product-desc {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.tech-specs {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.tech-specs th, .tech-specs td {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    font-size: 0.9rem;
}

.tech-specs th {
    font-weight: 600;
    color: var(--primary-color);
    background-color: var(--bg-light);
}

/* Certificates Grid */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.cert-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.cert-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.cert-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.cert-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* Contact Area */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info-list {
    list-style: none;
    margin-top: 30px;
}

.contact-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-info-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.contact-info-text h4 {
    margin-bottom: 5px;
}

.contact-info-text p {
    color: var(--secondary-color);
}

.contact-form-wrapper {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 30, 54, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* E-Catalog section */
.catalog-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #ffffff;
    border-radius: 8px;
    padding: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 6px solid var(--accent-color);
}

.catalog-box-content {
    max-width: 60%;
}

.catalog-box h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.catalog-box p {
    color: #cbd5e1;
}

/* Map area */
.map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background-color: #cbd5e1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Export page styling */
.export-stats {
    display: flex;
    justify-content: space-around;
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 50px;
    border: 1px solid var(--border-color);
}

.export-stat-item {
    text-align: center;
}

.export-stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.export-stat-label {
    color: var(--text-muted);
    font-weight: 600;
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: #94A3B8;
    padding: 80px 0 20px 0;
    border-top: 4px solid var(--accent-color);
}

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

.footer-col h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 45px;
    margin-bottom: 20px;
    object-fit: contain;
}

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

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

.footer-links a {
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

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

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid #1E293B;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

/* Animations and responsive */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    .mobile-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #ffffff;
        flex-direction: column;
        align-items: stretch;
        padding: 30px;
        gap: 15px;
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
        transition: var(--transition);
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-menu.active ~ .mobile-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .nav-menu.active ~ .mobile-toggle span:nth-child(2) {
        opacity: 0;
    }
    .nav-menu.active ~ .mobile-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    .nav-item:hover .dropdown-menu,
    .nav-menu li:hover ul.sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        background-color: var(--bg-light);
        margin-top: 10px;
        padding-left: 15px;
    }
    .lang-switcher {
        margin-left: 0;
        margin-top: 20px;
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-left: 0;
        padding-top: 20px;
        justify-content: center;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .split-section {
        flex-direction: column-reverse;
    }
    .split-image img {
        height: 300px;
    }
    .tabs-container {
        flex-direction: column;
    }
    .tabs-menu {
        flex: auto;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .modal-grid {
        grid-template-columns: 1fr;
    }
    .modal-img img {
        height: 200px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
