/* =========================================
   Nida Tercüme | Classic Corporate Theme
   ========================================= */

:root {
    /* Colors - Deep Navy & Gold/Gray Corporate */
    --bg-color: #ffffff;
    --bg-surface: #fdfdfd;
    --bg-alt: #f8f9fa;
    --primary-color: #6a1b1a;
    /* Deep Notary Burgundy/Red */
    --primary-light: #8b2323;
    --secondary-color: #4a5568;
    /* Corporate Gray */
    --accent-color: #bea15c;
    /* Corporate Gold */
    --accent-hover: #a08544;
    --whatsapp-color: #1a8b41;
    /* Serious Green */
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --border-color: #e2e8f0;

    /* Typography */
    --font-heading: 'Merriweather', serif;
    --font-body: 'Open Sans', sans-serif;

    /* Layout */
    --max-width: 1140px;
    --radius-none: 0px;
    --radius-sm: 2px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 600;
    /* Increased from 400 to 600 */
    color: var(--text-primary);
    line-height: 1.7;
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    /* Increased to maximum weight */
    color: var(--primary-color);
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* UI Elements */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

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

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

.btn-secondary:hover {
    background-color: var(--bg-alt);
}

.btn-whatsapp {
    background-color: transparent;
    color: var(--whatsapp-color);
    border: 2px solid var(--whatsapp-color);
    font-size: 16px;
    padding: 13px 33px;
    /* Adjusted padding to account for border */
    transition: all 0.3s ease;
    border-radius: 30px;
}

.btn-whatsapp i {
    margin-right: 10px;
    font-size: 20px;
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-color);
    color: white;
}

/* =========================================
   Top Bar
   ========================================= */
.top-bar {
    background-color: var(--primary-color);
    color: white;
    font-size: 13px;
    padding: 8px 0;
    position: relative;
    z-index: 1001;
    /* Ensure dropdowns overlay the main header */
}

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

.top-info span {
    margin-right: 20px;
}

.top-info i,
.top-contact i {
    color: var(--accent-color);
    margin-right: 5px;
}

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

/* =========================================
   Header
   ========================================= */
.main-header {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

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

.brand-logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-logo span {
    font-family: var(--font-body);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    margin-top: 4px;
}

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

.main-nav a {
    font-size: 14px;
    font-weight: 700;
    /* Increased from 600 to 700 */
    color: var(--text-primary);
    text-transform: uppercase;
}

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

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 26px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
    transition: 0.3s;
}

.mobile-menu-btn:hover {
    color: var(--accent-color);
}

/* =========================================
   Hero Section
   ========================================= */
.corporate-hero {
    background-color: var(--bg-alt);
    padding: 160px 0;
    border-bottom: 1px solid var(--border-color);
}

