/* ===== GÜRSAN SOLAR ENERJİ - ANA STİL DOSYASI ===== */

:root {
  --primary: #e8500a;
  --primary-dark: #c0400a;
  --secondary: #1a3a5c;
  --secondary-light: #264d7a;
  --accent: #f9a825;
  --white: #ffffff;
  --light: #f5f7fa;
  --gray: #6b7280;
  --dark: #111827;
  --border: #e5e7eb;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26, 58, 92, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.18);
  transition: var(--transition);
}

#header.scrolled {
  background: var(--secondary);
  box-shadow: var(--shadow-lg);
}

.header-top {
  background: var(--primary);
  padding: 7px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.92);
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.header-top a { color: var(--white); }
.header-top a:hover { opacity: 0.8; }

.header-top-info {
  display: flex;
  gap: 20px;
  align-items: center;
}

.header-top-info span { display: flex; align-items: center; gap: 5px; }

.header-main {
  padding: 14px 0;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
}

.logo-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.logo-text span { color: var(--accent); }
.logo-sub { font-size: 11px; font-weight: 400; opacity: 0.8; display: block; letter-spacing: 1px; }

nav { display: flex; align-items: center; gap: 6px; }

nav a {
  color: rgba(255,255,255,0.88);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

nav a:hover, nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}

.btn-nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: 8px !important;
}

.btn-nav-cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== FOOTER ===== */
#footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 0;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.5fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.8; opacity: 0.8; }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
}

.footer-contact-item .icon {
  width: 34px;
  height: 34px;
  background: rgba(232,80,10,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  opacity: 0.7;
}

/* ===== GENEL BUTONLAR ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,80,10,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--secondary-light);
  transform: translateY(-2px);
}

/* ===== SECTION BAŞLIK ===== */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  display: inline-block;
  background: rgba(232,80,10,0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(26px, 4vw, 38px);
  color: var(--secondary);
  margin-bottom: 14px;
}

.section-header p {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
  font-size: 16px;
}

.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--secondary);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,58,92,0.92) 40%, rgba(232,80,10,0.3));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 120px 0 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,80,10,0.2);
  border: 1px solid rgba(232,80,10,0.4);
  color: var(--accent);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(32px, 5.5vw, 58px);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 22px;
}

.hero h1 span { color: var(--accent); }

.hero p {
  color: rgba(255,255,255,0.82);
  font-size: 18px;
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  line-height: 1;
}

.stat-num span { color: var(--accent); }

.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ===== KART ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ===== GALERİ ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.07); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,58,92,0.85), transparent);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ===== İLETİŞİM FORMU ===== */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 7px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  color: var(--dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(232,80,10,0.1);
}

.form-group textarea { resize: vertical; min-height: 130px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
  /* --- HEADER & NAV --- */
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
  }
  nav.open { display: flex; }
  nav a { padding: 12px 16px; border-radius: 8px; }
  .hamburger { display: flex; }
  .header-top-info { gap: 8px; flex-wrap: wrap; font-size: 12px; }

  /* --- FOOTER --- */
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }

  /* --- GALERİ --- */
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

  /* --- INDEX: NEDEN BİZ (2 sütun → tek sütun) --- */
  section > .container > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  /* --- HİZMETLER: alternatif sıralı layout → tek sütun --- */
  .container div[style*="grid-template-columns:auto 1fr"],
  .container div[style*="grid-template-columns:1fr auto"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 24px !important;
  }

  /* --- İLETİŞİM FORMU: 2 sütun → tek sütun --- */
  div[style*="grid-template-columns:1fr 1.3fr"],
  div[style*="grid-template-columns:1fr 1fr"][style*="gap:16px"] {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  /* --- HAKKIMIZDA: görsel + metin yan yana → alt alta --- */
  div[style*="grid-template-columns:1fr 1fr"][style*="gap:60px"] {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  /* --- HAKKIMIZDA: misyon/vizyon kartları --- */
  div[style*="grid-template-columns:1fr 1fr"][style*="gap:28px"] {
    grid-template-columns: 1fr !important;
  }

  /* --- İletişim formu içi ad/telefon --- */
  #contact-form div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* --- Hero görsel yüksekliği --- */
  div[style*="height:480px"],
  div[style*="height:460px"] {
    height: 260px !important;
  }

  /* --- Floating butonlar mobilde biraz küçülsün --- */
  .float-btn { width: 46px; height: 46px; font-size: 18px; }
  .floating-cta { bottom: 16px; right: 16px; }
}

@media (max-width: 480px) {
  /* --- Hero stats --- */
  .hero-stats { gap: 16px; }
  .stat-num { font-size: 24px; }

  /* --- Butonlar --- */
  .btn { padding: 11px 18px; font-size: 14px; }

  /* --- Header top: saate bakma sadece tel/wp göster --- */
  .header-top .container { flex-direction: column; align-items: flex-start; gap: 4px; }
  .header-top-info { flex-wrap: wrap; gap: 6px; }

  /* --- İletişim kartı padding küçült --- */
  .card[style*="padding:40px"] { padding: 20px !important; }

  /* --- Hero içerik padding --- */
  .hero-content { padding: 100px 0 50px; }

  /* --- Page hero padding --- */
  .page-hero { padding: 100px 0 40px; }

  /* --- Hizmetler ikon bloğu --- */
  .container div[style*="width:100px;height:100px"] {
    width: 70px !important;
    height: 70px !important;
    margin: 0 auto !important;
  }

  /* --- Footer --- */
  #footer { margin-top: 40px; }

  /* --- İletişim bilgi satırı (tel/wp uzun numara) --- */
  div[style*="font-size:16px;font-weight:700;color:var(--dark)"] {
    font-size: 14px !important;
    word-break: break-all;
  }
}

/* ===== SAYFA BAŞLIĞI ===== */
.page-hero {
  background: linear-gradient(135deg, var(--secondary) 60%, var(--secondary-light));
  padding: 120px 0 60px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232,80,10,0.2), transparent 70%);
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 12px;
}

.page-hero p { opacity: 0.8; font-size: 17px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  opacity: 0.75;
  margin-bottom: 20px;
}

.breadcrumb a:hover { opacity: 1; color: var(--accent); }

/* ===== FLOATING CTA ===== */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: var(--transition);
  text-decoration: none;
}

.float-btn:hover { transform: scale(1.12); color: white; }
.float-whatsapp { background: #25d366; }
.float-phone { background: var(--primary); }

/* ===== YÜKLEME ANİMASYONLARI ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-up {
  animation: fadeInUp 0.7s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }