/* Mersin Otomatik Kapı — Kurumsal Web Sitesi */
:root {
  --red: #c8102e;
  --red-dark: #9e0c24;
  --red-light: #e8334f;
  --black: #0a0a0a;
  --gray-900: #141414;
  --gray-800: #1e1e1e;
  --gray-700: #2d2d2d;
  --gray-600: #4a4a4a;
  --gray-500: #6b6b6b;
  --gray-300: #b0b0b0;
  --gray-100: #f4f4f4;
  --white: #ffffff;
  --teal: #1a9cb8;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.18);
  --radius: 8px;
  --radius-lg: 12px;
  --header-h: 88px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--red);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--red-dark);
}

ul {
  list-style: none;
}

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--black);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-dark:hover {
  background: var(--gray-800);
  color: var(--white);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  border-color: #25d366;
}

.btn-whatsapp:hover {
  background: #1da851;
  color: var(--white);
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--black);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  transition: padding var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.5rem 0;
}

.logo img {
  height: 56px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-phone {
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  display: none;
}

.header-phone:hover {
  color: var(--red-light);
}

.lang-switcher {
  display: flex;
  gap: 0.25rem;
}

.lang-switcher a {
  padding: 0.35rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-300);
  border: 1px solid var(--gray-700);
  border-radius: 4px;
  text-transform: uppercase;
}

.lang-switcher a.active,
.lang-switcher a:hover {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

/* Navigation */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.main-nav a {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
}

.main-nav a:hover {
  color: var(--red-light);
  background: rgba(255, 255, 255, 0.05);
}

.main-nav a.nav-active {
  color: var(--red-light);
}

.has-mega {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: var(--gray-900);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  min-width: 680px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
}

.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-menu h4 {
  color: var(--red);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  grid-column: 1 / -1;
}

.mega-menu a {
  color: var(--gray-300);
  font-size: 0.82rem;
  padding: 0.35rem 0;
  display: block;
}

.mega-menu a:hover {
  color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  margin-top: var(--header-h);
  background: var(--black);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.7) 50%, rgba(200, 16, 46, 0.25) 100%);
}

.hero-slide:nth-child(1) {
  background-image: linear-gradient(135deg, #1a1a1a, #2d1518);
}

.hero-slide:nth-child(2) {
  background-image: linear-gradient(135deg, #141414, #1a2530);
}

.hero-slide:nth-child(3) {
  background-image: linear-gradient(135deg, #0f0f0f, #251818);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.hero p {
  color: var(--gray-300);
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.hero-dots button.active {
  background: var(--red);
  border-color: var(--red);
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  color: var(--black);
  margin-bottom: 0.75rem;
  font-weight: 800;
}

.section-header p {
  color: var(--gray-600);
  font-size: 1.05rem;
}

.section-header .accent {
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}

.bg-dark {
  background: var(--gray-900);
  color: var(--gray-300);
}

.bg-dark .section-header h2 {
  color: var(--white);
}

.bg-light {
  background: var(--gray-100);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, var(--gray-800), var(--black));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--red);
}

.about-image img {
  max-height: 120px;
  opacity: 0.9;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--black);
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid #e8e8e8;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--red);
}

.service-card .icon {
  width: 52px;
  height: 52px;
  background: var(--red);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
}

.service-card h3 {
  font-size: 1.05rem;
  color: var(--black);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  flex: 1;
}

.service-card .link {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Why us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.why-card {
  text-align: center;
  padding: 2rem 1.25rem;
  background: var(--gray-800);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-700);
  transition: var(--transition);
}

.why-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
}

.why-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.why-card h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.why-card p {
  font-size: 0.88rem;
  color: var(--gray-500);
}

/* District SEO */
.district-block {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  border-left: 4px solid var(--red);
  box-shadow: var(--shadow);
}

.district-block h3 {
  font-size: 1.2rem;
  color: var(--black);
  margin-bottom: 0.75rem;
}

.district-block p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #e8e8e8;
  transition: var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.blog-card .thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--gray-800), var(--red-dark));
}

.blog-card .content {
  padding: 1.5rem;
}

.blog-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--black);
}

.blog-card p {
  font-size: 0.88rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.blog-articles .blog-article {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #e8e8e8;
}

.blog-articles .blog-article:last-child {
  border-bottom: none;
}

.blog-articles .blog-article h2 {
  font-size: 1.45rem;
  color: var(--black);
  margin-bottom: 0.75rem;
}

.blog-articles .blog-excerpt {
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.review-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid #e8e8e8;
}

.review-card .stars {
  color: #f5a623;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.review-card p {
  font-style: italic;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.review-card .author {
  font-weight: 700;
  color: var(--black);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-item .icon {
  width: 48px;
  height: 48px;
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.contact-form {
  background: var(--gray-100);
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 2rem;
  aspect-ratio: 16/7;
  border: 2px solid var(--gray-700);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.site-footer {
  background: var(--black);
  color: var(--gray-300);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--gray-700);
}

.footer-brand img {
  height: 150px;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--gray-500);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col a {
  display: block;
  color: var(--gray-500);
  font-size: 0.88rem;
  padding: 0.3rem 0;
}

.footer-col a:hover {
  color: var(--red-light);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--gray-800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
}

.social-links a:hover {
  background: var(--red);
  color: var(--white);
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* Floating buttons */
.float-actions {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition);
}

.float-btn:hover {
  transform: scale(1.1);
  color: var(--white);
}

.float-phone {
  background: var(--red);
}

.float-whatsapp {
  background: #25d366;
}

/* Page templates (service pages) */
.page-hero {
  margin-top: var(--header-h);
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--black), var(--gray-800));
  color: var(--white);
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  color: var(--gray-300);
}

.breadcrumb a {
  color: var(--gray-300);
}

.breadcrumb a:hover {
  color: var(--red-light);
}

.breadcrumb span {
  color: var(--gray-500);
}

.content-section {
  padding: 3rem 0;
}

.content-section h2 {
  font-size: 1.65rem;
  color: var(--black);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--red);
}

.content-section h3 {
  font-size: 1.25rem;
  color: var(--gray-800);
  margin: 1.5rem 0 0.75rem;
}

.content-section p,
.content-section li {
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.content-section ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.faq-list details {
  background: var(--gray-100);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  border: 1px solid #e0e0e0;
}

.faq-list summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--black);
}

.faq-list details[open] summary {
  color: var(--red);
}

.faq-list .answer {
  padding: 0 1.25rem 1rem;
  color: var(--gray-600);
}

.cta-banner {
  background: var(--red);
  color: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 3rem 0;
}

.cta-banner h2 {
  color: var(--white);
  border: none;
  margin-top: 0;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.cta-banner .btn-outline {
  margin: 0 0.5rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (min-width: 992px) {
  .header-phone {
    display: block;
  }
}

@media (max-width: 991px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--black);
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav a {
    padding: 1rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--gray-800);
  }

  .mega-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    min-width: auto;
    display: none;
    border: none;
    padding: 0 0 0 1rem;
    background: transparent;
    box-shadow: none;
  }

  .has-mega.open .mega-menu {
    display: block;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .float-actions {
    bottom: 1rem;
    right: 1rem;
  }
}
