/*  Atahan Elektrik — Site CSS
    Extracted from index.html + contact form additions
    ================================================= */

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

:root {
  --red:     #E8302A;
  --red-soft:#FFF1F0;
  --red-mid: #FFDEDE;
  --bg:      #F4F6FA;
  --white:   #FFFFFF;
  --surface: #FFFFFF;
  --border:  #E8EAF0;
  --border2: #D4D8E4;
  --text:    #0E0F1A;
  --sub:     #5A5D72;
  --muted:   #9598AE;
  --font:    'Plus Jakarta Sans', sans-serif;
  --radius:  12px;
  --shadow:  0 2px 16px rgba(0,0,0,.06);
}

html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: var(--font); background: var(--bg); color: var(--text);
        -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a     { text-decoration: none; color: inherit; }
img   { max-width: 100%; display: block; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 200;
  height: 62px; display: flex; align-items: center;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 9px; cursor: pointer; flex-shrink: 0; }
.logo-mark {
  width: 32px; height: 32px; background: var(--red); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 17px; height: 17px; }
.logo-text { font-size: 16px; font-weight: 700; letter-spacing: -.3px; color: var(--text); }
.logo-text em { font-style: normal; color: var(--muted); font-weight: 400; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--sub);
  padding: 7px 12px; border-radius: 8px; transition: all .18s; white-space: nowrap;
}
.nav-links a:hover { background: var(--bg); color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 600; }

.nav-cta {
  background: var(--red) !important; color: #fff !important;
  padding: 8px 18px !important; border-radius: 9px !important;
  font-weight: 600 !important; transition: opacity .18s !important;
}
.nav-cta:hover { opacity: .88 !important; }

.hamburger {
  display: none; flex-direction: column; gap: 4.5px;
  background: none; border: none; cursor: pointer; padding: 6px; border-radius: 8px;
}
.hamburger span {
  display: block; width: 20px; height: 1.5px; background: var(--text);
  border-radius: 2px; transition: all .28s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }

.mobile-menu {
  display: none; position: fixed; top: 62px; inset-inline: 0; bottom: 0;
  background: var(--white); z-index: 199; padding: 16px 20px;
  flex-direction: column; gap: 2px; border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 17px; font-weight: 500; color: var(--sub);
  padding: 14px 16px; border-radius: 10px; transition: all .18s;
}
.mobile-menu a:hover { background: var(--bg); color: var(--text); }
.mobile-menu a.active { color: var(--red); background: var(--red-soft); }

/* ── PAGE ── */
.page { display: none; min-height: calc(100vh - 62px); }
.page.active { display: block; animation: pgIn .38s cubic-bezier(.16,1,.3,1) both; }
@keyframes pgIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ── HOME ── */
.hero {
  padding: 10px 28px; max-width: 1160px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  position: relative; height: calc(100vh - 62px);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, #c9cce0 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, black 30%, transparent 100%);
  opacity: .35; pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--white); border: 1px solid var(--border2);
  font-size: 12.5px; font-weight: 600; color: var(--sub);
  padding: 5px 13px 5px 7px; border-radius: 100px;
  margin-bottom: 18px; position: relative;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.bdot {
  width: 20px; height: 20px; background: var(--red-soft); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.bdot::after {
  content: ''; width: 7px; height: 7px; background: var(--red);
  border-radius: 50%; animation: pp 2.2s infinite;
}
@keyframes pp {
  0%,100% { box-shadow: 0 0 0 0 rgba(232,48,42,.5); }
  55%      { box-shadow: 0 0 0 5px rgba(232,48,42,0); }
}
.hero-title {
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 800; letter-spacing: -2px; line-height: 1.07;
  color: var(--text); max-width: 760px; margin-bottom: 12px; position: relative;
}
.hero-title span { color: var(--red); }
.hero-sub {
  font-size: clamp(14px, 1.6vw, 16px); font-weight: 400; line-height: 1.6;
  color: var(--sub); max-width: 520px; margin-bottom: 24px; position: relative;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; position: relative; }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font); font-size: 14.5px; font-weight: 600;
  padding: 12px 24px; border-radius: 10px; cursor: pointer; border: none; transition: all .18s;
}
.btn-red {
  background: var(--red); color: #fff;
  box-shadow: 0 4px 16px rgba(232,48,42,.28);
}
.btn-red:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(232,48,42,.35); }
.btn-ghost {
  background: var(--white); color: var(--text);
  border: 1px solid var(--border2); box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.btn-ghost:hover { background: var(--bg); transform: translateY(-1px); }

.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  max-width: 480px; width: 100%; margin-top: 36px; position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.sbox { background: var(--white); padding: 18px 14px; text-align: center; }
.snum { font-size: 26px; font-weight: 800; letter-spacing: -1px; color: var(--text); line-height: 1; margin-bottom: 4px; }
.snum b { color: var(--red); }
.slabel { font-size: 11.5px; font-weight: 500; color: var(--muted); letter-spacing: .2px; }

/* ── SECTION HEAD ── */
.sh { margin-bottom: 44px; }
.kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--red); margin-bottom: 10px;
}
.kicker::before { content: ''; width: 16px; height: 1.5px; background: var(--red); }
.stitle { font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -1.2px; line-height: 1.1; color: var(--text); margin-bottom: 10px; }
.ssub { font-size: 15.5px; font-weight: 400; line-height: 1.75; color: var(--sub); max-width: 480px; }

