/* ============================================
   SubhaIT Solution — PHP Edition Stylesheet
   ============================================ */

:root {
  --brand-red: #e53e3e;
  --brand-red-light: rgba(229, 62, 62, 0.1);
  --brand-dark: #1a202c;
  --brand-darker: #0f1419;
  --bg: #ffffff;
  --bg-alt: #f7fafc;
  --bg-muted: #edf2f7;
  --text: #1a202c;
  --text-muted: #718096;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --card-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --card-shadow-hover: 0 10px 25px rgba(0,0,0,.1);
  --radius: 12px;
  --transition: .25s ease;
  --max-w: 1200px;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ---- TOP BAR ---- */
.topbar {
  background: var(--brand-darker);
  color: #cbd5e0;
  font-size: .8rem;
  padding: .5rem 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.topbar a { color: #cbd5e0; transition: color var(--transition); }
.topbar a:hover { color: var(--brand-red); }
.topbar-left { display: flex; gap: 1.5rem; align-items: center; }
.topbar-left .icon { width: 14px; height: 14px; vertical-align: middle; margin-right: 4px; }

/* Social icons in topbar */
.topbar-right { display: flex; gap: 0.75rem; align-items: center; }
.icon-sm { width: 16px; height: 16px; vertical-align: middle; }

/* ---- NAVBAR ---- */
.navbar {
  background: var(--card-bg);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.navbar-logo img { height: 48px; width: auto; }
.navbar-links { display: flex; gap: 2rem; }
.navbar-links a {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: color var(--transition);
}
.navbar-links a:hover,
.navbar-links a.active { color: var(--brand-red); }
.navbar-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--text); }
.navbar-toggle .icon { width: 24px; height: 24px; }
.mobile-menu { display: none; background: var(--card-bg); border-top: 1px solid var(--border); padding: 1rem 1.5rem; }
.mobile-menu a { display: block; padding: .5rem 0; font-weight: 600; font-size: .9rem; }
.mobile-menu.open { display: block; }

/* ---- HERO SLIDER ---- */
.hero { position: relative; height: 500px; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,32,44,.7), rgba(229,62,62,.3));
  display: flex; align-items: center;
}
.hero-content { padding: 0 3rem; }
.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.hero-content p { font-size: 1.25rem; color: rgba(255,255,255,.8); margin-top: .75rem; font-family: var(--font-heading); }
.hero-dots { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; }
.hero-dot {
  width: 12px; height: 12px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.5); transition: background var(--transition);
}
.hero-dot.active { background: var(--brand-red); }

/* ---- SECTIONS ---- */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--brand-red);
  border-radius: 2px;
}
.section-title-center { text-align: center; }
.section-title-center .section-title::after { left: 50%; transform: translateX(-50%); }

/* ---- SERVICES GRID ---- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.service-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: block;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.service-card .icon { width: 40px; height: 40px; color: var(--brand-red); margin: 0 auto .75rem; }
.service-card h3 { font-size: .95rem; font-weight: 700; }
.service-card p { font-size: .85rem; color: var(--text-muted); margin-top: .5rem; }
.service-card .learn-more { display: inline-block; margin-top: 1rem; font-size: .85rem; font-weight: 600; color: var(--brand-red); }

/* ---- IT SOLUTIONS SECTION ---- */
.it-solutions { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.it-solutions img { border-radius: var(--radius); box-shadow: var(--card-shadow); }
.it-solutions-text h2 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 1rem; }
.it-solutions-text p { color: var(--text-muted); margin-bottom: 1rem; }

/* ---- PROCESS ---- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 2rem; }
.process-step { text-align: center; }
.process-step .step-num {
  width: 48px; height: 48px; border-radius: 50%; background: var(--brand-red);
  color: #fff; font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem;
}
.process-step h3 { font-size: .95rem; font-weight: 700; margin-bottom: .5rem; }
.process-step p { font-size: .8rem; color: var(--text-muted); }

/* ---- CLIENTS ---- */
.clients-track { display: flex; gap: 3rem; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 2rem; opacity: .6; }
.clients-track img { height: 40px; width: auto; filter: grayscale(1); transition: filter var(--transition); }
.clients-track img:hover { filter: grayscale(0); }

/* ---- CTA ---- */
.cta-btn {
  display: inline-block;
  padding: .75rem 2rem;
  border: 2px solid var(--brand-red);
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
}
.cta-btn:hover { background: var(--brand-red); color: #fff; }
.cta-btn-filled { background: var(--brand-red); color: #fff; border-color: var(--brand-red); }
.cta-btn-filled:hover { background: #c53030; }

/* ---- SERVICE DETAIL (React-matching layout) ---- */
.service-detail {
  max-width: 1024px;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.service-detail .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .9rem;
  color: var(--brand-red);
  font-weight: 600;
  margin-bottom: 2rem;
}
.service-detail .back-link:hover { text-decoration: underline; }
.service-detail .back-link svg,
.service-detail .back-link .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.service-detail .service-page-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2rem;
  line-height: 1.2;
}

/* 2-column grid for image + text and side-by-side lists */
.service-detail .service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 4rem;
}

.service-detail .service-grid-center {
  align-items: center;
}

.service-detail .service-grid img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.service-detail .service-grid h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.service-detail .service-grid h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .5rem;
}

