:root {
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-accent: #0f172a;
  --color-border: #e2e8f0;
  
  --max-width: 1200px;
  --border-radius: 8px;
  --transition: all 0.25s ease-in-out;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-hover: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body.no-scroll {
  overflow: hidden;
}


body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--color-primary-hover);
}

/* Accessibility: Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--color-primary);
  color: white;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  z-index: 1000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 20px;
}

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

/* Header & Nav */
.site-header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 96px;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  outline-offset: 4px;
}

.site-logo-img {
  height: 80px;
  width: auto;
  max-width: 320px;
  display: block;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.site-logo a:hover .site-logo-img {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .site-logo-img {
    height: 62px;
    max-width: 240px;
  }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-menu li {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-menu a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 15px;
  display: flex;
  align-items: center;
  height: 80px; /* Bridge the mouse hover gap completely */
  transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a {
  color: var(--color-primary);
}

/* Dropdown Down Arrow Indicator */
.menu-item-has-children > a {
  gap: 6px;
}

.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: var(--transition);
}

.menu-item-has-children:hover > a::after {
  transform: rotate(-135deg);
  margin-top: 1px;
}

/* Dropdown Menu Styles */
.nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%; /* Placed exactly at the bottom of the parent li / header line */
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-hover);
  list-style: none;
  min-width: 240px;
  border-radius: var(--border-radius);
  padding: 8px 0;
  z-index: 1000;
}

.nav-menu .sub-menu li {
  width: 100%;
  display: block;
}

.nav-menu .sub-menu a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  height: auto;
}

.nav-menu .sub-menu a:hover {
  background-color: var(--color-bg);
  color: var(--color-primary);
}

.nav-menu li:hover .sub-menu {
  display: block;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  margin: 5px 0;
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 15px;
}

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

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

.btn-secondary {
  background-color: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-bg);
  border-color: var(--color-text-muted);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 96px 0;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero p {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 680px;
  margin: 0 auto 32px auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--color-accent);
}

.section-desc {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 48px auto;
  font-size: 16px;
}

/* Services Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 32px;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
}

.card-icon {
  width: 48px;
  height: 48px;
  background-color: #eff6ff;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-accent);
}

.card p {
  color: var(--color-text-muted);
  font-size: 15px;
  margin-bottom: 20px;
}

.card-link {
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Process & Approach List */
.process-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background-color: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 20px auto;
}

.process-step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-accent);
}

.process-step p {
  color: var(--color-text-muted);
  font-size: 14px;
}

/* Call to Action Box */
.cta-box {
  background: linear-gradient(135deg, var(--color-accent) 0%, #1e293b 100%);
  color: white;
  border-radius: var(--border-radius);
  padding: 64px 48px;
  text-align: center;
}

.cta-box h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-box p {
  font-size: 18px;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto 32px auto;
}

/* Breadcrumb */
.breadcrumb {
  margin: 24px 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb span {
  margin: 0 8px;
  color: var(--color-border);
}

/* Interior Pages */
.page-title-section {
  padding: 64px 0 40px 0;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-surface);
}

.page-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-accent);
}

.page-content {
  padding: 64px 0;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 48px;
  box-shadow: var(--shadow);
}

.content-wrapper h2 {
  font-size: 24px;
  margin: 32px 0 16px 0;
}

.content-wrapper p {
  margin-bottom: 20px;
}

.content-wrapper ul {
  margin: 0 0 24px 24px;
}

.content-wrapper li {
  margin-bottom: 8px;
}

/* Contact Details List */
.contact-list {
  list-style: none;
  margin: 24px 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 16px;
}

.contact-icon {
  color: var(--color-primary);
  font-weight: bold;
}

/* Footer */
.site-footer {
  background-color: var(--color-accent);
  color: #94a3b8;
  padding: 64px 0 32px 0;
  border-top: 1px solid #334155;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 48px;
  margin-bottom: 48px;
}

.footer-column h3 {
  color: white;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 24px;
}

.footer-column p {
  font-size: 14px;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 14px;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 32px;
  text-align: center;
  font-size: 14px;
}

/* Responsive Rules */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
  }
  
  .nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 96px;
    left: 0;
    width: 100%;
    background-color: var(--color-surface);
    padding: 0 24px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    gap: 16px;
    align-items: flex-start;
    
    /* Open/close transition */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.25s ease-in-out, padding 0.3s ease-in-out;
    pointer-events: none;
  }
  
  .nav-menu.active {
    max-height: 600px;
    opacity: 1;
    padding: 24px;
    pointer-events: auto;
  }

  .nav-menu li {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
  }

  .nav-menu a {
    height: auto;
    padding: 12px 0;
    width: 100%;
  }

  .menu-item-has-children > a::after {
    display: none; /* Hide default desktop arrow */
  }

  .sub-menu-toggle {
    display: flex;
    position: absolute;
    right: 0;
    top: 0;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    align-items: center;
    justify-content: center;
  }

  .sub-menu-toggle .arrow {
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-text);
    border-bottom: 2px solid var(--color-text);
    transform: rotate(45deg);
    transition: transform 0.2s ease-in-out;
    margin-top: -3px;
  }

  .sub-menu-toggle.toggled .arrow {
    transform: rotate(-135deg);
    margin-top: 3px;
  }

  .nav-menu .sub-menu {
    display: none; /* Hide submenu on mobile by default */
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    min-width: auto;
    padding: 4px 0 4px 16px;
    width: 100%;
    background-color: transparent;
  }

  .nav-menu .sub-menu li {
    width: 100%;
  }

  .nav-menu .sub-menu a {
    padding: 8px 0;
    font-size: 13.5px;
    color: var(--color-text-muted);
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .section {
    padding: 48px 0;
  }
  
  .cta-box {
    padding: 40px 24px;
  }
  
  .cta-box h2 {
    font-size: 28px;
  }
  
  .content-wrapper {
    padding: 24px;
  }
}

/* Floating WhatsApp Button Widget */
.whatsapp-float-btn {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 999;
  transition: var(--transition);
  animation: pulse-whatsapp 2s infinite;
}
.whatsapp-float-btn:hover {
  background-color: #128c7e;
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}
.whatsapp-float-icon {
  width: 30px;
  height: 30px;
}
@keyframes pulse-whatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (max-width: 768px) {
  .whatsapp-float-btn {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-float-icon {
    width: 24px;
    height: 24px;
  }
}

/* Contact Page Grid & Form Styling */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
  margin-top: 32px;
}

.contact-info {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 32px;
}

.contact-info h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-accent);
}

.contact-info p {
  color: var(--color-text-muted);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.contact-form-container {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.contact-form-container h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--color-accent);
}

.contact-form-container p {
  color: var(--color-text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

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

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

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 15px;
  background-color: var(--color-bg);
  color: var(--color-text);
  transition: var(--transition);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: var(--color-surface);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-submit-teklif {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.form-response {
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .contact-form-container {
    padding: 24px 16px;
  }
}

