/* ==========================================================================
   KGlobe India — site stylesheet
   ========================================================================== */

:root {
  --navy: #0b2545;
  --navy-dark: #071a33;
  --teal: #0ea5a0;
  --teal-dark: #0b7f7b;
  --ink: #1f2a37;
  --gray: #5b6b7c;
  --gray-light: #eef2f6;
  --bg: #ffffff;
  --bg-alt: #f6f9fb;
  --border: #e2e8f0;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(11, 37, 69, 0.08);
  --shadow-sm: 0 4px 14px rgba(11, 37, 69, 0.06);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", sans-serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 16px;
  font-weight: 600;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 16px; color: var(--gray); }

a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--teal); }

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

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

.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-tight { padding: 56px 0; }

.eyebrow {
  display: inline-block;
  color: var(--teal-dark);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 10px;
}

.section-head { max-width: 720px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-outline { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }

/* ==== Header ==== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 42px; width: auto; }
.brand-text { font-family: "Poppins", sans-serif; font-weight: 700; color: var(--navy); font-size: 1.05rem; line-height: 1.1; }
.brand-text span { display: block; font-size: 0.66rem; font-weight: 500; color: var(--gray); letter-spacing: 0.06em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav a.nav-link {
  display: block;
  padding: 10px 16px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.94rem;
  border-radius: 8px;
}
.nav a.nav-link:hover { background: var(--gray-light); color: var(--navy); }
.nav li.current > a.nav-link { color: var(--teal-dark); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  min-width: 260px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.18s ease;
  columns: 2;
  column-gap: 4px;
  min-width: 460px;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 9px 12px;
  color: var(--ink);
  font-size: 0.9rem;
  border-radius: 8px;
  break-inside: avoid;
}
.dropdown a:hover { background: var(--gray-light); color: var(--teal-dark); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .phone { font-size: 0.88rem; color: var(--gray); font-weight: 500; display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.2s;
}

/* ==== Hero (inner pages) ==== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #123a63 60%, var(--navy-dark) 100%);
  padding: 64px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(14,165,160,0.35), transparent 70%);
}
.page-hero .breadcrumb { color: rgba(255,255,255,0.65); font-size: 0.88rem; margin-bottom: 10px; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.75); }
.page-hero h1 { color: #fff; margin-bottom: 8px; font-size: 2.3rem; }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 640px; margin-bottom: 0; }

/* ==== Home hero ==== */
.home-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #123a63 55%, var(--navy-dark) 100%);
  color: #fff;
  padding: 96px 0 110px;
  position: relative;
  overflow: hidden;
}
.home-hero::after {
  content: "";
  position: absolute;
  right: -140px; bottom: -160px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(14,165,160,0.3), transparent 70%);
}
.home-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.home-hero h1 { color: #fff; font-size: 2.9rem; margin-bottom: 18px; }
.home-hero p.lead { color: rgba(255,255,255,0.82); font-size: 1.1rem; max-width: 560px; }
.home-hero .cta-row { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.stat-row { display: flex; gap: 36px; margin-top: 46px; flex-wrap: wrap; }
.stat b { display: block; font-size: 1.8rem; color: #fff; font-family: "Poppins", sans-serif; }
.stat span { color: rgba(255,255,255,0.65); font-size: 0.85rem; }

.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(6px);
}
.hero-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hero-card li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,0.88); font-size: 0.95rem; }
.hero-card li .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-top: 7px; flex: none; }

/* ==== Cards / Grids ==== */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.35rem;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; font-size: 1.12rem; }
.card p { font-size: 0.94rem; margin-bottom: 12px; }
.card a.link { font-weight: 600; font-size: 0.88rem; }

.service-photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: #fff;
}
.service-photo-card img { height: 190px; width: 100%; object-fit: cover; }
.service-photo-card .body { padding: 22px; }
.service-photo-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.service-photo-card p { font-size: 0.92rem; margin-bottom: 12px; }

/* ==== Content page layout ==== */
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }
.content-body h2 { margin-top: 36px; }
.content-body h2:first-child { margin-top: 0; }
.content-body ul { padding-left: 20px; color: var(--gray); }
.content-body li { margin-bottom: 8px; }
.content-body img.inline-photo { border-radius: var(--radius); margin: 22px 0; box-shadow: var(--shadow-sm); }

.side-panel {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: sticky;
  top: 100px;
}
.side-panel h4 { font-size: 1rem; margin-bottom: 14px; }
.side-panel ul { list-style: none; margin: 0; padding: 0; }
.side-panel li { border-top: 1px solid var(--border); }
.side-panel li:first-child { border-top: none; }
.side-panel a { display: block; padding: 11px 4px; font-size: 0.92rem; color: var(--ink); }
.side-panel a:hover { color: var(--teal-dark); }
.side-panel a.active { color: var(--teal-dark); font-weight: 600; }
.side-cta {
  margin-top: 18px;
  background: var(--navy);
  color: #fff;
  padding: 22px;
  border-radius: var(--radius);
}
.side-cta p { color: rgba(255,255,255,0.8); font-size: 0.88rem; }
.side-cta .btn { width: 100%; justify-content: center; }

/* ==== Bands / CTA ==== */
.cta-band {
  background: linear-gradient(120deg, var(--navy), #123a63);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.78); margin-bottom: 26px; }

.logo-strip { display: flex; gap: 40px; flex-wrap: wrap; align-items: center; justify-content: center; opacity: 0.75; }

/* ==== Gallery ==== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-grid img { height: 190px; width: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-grid figure:hover img { transform: scale(1.06); }

/* ==== Forms ==== */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
}
input:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,165,160,0.15); }
textarea { resize: vertical; min-height: 130px; }

.contact-info-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 18px;
}
.contact-info-card h4 { font-size: 0.95rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.contact-info-card h4 .icon-sm {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex: none;
}
.contact-info-card p { font-size: 0.9rem; margin-bottom: 4px; }

/* ==== Footer ==== */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.72); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid a { color: rgba(255,255,255,0.72); }
.footer-grid a:hover { color: var(--teal); }
.footer-brand img { height: 40px; margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,0.65); }

/* ==== Utilities ==== */
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }

/* ==== Responsive ==== */
@media (max-width: 980px) {
  .home-hero-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .nav { position: fixed; top: 71px; left: 0; right: 0; bottom: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px; overflow-y: auto; transform: translateX(100%); transition: transform 0.25s ease; }
  .nav.open { transform: translateX(0); }
  .nav > ul { flex-direction: column; width: 100%; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding-left: 12px; columns: 1; display: none; min-width: 0; }
  .has-dropdown.open .dropdown { display: block; }
  .nav-toggle { display: block; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .home-hero h1 { font-size: 2.1rem; }
  h1 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stat-row { gap: 24px; }
}
