/* Base: single corporate green, neutral grays, accessible contrast */
:root {
  --green-900: #0a4527; /* deepest */
  --green-800: #0d5a31; /* darker shade for hover/headers */
  --green-700: #106b3a; /* primary */
  --green-600: #137f46; /* accents */
  --green-500: #169452; /* light accents */
  --green-50:  #effaf4; /* subtle surfaces */
  --gray-900: #0f172a;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-100: #f1f5f9;
  --white: #ffffff;

  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;

  --container-max: 1120px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  background: var(--green-700);
  color: var(--white);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  padding: 0 20px;
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--gray-900);
}
.logo-img { width: 36px; height: 36px; object-fit: cover; border-radius: 8px; border: 1px solid var(--gray-100); }
.logo-text {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.site-nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: var(--gray-700); font-weight: 500; }
.site-nav a:hover { color: var(--green-700); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.nav-toggle-bar { display: block; width: 24px; height: 2px; background: var(--gray-900); margin: 5px 0; }

/* Hero */
.hero {
  position: relative;
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--gray-100);
  background: var(--green-700);
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('images/askerlik.jpg');
  background-size: cover;
  background-position: center;
  opacity: .25; /* make text readable */
}
.hero .container { position: relative; z-index: 1; }
.hero .container { display: grid; grid-template-columns: 1fr; gap: 0; }
.hero h1 { margin: 0 0 12px; line-height: 1.2; font-size: clamp(28px, 4vw, 44px); }
.hero p { margin: 0 0 20px; color: #ffffff; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 16px; border-radius: var(--radius-md); border: 1px solid transparent; text-decoration: none; font-weight: 600; }
.btn.primary { background: var(--green-700); color: var(--white); }
.btn.primary:hover { background: var(--green-800); }
.btn.ghost { background: transparent; color: var(--green-700); border-color: var(--green-700); }
.btn.ghost:hover { background: var(--green-700); color: var(--white); }
.btn.inline { height: 38px; padding: 0 12px; font-weight: 600; color: var(--green-700); border: 1px solid var(--green-700); border-radius: var(--radius-sm); }
.btn.inline:hover { background: var(--green-800); color: var(--white); }

.hero-illustration { display: none; }

/* Ensure strong contrast for hero content on background image */
.hero .btn.ghost { color: #ffffff; border-color: #ffffff; }
.hero .btn.ghost:hover { background: #ffffff; color: var(--green-700); }
.hero .btn.primary { box-shadow: 0 2px 0 rgba(0,0,0,0.12); }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: #fafafa; }
/* Green-toned background only for the emanet section */
#emanet.section.alt { background: var(--green-800); }
#emanet .section-header h2 { color: #ffffff; }
#emanet .section-header p { color: #f0fff7; }
#emanet .feature { border-color: var(--green-50); }
#emanet .feature h3 { color: var(--gray-900); }
#emanet .feature p { color: var(--gray-700); }

/* Green-toned background for iletisim section */
#iletisim.section.alt { background: var(--green-800); }
#iletisim .section-header h2 { color: #ffffff; }
#iletisim .section-header p { color: #f0fff7; }
#iletisim .contact-item { background: var(--white); border-color: var(--green-50); }
#iletisim .contact-link:hover { color: var(--green-700); }
.section-header h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 32px); }
.section-header p { margin: 0 0 24px; color: var(--gray-700); }

.grid { display: grid; gap: 20px; }
.grid.features { grid-template-columns: repeat(3, 1fr); }

/* Sets Container */
.sets-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 100%;
}

.set-item {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--white) 0%, #f8fffe 100%);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(16, 107, 58, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 2px solid var(--green-50);
  position: relative;
}

.set-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-700), var(--green-500));
  z-index: 1;
}

.set-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--green-50);
  cursor: pointer;
  transition: transform 0.3s ease;
}

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

.set-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  position: relative;
}