/* ── ABOUT ── */
.about-wrap { padding: 80px 0 96px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.about-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 20px; padding: 36px 32px;
  box-shadow: 0 2px 20px rgba(0,0,0,.05);
  position: relative; overflow: hidden;
}
.about-card::after {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, var(--red-soft) 0%, transparent 70%);
  pointer-events: none;
}
.ac-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--border);
}
.ac-ico {
  width: 46px; height: 46px; background: var(--red-soft);
  border: 1px solid var(--red-mid); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.ac-ico svg { width: 22px; height: 22px; fill: var(--red); }
.ac-lbl { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: 2px; }
.ac-val { font-size: 19px; font-weight: 700; letter-spacing: -.4px; color: var(--text); }

.feat-list { display: flex; flex-direction: column; gap: 11px; }
.fi { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--sub); }
.fck {
  width: 19px; height: 19px; background: var(--red-soft); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.fck svg { width: 10px; height: 10px; stroke: var(--red); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.about-body p { font-size: 15px; font-weight: 400; line-height: 1.85; color: var(--sub); margin-bottom: 16px; }

/* ── BRANDS ── */
.brands-wrap { padding: 80px 0 96px; background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bgrid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
}
.btile {
  background: var(--white); padding: 24px 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  transition: background .2s; cursor: default; min-height: 120px;
}
.btile:hover { background: var(--red-soft); }
.btile:hover .bn { color: var(--red); }
.btile-logo { width: 110px; height: 72px; object-fit: contain; display: block; }
.btile-logo-placeholder {
  width: 40px; height: 40px; background: var(--bg); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.bn { font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); text-align: center; transition: color .2s; }

/* ── CONTACT ── */
.contact-wrap { padding: 80px 0 100px; }
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }

.ccard { background: var(--white); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.ccard-top {
  padding: 28px 32px 24px;
  background: linear-gradient(135deg, #fff5f5 0%, #fff0ef 100%);
  border-bottom: 1px solid var(--red-mid);
}
.ccard-title { font-size: 20px; font-weight: 800; letter-spacing: -.4px; color: var(--text); margin-bottom: 3px; }
.ccard-sub   { font-size: 13px; font-weight: 400; color: var(--sub); }

.crow {
  display: flex; align-items: center; gap: 13px;
  padding: 15px 32px; border-bottom: 1px solid var(--border);
  transition: background .18s;
}
.crow:last-child { border-bottom: none; }
.crow:hover { background: var(--bg); }
.cico { width: 36px; height: 36px; background: var(--red-soft); border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cico svg { width: 16px; height: 16px; fill: var(--red); }
.clbl { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 2px; }
.cval { font-size: 14px; font-weight: 600; color: var(--text); }
.cval a { color: var(--text); transition: color .18s; }
.cval a:hover { color: var(--red); }

/* ── CONTACT FORM ── */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.form-card-top {
  padding: 28px 32px 24px;
  background: linear-gradient(135deg, #fff5f5 0%, #fff0ef 100%);
  border-bottom: 1px solid var(--red-mid);
}
.form-body { padding: 28px 32px; display: flex; flex-direction: column; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.field input,
.field textarea {
  width: 100%; font-family: var(--font); font-size: 14.5px; font-weight: 500;
  color: var(--text); background: var(--bg);
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 11px 14px; transition: border-color .18s, box-shadow .18s;
  outline: none;
}
.field input:focus,
.field textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(232,48,42,.1); }
.field textarea { resize: vertical; min-height: 100px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-status {
  padding: 10px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 500;
  display: none;
}
.form-status.success { display: block; background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.form-status.error   { display: block; background: #fff1f0; border: 1px solid var(--red-mid); color: #991b1b; }

/* ── MAP CARD ── */
.mapcard { background: var(--white); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; min-height: 240px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.maparea { flex: 1; position: relative; overflow: hidden; background: #EEF0F8; display: flex; align-items: center; justify-content: center; }
.map-dots2 { position: absolute; inset: 0; background-image: radial-gradient(circle, #c4c8d8 1px, transparent 1px); background-size: 24px 24px; }
.map-glow2 { position: absolute; inset: 0; background: radial-gradient(ellipse 55% 45% at 50% 50%, rgba(232,48,42,.1) 0%, transparent 70%); }
.map-pin-wrap { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.maplabel { background: var(--white); border: 1px solid var(--border); font-size: 12.5px; font-weight: 700; color: var(--text); padding: 5px 13px; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.1); white-space: nowrap; }
.mappin { width: 13px; height: 13px; background: var(--red); border-radius: 50%; border: 2.5px solid white; box-shadow: 0 0 14px rgba(232,48,42,.5); animation: bounce 2.5s ease-in-out infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.mapfoot { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.mft { font-size: 13px; color: var(--sub); line-height: 1.5; }
.mft strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 1px; }
.mapbtn { background: var(--bg); border: 1px solid var(--border); color: var(--sub); font-family: var(--font); font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 8px; cursor: pointer; transition: all .18s; }
.mapbtn:hover { border-color: var(--red); color: var(--red); }

/* ── FOOTER ── */
footer { background: var(--white); border-top: 1px solid var(--border); padding: 24px 28px; }
.fi2 { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.fcp { font-size: 13px; color: var(--muted); }
.footer-legal { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-legal a { font-size: 13px; font-weight: 500; color: var(--sub); transition: color .18s; }
.footer-legal a:hover { color: var(--red); }

/* ── MODAL (Frontend) ── */
.s-modal-overlay {
  position: fixed; inset: 0; background: rgba(14,15,26,.4); backdrop-filter: blur(4px);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.s-modal-overlay.open { opacity: 1; pointer-events: auto; }
.s-modal {
  background: var(--white); border-radius: 20px; width: 100%; max-width: 640px;
  max-height: 85vh; display: flex; flex-direction: column;
  box-shadow: 0 10px 40px rgba(0,0,0,.1);
  transform: scale(.96) translateY(10px); transition: transform .25s cubic-bezier(.16,1,.3,1);
}
.s-modal-overlay.open .s-modal { transform: scale(1) translateY(0); }
.s-modal-header {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.s-modal-title { font-size: 17px; font-weight: 700; color: var(--text); }
.s-modal-close {
  background: var(--bg); border: none; border-radius: 8px; padding: 6px;
  cursor: pointer; color: var(--sub); transition: all .18s;
}
.s-modal-close:hover { background: var(--border); color: var(--text); }
.s-modal-close svg { width: 18px; height: 18px; display: block; }
.s-modal-body {
  padding: 24px; overflow-y: auto; font-size: 14.5px; line-height: 1.7; color: var(--sub);
}
.s-modal-body h3 { font-size: 16px; color: var(--text); margin: 20px 0 10px; }
.s-modal-body p { margin-bottom: 14px; }
.s-modal-body ul { margin-bottom: 14px; padding-left: 20px; }
.s-modal-body strong { color: var(--text); }

/* ── REVEAL ── */
.rev { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.rev.in { opacity: 1; transform: none; }
.rev.d1 { transition-delay: .07s; }
.rev.d2 { transition-delay: .14s; }
.rev.d3 { transition-delay: .21s; }
.rev.d4 { transition-delay: .28s; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .about-grid, .cgrid { grid-template-columns: 1fr; }
  .bgrid { grid-template-columns: repeat(3, 1fr); }
  .container, .hero { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 48px; padding-bottom: 48px; height: auto; min-height: auto; }
  .stats-row { margin-top: 32px; }
  .about-wrap, .brands-wrap, .contact-wrap { padding-top: 56px; padding-bottom: 72px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .bgrid { grid-template-columns: repeat(2, 1fr); }
}
