/* ===== Özsoy Tesisat - CSS Part 1: Reset, Layout, Header, Footer ===== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #0c4a6e;
    --primary-dark: #082f49;
    --primary-light: #0ea5e9;
    --accent: #f97316;
    --accent-dark: #ea580c;
    --accent-light: #fdba74;
    --cyan: #06b6d4;
    --success: #10b981;
    --bg: #f0f9ff;
    --bg-white: #ffffff;
    --bg-dark: #0f172a;
    --bg-dark-2: #1e293b;
    --text: #1e293b;
    --text-light: #475569;
    --text-lighter: #94a3b8;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
    --shadow-lg: 0 20px 40px -12px rgba(0,0,0,.12);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,.2);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: .3s cubic-bezier(.4,0,.2,1);
    --font: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg-white); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); line-height: 1.2; color: var(--primary-dark); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 50px; font-weight: 600; font-size: .95rem; border: none; cursor: pointer; transition: var(--transition); text-align: center; justify-content: center; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; box-shadow: 0 4px 15px rgba(249,115,22,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(249,115,22,.45); }
.btn-secondary { background: var(--bg-white); color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary-dark); box-shadow: var(--shadow); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.8); box-shadow: none; }
.btn-outline-white:hover { background: #fff; color: var(--accent-dark); border-color: #fff; }
.btn-cta-header { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; padding: 10px 22px; font-size: .85rem; box-shadow: 0 4px 12px rgba(249,115,22,.3); }
.btn-cta-header:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(249,115,22,.4); }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

/* --- Topbar --- */
.topbar { background: var(--primary-dark); color: rgba(255,255,255,.85); font-size: .82rem; padding: 8px 0; transition: var(--transition); }
.topbar.hidden { margin-top: -40px; opacity: 0; pointer-events: none; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar-left { display: flex; gap: 20px; }
.topbar-item { display: flex; align-items: center; gap: 6px; }
.topbar-phone { display: flex; align-items: center; gap: 6px; color: var(--accent-light); font-weight: 600; }
.topbar-phone:hover { color: #fff; }

/* --- Header --- */
.header { background: var(--bg-white); padding: 12px 0; position: relative; z-index: 1000; border-bottom: 1px solid var(--border); transition: var(--transition); }
.header.sticky { position: fixed; top: 0; left: 0; right: 0; box-shadow: var(--shadow-lg); animation: slideDown .3s ease; }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.header-inner { display: flex; align-items: center; justify-content: space-between; }

/* Landing Minimal Header */
.header-landing { border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
.header-landing .header-inner { justify-content: space-between; gap: 12px; }
.landing-nav { display: flex; align-items: center; gap: 4px; }
.landing-nav-link { padding: 8px 14px; font-size: .88rem; font-weight: 500; color: var(--text); border-radius: 8px; white-space: nowrap; transition: var(--transition); }
.landing-nav-link:hover { color: var(--primary); background: rgba(12,74,110,.06); }
.landing-header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-outline-landing { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 50px; font-weight: 600; font-size: .88rem; border: 2px solid #25d366; color: #25d366; background: transparent; transition: var(--transition); white-space: nowrap; }
.btn-outline-landing:hover { background: #25d366; color: #fff; }
@media (max-width: 1024px) { .landing-nav { display: none; } }
@media (max-width: 480px) { .btn-outline-landing { padding: 10px 12px; font-size: 0; } .btn-outline-landing svg { width: 20px; height: 20px; } }

/* Logo */
.logo { display: flex; align-items: center; }
.logo-img { height: 70px; width: auto; display: block; object-fit: contain; }
.logo-img-footer { height: 72px; background: #fff; border-radius: var(--radius); padding: 6px 10px; }

/* Nav */
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 10px 16px; font-weight: 500; font-size: .93rem; color: var(--text); border-radius: 8px; display: flex; align-items: center; gap: 4px; }
.nav-link:hover, .nav-link.active { color: var(--primary); background: rgba(12,74,110,.05); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown { position: absolute; top: 100%; left: 0; background: var(--bg-white); min-width: 260px; border-radius: var(--radius); box-shadow: var(--shadow-xl); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition); z-index: 100; }
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a { display: block; padding: 10px 16px; border-radius: 8px; font-size: .9rem; color: var(--text); }
.dropdown li a:hover { background: var(--bg); color: var(--primary); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 12px; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001; }
.hamburger span { display: block; width: 24px; height: 2.5px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 998; backdrop-filter: blur(4px); }
.mobile-overlay.active { display: block; }

/* --- Footer --- */
.footer { background: var(--bg-dark); color: rgba(255,255,255,.75); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo .logo-icon { background: linear-gradient(135deg, var(--primary-light), var(--cyan)); }
.footer-logo .logo-name { color: #fff; }
.footer-logo .logo-sub { color: var(--accent-light); }
.footer-desc { font-size: .9rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.social-link { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); transition: var(--transition); }
.social-link:hover { background: var(--primary-light); color: #fff; transform: translateY(-2px); }
.footer-title { color: #fff; font-size: 1.1rem; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 3px; background: var(--accent); border-radius: 2px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: .9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--primary-light); padding-left: 6px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; font-size: .9rem; }
.footer-contact svg { flex-shrink: 0; margin-top: 2px; color: var(--primary-light); }
.footer-contact a:hover { color: var(--primary-light); }
.footer-bottom { margin-top: 50px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-size: .85rem; }

/* --- WhatsApp & Phone FAB --- */
.whatsapp-fab { position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px; background: #25d366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,.4); z-index: 999; transition: var(--transition); animation: fabPulse 2s infinite; }
.whatsapp-fab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.5); }
.phone-fab { position: fixed; bottom: 24px; left: 24px; width: 60px; height: 60px; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; border-radius: 50%; display: none; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(249,115,22,.4); z-index: 999; transition: var(--transition); animation: fabPulse 2s infinite .5s; }
@keyframes fabPulse { 0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); } 50% { box-shadow: 0 4px 30px rgba(37,211,102,.6), 0 0 0 10px rgba(37,211,102,.1); } }

/* --- Breadcrumb --- */
.breadcrumb { background: var(--bg); padding: 14px 0; border-bottom: 1px solid var(--border); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .85rem; }
.breadcrumb li::after { content: '/'; margin-left: 8px; color: var(--text-lighter); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li:last-child span { color: var(--text-light); }

/* --- Animations --- */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 991px) {
    .topbar-left { display: none; }
    .hamburger { display: flex; }
    .nav { position: fixed; top: 0; right: -320px; width: 300px; height: 100vh; background: var(--bg-white); z-index: 999; padding: 80px 20px 20px; transition: var(--transition); overflow-y: auto; box-shadow: var(--shadow-xl); }
    .nav.open { right: 0; }
    .nav-list { flex-direction: column; align-items: stretch; }
    .nav-link { padding: 14px 16px; font-size: 1rem; }
    .dropdown { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; padding: 0 0 0 16px; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
    .has-dropdown.open .dropdown { max-height: 500px; }
    .btn-cta-header { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .phone-fab { display: flex; }
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; }
    .btn-lg { padding: 14px 28px; font-size: .95rem; }
    .logo-img { height: 56px; }
}
