/* ============================================================
   ESG India (Executive Softway Guild) - theme styles
   Recreates the look of www.esgind.com
   ============================================================ */
:root {
  --primary: #3f51b5;        /* indigo */
  --primary-dark: #303f9f;
  --danger: #e53935;
  --info: #00acc1;
  --viridian: #2c5f5d;       /* footer */
  --dark: #263238;
  --text: #424245;
  --muted: #77787b;
  --bg: #ffffff;
  --light-bg: #f5f6fa;
  --border: #e5e7ee;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(38, 50, 56, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.7;
}
img { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { color: var(--dark); line-height: 1.3; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }

/* ---------------- Topbar ---------------- */
.topbar { background: var(--primary); color: #c5cae9; font-size: 13px; padding: 7px 0; }
.topbar a { color: #fff; font-weight: 500; }

/* ---------------- Header / nav ---------------- */
.site-header { background: #fff; box-shadow: 0 1px 10px rgba(0,0,0,.08); position: relative; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; flex-wrap: wrap; }
.logo { display: flex; flex-direction: column; align-items: flex-start; }
.logo img { height: 56px; width: auto; }
.logo-sub { font-size: 11px; letter-spacing: 2px; color: var(--dark); font-weight: 600; margin-top: 2px; }
.site-nav { list-style: none; margin: 0; padding: 0; display: flex; }
.site-nav > li { position: relative; }
.site-nav > li > a {
  display: block; padding: 30px 16px; color: var(--dark); font-weight: 600;
  font-size: 13.5px; text-transform: uppercase; letter-spacing: .4px;
}
.site-nav > li > a:hover, .site-nav > li.current-menu > a { color: var(--primary); text-decoration: none; }
.site-nav .submenu {
  list-style: none; margin: 0; padding: 8px 0; background: #fff; min-width: 250px;
  position: absolute; left: 0; top: 100%; border-top: 2px solid var(--primary);
  box-shadow: 0 12px 30px rgba(0,0,0,.12); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .18s ease; z-index: 60;
}
.site-nav li:hover > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.site-nav .submenu li a { display: block; padding: 9px 20px; color: var(--text); font-size: 13.5px; font-weight: 500; }
.site-nav .submenu li a:hover, .site-nav .submenu li a.active { color: var(--primary); background: var(--light-bg); text-decoration: none; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.burger span { display: block; width: 26px; height: 3px; background: var(--dark); margin: 5px 0; border-radius: 2px; }

@media (max-width: 991px) {
  .burger { display: block; }
  .nav-wrap { display: none; width: 100%; border-top: 1px solid var(--border); }
  .nav-wrap.open { display: block; }
  .site-nav { flex-direction: column; padding: 10px 0 20px; }
  .site-nav > li > a { padding: 12px 4px; }
  .site-nav .submenu {
    position: static; opacity: 1; visibility: visible; transform: none; display: none;
    box-shadow: none; border-top: 0; padding: 0 0 6px 16px;
  }
  .site-nav li.sub-open > .submenu { display: block; }
  .site-nav > li.has-sub > a::after { content: '+'; float: right; font-weight: 700; }
  .site-nav > li.sub-open > a::after { content: '-'; }
}

/* ---------------- Hero slider ---------------- */
.hero { position: relative; height: 325px; overflow: hidden; background: #eef0f5; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  display: flex; align-items: center; opacity: 0; transition: opacity .7s ease; pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-inner { width: 100%; }
.hero-title { font-size: clamp(26px, 4vw, 44px); font-weight: 600; margin: 0 0 8px; }
.hero-sub { font-size: clamp(17px, 2.4vw, 24px); font-weight: 300; margin: 0 0 26px; }
.hero-light .hero-title, .hero-light .hero-sub { color: #fff; }
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%); color: #9aa0ab; font-size: 34px;
  padding: 10px; cursor: pointer; user-select: none; z-index: 5;
}
.hero-nav:hover { color: var(--dark); text-decoration: none; }
.hero-prev { left: 10px; } .hero-next { right: 10px; }
.hero-dots { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; z-index: 5; }
.hero-dots button {
  display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 0; margin: 0 5px;
  background: #b6bcc7; cursor: pointer; padding: 0;
}
.hero-dots button.active { background: var(--dark); }
.anim-right { animation: slideRight .8s ease both; }
.anim-left { animation: slideLeft .8s .15s ease both; }
.anim-fade { animation: fadeIn .8s .3s ease both; }
@keyframes slideRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes slideLeft  { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------------- Sections / titles ---------------- */
.section { padding: 60px 0; }
.section-title { text-align: center; font-size: 30px; font-weight: 600; margin: 0 0 40px; position: relative; padding-bottom: 14px; }
.section-title::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 70px; height: 3px; border-radius: 3px; background: var(--primary);
}
.section-title.left { text-align: left; }
.section-title.left::after { left: 0; transform: none; }
.row { display: flex; flex-wrap: wrap; gap: 0; }
.row > .col { flex: 1 1 0; min-width: 260px; padding: 0 18px; }
.row.two-col > .col { flex: 1 1 320px; }
@media (max-width: 767px) { .section { padding: 40px 0; } }

/* All Things Technology */
.tech-phone { text-align: center; display: flex; align-items: center; justify-content: center; }
.tech-phone img { max-height: 420px; }
.icon-info { margin-bottom: 34px; }
.icon-title { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.icon-title img { width: 40px; height: 40px; }
.icon-title h4 { margin: 0; font-size: 17px; font-weight: 600; }
.icon-info p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* Clients marquee */
.clients-section { background: var(--light-bg); }
.brand-slider { overflow: hidden; border: 1px solid var(--border); background: #fff; border-radius: var(--radius); padding: 18px 0; box-shadow: var(--shadow); }
.brand-track { display: flex; align-items: center; gap: 70px; width: max-content; animation: marquee 40s linear infinite; }
.brand-track:hover { animation-play-state: paused; }
.brand-item img { height: 64px; width: auto; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Since 2010 */
.since-section { background: #fff; }
.since-row { align-items: center; }
.since-img {
  min-height: 380px; background-size: cover; background-position: center; border-radius: var(--radius);
  flex: 1 1 320px;
}
.since-text { flex: 1.4 1 420px; text-align: center; }
.since-text h5 { color: var(--primary); font-weight: 600; }
.since-text h2 { font-size: 27px; font-weight: 400; }
.since-text p { color: var(--muted); }

/* Brand strip */
.brand-strip { background: var(--primary); padding: 34px 0; }
.brand-strip-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.brand-strip-row img { height: 44px; opacity: .9; }

/* Info cards + what we do */
.solutions-row { gap: 40px; }
.solutions-row > .col-2 { flex: 1.3 1 380px; }
.info-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 30px;
  margin-bottom: 36px; transition: transform .2s ease, box-shadow .2s ease;
}
.info-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(38,50,56,.16); }
.info-card img { width: 56px; height: 56px; margin-bottom: 16px; }
.info-card h5 { font-weight: 600; margin: 0 0 10px; }
.info-card p { margin: 0; font-size: 14px; color: var(--muted); }
.what-we-do {
  flex: 1 1 320px; min-height: 420px; border-radius: var(--radius); color: #e3e6ea;
  background-size: cover; background-position: center; padding: 46px 38px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: center;
}
.what-we-do::before { content: ''; position: absolute; }
.what-we-do h5 { color: #cfd6dd; margin: 0 0 6px; }
.what-we-do h2 { color: #fff; font-size: 34px; font-weight: 700; }
.what-we-do p { font-weight: 500; }
.tqb-graphic { max-width: 743px; width: 100%; }

/* Have a question */
.question-section { background-size: cover; background-position: center; color: #fff; padding: 80px 0; }
.question-section h2, .question-section h1 { color: #fff; text-align: center; margin: 4px 0; }
.question-form-wrap { max-width: 640px; margin: 34px auto 0; background: #fff; border-radius: var(--radius); padding: 36px 34px; }
.question-form-wrap input, .question-form-wrap textarea {
  width: 100%; border: 1px solid #ccc; border-radius: 6px; padding: 12px 14px; font: inherit;
  margin-bottom: 14px; color: var(--dark);
}
.question-form-wrap textarea { resize: vertical; }

/* ---------------- Page header / breadcrumb ---------------- */
.page-header { background: var(--light-bg); border-bottom: 1px solid var(--border); padding: 34px 0; }
.page-header-title { margin: 0 0 6px; font-size: 28px; font-weight: 600; }
.breadcrumb { font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--primary); font-weight: 600; }

/* ---------------- Content pages ---------------- */
.content { max-width: 900px; }
.content p { color: var(--text); }
.content ul, .content ol { padding-left: 22px; }
.content li { margin-bottom: 8px; }
.content h4 { margin-top: 28px; }
.lead-note { font-weight: 600; color: var(--dark); }
.lead-note i { color: var(--primary); margin-right: 8px; }
.tech-content { max-width: 100%; }
.tech-img { display: block; margin: 30px auto; max-width: 480px; border-radius: var(--radius); box-shadow: var(--shadow); }
.quick-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.quick-links a {
  display: inline-block; padding: 8px 18px; background: var(--light-bg); border: 1px solid var(--border);
  border-radius: 20px; font-weight: 600; font-size: 13px; color: var(--dark);
}
.quick-links a:hover { background: var(--primary); color: #fff; text-decoration: none; }

/* Clients grid */
.clients-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; margin-top: 30px; }
.client-tile { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; padding: 24px; box-shadow: var(--shadow); }
.client-tile img { max-height: 70px; }

/* Careers */
.careers-img img { max-width: 380px; margin: 20px auto; display: block; }
.form-card { background: var(--light-bg); border-radius: var(--radius); padding: 30px; max-width: 640px; margin: 0 auto; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--dark); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #d3d7e0; border-radius: 6px; font: inherit; background: #fff;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--primary); }

/* ---------------- LCA public board ---------------- */
.lca-intro { background: var(--light-bg); border-left: 4px solid var(--primary); padding: 16px 20px; border-radius: 0 8px 8px 0; }
.lca-print { margin: 22px 0 30px; }
.lca-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 26px; overflow: hidden; }
.lca-card-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 16px 24px; background: var(--light-bg); border-bottom: 1px solid var(--border); }
.lca-card-head h3 { margin: 0; font-size: 18px; color: var(--primary); }
.lca-meta { font-size: 12.5px; color: var(--muted); }
.lca-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lca-table th { text-align: left; width: 280px; padding: 10px 24px; background: #fafbfe; border-bottom: 1px solid var(--border); color: var(--dark); font-weight: 600; }
.lca-table td { padding: 10px 24px; border-bottom: 1px solid #f0f2f7; }
.lca-card-foot { padding: 10px 24px; }
.lca-card-foot small { color: var(--muted); }
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); background: var(--light-bg); border-radius: var(--radius); }
.empty-state i { font-size: 42px; display: block; margin-bottom: 12px; color: #b9bfca; }

@media print {
  .topbar, .site-header, .site-footer, .hero-nav, .hero-dots, .lca-print { display: none !important; }
  .lca-card { box-shadow: none; break-inside: avoid; }
}

/* ---------------- Alerts / badges / buttons ---------------- */
.alert { padding: 14px 20px; border-radius: 8px; margin: 0 0 22px; font-weight: 500; }
.alert-success { background: #e6f6ec; color: #1c7a3d; border: 1px solid #bce5cb; }
.alert-error { background: #fdecec; color: #b02a2a; border: 1px solid #f3c1c1; }
.badge { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-green { background: #e6f6ec; color: #1c7a3d; }
.badge-gray { background: #eceef2; color: #6b7078; }

.btn {
  display: inline-block; padding: 10px 24px; border-radius: 6px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; text-transform: uppercase; font-size: 13px;
  letter-spacing: .5px; transition: all .15s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn-round { border-radius: 30px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-info { background: var(--info); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-outline { background: none; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline-light { background: none; border-color: rgba(255,255,255,.4); color: #fff; }
.btn-outline-dark { background: none; border-color: #c9ced8; color: var(--dark); }
.btn-sm { padding: 5px 14px; font-size: 12px; }
.btn-block { width: 100%; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--viridian); color: rgba(255,255,255,.66); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 34px; padding: 56px 0 40px; }
.site-footer h6 {
  color: #6fd1c3; text-transform: uppercase; font-weight: 700; font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,.18); padding-bottom: 10px; margin: 0 0 16px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: rgba(255,255,255,.66); }
.footer-links a:hover { color: #fff; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { margin-bottom: 16px; font-size: 14px; }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: #6fd1c3;
}
.social-row a:hover { background: var(--primary); color: #fff; text-decoration: none; }
.social-row.dark-icons a { background: var(--light-bg); color: var(--dark); }
.social-row.dark-icons a:hover { background: var(--primary); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; text-align: center; }
.footer-bottom a { color: #fff; }

/* ============================================================
   Admin panel
   ============================================================ */
.admin-shell { min-height: 100vh; background: #eef1f6; }
.admin-login-card {
  max-width: 400px; margin: 80px auto; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 38px 36px 30px;
}
.admin-login-head { text-align: center; margin-bottom: 22px; }
.admin-login-head img { height: 48px; margin-bottom: 10px; }
.admin-login-head h2 { margin: 0; font-size: 22px; }
.admin-login-head p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.admin-login-foot { text-align: center; margin: 18px 0 0; font-size: 13.5px; }

.admin-full { display: flex; }
.admin-side {
  width: 240px; background: var(--dark); color: #cfd6dd; padding: 22px 0; display: flex;
  flex-direction: column; min-height: 100vh; position: sticky; top: 0; height: 100vh;
}
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 0 20px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-brand img { height: 34px; }
.admin-brand span { font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; color: #fff; }
.admin-side > a {
  display: block; padding: 12px 22px; color: #cfd6dd; font-weight: 500; font-size: 14px;
}
.admin-side > a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.admin-side > a.active { background: var(--primary); color: #fff; }
.admin-side-foot { margin-top: auto; padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.admin-side-foot form { margin-top: 10px; }

.admin-main { flex: 1; padding: 34px 40px; min-width: 0; }
.admin-title { margin: 0 0 26px; font-size: 26px; }
.admin-main h2 { font-size: 18px; margin: 34px 0 14px; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; margin-bottom: 10px; }
.stat-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 20px;
  color: var(--dark); font-weight: 600; font-size: 14px; display: block;
}
.stat-card span { display: block; font-size: 30px; color: var(--primary); margin-bottom: 4px; }
.stat-card.accent { background: var(--primary); color: #fff; }
.stat-card.accent span { color: #fff; }
.stat-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(38,50,56,.14); }

.table-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 780px; }
.admin-table th { text-align: left; background: var(--light-bg); padding: 12px 16px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); border-bottom: 1px solid var(--border); }
.admin-table td { padding: 12px 16px; border-bottom: 1px solid #f0f2f7; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .actions { display: flex; gap: 8px; align-items: center; }
.admin-table .actions form { margin: 0; }

.admin-form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.admin-form.narrow { max-width: 460px; }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 22px; }
.field-grid .span-2 { grid-column: span 2; }
@media (max-width: 767px) { .field-grid { grid-template-columns: 1fr; } .field-grid .span-2 { grid-column: span 1; } }
.form-actions { display: flex; gap: 12px; margin-top: 10px; }
.muted { color: var(--muted); }
.admin-main .muted a { color: var(--primary); }

@media (max-width: 900px) {
  .admin-full { flex-direction: column; }
  .admin-side { width: 100%; height: auto; min-height: 0; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .admin-brand { border-bottom: 0; padding: 0 16px; }
  .admin-side > a { padding: 10px 14px; }
  .admin-side-foot { margin-top: 0; margin-left: auto; display: flex; align-items: center; gap: 12px; border-top: 0; }
  .admin-main { padding: 24px 18px; }
}
