/* Import existing site styles first so we don't duplicate work */
@import url("./styles.css");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");

/* Topbar brand uppercase */
.topbar .tb-brand {
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.6px;
  color:#fff;
}

/* Nav item container for dropdown */
.nav-item.has-dropdown { position: relative; }

/* Dropdown — vertical list, opens downward */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  z-index: 1000;
}

/* Desktop hover to open */
.nav-item.has-dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Mobile/open state via JS */
.nav-item.has-dropdown.open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  position: static;
}

/* Dropdown items */
.dropdown-menu li { list-style: none; width:100%; }
.dropdown-menu a {
  display: block;
  padding: 12px 18px;
  color: #222;
  text-decoration: none;
  font-size: 15px;
  width:100%;
}
.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: #f2f2f2;
  outline: none;
}

/* Ensure nav parent has enough z-index */
.header-inner, .site-header { z-index: 50; }

/* Header / Nav alignment enforcement */
.header-inner { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.header-inner .main-nav > ul { display:flex; align-items:center; gap:16px; margin:0; padding:0; list-style:none; }
.header-inner .cta { display:flex; gap:12px; align-items:center; }
.header-inner .cta .btn { padding:8px 12px; border-radius:8px; }
.header-inner .cta .btn-outline { border:1px solid #2b2b2b; background:transparent; color:inherit }
.header-inner .cta .btn-primary { background:#2b2b2b; color:#fff }

/* Prevent horizontal mega-like expansion */
.nav-item.has-dropdown .dropdown-panel { max-width: 100%; }

/* Small-screen tweaks */
@media (max-width: 700px) {
  .dropdown-menu {
    width: 100%;
    left: 0;
    box-shadow: none;
    border-radius: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    position: static;
    padding: 0;
  }
  .nav-item.has-dropdown > .dropdown-toggle { width: 100%; text-align: left; }
  .dropdown-menu a { padding: 12px 16px; }
}

/* prefer-reduced-motion respect */
@media (prefers-reduced-motion: reduce) {
  .dropdown-menu, .nav-item.has-dropdown:hover > .dropdown-menu, .nav-item.has-dropdown.open > .dropdown-menu {
    transition: none;
  }
}

/* Logo sizing */
.site-logo { max-height:56px; width:auto; object-fit:contain; display:block; }

/* Neden Biz? card styles */
.why-us .cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 18px;
}
.why-us .card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: transform 200ms ease, box-shadow 200ms ease;
  display: flex;
  flex-direction: column;
}
.why-us .card:hover { transform: translateY(-6px); box-shadow: 0 10px 28px rgba(0,0,0,0.10); }
.why-us .card-media img { width:100%; height:160px; object-fit:cover; display:block; }
.why-us .card-body { padding: 16px; }
.why-us .card-body h3 { margin: 0 0 8px; font-size:18px; }
.why-us .card-body p { margin:0; color:#555; }

@media (max-width: 700px) {
  .why-us .cards-grid { grid-template-columns: 1fr; }
  .why-us .card-media img { height:140px; }
}

/* === site-security service-row styles (flex only) === */
.section-wrap{ max-width:1100px; margin:0 auto; padding:24px 16px; box-sizing:border-box; }

.service-row{
  display:flex;
  gap:40px;
  align-items:flex-start;
  justify-content:space-between;
  margin:36px 0;
}
.service-row.image-right{ flex-direction:row-reverse; }
.service-row.image-left{ flex-direction:row; }

.service-text{ flex:1 1 520px; min-width:0; }
.service-text h2{ margin-top:0; }
.service-text p{ line-height:1.6; color:#333; }

.service-img{ flex:0 0 520px; max-width:520px; display:flex; }
.service-img img{
  width:100%;
  max-width:520px;
  height:auto;
  border-radius:16px;
  display:block;
  box-shadow:0 10px 25px rgba(0,0,0,0.10);
}

/* full width single column section (section 4) */
.service-full{ width:100%; }
.service-full-inner{ max-width:900px; margin:40px auto; padding:0 16px; box-sizing:border-box; text-align:left; }

@media (max-width:900px){
  .service-row{ flex-direction:column; }
  .service-row.image-right, .service-row.image-left{ flex-direction:column; }
  .service-img{ width:100%; max-width:100%; flex:0 0 auto; }
  .service-text{ width:100%; }
  .service-full-inner{ padding:0 12px; }
}

/* User-requested explicit CSS block (do not remove existing rules) */
.service-row {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 80px;
}

.service-row img {
  max-width: 520px;
  width: 100%;
  border-radius: 16px;
}

.service-row.image-left {
  flex-direction: row;
}

.service-row.image-right {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  .service-row,
  .service-row.image-right {
    flex-direction: column;
  }
}

/* Hero slider (minimal, used on index.html) */
.hero-slider { position: relative; overflow: hidden; height: 70vh; min-height: 360px; }
.hero-slider .slides { position: absolute; inset: 0; }
.hero-slider .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease; }
.hero-slider .slide.active { opacity: 1; }
.hero-overlay { position: relative; z-index: 30; display: flex; align-items: center; height: 100%; }
.hero-overlay::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.40); z-index: 20; }
.hero-inner { position: relative; z-index: 40; color: #fff; padding: 40px 0; }

@media (max-width: 700px) {
  .hero-slider { height: 60vh; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider .slide { transition: none; }
}

/* Certificate image and note styles */
.cert-img { display:block; width:100%; max-width:900px; margin:18px 0 10px; border-radius:14px; }
.cert-note { max-width:900px; }
.cert-note h2 { margin:10px 0 8px; font-size:28px; }
.cert-note p { margin:0 0 24px; line-height:1.7; font-size:16px; color:#333; }

/* Service hero image constraint (global for service pages) */
.service-hero{ overflow:hidden; border-radius:10px; margin:18px 0; }
.service-hero img{ width:100%; max-height:400px; object-fit:cover; display:block; }

/* Service content and highlights */
.service-content{ max-width:980px; margin:18px 0 40px; }
.service-content h3{ margin-top:18px; }
.highlights{ list-style:none; padding:0; margin:12px 0 0; display:grid; grid-template-columns:repeat(2, 1fr); gap:10px; }
.highlights li{ background:#fff; padding:10px 12px; border-radius:8px; box-shadow:0 6px 18px rgba(0,0,0,0.04); }

@media (max-width:800px){
  .highlights{ grid-template-columns:1fr; }
}

/* New hero overlay styles */
.hero-container{ position:relative; text-align:center; overflow:hidden; border-radius:10px; margin:18px 0; }
.hero-container .hero-image{ width:100%; height:400px; object-fit:cover; display:block; filter:brightness(0.7); }
.hero-title{ position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); color:#fff; font-size:3rem; font-weight:800; text-shadow:2px 2px 10px rgba(0,0,0,0.8); width:90%; margin:0; padding:0 12px; line-height:1.05; }

@media (max-width:700px){
  .hero-container .hero-image{ height:260px; }
  .hero-title{ font-size:1.6rem; }
}

/* References logos styles (added per request) */
.references {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: center;
  margin: 20px 0 40px;
}

.references img {
  max-width: 180px;
  width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: 0.3s ease;
}

.references img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@media (max-width: 768px) {
  .references {
    justify-content: center;
  }
}

/* Global modern form styles (applies site-wide) */
.contact-grid { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items:start; margin-top:18px; }
.contact-card { background:#fff; border-radius:12px; padding:18px; box-shadow:0 8px 26px rgba(0,0,0,0.06); }
.contact-card h2{ margin-top:0; font-size:20px; }
.cc-line { margin:10px 0; color:#333; display:flex; gap:10px; align-items:center; }
.cc-line i{ color:#2b2b2b; width:22px; text-align:center; }

.ajax-form label { display:block; margin-bottom:12px; color:#333; font-weight:600; }
.ajax-form input[type="text"], .ajax-form input[type="email"], .ajax-form input[type="tel"], .ajax-form input:not([type]), .ajax-form textarea, .ajax-form select {
  width:100%; padding:14px 16px; border-radius:10px; border:1px solid #e6e6e6; background:#fbfbfb; box-sizing:border-box; font-size:15px; color:#222; min-height:44px;
}
.ajax-form textarea{ min-height:120px; resize:vertical; padding-top:12px; }
.ajax-form input:focus, .ajax-form textarea:focus, .ajax-form select:focus { outline:none; border-color:#2b2b2b; box-shadow:0 6px 18px rgba(43,43,43,0.08); }
.ajax-form .btn { display:inline-block; padding:12px 20px; border-radius:10px; border:none; cursor:pointer; }
.ajax-form .btn-primary { background:#2b2b2b; color:#fff; }
.ajax-form .btn-primary:hover { background:#111; }

@media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; } .contact-card{ order:2 } .contact-form-wrap{ order:1 } }