.service-detail .service-grid p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.service-detail .service-grid p:last-child {
  margin-bottom: 0;
}

.service-detail .service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.service-detail .service-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: .75rem;
  line-height: 1.5;
  padding-left: 0;
}
.service-detail .service-list li::before {
  content: "•";
  color: var(--brand-red);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Highlighted box (muted bg) */
.service-detail .service-highlight {
  background: var(--bg-muted);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}
.service-detail .service-highlight h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}
.service-detail .service-highlight p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.service-detail .service-highlight p:last-child {
  margin-bottom: 0;
}

/* 2-column images row */
.service-detail .service-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.service-detail .service-images img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

/* Desktop: 2 columns */
@media (min-width: 768px) {
  .service-detail .service-page-title {
    font-size: 2.5rem;
  }
  .service-detail .service-grid {
    grid-template-columns: 1fr 1fr;
  }
  .service-detail .service-highlight {
    padding: 3rem;
  }
}

/* ---- CONTACT ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--brand-red-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon .icon { width: 20px; height: 20px; color: var(--brand-red); }
.contact-info-item h3 { font-size: .95rem; font-weight: 700; }
.contact-info-item p { color: var(--text-muted); font-size: .9rem; }

.form-group { margin-bottom: 1rem; }
.form-input {
  width: 100%; padding: .75rem 1rem; border: 1px solid var(--border); border-radius: 8px;
  font-size: .9rem; font-family: var(--font-body); background: var(--bg);
  transition: border-color var(--transition);
}
.form-input:focus { outline: none; border-color: var(--brand-red); }
textarea.form-input { resize: vertical; min-height: 120px; }
.form-submit {
  width: 100%; padding: .85rem; border: none; border-radius: 8px;
  background: var(--brand-red); color: #fff; font-weight: 600; font-size: 1rem;
  cursor: pointer; transition: opacity var(--transition);
}
.form-submit:hover { opacity: .9; }

/* ---- BLOG ---- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.blog-card { background: var(--card-bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--card-shadow); transition: transform var(--transition); }
.blog-card:hover { transform: translateY(-4px); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 1.25rem; }
.blog-card-body h3 { font-family: var(--font-heading); font-size: 1rem; margin-bottom: .5rem; }
.blog-card-body p { font-size: .85rem; color: var(--text-muted); }
.blog-card-meta { font-size: .75rem; color: var(--text-muted); margin-top: .75rem; }

/* ---- FOOTER ---- */
.footer { background: var(--brand-dark); color: #a0aec0; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.footer h4 { color: #fff; font-family: var(--font-heading); font-size: 1rem; margin-bottom: 1rem; }
.footer p, .footer li { font-size: .85rem; line-height: 1.8; }
.footer a { color: #a0aec0; transition: color var(--transition); }
.footer a:hover { color: var(--brand-red); }

/* Footer social icons */
.footer-social { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.footer-social a { display: inline-flex; align-items: center; }
.icon-social { width: 20px; height: 20px; transition: color var(--transition); }
.footer-social a:hover .icon-social { color: var(--brand-red); }
.footer-social svg { width: 20px !important; height: 20px !important; }

/* Footer contact alignment */
.footer-contact-item { display: flex; align-items: flex-start; gap: 8px; font-size: .85rem; line-height: 1.8; }
.icon-contact { width: 16px; height: 16px; flex-shrink: 0; margin-top: 4px; }
.footer-contact-item svg { width: 16px !important; height: 16px !important; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1rem; text-align: center; font-size: .8rem; }

/* ---- FLASH ---- */
.flash { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: .9rem; }
.flash-success { background: #c6f6d5; color: #22543d; }
.flash-error { background: #fed7d7; color: #9b2c2c; }

/* ---- ABOUT ---- */
.about-content h3 { font-family: var(--font-heading); margin: 2rem 0 .75rem; }
.about-content ul { padding-left: 1.25rem; }
.about-content li { position: relative; padding-left: 1rem; margin-bottom: .5rem; color: var(--text-muted); }
.about-content li::before { content: '•'; color: var(--brand-red); position: absolute; left: 0; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .navbar-toggle { display: block; }
  .hero { height: 400px; }
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .it-solutions { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .service-images { grid-template-columns: 1fr; }
  .topbar-right { display: none; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
