/* 
    Ritim Sigorta - Premium Design System
    Focus: Modern, Trustworthy, Vibrant
*/

@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 {
    /* Color Palette - Inspired by Logo */
    --primary: #1a4a7c; /* Deep Navy */
    --primary-light: #2c6eb3;
    --secondary: #12959a; /* Teal */
    --secondary-light: #16b9bf;
    --accent: #f9b115; /* Warning/Action Gold */
    
    --bg-main: #ffffff;
    --bg-soft: #f8fafc;
    --bg-dark: #0f172a;
    
    --text-main: #334155;
    --text-muted: #64748b;
    --text-light: #f1f5f9;
    
    /* Gaps & Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    font-weight: 700;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Layout Components --- */

section {
    padding: 5rem 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 4px 14px 0 rgba(26, 74, 124, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 74, 124, 0.45);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: white;
    box-shadow: 0 4px 14px 0 rgba(18, 149, 154, 0.39);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(18, 149, 154, 0.45);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

/* --- Header & Nav --- */

.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 65px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin-left: auto;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--primary);
    position: relative;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* --- Hero Section --- */

.hero {
    position: relative;
    padding: 8rem 0;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 40%, #f8fafc 70%, #eff9f0 100%);
    overflow: hidden;
}

/* Main large teal glow - top right */
.hero::before {
    content: '';
    position: absolute;
    top: -15%;
    right: -5%;
    width: 55%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(18, 149, 154, 0.12) 0%, rgba(18, 149, 154, 0.04) 50%, transparent 75%);
    z-index: 0;
    pointer-events: none;
}

/* Navy glow - bottom left */
.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 45%;
    height: 70%;
    background: radial-gradient(ellipse at center, rgba(26, 74, 124, 0.08) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* Background Shapes Container */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Floating blob shapes */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    animation: float 8s ease-in-out infinite;
}

.hero-shape-1 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(18,149,154,0.18), transparent 70%);
    top: -80px; right: 15%;
    animation-delay: 0s;
}
.hero-shape-2 {
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(26,74,124,0.14), transparent 70%);
    bottom: 0; left: 5%;
    animation-delay: -3s;
}
.hero-shape-3 {
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(249,177,21,0.12), transparent 70%);
    top: 30%; left: 35%;
    animation-delay: -5s;
}
.hero-shape-4 {
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(18,149,154,0.10), transparent 70%);
    bottom: -60px; right: 5%;
    animation-delay: -2s;
}

/* SVG cityscape */
.hero-svg-city {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50%       { transform: translateY(-20px) scale(1.04); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--secondary);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.quote-widget {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.12);
}

.quote-widget h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(18, 149, 154, 0.1);
}

/* --- Service Detail & FAQ Styles --- */
.service-content-card {
    padding: 3rem;
}

@media (max-width: 992px) {
    .service-content-card {
        padding: 1.5rem;
    }
    .service-actions {
        flex-direction: column;
    }
    .service-actions .btn {
        width: 100%;
        text-align: center;
    }
    .faq-section {
        padding: 1.2rem;
    }
}

.faq-section {
    background: var(--bg-soft);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-top: 2rem;
}

.faq-section h4 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(18,149,154,0.1);
    padding-bottom: 0.5rem;
}

.faq-section p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.faq-section h4:last-of-type + p {
    margin-bottom: 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 0;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: auto;
}

/* --- Partners Carousel --- */

.partners-section {
    background: var(--bg-soft);
    padding: 4rem 0;
}

.partners-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.partners-track-wrapper {
    overflow-x: auto;
    width: 100%;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    scroll-behavior: smooth;
}

.partners-track-wrapper::-webkit-scrollbar {
    display: none;
}

.partners-track {
    display: flex;
    gap: 4rem;
    align-items: center;
    width: max-content;
    padding: 1rem 0;
    animation: scroll 25s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 2rem)); }
}

.partners-track:hover {
    animation-play-state: paused;
}

.partner-logo {
    flex: 0 0 auto;
    height: 65px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    user-select: none;
}

.partner-logo:hover {
    transform: scale(1.18) translateY(-5px);
    filter: drop-shadow(0 10px 15px rgba(18, 149, 154, 0.2));
}

/* --- Contact Floating --- */

.contact-buttons {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 9999;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-lg);
    font-size: 1.5rem;
}

.btn-whatsapp { background-color: #25d366; }
.btn-phone { background-color: var(--primary); }

/* === MOBİL NAV OVERLAY === */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-container {
        position: relative;
    }

    .mobile-nav-toggle {
        display: block;
        z-index: 1002;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 4rem 2rem;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1000;
        margin-left: 0;
        gap: 0;
        /* transform kullanarak kaydır — overflow:hidden ile çakışmaz */
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 0.6rem 0;
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
        letter-spacing: 0.05em;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-content {
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero {
        padding: 4rem 0;
    }

    .logo img {
        height: 50px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Inner Pages Mobile Fixes */
    .inner-hero {
        padding: 3rem 0 !important;
    }

    .inner-hero h1 {
        font-size: 1.8rem !important;
    }

    .sidebar-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .blog-item {
        grid-template-columns: 1fr !important;
    }

    .blog-item img {
        height: 180px !important;
    }

    .blog-item .content {
        padding: 1.5rem !important;
    }

    .blog-detail-img {
        height: 240px !important;
    }

    .blog-detail-title {
        font-size: 1.8rem !important;
    }
}

/* --- Responsive Layouts --- */
.sidebar-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.equal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 992px) {
    .sidebar-layout, .equal-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
}

.blog-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: var(--transition);
}

.blog-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.blog-item .img-wrapper {
    display: block;
    overflow: hidden;
    height: 200px;
}

.blog-item .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.blog-item .content {
    padding: 1.5rem 1.5rem 1.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.inner-hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.inner-hero h1 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.inner-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}
