/* ========================================
   KAPICI - Termal ve Elektrik Risk Analizi
   Premium Sanayi Web Sitesi
   ======================================== */

/* ========== RESET & BASE ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Renkler */
  --bg-primary: #232531;
  --bg-secondary: #1c1e28;
  --bg-accent: #1f2130;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #888888;
  --accent: #E12229;
  --accent-light: #f03a40;
  --accent-dark: #c11e24;
  --border: #2e3040;
  --border-light: #3a3c4e;
  --card-bg: #282a36;
  --card-hover: #303240;
  --whatsapp: #25d366;

  /* Tipografi */
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-py: 100px;
  --container-max: 1200px;
  --header-h: 72px;

  /* Geçişler */
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

/* ========== CONTAINER ========== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

.text-accent {
  color: var(--accent);
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  text-align: center;
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
  line-height: 1.8;
}

/* ========== SECTIONS ========== */
.section {
  padding: var(--section-py) 0;
}

.section--dark {
  background-color: var(--bg-secondary);
}

.section--accent-bg {
  background: linear-gradient(135deg, #2a1a1a 0%, var(--bg-primary) 100%);
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(35, 37, 49, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

.header--scrolled {
  border-bottom-color: var(--border);
  background: rgba(35, 37, 49, 0.98);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 3px;
}

.logo {
  height: 40px;
  width: auto;
}

.header__logo-text {
  display: flex;
  align-items: center;
}

.logo-k {
  color: var(--accent);
  font-weight: 900;
}

/* Navigation */
.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  position: relative;
}

.header__link:hover {
  color: var(--text-primary);
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.header__link:hover::after {
  width: 100%;
}

.header__cta-btn {
  padding: 10px 24px;
  background: var(--accent);
  color: var(--text-primary);
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background var(--transition);
}

.header__cta-btn:hover {
  background: var(--accent-light);
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.header__hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform var(--transition), opacity var(--transition);
}

.header__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

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

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

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

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

.btn--whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
}

/* ========== HERO ========== */
.hero {
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at 20% 50%, rgba(225, 34, 41, 0.06) 0%, transparent 60%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(225, 34, 41, 0.12);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 100px;
  letter-spacing: 1px;
  margin-bottom: 24px;
  border: 1px solid rgba(225, 34, 41, 0.2);
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero__desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 520px;
}

.hero__trust {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Hero Visual */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__image-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  max-width: 460px;
}

.hero__image {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  object-fit: cover;
  transition: transform var(--transition), border-color var(--transition);
}

.hero__image:hover {
  transform: scale(1.02);
  border-color: var(--accent);
}

.hero__image--main {
  aspect-ratio: 16/10;
}

.hero__image--secondary {
  aspect-ratio: 16/10;
}

/* ========== PROBLEM ========== */
.problem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem__card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: border-color var(--transition), transform var(--transition);
}

.problem__card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.problem__card--highlight {
  border-color: rgba(225, 34, 41, 0.3);
  background: linear-gradient(135deg, rgba(225, 34, 41, 0.06) 0%, var(--card-bg) 100%);
}

.problem__icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 20px;
}

.problem__card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.problem__card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== ÇÖZÜM ========== */
.cozum__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.cozum__step {
  text-align: center;
  padding: 32px 16px;
  position: relative;
}

.cozum__number {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 16px;
}

.cozum__step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.cozum__step p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== HİZMETLER ========== */
.hizmetler__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hizmet__card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 28px;
  transition: border-color var(--transition), transform var(--transition);
}

.hizmet__card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.hizmet__icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 24px;
}

.hizmet__card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.hizmet__card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== NEDEN KAPICI ========== */
.neden__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.neden__item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color var(--transition);
}

.neden__item:hover {
  border-color: var(--accent);
}

.neden__marker {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--accent);
  min-width: 40px;
  line-height: 1;
  padding-top: 4px;
}

.neden__item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.neden__item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== SÜREÇ ========== */
.surec__timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.surec__timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--border-light);
}

.surec__item {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 20px 0;
  position: relative;
}

.surec__dot {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg-primary);
  position: relative;
  z-index: 1;
}

.surec__dot::after {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.surec__content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.surec__content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== PERİYODİK ========== */
.periyodik__inner {
  text-align: center;
}

.periyodik__features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 40px;
  margin-bottom: 40px;
}

.periyodik__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.periyodik__check {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
}

/* ========== SSS ========== */
.sss__list {
  max-width: 800px;
  margin: 0 auto;
}

.sss__item {
  border-bottom: 1px solid var(--border);
}

.sss__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition);
}

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

.sss__icon {
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform var(--transition);
  min-width: 24px;
  text-align: center;
}

.sss__item.active .sss__icon {
  transform: rotate(45deg);
}

.sss__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.sss__item.active .sss__answer {
  max-height: 300px;
  padding-bottom: 24px;
}

.sss__answer p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ========== HAKKIMIZDA ========== */
.hakkimizda__content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}

.hakkimizda__text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 16px;
}

.hakkimizda__text strong {
  color: var(--accent);
}

.hakkimizda__values {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hakkimizda__value {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 0.95rem;
}

.hakkimizda__value-icon {
  color: var(--accent);
  font-size: 0.7rem;
}

/* ========== İLETİŞİM ========== */
.iletisim__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.iletisim__card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  transition: border-color var(--transition);
}

.iletisim__card:hover {
  border-color: var(--accent);
}

.iletisim__icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin: 0 auto 16px;
}

.iletisim__card h3 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.iletisim__card a {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9rem;
}

.iletisim__card a:hover {
  color: var(--accent);
}

.iletisim__card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.iletisim__map {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ========== FORM ========== */
.form__wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.form__group input,
.form__group textarea {
  padding: 14px 18px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
}

.form__group input:focus,
.form__group textarea:focus {
  border-color: var(--accent);
}

.form__group input::placeholder,
.form__group textarea::placeholder {
  color: var(--text-muted);
}

.form__group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer__logo {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.footer__logo-img {
  height: 36px;
  width: auto;
  margin-bottom: 8px;
}

.footer__slogan {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer__nav a:hover {
  color: var(--accent);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__contact a,
.footer__contact p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer__contact a:hover {
  color: var(--accent);
}

.footer__bottom {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 32px;
  margin-top: 20px;
  border-top: 1px solid var(--border);
}

.footer__bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  z-index: 999;
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.4);
}

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --section-py: 80px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .hero__image-placeholder {
    max-width: 360px;
    margin: 0 auto;
  }

  .problem__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cozum__steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .hizmetler__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .iletisim__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hakkimizda__content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

/* Mobil */
@media (max-width: 768px) {
  :root {
    --section-py: 64px;
    --header-h: 64px;
  }

  .header__hamburger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(35, 37, 49, 0.98);
    backdrop-filter: blur(12px);
    padding: 24px;
    gap: 16px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s ease;
    border-bottom: 1px solid var(--border);
  }

  .header__nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .header__link::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 64px;
  }

  .hero__title {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 300px;
  }

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

  .cozum__steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cozum__step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
    padding: 16px 0;
  }

  .cozum__number {
    font-size: 1.6rem;
    min-width: 40px;
    margin-bottom: 0;
  }

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

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

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

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

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer__nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
}

/* Küçük mobil */
@media (max-width: 400px) {
  .container {
    padding: 0 16px;
  }

  .section__title {
    font-size: 1.5rem;
  }
}
