/* ============================================================
   Oto Huzur - Genel Site Stili
   ============================================================ */

:root {
    --red: #e2231a;
    --red-dark: #b81811;
    --red-light: #fdeceb;
    --black: #1a1a1a;
    --black-soft: #2b2b2b;
    --gray-900: #1f2328;
    --gray-700: #4b5561;
    --gray-500: #7a8794;
    --gray-200: #e7eaee;
    --gray-100: #f4f6f8;
    --white: #ffffff;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 10px 30px rgba(20, 20, 20, 0.08);
    --shadow-strong: 0 18px 40px rgba(20, 20, 20, 0.16);
    --font: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.25; color: var(--black); }
p { margin: 0 0 1em; color: var(--gray-700); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    display: inline-block;
    color: var(--red);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--white); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: transparent; border-color: var(--black); color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-light { background: var(--white); color: var(--red); }
.btn-light:hover { background: var(--gray-100); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-danger { background: var(--white); color: var(--red); border-color: var(--red-light); }
.btn-danger:hover { background: var(--red); color: var(--white); }

/* ---- Header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--gray-200);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 24px;
}
.brand-logo { height: 58px; width: auto; }

.main-nav ul { display: flex; align-items: center; gap: 6px; }
.main-nav > ul > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    font-weight: 600;
    color: var(--gray-900);
    border-radius: 999px;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.main-nav > ul > li > a:hover { background: var(--red-light); color: var(--red); }
.chevron { font-size: 0.7em; }

.has-dropdown { position: relative; }
.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-strong);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown li a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    font-weight: 500;
    color: var(--gray-900);
}
.dropdown li a:hover { background: var(--red-light); color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.btn-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--red);
    padding: 10px 18px;
    border: 2px solid var(--red);
    border-radius: 999px;
    white-space: nowrap;
}
.btn-call:hover { background: var(--red); color: var(--white); }
.btn-call-icon { font-size: 1.1em; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--black); border-radius: 3px; }

/* ---- Hero ---- */
.hero {
    background-color: var(--black);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 90px 0;
    overflow: hidden;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 48px;
}
.hero-text h1 { color: var(--white); font-size: 2.7rem; margin-bottom: 0.4em; }
.hero-text h1 span { color: var(--red); }
.hero-text p { color: rgba(255,255,255,0.82); font-size: 1.05rem; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.hero .btn-outline { border-color: var(--white); color: var(--white); }
.hero .btn-outline:hover { background: var(--white); color: var(--black); }
.hero-media { display: flex; justify-content: center; }
.hero-logo {
    max-width: 340px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.45));
}

/* ---- Sections ---- */
.section { padding: 90px 0; }
.section-alt { background: var(--gray-100); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: 2rem; }
.section-cta { text-align: center; margin-top: 40px; }

.grid { display: grid; gap: 24px; }
.grid-departments { grid-template-columns: repeat(3, 1fr); }
.grid-services { grid-template-columns: repeat(3, 1fr); }