.hero-inner {
    display: flex;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-text h1 {
    font-size: 46px;
    margin-bottom: 30px;
    line-height: 1.4;
}

.hero-text p {
    font-size: 19px;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

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

.corporate-hero .btn-secondary {
    color: #ffffff;
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

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

/* =========================================
   Section Headers
   ========================================= */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
}

.header-line {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto;
}

.header-line-left {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px 0;
}

.section-header p {
    color: var(--secondary-color);
    font-size: 16px;
    font-style: italic;
    font-family: var(--font-heading);
}

/* =========================================
   Services Section
   ========================================= */
.services-section {
    padding: 80px 0;
    background-color: white;
}

.services-columns {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    flex-wrap: wrap;
    /* Allow wrapping */
}

.service-block {
    flex: 0 0 calc(50% - 15px);
    /* Take up 50% minus half the gap */
    border: 2px solid var(--primary-light);
    padding: 30px 20px;
    text-align: center;
    background-color: var(--bg-surface);
    transition: 0.3s;
    border-radius: 8px;
    /* Added slight radius */
}

.service-block:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-icon {
    font-size: 40px;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.service-block h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.service-block p {
    font-size: 15.5px;
    /* Slight size increase for readability */
    font-weight: 600;
    /* Made slightly thicker */
    color: var(--text-secondary);
}

/* =========================================
   WhatsApp Procedure
   ========================================= */
.document-section {
    padding: 80px 0;
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.doc-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border: 2px solid var(--primary-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    /* Added slight radius */
}

.doc-info h2 {
    font-size: 28px;
}

.doc-info>p {
    margin-bottom: 30px;
    font-size: 16px;
}

.doc-steps {
    list-style: none;
    margin-bottom: 40px;
}

.doc-steps li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px dashed var(--border-color);
}

.doc-steps li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
}

.doc-steps strong {
    display: block;
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.doc-action {
    text-align: center;
    margin-top: 30px;
}

/* =========================================
   About / Trust Section
   ========================================= */
.corporate-about {
    padding: 80px 0;
    background-color: white;
}

.about-grid {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-content {
    flex: 2;
}

.about-content p {
    margin-bottom: 15px;
    font-size: 16px;
}

.trust-indicators {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.trust-item h4 {
    margin: 10px 0 5px 0;
    font-size: 16px;
}

.trust-item i {
    font-size: 24px;
    color: var(--accent-color);
}

.trust-item p {
    font-size: 14.5px;
    font-weight: 600;
    /* Increased weight */
}

.about-stats {
    flex: 1;
    display: flex;
    justify-content: center;
}

.stat-box {
    background-color: var(--primary-color);
    color: white;
    padding: 50px;
    text-align: center;
    border-bottom: 5px solid var(--accent-color);
}

.stat-icon {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.stat-text {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   Customer Reviews
   ========================================= */
.reviews-section {
    padding: 80px 0;
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-color);
}

.reviews-carousel-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.reviews-viewport {
    overflow: hidden;
    width: 100%;
}

.reviews-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.review-slide {
    min-width: calc(100% / 3);
    padding: 0 15px;
}

@media (max-width: 900px) {
    .review-slide {
        min-width: 50%;
    }
}

@media (max-width: 600px) {
    .review-slide {
        min-width: 100%;
    }
}

.carousel-btn {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    flex-shrink: 0;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.carousel-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #cbd5e1;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background-color: var(--primary-color);
    width: 25px;
    border-radius: 5px;
}

.review-card {
    background: white;
    padding: 35px 25px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 8px;
    /* Added slight radius */
}

.review-stars {
    color: #eab308;
    /* Star Gold */
    font-size: 16px;
    margin-bottom: 20px;
}

.review-text {
    font-size: 15px;
    font-style: italic;
    font-weight: 600;
    /* Increased weight */
    color: var(--text-secondary);
    margin-bottom: 25px;
    flex-grow: 1;
    text-align: left;
}

.review-author {
    font-weight: 700;
    color: var(--primary-color);
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    font-family: var(--font-heading);
}

/* =========================================
   Footer
   ========================================= */
.main-footer {
    background-color: #0b111a;
    color: #a0aec0;
}

.footer-top {
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: flex;
    gap: 40px;
    justify-content: space-between;
}

.footer-col {
    flex: 1;
}

.footer-col h3 {
    color: white;
    font-size: 18px;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-line {
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
    margin: 15px 0 20px 0;
}

.brand-col p {
    font-family: var(--font-heading);
    font-style: italic;
}

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

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.contact-details i {
    color: var(--accent-color);
    margin-top: 5px;
}

.footer-map iframe {
    width: 100%;
    height: 150px;
    border: none;
    filter: opacity(0.8);
}

.footer-bottom {
    background-color: #05080d;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}

/* =========================================
   Language Dropdown (Custom)
   ========================================= */
.custom-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.dropdown-btn {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-btn img {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 100px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 4px;
    overflow: hidden;
    top: 100%;
    right: 0;
    margin-top: 5px;
}

.dropdown-content a {
    color: var(--primary-color) !important;
    padding: 10px 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    transition: 0.2s;
}

.dropdown-content a:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.dropdown-content a img {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

.custom-dropdown.active .dropdown-content {
    display: block;
}

[data-lang="ar"] h1,
[data-lang="ar"] h2,
[data-lang="ar"] h3,
[data-lang="ar"] p,
[data-lang="ar"] .review-text,
[data-lang="ar"] .step-desc,
[data-lang="ar"] .step-title,
[data-lang="ar"] li {
    direction: rtl;
    text-align: right;
}

[data-lang="ar"] .top-info,
[data-lang="ar"] .top-contact {
    direction: ltr;
    /* Ensure top bar doesn't flip */
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 900px) {

    .top-bar {
        font-size: 13px;
        padding: 12px 0;
        text-align: center;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 10px;
    }

    .top-info span {
        display: block;
        margin-right: 0;
        margin-bottom: 5px;
    }

    .top-contact {
        justify-content: center;
    }

    .main-header {
        position: relative;
        /* Sabit kalmamasi icin */
        padding: 15px 0;
    }

    .header-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 0 5%;
    }

    .brand-logo {
        align-items: flex-start;
        text-align: left;
        font-size: 20px;
    }

    .brand-logo span {
        font-size: 9px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        width: 100%;
        display: none;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        padding-top: 15px;
        margin-top: 15px;
        border-top: 1px solid var(--border-color);
        gap: 15px;
    }

    .main-nav a {
        font-size: 13px;
    }

    .services-columns,
    .about-grid,
    .footer-grid {
        flex-direction: column;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .doc-wrapper {
        padding: 30px 20px;
    }

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

    .doc-info .header-line-left {
        margin: 15px auto;
    }

    .doc-info>p {
        text-align: left;
        font-style: italic;
        /* Sağa yatık (italik) */
    }

    .doc-steps {
        text-align: left;
    }
}

@media (max-width: 600px) {
    .reviews-carousel-wrapper {
        gap: 10px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .review-card {
        padding: 25px 15px;
    }
}