/* Özdemirler Grup — ozdemirlergrup.com.tr
   Renkler ve tipografi mevcut siteden birebir alınmıştır. */

:root {
  --ink: #1a1a1a;
  --ink-soft: #5a5a5a;
  --accent: #cc1616;
  --accent-dark: #a51111;
  --surface: #ffffff;
  --surface-alt: #f3f3f3;
  --surface-alt2: #f6f6f6;
  --line: #dddddd;
  --wa: #25d366;

  --font-display: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --header-h: 84px;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  background: var(--surface);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin: 0 0 1.2em; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-dark); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 20px;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  min-height: var(--header-h);
  display: flex; align-items: center;
}

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.logo img { width: 160px; height: auto; }

.nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }

.nav > li { position: relative; list-style: none; }

.nav a,
.nav .nav-toggle-btn {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-size: .9rem; font-weight: 600; letter-spacing: .04em;
  color: #fff; background: none; border: 0; cursor: pointer;
  padding: 14px 16px; font-family: var(--font-display);
  transition: color .2s ease;
}
.nav a:hover, .nav .nav-toggle-btn:hover,
.nav a[aria-current="page"] { color: var(--accent); }

.nav ul { list-style: none; margin: 0; padding: 0; }

.nav .btn-cta-mobile { display: none; }

.caret { width: 9px; height: 9px; fill: currentColor; transition: transform .2s ease; }
[aria-expanded="true"] .caret { transform: rotate(180deg); }

.submenu {
  position: absolute; top: 100%; left: 0; min-width: 270px;
  background: var(--ink); border-top: 3px solid var(--accent);
  box-shadow: 0 14px 34px rgba(0,0,0,.3);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-sub:hover .submenu,
.has-sub:focus-within .submenu,
.submenu.open { opacity: 1; visibility: visible; transform: translateY(0); }

.submenu a { padding: 11px 20px; font-weight: 400; letter-spacing: 0; font-size: .92rem; }
.submenu li + li a { border-top: 1px solid rgba(255,255,255,.08); }

.btn-cta {
  font-family: var(--font-display); font-weight: 600; font-size: .88rem; letter-spacing: .05em;
  background: rgba(204,22,22,.58);
  color: #fff; padding: 15px 26px; border-radius: var(--radius);
  white-space: nowrap; transition: background .2s ease;
}
.btn-cta:hover { background: var(--accent); color: #fff; }

.burger {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 10px; width: 46px; height: 46px;
}
.burger span {
  display: block; height: 2px; background: #fff; margin: 5px 0;
  transition: transform .25s ease, opacity .25s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero slider ---------- */

.hero { position: relative; background: var(--ink); overflow: hidden; }

.slides { position: relative; width: 100%; height: min(76vh, 56.25vw); min-height: 300px; }

.slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .8s ease;
}
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }

.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.28); color: #fff; cursor: pointer;
  display: grid; place-items: center; transition: background .2s ease;
}
.slider-btn:hover { background: rgba(204,22,22,.7); }
.slider-btn.prev { left: 16px; }
.slider-btn.next { right: 16px; }
.slider-btn svg { width: 22px; height: 22px; fill: currentColor; }

.dots {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 9px;
}
.dots button {
  width: 11px; height: 11px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.45); padding: 0; transition: background .2s ease;
}
.dots button[aria-current="true"] { background: var(--accent); }

/* ---------- Page banner (iç sayfalar) ---------- */

.page-head { background: var(--ink); padding: 56px 0; }
.page-head h1 { color: #fff; margin: 0; }
.crumbs { font-size: .85rem; color: rgba(255,255,255,.65); margin-top: 10px; }
.crumbs a { color: rgba(255,255,255,.8); }
.crumbs a:hover { color: var(--accent); }

/* ---------- Bölümler ---------- */

.section { padding: 76px 0; }
.section-alt { background: var(--surface-alt2); }

.intro-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.intro-grid img { border-radius: var(--radius); }

.link-more {
  display: inline-block;
  font-family: var(--font-display); font-weight: 600; font-size: .85rem;
  letter-spacing: .08em; color: var(--ink);
  border-bottom: 3px solid var(--accent); padding-bottom: 6px;
}
.link-more:hover { color: var(--accent); }

/* ---------- Hizmet kartları ---------- */

.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px;
}

