/* ============================================
   Güven Noterliği - Professional Notary Styles
   Color Scheme: Navy #1B2A4A / Gold #B8860B
   ============================================ */

/* Base & Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.heading-font {
    font-family: 'Playfair Display', 'Georgia', serif;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: #B8860B;
    color: #ffffff;
}

::-moz-selection {
    background-color: #B8860B;
    color: #ffffff;
}

/* Hero Section Gradient */
.hero-gradient {
    background: linear-gradient(135deg, #1B2A4A 0%, #2a3f6e 50%, #1B2A4A 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-gradient > * {
    position: relative;
    z-index: 1;
}

/* Gold Divider Line */
.gold-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #B8860B, #d4a528);
    border-radius: 2px;
}

.gold-divider-center {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #B8860B, #d4a528);
    border-radius: 2px;
    margin-left: auto;
    margin-right: auto;
}

/* Service Cards */
.service-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1B2A4A, #B8860B);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(27, 42, 74, 0.12);
    border-color: #B8860B;
}

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

/* Stat Counter Cards */
.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Document Cards */
.doc-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.doc-card:hover {
    box-shadow: 0 8px 30px rgba(27, 42, 74, 0.1);
    border-color: rgba(184, 134, 11, 0.3);
}

/* FAQ Accordion */
.faq-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.faq-item.active {
    border-color: #B8860B;
    box-shadow: 0 4px 20px rgba(184, 134, 11, 0.1);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: #1B2A4A;
    transition: background-color 0.2s ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.faq-question:hover {
    background-color: #f9fafb;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 1.5rem;
}

.faq-answer.open {
    max-height: 500px;
    padding: 0 1.5rem 1.25rem;
}

.faq-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Price Table */
.price-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.price-table thead th {
    background: #1B2A4A;
    color: #ffffff;
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.price-table tbody td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.9375rem;
}

.price-table tbody tr:last-child td {
    border-bottom: none;
}

.price-table tbody tr:hover {
    background-color: #fdf8eb;
}

.price-table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.price-table tbody tr:nth-child(even):hover {
    background-color: #fdf8eb;
}

/* Contact Form Styles */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: #B8860B;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1B2A4A;
    margin-bottom: 0.5rem;
}

/* Button Styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background-color: #B8860B;
    color: #ffffff;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
}

.btn-primary:hover {
    background-color: #a3760a;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background-color: #1B2A4A;
    color: #ffffff;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
}

.btn-secondary:hover {
    background-color: #2a3f6e;
    box-shadow: 0 4px 15px rgba(27, 42, 74, 0.3);
    transform: translateY(-1px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background-color: transparent;
    color: #1B2A4A;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid #1B2A4A;
    cursor: pointer;
    font-size: 0.9375rem;
}

.btn-outline:hover {
    background-color: #1B2A4A;
    color: #ffffff;
}

/* Page Header Banner */
.page-header {
    background: linear-gradient(135deg, #1B2A4A 0%, #2a3f6e 100%);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #B8860B, #d4a528, #B8860B);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #B8860B;
}

.breadcrumb .separator {
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumb .current {
    color: #B8860B;
    font-weight: 500;
}

/* Team Member Cards */
.team-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-card:hover {
    box-shadow: 0 12px 40px rgba(27, 42, 74, 0.12);
    transform: translateY(-4px);
}

/* Timeline */
.timeline-item {
    position: relative;
    padding-left: 2.5rem;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
    bottom: 0;
    width: 2px;
    background-color: #e5e7eb;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background-color: #B8860B;
    border: 3px solid #fdf8eb;
}

/* Calculator Card */
.calc-card {
    background: linear-gradient(135deg, #1B2A4A, #2a3f6e);
    border-radius: 16px;
    padding: 2rem;
    color: #ffffff;
}

.calc-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.9375rem;
}

.calc-input:focus {
    outline: none;
    border-color: #B8860B;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.2);
}

.calc-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(184, 134, 11, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(184, 134, 11, 0);
    }
}

.pulse-gold {
    animation: pulse-gold 2s infinite;
}

/* Print Styles */
@media print {
    nav, footer, #scroll-top, .no-print {
        display: none !important;
    }

    body {
        background: #ffffff;
        color: #000000;
    }

    .page-header {
        background: #ffffff;
        color: #000000;
        border-bottom: 2px solid #000000;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1B2A4A;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2a3f6e;
}

/* ============================================
   Responsive Overflow & Text Protection
   ============================================ */

/* Prevent horizontal overflow */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Break long words/URLs to prevent overflow */
body {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

p, li, td, th, span, a, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive tables */
table {
    max-width: 100%;
}

.table-responsive-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

/* Prevent pre/code blocks from overflowing */
pre, code {
    overflow-x: auto;
    max-width: 100%;
    white-space: pre-wrap;
    word-wrap: break-word;
}

