/* =========================================================
   Petra Oilwell Consulting — Marka stilleri
   Bootstrap 5 üzerine kurulmuştur.
   ========================================================= */

:root {
    --petra-navy: #051b34;
    --petra-navy-hover: #0a2d54;
    --petra-blue: #0f2846;
    --petra-accent: #4a90e2;
    --petra-muted: #666;
    --petra-body-bg: #fcfcfc;
    --petra-soft-bg: #f8fafc;
    --petra-footer-muted: #a0b0c0;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    background-color: var(--petra-body-bg);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
}

a { text-decoration: none; }

/* --------------------------- Navbar --------------------------- */
.petra-navbar {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.petra-navbar .logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.petra-navbar .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.petra-navbar .logo-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--petra-blue);
    letter-spacing: 1px;
}

.petra-navbar .logo-sub {
    font-size: 11px;
    color: var(--petra-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.petra-navbar .nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #444;
    transition: color 0.3s;
}

.petra-navbar .nav-link:hover,
.petra-navbar .nav-link.active {
    color: var(--petra-blue);
    font-weight: 600;
}

/* --------------------------- Butonlar --------------------------- */
.btn-petra {
    background-color: var(--petra-navy);
    color: #fff;
    border: 1px solid var(--petra-navy);
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.3s;
}
.btn-petra:hover {
    background-color: var(--petra-navy-hover);
    color: #fff;
}

.btn-petra-outline {
    background-color: transparent;
    color: #333;
    border: 1px solid #ccc;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
}
.btn-petra-outline:hover {
    background-color: #f5f5f5;
    color: #333;
}

.btn-white {
    background-color: #fff;
    color: var(--petra-navy);
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 0.3s;
}
.btn-white:hover { background-color: #f0f0f0; color: var(--petra-navy); }

/* --------------------------- Ortak başlıklar --------------------------- */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 36px; color: #111; margin-bottom: 15px; }
.section-header p { font-size: 16px; color: var(--petra-muted); max-width: 700px; margin: 0 auto; }

/* --------------------------- Hero (Ana Sayfa) --------------------------- */
.hero {
    background: linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.8)),
                url('../images/hero.jpg') center/cover no-repeat;
    background-color: #e9ecef;
    text-align: center;
    padding: 60px 20px;
    min-height: calc(100vh - 71px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.hero h1 { font-size: 56px; font-weight: 700; color: #111; margin-bottom: 20px; }
.hero .hero-sub { font-size: 20px; font-weight: 500; color: #555; margin-bottom: 20px; }
.hero .hero-lead { font-size: 16px; color: var(--petra-muted); max-width: 600px; margin: 0 auto 40px auto; }
.hero-contact { display: flex; gap: 30px; color: #555; font-weight: 500; font-size: 14px; justify-content: center; flex-wrap: wrap; }
.hero-contact i { color: var(--petra-navy); margin-right: 6px; }

/* --------------------------- Hizmet kartları (Ana Sayfa) --------------------------- */
.services { padding: 100px 0; background-color: #fff; }

.service-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s;
    height: 100%;
}
.service-card:hover { transform: translateY(-5px); }
.service-card h3 { font-size: 20px; margin-bottom: 15px; color: #111; }
.service-card p { font-size: 14px; color: var(--petra-muted); margin-bottom: 0; }

.icon-box {
    width: 50px;
    height: 50px;
    background-color: #f0f4f8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 22px;
    color: var(--petra-navy);
}

/* --------------------------- Neden Biz --------------------------- */
.features { padding: 100px 0; background-color: var(--petra-body-bg); }
.feature-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.02);
    height: 100%;
}
.feature-card .icon-box { margin: 0 auto 20px auto; }
.feature-card h4 { font-size: 16px; margin-bottom: 10px; color: #111; }
.feature-card p { font-size: 13px; color: var(--petra-muted); margin-bottom: 0; }

/* --------------------------- CTA --------------------------- */
.cta-section { padding: 80px 0; text-align: center; background-color: #f4f6f8; }
.cta-section h2 { font-size: 36px; margin-bottom: 15px; color: #111; }
.cta-section p { font-size: 16px; color: var(--petra-muted); margin: 0 auto 30px auto; max-width: 600px; }

.cta-dark { background-color: var(--petra-navy); color: #fff; padding: 80px 20px; text-align: center; }
.cta-dark h2 { font-size: 32px; margin-bottom: 15px; color: #fff; }
.cta-dark p { font-size: 16px; color: var(--petra-footer-muted); margin: 0 auto 30px auto; max-width: 600px; }

/* --------------------------- Sayfa başlığı (degrade) --------------------------- */
.page-header {
    background: linear-gradient(135deg, #051b34 0%, #1a3a5f 100%);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}
.page-header::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: rotate(20deg);
    pointer-events: none;
}
.page-header h1 { font-size: 42px; font-weight: 700; margin-bottom: 15px; position: relative; z-index: 1; }
.page-header p { font-size: 16px; color: #d0e0f0; max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }

/* --------------------------- Hizmet detay kartları --------------------------- */
.services-list { padding: 60px 0; display: flex; flex-direction: column; gap: 40px; max-width: 1000px; margin: 0 auto; }

.service-detail-card {
    display: flex;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    border: 1px solid #eaeaea;
}
.card-image-wrapper {
    flex: 0 0 40%;
    position: relative;
    min-height: 400px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
}
.card-image-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px 20px 20px 20px;
    color: #fff;
}
.card-image-overlay .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 20px;
}
.card-image-overlay h3 { font-size: 22px; font-weight: 600; line-height: 1.3; margin-bottom: 0; }
.card-content { flex: 0 0 60%; padding: 40px; }
.card-content > p { font-size: 15px; color: #555; margin-bottom: 30px; line-height: 1.7; }

/* Accordion (Bootstrap override, marka tonu) */
.service-detail-card .accordion-button {
    background-color: #f4f6f9;
    font-weight: 600;
    font-size: 15px;
    color: #111;
    box-shadow: none;
}
.service-detail-card .accordion-button:not(.collapsed) {
    background-color: #eef2f7;
    color: #111;
}
.service-detail-card .accordion-button:focus { box-shadow: none; border-color: #edf0f5; }
.service-detail-card .accordion-item { border: 1px solid #edf0f5; border-radius: 8px !important; overflow: hidden; margin-bottom: 15px; }
.service-detail-card .accordion-body { background-color: #f4f6f9; }
.service-detail-card .feature-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.service-detail-card .feature-list li { font-size: 14px; color: #555; display: flex; align-items: flex-start; gap: 10px; }
.service-detail-card .feature-list li i { color: var(--petra-accent); margin-top: 3px; }

.bottom-cta {
    max-width: 800px;
    margin: 20px auto 80px auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #eaeaea;
}
.bottom-cta h3 { font-size: 24px; margin-bottom: 10px; color: #111; }
.bottom-cta p { color: var(--petra-muted); margin-bottom: 25px; font-size: 15px; }

/* --------------------------- Hakkımızda --------------------------- */
.about-hero {
    background: linear-gradient(rgba(240, 244, 248, 0.7), rgba(240, 244, 248, 1)),
                url('../images/about-hero.jpg') center/cover no-repeat;
    padding: 120px 20px 80px 20px;
    text-align: center;
}
.about-hero h1 { font-size: 46px; font-weight: 700; color: #111; margin-bottom: 10px; }
.about-hero p { font-size: 18px; color: #555; margin-bottom: 20px; }
.divider { width: 60px; height: 3px; background-color: var(--petra-blue); margin: 0 auto; border-radius: 2px; }

.profile-section { padding: 80px 0; background-color: var(--petra-body-bg); }
.profile-content { max-width: 900px; margin: 0 auto; }
.profile-content p { font-size: 15px; color: #555; line-height: 1.8; margin-bottom: 20px; }
.profile-content strong { color: #111; font-weight: 600; }

.mission-section { padding: 80px 0; background-color: var(--petra-soft-bg); }
.mission-card {
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    height: 100%;
}
.mission-card .icon-circle {
    width: 48px; height: 48px;
    background-color: #f0f4f8;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 15px auto;
    font-size: 20px;
    color: var(--petra-navy);
}
.mission-card h4 { font-size: 16px; color: #111; margin-bottom: 10px; }
.mission-card p { font-size: 13px; color: var(--petra-muted); line-height: 1.5; margin-bottom: 0; }

.expertise-section { padding: 80px 0; background-color: var(--petra-body-bg); }
.expertise-card {
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    height: 100%;
}
.expertise-card .icon-square {
    width: 40px; height: 40px;
    background-color: var(--petra-navy);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    color: #fff;
    font-size: 18px;
}
.expertise-card h4 { font-size: 18px; color: #111; margin-bottom: 15px; }
.expertise-card p { font-size: 14px; color: var(--petra-muted); line-height: 1.6; margin-bottom: 0; }

.values-section {
    padding: 100px 0;
    background: linear-gradient(rgba(244, 246, 248, 0.9), rgba(244, 246, 248, 0.9)),
                url('../images/values-bg.jpg') center/cover fixed;
}
.value-card { background: #fff; border-radius: 12px; padding: 30px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); height: 100%; }
.value-card h4 { font-size: 18px; color: #111; margin-bottom: 10px; }
.value-card p { font-size: 14px; color: var(--petra-muted); margin-bottom: 0; }

/* Scroll animasyonu */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --------------------------- İletişim --------------------------- */
.contact-header { text-align: center; padding: 60px 20px 40px 20px; }
.contact-header h1 { font-size: 40px; font-weight: 700; color: #111; margin-bottom: 15px; }
.contact-header p { font-size: 16px; color: var(--petra-muted); max-width: 600px; margin: 0 auto; }

.contact-container { max-width: 800px; margin: 0 auto 80px auto; }
.section-title { font-size: 24px; color: #111; margin-bottom: 20px; font-weight: 600; }

.info-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}
.info-icon {
    width: 45px; height: 45px;
    background-color: #f0f4f8;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    color: var(--petra-navy);
    flex-shrink: 0;
}
.info-text h4 { font-size: 13px; color: var(--petra-muted); font-weight: 400; margin-bottom: 4px; }
.info-text p { font-size: 15px; color: #111; font-weight: 600; margin-bottom: 0; }

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 30px;
    border: 1px solid #eaeaea;
    background-color: #eee;
}
.map-container iframe { width: 100%; height: 100%; border: none; }

.form-section {
    background: #fcfcfc;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 40px;
    margin-top: 40px;
}
.form-section .form-label { font-size: 14px; color: #111; font-weight: 500; }
.form-section .form-control { padding: 12px 15px; border: 1px solid #dcdcdc; border-radius: 6px; font-size: 14px; }
.form-section .form-control:focus { border-color: var(--petra-navy); box-shadow: none; }
.btn-submit {
    width: 100%;
    background-color: var(--petra-navy);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 0.3s;
}
.btn-submit:hover { background-color: var(--petra-navy-hover); color: #fff; }

/* --------------------------- Footer --------------------------- */
.petra-footer { background-color: var(--petra-navy); color: #fff; padding: 60px 0 20px 0; }
.petra-footer .footer-top { border-bottom: 1px solid #1a324d; }
.footer-logo-img { height: 60px; width: auto; object-fit: contain; background-color: #fff; border-radius: 4px; padding: 2px; }
.footer-brand-title { font-size: 18px; margin-bottom: 2px; color: #fff; }
.footer-brand-sub { font-size: 11px; color: var(--petra-footer-muted); }
.footer-desc { max-width: 300px; color: var(--petra-footer-muted); font-size: 14px; }
.footer-heading { font-size: 16px; font-weight: 600; margin-bottom: 20px; color: #fff; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 15px; color: var(--petra-footer-muted); font-size: 14px; }
.footer-contact-item i { margin-top: 3px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--petra-footer-muted); font-size: 14px; transition: color 0.3s; }
.footer-links a:hover { color: #fff; }
.social-links { display: flex; gap: 12px; margin-top: 20px; }
.social-links a {
    width: 34px; height: 34px;
    background-color: #1a324d;
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    transition: background-color 0.3s;
}
.social-links a:hover { background-color: var(--petra-accent); }
.footer-bottom { padding-top: 20px; color: var(--petra-footer-muted); font-size: 12px; }
.footer-credits { margin-top: 6px; font-size: 11px; opacity: 0.65; }
.footer-credits a { color: inherit; text-decoration: underline; }

/* --------------------------- Responsive --------------------------- */
@media (max-width: 991.98px) {
    .hero h1 { font-size: 40px; }
}
@media (max-width: 767.98px) {
    .hero { min-height: auto; padding: 60px 20px; }
    .hero h1 { font-size: 32px; }
    .service-detail-card { flex-direction: column; }
    .card-image-wrapper { min-height: 250px; flex: auto; }
    .card-content { flex: auto; padding: 25px; }
    .page-header { padding: 50px 20px; }
    .page-header h1 { font-size: 32px; }
    .about-hero h1 { font-size: 36px; }
    .section-header h2 { font-size: 28px; }
    .contact-header h1 { font-size: 32px; }
    .form-section { padding: 25px; }
    .values-section { background-attachment: scroll; }
}