.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-strong); border-color: transparent; }
.card-icon {
    width: 66px;
    height: 66px;
    border-radius: 18px;
    background: var(--red-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.card-icon img { width: 36px; height: 36px; object-fit: contain; }
.card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.card p { font-size: 0.92rem; margin-bottom: 10px; flex-grow: 1; }
.card-link { color: var(--red); font-weight: 700; font-size: 0.9rem; }

/* ---- About ---- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.about-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.about-list { margin: 18px 0; }
.about-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    color: var(--gray-700);
}
.about-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--red);
}

/* ---- CTA banner ---- */
.cta-banner {
    background-color: var(--red-dark);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
}
.cta-banner-inner {
    padding: 56px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 6px; font-size: 1.6rem; }
.cta-banner p { color: rgba(255,255,255,0.9); margin: 0; }

/* ---- Page hero (inner pages) ---- */
.page-hero {
    background: var(--gray-100);
    padding: 56px 0;
    border-bottom: 1px solid var(--gray-200);
}
.page-hero-photo {
    background-color: var(--black);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: none;
    color: var(--white);
}
.page-hero-photo h1 { color: var(--white); }
.page-hero-photo p { color: rgba(255,255,255,0.85); }
.page-hero-photo .eyebrow { color: #ffb3ae; }
.page-hero-photo .page-hero-icon { background: rgba(255,255,255,0.95); }
.page-hero-inner { display: flex; align-items: center; gap: 28px; }
.page-hero-icon {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-hero-icon img { width: 50px; height: 50px; object-fit: contain; }
.page-hero h1 { font-size: 2rem; margin-bottom: 6px; }
.page-hero p { margin: 0; max-width: 640px; }
.page-hero-simple p { max-width: 640px; }

/* ---- Detail layout (bolum/hizmet) ---- */
.detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.detail-content h2 { font-size: 1.4rem; }
.detail-cover-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 28px; }
.detail-cover-photo img { width: 100%; max-height: 380px; object-fit: cover; display: block; }
.related-block { margin: 32px 0; }
.related-block h3 { font-size: 1.1rem; }
.related-list { display: flex; flex-wrap: wrap; gap: 12px; }
.related-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gray-100);
    border-radius: 999px;
    padding: 8px 16px 8px 8px;
    font-weight: 600;
    transition: background-color 0.15s ease;
}
.related-item img { width: 32px; height: 32px; object-fit: contain; }
.related-item:hover { background: var(--red-light); color: var(--red); }

.contact-box {
    background: var(--gray-900);
    color: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    margin-top: 32px;
}
.contact-box h3 { color: var(--white); }
.contact-box p { color: rgba(255,255,255,0.75); }
.contact-box-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.contact-box .btn-outline { border-color: rgba(255,255,255,0.5); color: var(--white); }
.contact-box .btn-outline:hover { background: var(--white); color: var(--black); }

.detail-sidebar {
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 22px;
    position: sticky;
    top: 100px;
}
.detail-sidebar h3 { font-size: 1rem; }
.sidebar-list li { margin-bottom: 4px; }
.sidebar-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.92rem;
}
.sidebar-list li a img { width: 24px; height: 24px; object-fit: contain; }
.sidebar-list li a:hover, .sidebar-list li.active a { background: var(--red-light); color: var(--red); }

/* ---- Contact page ---- */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.contact-form-wrap, .contact-info-box {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 32px;
}
.contact-info-box + .contact-info-box { margin-top: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--white);
    color: var(--gray-900);
    transition: border-color 0.15s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--red);
}
.form-check label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

.footer-contact li { margin-bottom: 8px; color: var(--gray-700); }
.footer-contact .label { font-weight: 700; color: var(--black); margin-right: 4px; }
.dept-email-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--gray-200);
    font-size: 0.9rem;
}
.dept-email-list li a { color: var(--red); font-weight: 600; }

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 600;
}
.alert-success { background: #e7f7ec; color: #1a7a3d; }
.alert-error { background: var(--red-light); color: var(--red-dark); }

/* ---- Footer ---- */
.site-footer { background: var(--gray-900); color: rgba(255,255,255,0.8); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-logo { height: 48px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-about p { color: rgba(255,255,255,0.65); }
.footer-social { display: flex; gap: 14px; margin-top: 10px; }
.footer-social a { font-weight: 600; color: var(--red); }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.72); }
.footer-col ul li a:hover { color: var(--white); }
.site-footer .footer-contact .label { color: rgba(255,255,255,0.5); }
.site-footer .footer-contact li { color: rgba(255,255,255,0.75); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; }
.footer-bottom p { margin: 0; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* ---- Responsive ---- */
@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .about-grid { grid-template-columns: 1fr; }
    .detail-layout { grid-template-columns: 1fr; }
    .detail-sidebar { position: static; }
    .contact-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .main-nav {
        position: fixed;
        inset: 72px 16px auto 16px;
        background: var(--white);
        border-radius: var(--radius);
        box-shadow: var(--shadow-strong);
        padding: 12px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.25s ease, opacity 0.2s ease;
    }
    .main-nav.open { max-height: 80vh; opacity: 1; pointer-events: auto; overflow-y: auto; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .main-nav > ul > li > a { width: 100%; }
    .dropdown { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; padding-left: 12px; }
    .has-dropdown.open .dropdown { display: block; }
    .nav-toggle { display: flex; }
    .btn-call span.btn-call-icon { margin: 0; }
    .btn-call { padding: 10px 12px; }
}

@media (max-width: 720px) {
    .grid-departments, .grid-services { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .page-hero-inner { flex-direction: column; text-align: center; }
    .cta-banner-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .grid-departments, .grid-services { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 2.1rem; }
    .btn-call span:last-child { display: none; }
}