.card {
  display: block; border: 1px solid #9b9b9b; padding: 12px 12px 6px;
  background: var(--surface); color: var(--ink);
  transition: border-color .2s ease, box-shadow .25s ease, transform .25s ease;
}
.card:hover {
  border-color: var(--accent); color: var(--ink);
  box-shadow: 0 12px 30px rgba(0,0,0,.1); transform: translateY(-4px);
}
.card-media { overflow: hidden; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .45s ease; }
.card:hover img { transform: scale(1.05); }
.card h3 {
  text-align: center; font-size: 1.12rem; font-weight: 400;
  font-family: var(--font-body); margin: 18px 0 16px;
}

/* ---------- İçerik metni ---------- */

.prose { max-width: 820px; }
.prose img { margin: 28px 0; border-radius: var(--radius); }

.info-table { width: 100%; border-collapse: collapse; margin: 28px 0; }
.info-table th, .info-table td {
  text-align: left; padding: 13px 16px; border: 1px solid var(--line); font-size: .95rem;
}
.info-table th { background: var(--surface-alt); color: var(--ink); width: 210px; font-weight: 600; }

/* ---------- İletişim ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }

.contact-list { list-style: none; margin: 0 0 32px; padding: 0; }
.contact-list li { margin-bottom: 20px; }
.contact-list strong {
  display: block; font-family: var(--font-display); font-size: .8rem;
  letter-spacing: .08em; color: var(--ink); text-transform: uppercase; margin-bottom: 3px;
}
.contact-list a { color: var(--ink-soft); }
.contact-list a:hover { color: var(--accent); }

.form-row { margin-bottom: 18px; }
.form-row label {
  display: block; font-family: var(--font-display); font-size: .82rem;
  font-weight: 600; color: var(--ink); margin-bottom: 7px;
}
.form-row input, .form-row textarea {
  width: 100%; padding: 13px 15px; font: inherit; font-size: .95rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
}
.form-row input:focus, .form-row textarea:focus {
  border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(204,22,22,.12);
}
.form-row textarea { min-height: 150px; resize: vertical; }

.btn-submit {
  font-family: var(--font-display); font-weight: 600; font-size: .9rem; letter-spacing: .05em;
  background: var(--accent); color: #fff; border: 0; cursor: pointer;
  padding: 15px 34px; border-radius: var(--radius); transition: background .2s ease;
}
.btn-submit:hover { background: var(--accent-dark); }

.form-note { font-size: .85rem; margin-top: 14px; }

.map { border: 0; width: 100%; height: 380px; display: block; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 44px; }
.site-footer h4 {
  color: #fff; font-size: .95rem; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 18px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,.7); font-size: .95rem; }
.site-footer a:hover { color: var(--accent); }
.footer-logo { width: 175px; margin-bottom: 20px; }

.footer-contact li { margin-bottom: 14px; }
.footer-contact span {
  display: block; font-family: var(--font-display); font-size: .78rem;
  letter-spacing: .06em; color: rgba(255,255,255,.45);
  text-transform: uppercase; margin-bottom: 2px;
}
.footer-contact a { display: block; }


.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.1); display: grid; place-items: center;
  transition: background .2s ease;
}
.socials a:hover { background: var(--accent); }
.socials svg { width: 19px; height: 19px; fill: #fff; }

.footer-bottom {
  margin-top: 48px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1);
  text-align: center; font-size: .85rem;
}

/* ---------- WhatsApp ---------- */

.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); display: grid; place-items: center;
  box-shadow: 0 6px 22px rgba(0,0,0,.26);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 31px; height: 31px; fill: #fff; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .intro-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .burger { display: block; }
  .btn-cta { display: none; }

  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: 8px 0 26px;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    border-top: 1px solid rgba(255,255,255,.1);
    display: none;
  }
  .nav.open { display: flex; }

  .nav a, .nav .nav-toggle-btn { padding: 15px 22px; width: 100%; justify-content: space-between; }

  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border-top: 0; background: rgba(255,255,255,.05);
    display: none; min-width: 0;
  }
  .submenu.open { display: block; }
  .has-sub:hover .submenu:not(.open) { display: none; }
  .submenu a { padding-left: 38px; }

  .nav .btn-cta-mobile {
    display: block; margin: 16px 22px 0; text-align: center;
    background: var(--accent); border-radius: var(--radius); padding: 15px;
  }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .page-head { padding: 40px 0; }
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .slides { height: 62vw; min-height: 260px; }
  .slider-btn { width: 42px; height: 42px; }
  .slider-btn.prev { left: 8px; }
  .slider-btn.next { right: 8px; }
  .info-table th { width: auto; }
  .info-table th, .info-table td { display: block; }
  .info-table th { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .site-header, .wa-float, .site-footer, .slider-btn, .dots { display: none !important; }
}
