/* =============================================
   UGUR USTA OTOMOTİV — style.css
   Ortak stil dosyası
============================================= */

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

:root {
  --green:      #0c3d1e;
  --green2:     #155230;
  --green3:     #1a6b3a;
  --white:      #ffffff;
  --offwhite:   #f5f5f2;
  --border:     #e0e0db;
  --text:       #1c1c1c;
  --muted:      #666666;
  --red:        #c0392b;
}

html { scroll-behavior: smooth; }
body { font-family: 'Roboto', sans-serif; background: var(--white); color: var(--text); }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── TOPBAR ── */
.topbar {
  background: var(--green);
  padding: 8px 40px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.topbar-left {
  display: flex; align-items: center; gap: 20px;
  font-size: 12px; color: rgba(255,255,255,0.7);
}
.topbar-left span { display: flex; align-items: center; gap: 5px; }
.topbar-right {
  font-size: 13px; font-weight: 700; color: #fff; letter-spacing: 0.5px;
}
.topbar-right a { color: #fff; transition: color .2s; }
.topbar-right a:hover { color: #a0f0c0; }

/* ── NAV ── */
nav {
  background: var(--white);
  border-bottom: 3px solid var(--green);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.nav-logo img {
  height: 60px;
  width: auto;
  display: block;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 50px; height: 100px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-box {
  background: var(--green); color: #fff;
  width: 44px; height: 44px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.nav-logo-text strong {
  display: block; font-size: 17px; font-weight: 900;
  color: var(--green); text-transform: uppercase; letter-spacing: 1px; line-height: 1.1;
}
.nav-logo-text span { font-size: 11px; color: var(--muted); letter-spacing: 0.5px; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  font-size: 13px; font-weight: 600; color: var(--text);
  padding: 8px 16px; border-radius: 3px; transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { background: var(--offwhite); color: var(--green); }
.nav-links .nav-tel {
  background: var(--green); color: #fff !important;
  margin-left: 8px; font-weight: 700;
}
.nav-links .nav-tel:hover { background: var(--green2) !important; }

/* Yol yardım floating badge (Burser tarzı) */
.yol-yardim-btn {
  position: fixed; right: 20px; bottom: 24px; z-index: 999;
  background: var(--red); color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 13px 20px; border-radius: 40px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: background .2s, transform .2s;
  animation: pulse 2s infinite;
}
.yol-yardim-btn:hover { background: #a93226; transform: scale(1.04); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(192,57,43,0.4); }
  50%       { box-shadow: 0 4px 32px rgba(192,57,43,0.7); }
}

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 23px; height: 2px; background: var(--text); transition: transform .3s, opacity .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column;
  background: var(--white); border-bottom: 2px solid var(--green);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 14px; font-weight: 600; color: var(--text);
  padding: 14px 40px; border-bottom: 1px solid var(--border);
  transition: background .2s, color .2s;
}
.mobile-nav a:hover { background: var(--offwhite); color: var(--green); }

/* ── PAGE HEADER (iç sayfalar için) ── */
.page-header {
  background: var(--green);
  padding: 40px 40px;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 40px,
    rgba(255,255,255,0.015) 40px, rgba(255,255,255,0.015) 41px
  );
}
.page-header-inner { position: relative; }
.page-header h1 {
  font-size: 32px; font-weight: 900; color: #fff;
  text-transform: uppercase; letter-spacing: -0.5px; margin-bottom: 6px;
}
.breadcrumb {
  font-size: 13px; color: rgba(255,255,255,0.6);
  display: flex; align-items: center; gap: 8px;
}
.breadcrumb a { color: rgba(255,255,255,0.6); transition: color .2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* ── SECTION HELPERS ── */
.section { padding: 64px 40px; }
.section-bg { background: var(--offwhite); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.sec-heading { margin-bottom: 40px; }
.sec-heading.center { text-align: center; }
.sec-heading h2 {
  font-size: 26px; font-weight: 900; color: var(--text);
  text-transform: uppercase; letter-spacing: -0.3px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--green);
  display: inline-block;
}
.sec-heading p { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.7; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; padding: 13px 28px; border-radius: 4px;
  border: none; cursor: pointer; transition: opacity .2s, background .2s;
}
.btn:hover { opacity: .88; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green2); opacity: 1; }
.btn-white { background: #fff; color: var(--green); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); }
.btn-outline:hover { border-color: #fff; opacity: 1; }

/* ── CTA STRIP ── */
.cta-strip {
  background: var(--green2);
  padding: 40px 40px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
  border-top: 4px solid var(--green3);
}
.cta-strip h3 {
  font-size: 24px; font-weight: 900; color: #fff;
  text-transform: uppercase; letter-spacing: -0.3px; margin-bottom: 4px;
}
.cta-strip p { font-size: 13px; color: rgba(255,255,255,.6); }
.cta-strip-num {
  font-size: 36px; font-weight: 900; color: #fff;
  letter-spacing: 1px; white-space: nowrap; transition: color .2s;
}
.cta-strip-num:hover { color: #a0f0c0; }

/* ── FOOTER ── */
footer {
  background: #0a0a0a;
}
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px; padding: 48px 40px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-brand strong {
  display: block; font-size: 16px; font-weight: 900;
  color: #fff; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px;
}
.footer-brand p { font-size: 13px; color: #666; line-height: 1.75; }
.footer-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--green3); margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: 13px; color: #666; transition: color .2s; }
.footer-col ul a:hover { color: #fff; }
.footer-col p { font-size: 13px; color: #666; line-height: 1.8; }
.footer-col p a { color: #666; transition: color .2s; }
.footer-col p a:hover { color: #fff; }

.footer-bottom {
  padding: 18px 40px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.footer-copy { font-size: 12px; color: #444; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .topbar { padding: 8px 20px; }
  .topbar-left { display: none; }
  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-nav a { padding: 14px 20px; }
  .section { padding: 48px 20px; }
  .page-header { padding: 32px 20px; }
  .cta-strip { padding: 32px 20px; flex-direction: column; align-items: flex-start; }
  .cta-strip-num { font-size: 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; padding: 36px 20px; }
  .footer-bottom { padding: 16px 20px; flex-direction: column; align-items: flex-start; }
}