.set-content h3 {
  margin: 0;
  font-size: 20px;
  color: var(--gray-900);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.set-content .btn {
  align-self: center;
  min-width: 140px;
  height: 44px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(16, 107, 58, 0.25);
  border: 2px solid transparent;
}

.feature { border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 20px; background: var(--white); }

.feature-box { 
  border: 1px solid var(--green-50); 
  border-radius: var(--radius-lg); 
  padding: 24px 20px; 
  background: var(--white); 
  text-align: center;
  box-shadow: 0 2px 8px rgba(16, 107, 58, 0.08);
}
.feature-icon { 
  font-size: 32px; 
  margin-bottom: 12px; 
  display: block; 
}
.feature-box h3 { 
  margin: 0 0 8px; 
  color: var(--green-700); 
  font-size: 16px; 
  font-weight: 700; 
}
.feature-box p { 
  margin: 0; 
  color: var(--gray-700); 
  font-size: 14px; 
  line-height: 1.4; 
}

/* Storage and Materials Items */
.storage-items, .materials-items {
  margin-top: 40px;
}

.storage-items h3, .materials-items h3 {
  margin: 0 0 20px;
  font-size: 22px;
  color: var(--gray-900);
  text-align: center;
}

#emanet .storage-items h3 {
  color: #ffffff;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.item-card {
  background: var(--white);
  border: 1px solid var(--green-50);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(16, 107, 58, 0.08);
  transition: all 0.2s ease;
}

.item-card:hover {
  border-color: var(--green-100);
  box-shadow: 0 4px 16px rgba(16, 107, 58, 0.12);
}

.item-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.item-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--green-700);
  font-weight: 700;
}

.item-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 14px;
  line-height: 1.4;
}

.item-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.item-card .btn {
  margin-top: 12px;
  align-self: center;
  min-width: 100px;
}

/* Contact */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-item { border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 16px; background: var(--white); }
.contact-label { display: block; font-size: 12px; color: var(--gray-600); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .08em; }
.contact-link { color: var(--gray-900); text-decoration: none; }
.contact-link:hover { color: var(--green-700); }

/* Footer */
.site-footer { border-top: 1px solid var(--gray-100); padding: 20px 0; color: var(--gray-600); }
.site-footer p { margin: 0; }

/* WhatsApp FAB - fixed bottom-left */
.whatsapp-fab {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--green-700);
  color: var(--white);
  text-decoration: none;
  min-height: 64px;
  padding: 16px 22px;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(16, 107, 58, 0.45), 0 4px 16px rgba(16, 107, 58, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  transition: all 0.3s ease;
}
.whatsapp-fab:hover { 
  background: var(--green-800); 
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(16, 107, 58, 0.55), 0 6px 20px rgba(16, 107, 58, 0.35);
}
.whatsapp-icon { display: grid; place-items: center; }
.whatsapp-text { display: grid; line-height: 1.1; }
.whatsapp-text .line1 { font-weight: 700; }
.whatsapp-text .line2 { font-weight: 600; opacity: .95; }

/* Help popup */
.help-popup {
  position: fixed;
  bottom: 100px;
  left: 20px;
  z-index: 60;
  max-width: 320px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--gray-100);
  animation: slideInUp 0.4s ease-out;
}

.help-popup-content {
  padding: 0;
}

.help-popup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: var(--green-700);
  color: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.help-popup-icon {
  font-size: 20px;
}

.help-popup-title {
  font-weight: 700;
  flex: 1;
}

.help-popup-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-popup-body {
  padding: 20px;
}

.help-popup-body p {
  margin: 0 0 16px;
  color: var(--gray-700);
  line-height: 1.5;
}

.help-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.help-btn {
  display: block;
  padding: 10px 16px;
  background: var(--green-50);
  color: var(--green-700);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
}

.help-btn:hover {
  background: var(--green-700);
  color: var(--white);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .grid.cards, .grid.features, .contact { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .site-nav { 
    position: fixed; 
    inset: 68px 0 auto 0; 
    background: var(--white); 
    border-bottom: 1px solid var(--gray-100); 
    transform: translateY(-120%); 
    transition: transform .25s ease;
    display: none;
  }
  .site-nav.open { 
    transform: translateY(0); 
    display: block;
  }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-top: 1px solid var(--gray-100); }
  .site-nav a { display: block; padding: 14px 20px; }
  .nav-toggle { display: inline-block; }
}

@media (max-width: 520px) {
  .grid.cards, .grid.features, .contact { grid-template-columns: 1fr; }
  .whatsapp-label { font-weight: 600; }
  .sets-container { grid-template-columns: 1fr; }
  .items-grid { grid-template-columns: 1fr; }
}


