/* ============================================
   NOLEEMA SERVICES - Website Styles
   Brand: Blue #3DA9E0, Orange #F3A123, Dark #1a1a2e
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #3DA9E0;
  --blue-dark: #2b7fb5;
  --blue-light: #e8f4fb;
  --orange: #F3A123;
  --orange-dark: #d88c15;
  --orange-light: #fef5e6;
  --dark: #1a1a2e;
  --dark-mid: #2d2d44;
  --grey-900: #1e1e1e;
  --grey-700: #4a4a4a;
  --grey-500: #777;
  --grey-300: #ccc;
  --grey-100: #f5f5f7;
  --white: #ffffff;
  --max-width: 1200px;
  --nav-height: 80px;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--grey-700);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 { color: var(--dark); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.3rem; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- Navigation --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 10px rgba(0,0,0,0.06);
  height: var(--nav-height);
}
.nav .container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.nav-logo img { height: 48px; width: auto; }
.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--grey-700); font-weight: 500; font-size: 0.95rem;
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--orange);
  transition: width var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--dark); }
.nav-links a.active { color: var(--dark); font-weight: 600; }
.nav-links a.nav-cta {
  background: var(--orange); color: var(--white) !important;
  padding: 10px 36px !important; border-radius: 50px; font-weight: 600; font-size: 0.9rem;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--orange-dark); color: var(--white) !important; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 6px 0; transition: var(--transition); }

/* --- Hero --- */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center; overflow: hidden;
  margin-top: var(--nav-height);
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(0.35); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.7) 0%, rgba(61,169,224,0.15) 100%);
}
.hero-content { position: relative; z-index: 2; color: var(--white); max-width: 680px; }
.hero-content h1 { color: var(--white); font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin-bottom: 20px; line-height: 1.15; }
.hero-content h1 span { color: var(--orange); }
.hero-content p { font-size: 1.15rem; color: rgba(255,255,255,0.85); margin-bottom: 32px; line-height: 1.8; }
.hero-badge {
  display: inline-block; background: var(--orange); color: var(--white);
  padding: 6px 16px; border-radius: 50px; font-size: 0.85rem;
  font-weight: 600; margin-bottom: 24px; letter-spacing: 0.5px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px; font-weight: 600;
  font-size: 1rem; transition: all var(--transition); cursor: pointer; border: none;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-secondary { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.4); }
.btn-secondary:hover { border-color: var(--white); color: var(--white); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); transform: translateY(-2px); }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* --- Sections --- */
section { padding: 100px 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--grey-500); font-size: 1.05rem; }
.section-label {
  display: inline-block; color: var(--orange); font-weight: 600;
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px;
}
.bg-light { background: var(--grey-100); }
.bg-dark { background: var(--dark); color: var(--white); }
.bg-dark h2, .bg-dark h3 { color: var(--white); }
.bg-dark p { color: rgba(255,255,255,0.75); }

/* --- Stats Bar --- */
.stats-bar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); position: relative; margin-top: -60px; z-index: 10;
}
.stat-item { padding: 36px 24px; text-align: center; border-right: 1px solid var(--grey-100); }
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 2.4rem; font-weight: 800; color: var(--blue); display: block; }
.stat-label { font-size: 0.9rem; color: var(--grey-500); margin-top: 4px; }

/* --- Service Cards --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.service-card {
  background: var(--white); border-radius: var(--radius);
  padding: 40px 32px; box-shadow: var(--shadow);
  transition: all var(--transition); border-top: 4px solid transparent;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-top-color: var(--orange); }
.service-icon {
  width: 56px; height: 56px; background: var(--blue-light);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 20px; color: var(--blue);
}
.service-icon.orange { background: var(--orange-light); color: var(--orange); }
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--grey-500); font-size: 0.95rem; }
.service-card ul { list-style: none; margin-top: 16px; }
.service-card ul li {
  padding: 6px 0; font-size: 0.9rem; color: var(--grey-700);
  position: relative; padding-left: 20px;
}
.service-card ul li::before {
  content: ''; position: absolute; left: 0; top: 14px;
  width: 8px; height: 8px; background: var(--orange); border-radius: 50%;
}

/* --- Feature Block --- */
.feature-block { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }
.feature-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.feature-image img { width: 100%; height: 400px; object-fit: cover; }
.feature-text h2 { margin-bottom: 20px; }
.feature-text p { margin-bottom: 16px; }

