/* Egemen Çelik Yapı Prefabrik - Balıkesir */

:root {
  --color-primary: #1e3a5f;
  --color-primary-light: #2c5282;
  --color-accent: #c53030;
  --color-white: #fff;
  --color-light: #f7fafc;
  --color-dark: #1a202c;
  --color-text: #2d3748;
  --color-text-muted: #718096;
  --font-main: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 8px;
  --header-height: 72px;
}

*,
*::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: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header - sticky, hamburger sağda */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(30, 58, 95, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, background 0.3s ease;
}

.site-header.hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0 20px;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-white);
  text-decoration: none;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 600px) {
  .logo {
    max-width: none;
    font-size: 1.2rem;
  }
}

.nav-main {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: var(--color-primary);
  padding: calc(var(--header-height) + 20px) 24px 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 99;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
}

.nav-main.open {
  transform: translateX(0);
}

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

.nav-main li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-main a {
  display: block;
  padding: 14px 0;
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.nav-main a:hover {
  opacity: 0.9;
}

/* Hamburger - sağda */
.nav-toggle {
  position: relative;
  z-index: 101;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .nav-main {
    position: static;
    width: auto;
    height: auto;
    max-width: none;
    padding: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .nav-main ul {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .nav-main li {
    border: none;
  }

  .nav-main a {
    padding: 10px 14px;
    border-radius: var(--radius);
  }

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

/* Hero - 2 arka plan döngüsü */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 40px) 20px 60px;
  overflow: hidden;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  background-color: var(--color-primary);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide-1 {
  background-image: url('../images/12.jpg');
  animation: heroFade1 10s ease-in-out infinite;
}

.hero-slide-2 {
  background-image: url('../images/49.jpg');
  animation: heroFade2 10s ease-in-out infinite;
}

/* 0–5s slide1, 5–10s slide2, sonra tekrar */
@keyframes heroFade1 {
  0%, 45% { opacity: 1; }
  55%, 100% { opacity: 0; }
}

@keyframes heroFade2 {
  0%, 45% { opacity: 0; }
  55%, 100% { opacity: 1; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(30, 58, 95, 0.75) 0%, rgba(26, 32, 44, 0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
}

.hero-badge {
  display: inline-block;
  margin: 0 0 16px;
  padding: 8px 18px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.hero-sub {
  margin: 0 0 32px;
  font-size: clamp(1rem, 2vw, 1.15rem);
  opacity: 0.95;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: #9b2c2c;
  border-color: #9b2c2c;
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: var(--color-white);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--color-white);
  border-color: #25d366;
}

.btn-whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
  color: var(--color-white);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Sağ altta sabit butonlar: WhatsApp, Instagram, Arama */
.float-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.float-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 50px;
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.float-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

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

.float-whatsapp {
  background: #25d366;
}

.float-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.float-call {
  background: var(--color-primary);
}

.float-label {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .float-label {
    display: none;
  }
  .float-btn {
    padding: 14px;
    border-radius: 50%;
  }
}

/* İstatistik çubuğu */
.stats-bar {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 32px 0;
  margin: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
}

@media (min-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  padding: 0 12px;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Section head & badge */
.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(30, 58, 95, 0.1);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 50px;
  margin-bottom: 12px;
}

.section-head .section-title {
  margin-bottom: 12px;
}

.section-head .section-intro {
  margin-bottom: 0;
}

.section-cta {
  text-align: center;
  margin-top: 36px;
}

/* Neden biz - features grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 700px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-item {
  text-align: center;
  padding: 28px 20px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  line-height: 1;
}

.feature-item h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
}

.feature-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* CTA band */
.cta-band {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 56px 0;
}

.cta-band-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-band-inner h2 {
  margin: 0 0 12px;
  font-size: 1.6rem;
  font-weight: 700;
}

.cta-band-inner p {
  margin: 0 0 24px;
  opacity: 0.95;
}

.cta-band-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.cta-band-buttons .btn-outline {
  border-color: var(--color-white);
  color: var(--color-white);
}

.cta-band-buttons .btn-outline:hover {
  background: rgba(255,255,255,0.2);
}

/* Alt sayfalar: page hero */
.page-main {
  padding-top: var(--header-height);
}

.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  padding: 48px 0 40px;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 700;
}

.page-hero p {
  margin: 0;
  opacity: 0.9;
  font-size: 1.05rem;
}

/* Hizmetler detay */
.service-detail {
  margin-bottom: 56px;
}

.service-detail:last-child {
  margin-bottom: 0;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

@media (min-width: 800px) {
  .service-detail-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .service-detail-reverse .service-detail-img {
    order: 2;
  }
  .service-detail-reverse .service-detail-content {
    order: 1;
  }
}

.service-detail-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-detail-img img {
  width: 100%;
  height: auto;
  display: block;
}

.service-detail-content h2 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
}

.service-detail-content p {
  margin: 0 0 16px;
  color: var(--color-text);
  line-height: 1.65;
}

.service-list {
  margin: 0 0 20px;
  padding-left: 1.25rem;
  color: var(--color-text);
}

.service-list li {
  margin-bottom: 6px;
}

/* Galeri grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Hakkımızda içerik */
.container-narrow {
  max-width: 720px;
}

.about-content h2 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
}

.about-content h3 {
  margin: 28px 0 12px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-dark);
}

.about-content p {
  margin: 0 0 16px;
  line-height: 1.7;
  color: var(--color-text);
}

.about-list {
  margin: 0 0 24px;
  padding-left: 1.25rem;
  line-height: 1.8;
  color: var(--color-text);
}

.about-content .about-cta {
  margin-top: 28px;
}

/* Referanslar sayfası */
.testimonials-page {
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .testimonials-page {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.section-alt {
  background: var(--color-light);
}

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

.section-intro {
  margin: 0 auto 40px;
  max-width: 640px;
  text-align: center;
  color: var(--color-text-muted);
}

/* Cards - Hizmetler */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 700px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

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

.card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-light);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card h3 {
  margin: 0;
  padding: 20px 20px 8px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-dark);
}

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

.card-link {
  display: inline-block;
  padding: 0 20px 20px;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.card-link:hover {
  color: var(--color-accent);
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .testimonials {
    grid-template-columns: repeat(2, 1fr);
  }
}

.testimonial {
  margin: 0;
  padding: 24px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--color-primary);
}

.testimonial p {
  margin: 0 0 12px;
  font-style: italic;
  color: var(--color-text);
}

.testimonial cite {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-style: normal;
}

/* About CTA */
.about-cta {
  text-align: center;
  margin-top: 24px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

@media (min-width: 500px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-card {
  padding: 24px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 8px;
}

.contact-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--color-dark);
}

.contact-card p {
  margin: 0 0 8px;
  color: var(--color-text);
}

.contact-card a {
  color: var(--color-primary);
  text-decoration: none;
}

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

.map-link {
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Footer */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.85);
  padding: 40px 0 24px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-brand .logo {
  color: var(--color-white);
}

.footer-brand p {
  margin: 8px 0 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer-contact {
  margin-top: 8px !important;
  font-size: 0.85rem !important;
  opacity: 0.75 !important;
}
