/* Yiğitler Gönen - Yangın Söndürme Ekipmanları - Gönen SEO */

:root {
  --color-primary: #c41e3a;
  --color-primary-dark: #9e1830;
  --color-white: #fff;
  --color-light: #f8f9fa;
  --color-dark: #1a1a1a;
  --color-text: #333;
  --color-text-muted: #555;
  --font-main: 'Open Sans', sans-serif;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 6px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
  box-shadow: var(--shadow);
}

.header-bg { display: none; }

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 20px;
  min-height: 72px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  position: relative;
  z-index: 101;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--color-white);
  padding: 4px;
}

.nav-main ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-main a {
  color: var(--color-white);
  text-decoration: none;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.nav-main a:hover {
  background: rgba(255,255,255,0.2);
}

.nav-main .has-dropdown {
  position: relative;
}

.nav-main .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.nav-main .has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-main .dropdown a {
  color: var(--color-text);
  display: block;
  padding: 10px 16px;
}

.nav-main .dropdown a:hover {
  background: var(--color-light);
  color: var(--color-primary);
}

.header-phone {
  color: var(--color-white);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
  white-space: nowrap;
  padding: 10px 16px;
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius);
}

.header-phone:hover {
  background: rgba(0,0,0,0.3);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: none;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  z-index: 102;
}

.nav-toggle::before,
.nav-toggle::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--color-white);
  transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
}

.nav-toggle::before { top: 14px; box-shadow: 0 6px 0 var(--color-white); }
.nav-toggle::after { bottom: 14px; }

.nav-toggle[aria-expanded="true"]::before {
  box-shadow: none;
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37,211,102,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37,211,102,0.6);
  color: #fff;
}

.whatsapp-float svg {
  flex-shrink: 0;
}

/* Hero - dönen arka plan (2 fotoğraf, sadece anasayfa) */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: heroBgRotate 15s ease-in-out infinite;
}

.hero-bg-slide-1 { background-image: url('../assets/hero-bg-1.png'); animation-delay: 0s; }
.hero-bg-slide-2 { background-image: url('../assets/hero-bg-2.png'); animation: heroBgRotate2 15s ease-in-out infinite; animation-delay: -7.5s; }

@keyframes heroBgRotate {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

@keyframes heroBgRotate2 {
  0%, 50% { opacity: 0; }
  50.01%, 100% { opacity: 1; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(196,30,58,0.75) 50%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 48px 20px;
}

.hero h1 {
  margin: 0 0 4px;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--color-white);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  letter-spacing: 0.02em;
}

.hero-subtitle {
  margin: 0 0 16px;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.hero-tagline {
  margin: 0 0 24px;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.95);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.1s;
}

.btn-primary {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-light);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Sections */
.section {
  padding: 56px 0;
}

.page-hero {
  padding-top: 32px;
}

.section:nth-child(even) {
  background: var(--color-light);
}

.section-title {
  margin: 0 0 12px;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
}

.section-intro {
  margin: 0 0 32px;
  text-align: center;
  color: var(--color-text-muted);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card {
  background: var(--color-white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.card-system .card h3 {
  font-size: 1.05rem;
}

/* About */
.about-blocks {
  display: grid;
  gap: 28px;
  max-width: 800px;
  margin: 0 auto;
}

.about-block h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--color-primary);
}

.about-block p {
  margin: 0;
  color: var(--color-text-muted);
}

/* Contact */
.section-contact .contact-box {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-box p {
  margin: 0 0 8px;
}

.contact-box a {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}

.contact-box a:hover {
  text-decoration: underline;
}

.section-cta {
  background: linear-gradient(180deg, var(--color-light) 0%, rgba(196,30,58,0.06) 100%);
}

.section-cta .section-title {
  margin-bottom: 8px;
}

/* Footer */
.site-footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 24px 0;
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Mobile */
@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0;
  }

  .header-inner .logo {
    order: 1;
    position: relative;
    z-index: 101;
  }

  .header-right {
    order: 2;
    margin-left: auto;
  }

  .nav-main {
    order: 3;
    flex-basis: 100%;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: rgba(0,0,0,0.12);
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .nav-main.open {
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .nav-main > ul {
    flex-direction: column;
    padding: 0;
    gap: 0;
    align-items: stretch;
  }

  .nav-main > ul > li {
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }

  .nav-main > ul > li:last-child {
    border-bottom: none;
  }

  .nav-main a {
    display: block;
    padding: 14px 20px;
  }

  .nav-main .has-dropdown > a {
    padding-right: 36px;
  }

  .nav-main .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    background: rgba(0,0,0,0.08);
    margin: 0 0 0 20px;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    border-left: 3px solid rgba(255,255,255,0.25);
    transition: max-height 0.25s ease;
  }

  .nav-main .dropdown li {
    border-bottom: none;
  }

  .nav-main .dropdown a {
    padding: 10px 20px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.95);
  }

  .nav-main .has-dropdown.open-dropdown .dropdown,
  .nav-main .has-dropdown:hover .dropdown,
  .nav-main .has-dropdown:focus-within .dropdown {
    max-height: 500px;
  }

  .nav-main .dropdown a:hover {
    background: rgba(255,255,255,0.12);
    color: var(--color-white);
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    min-height: 360px;
  }

  .section {
    padding: 40px 0;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }
}