/* --- Gallery --- */
.gallery-filters { display: flex; gap: 12px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn {
  padding: 8px 20px; border: 2px solid var(--grey-300); border-radius: 50px;
  background: transparent; cursor: pointer; font-weight: 500;
  font-size: 0.9rem; color: var(--grey-700); transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active { border-color: var(--blue); background: var(--blue); color: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.gallery-item {
  border-radius: var(--radius); overflow: hidden;
  position: relative; cursor: pointer; aspect-ratio: 4/3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: var(--white); transform: translateY(100%); transition: transform var(--transition);
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }
.gallery-caption h4 { font-size: 1rem; color: var(--white); margin-bottom: 4px; }
.gallery-caption p { font-size: 0.85rem; color: rgba(255,255,255,0.75); }

/* --- Lightbox --- */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92); justify-content: center; align-items: center; padding: 40px;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 20px; right: 30px; color: white;
  font-size: 2rem; cursor: pointer; background: none; border: none; padding: 8px; z-index: 10000;
}
.lightbox-caption { position: absolute; bottom: 20px; color: white; text-align: center; font-size: 1rem; }

/* --- CTA Banner --- */
.cta-banner { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 100%); padding: 80px 0; text-align: center; }
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.7); margin-bottom: 32px; font-size: 1.1rem; }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info { padding-top: 20px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 32px; }
.contact-icon {
  width: 48px; height: 48px; background: var(--blue-light);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0; color: var(--blue);
}
.contact-item h4 { margin-bottom: 4px; font-size: 1rem; }
.contact-item p { color: var(--grey-500); font-size: 0.95rem; }
.contact-item a { color: var(--blue); }
.contact-form { background: var(--white); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 0.9rem; color: var(--grey-700); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 2px solid var(--grey-300);
  border-radius: 8px; font-size: 1rem; font-family: inherit;
  transition: border-color var(--transition); background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--blue); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* --- Footer --- */
.footer { background: var(--dark); padding: 60px 0 0; color: rgba(255,255,255,0.7); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-about img { height: 40px; margin-bottom: 16px; }
.footer-about p { font-size: 0.9rem; line-height: 1.7; }
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 20px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--orange); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; font-size: 0.85rem;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: 160px 0 80px; background: var(--dark);
  text-align: center; position: relative; margin-top: var(--nav-height);
}
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* --- Timeline --- */
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding-left: 40px; }
.timeline::before {
  content: ''; position: absolute; left: 15px; top: 0; bottom: 0;
  width: 3px; background: var(--blue-light);
}
.timeline-item { position: relative; margin-bottom: 48px; }
.timeline-item::before {
  content: ''; position: absolute; left: -32px; top: 6px;
  width: 14px; height: 14px; background: var(--orange);
  border-radius: 50%; border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--orange);
}
.timeline-year { font-weight: 700; color: var(--blue); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.timeline-item h3 { margin-bottom: 8px; font-size: 1.2rem; }
.timeline-item p { color: var(--grey-500); }

/* --- Services Detail (services page) --- */
.service-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
  margin-bottom: 80px; padding-bottom: 80px; border-bottom: 1px solid var(--grey-100);
}
.service-detail:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }
.service-detail-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.service-detail-image img { width: 100%; height: 350px; object-fit: cover; }
.service-detail-content h3 { font-size: 1.5rem; margin-bottom: 16px; }
.service-detail-content p { margin-bottom: 16px; }
.service-list { list-style: none; margin-top: 20px; }
.service-list li { padding: 8px 0; padding-left: 24px; position: relative; font-size: 0.95rem; }
.service-list li::before { content: ''; position: absolute; left: 0; top: 16px; width: 10px; height: 2px; background: var(--orange); }

/* --- Responsive --- */
@media (max-width: 968px) {
  .feature-block, .contact-grid, .service-detail { grid-template-columns: 1fr; gap: 40px; }
  .feature-block.reverse, .service-detail.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-height: 70px; }
  .nav-links {
    display: none; position: fixed; top: var(--nav-height); left: 0; right: 0;
    background: var(--white); flex-direction: column; padding: 24px;
    gap: 16px; box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { min-height: 80vh; }
  .hero-content h1 { font-size: 2rem; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--grey-100); }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  section { padding: 60px 0; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
}
