/* ESIMA CONCEPT ENTERPRISE - Professional Website Styles */
/* Light blue and white theme, clean corporate design inspired by IHS Towers */

:root {
  --primary: #1a5276;
  --primary-light: #2980b9;
  --accent: #5dade2;
  --light-blue: #eaf2f8;
  --white: #ffffff;
  --dark: #1c2833;
  --gray: #5d6d7e;
  --light-gray: #f4f6f7;
  --border: #d5dbdb;
  --success: #27ae60;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Navigation – bold logo & company identity at top */
header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--primary);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  height: 70px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text .company-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.brand-text .tagline {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-top: 2px;
}

.brand-text .bn {
  font-size: 0.75rem;
  color: var(--gray);
  font-weight: 500;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.live-time {
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 500;
}

nav {
  display: flex;
  align-items: center;
}

/* Ensure nav is reachable on mobile even if header-right is partially hidden */
@media (max-width: 700px) {
  .header-right {
    display: block;
  }
  .header-right .live-time {
    display: none;
  }
}

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

.nav-menu a {
  display: block;
  padding: 10px 14px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: var(--light-blue);
  color: var(--primary);
}

.nav-menu a.admin-link {
  font-size: 0.85rem;
  color: var(--gray);
  border: 1px solid var(--border);
  margin-left: 8px;
  padding: 6px 12px;
}

.nav-menu a.admin-link:hover {
  background: var(--light-gray);
  color: var(--dark);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--primary);
  cursor: pointer;
  padding: 8px;
}

/* Main content */
main {
  flex: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 70px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.05)"/><circle cx="40" cy="70" r="2.5" fill="rgba(255,255,255,0.04)"/></svg>');
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero .tagline {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 28px;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
}

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

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

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
}

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

.btn-accent:hover {
  background: #3498db;
  transform: translateY(-2px);
}

/* Sections */
section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 1.9rem;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 700;
}

.section-title p {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

.bg-light {
  background: var(--light-gray);
}

.bg-blue {
  background: var(--light-blue);
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 22px;
}

.card-body h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.card-body p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* Feature highlight for Biodigester */
.feature-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.feature-highlight img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  object-fit: cover;
  max-height: 400px;
}

.feature-text h2 {
  color: var(--primary);
  margin-bottom: 16px;
  font-size: 1.7rem;
}

.feature-text p {
  margin-bottom: 14px;
  color: var(--gray);
}

.feature-list {
  list-style: none;
  margin: 20px 0;
}

.feature-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--dark);
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

/* Image Slider */
.slider-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.slider {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(26,82,118,0.9));
  color: white;
  padding: 30px 20px 18px;
  font-size: 1rem;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  color: var(--primary);
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: var(--white);
}

.slider-btn.prev { left: 14px; }
.slider-btn.next { right: 14px; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s;
}

.dot.active {
  background: var(--primary);
}

/* About page specifics */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.profile-img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.vision-box, .policy-box {
  background: var(--white);
  border-left: 4px solid var(--primary);
  padding: 24px;
  margin-bottom: 24px;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.vision-box h3, .policy-box h3 {
  color: var(--primary);
  margin-bottom: 12px;
}

/* Services */
.service-detail {
  margin-bottom: 50px;
}

.service-detail h3 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--light-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-form {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 50px 0 20px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-brand img {
  height: 50px;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.5;
}

.footer-col h4 {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Page header banner */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 50px 20px;
  text-align: center;
}

.page-banner h1 {
  font-size: 2.1rem;
  margin-bottom: 8px;
}

.page-banner p {
  opacity: 0.9;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

/* Responsive */
@media (max-width: 900px) {
  .feature-highlight,
  .profile-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 24px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .slide img {
    height: 280px;
  }

  .brand-text .company-name {
    font-size: 1.1rem;
  }

  .brand img {
    height: 58px;
  }
}

@media (max-width: 700px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-top: 1px solid var(--border);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    padding: 12px 16px;
  }

  .nav-menu a.admin-link {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
  }

  .header-inner {
    position: relative;
  }

  .brand-text .tagline,
  .brand-text .bn {
    display: none;
  }
}

/* Admin page */
.admin-login-box {
  max-width: 400px;
  margin: 40px auto;
  background: var(--white);
  padding: 36px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
}

.admin-login-box h2 {
  color: var(--primary);
  margin-bottom: 8px;
  text-align: center;
}

.admin-login-box .subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.admin-panel {
  display: none;
  max-width: 800px;
  margin: 0 auto;
}

.admin-panel.visible {
  display: block;
}

.admin-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.admin-card h3 {
  color: var(--primary);
  margin-bottom: 12px;
}

/* Utility */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.lead {
  font-size: 1.1rem;
  color: var(--gray);
  line-height: 1.7;
}
