/* ==========================================================================
   Odica India — Modern Theme
   ========================================================================== */

:root {
  --green-900: #163a1a;
  --green-700: #2e7d32;
  --green-600: #3fa047;
  --green-500: #66bb5f;
  --green-100: #e8f5e6;

  --teal-900: #0a2e33;
  --teal-700: #0f6f75;
  --teal-600: #12949c;
  --teal-500: #26b6bd;
  --teal-100: #e3f7f8;

  --ink-900: #10151a;
  --ink-700: #313b44;
  --ink-500: #5c6773;
  --ink-300: #94a0ab;
  --ink-100: #eef1f4;

  --bg: #ffffff;
  --bg-soft: #f6f8f7;
  --white: #ffffff;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(16, 21, 26, 0.06);
  --shadow-md: 0 12px 30px rgba(16, 21, 26, 0.10);
  --shadow-lg: 0 24px 60px rgba(16, 21, 26, 0.16);

  --font-body: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-head: "Poppins", "Segoe UI", Helvetica, Arial, sans-serif;

  --container: 1180px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink-900);
  line-height: 1.2;
  margin: 0 0 16px;
}

p { line-height: 1.7; margin: 0 0 16px; color: var(--ink-500); }

a { color: inherit; text-decoration: none; }

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

.section-inner, .nav-container, .footer-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg-soft); }

.section-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-600);
  background: var(--green-100);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.it-services .section-label {
  color: var(--teal-700);
  background: var(--teal-100);
}

.section h2 {
  font-size: clamp(28px, 4vw, 42px);
  max-width: 720px;
}

.section > .section-inner > p.lead {
  font-size: 18px;
  max-width: 680px;
  margin-bottom: 48px;
}

/* ---------- Loader ---------- */
#loading { position: fixed; inset: 0; z-index: 3000; background: var(--white); display: flex; align-items: center; justify-content: center; }
.spinner { width: 44px; height: 44px; border: 4px solid var(--green-100); border-top-color: var(--green-600); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#content { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green-600); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-700); box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--teal-600); color: var(--teal-700); background: var(--white); }
.btn-outline:hover { background: var(--teal-600); color: var(--white); box-shadow: var(--shadow-md); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.15); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(16, 21, 26, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-md); border-color: rgba(255,255,255,0.08); background: rgba(16, 21, 26, 0.85); }

.nav-container { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.brand img { height: 34px; width: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu a:not(.nav-cta) {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-menu a:not(.nav-cta):hover,
.nav-menu a:not(.nav-cta).active { background: rgba(255,255,255,0.1); color: var(--green-500); }
.nav-cta {
  margin-left: 8px;
  padding: 10px 20px;
  background: var(--green-600);
  color: var(--white) !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: var(--green-700); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 24px 100px;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(38, 182, 189, 0.35), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(102, 187, 95, 0.35), transparent 60%),
    linear-gradient(160deg, var(--ink-900) 0%, #16342a 55%, var(--teal-900) 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 60% 30%, black, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; max-width: 760px; margin: 0 auto; text-align: center; }
.hero .eyebrow {
  display: inline-block;
  color: var(--teal-500);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 20px;
}
.hero h1 { color: var(--white); font-size: clamp(32px, 5.5vw, 56px); margin-bottom: 20px; }
.hero h1 span { background: linear-gradient(90deg, var(--green-500), var(--teal-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: rgba(255,255,255,0.78); font-size: 18px; max-width: 640px; margin: 0 auto 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.hero-badges { position: relative; margin: 56px auto 0; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-pill {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.9);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  backdrop-filter: blur(6px);
}
.hero-pill svg { width: 16px; height: 16px; stroke: var(--teal-500); flex-shrink: 0; }

/* ---------- About ---------- */
.about-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
.about-copy p { font-size: 17px; }
.stat-row { display: flex; gap: 32px; margin-top: 32px; flex-wrap: wrap; }
.stat { }
.stat b { display: block; font-family: var(--font-head); font-size: 30px; color: var(--green-700); }
.stat span { font-size: 13px; color: var(--ink-300); text-transform: uppercase; letter-spacing: 1px; }
.about-media { position: relative; display: flex; justify-content: center; }
.about-media img { max-width: 260px; filter: drop-shadow(var(--shadow-lg)); }

/* ---------- Card grid (Products & IT) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

.card-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-100);
}
.card-icon img { width: 32px; height: 32px; object-fit: contain; }
.card-icon svg { width: 26px; height: 26px; stroke: var(--teal-700); fill: none; stroke-width: 1.8; }

.it-grid .card-icon { background: var(--teal-100); }

.card h3 { font-size: 18px; margin: 0; }
.card p { font-size: 14.5px; margin: 0; flex-grow: 1; }
.card .card-link { font-size: 14px; font-weight: 600; color: var(--green-600); margin-top: 4px; }
.it-grid .card .card-link { color: var(--teal-600); }
.card .card-link:hover { text-decoration: underline; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.gallery-grid a {
  position: relative;
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-grid a:hover img { transform: scale(1.08); }
.gallery-grid a span {
  position: absolute; inset: auto 0 0 0;
  padding: 10px 12px;
  font-size: 12.5px;
  color: var(--white);
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  opacity: 0; transition: opacity 0.25s ease;
}
.gallery-grid a:hover span { opacity: 1; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-map { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); height: 340px; }
.contact-map iframe { width: 100%; height: 100%; border: 0; }
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; }
.contact-line .ic {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: var(--green-100); display: flex; align-items: center; justify-content: center;
}
.contact-line .ic img { width: 20px; height: 20px; }
.contact-line h4 { margin: 0 0 4px; font-size: 15px; }
.contact-line p { margin: 0; font-size: 14.5px; }

.offices-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.office-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-sm);
  padding: 20px;
}
.office-card h5 { margin: 0 0 8px; font-family: var(--font-head); font-size: 14px; color: var(--green-700); text-transform: uppercase; letter-spacing: 0.5px; }
.office-card p { margin: 0; font-size: 13.5px; color: var(--ink-500); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: rgba(255,255,255,0.7); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 30px; }
.footer-brand span { color: var(--white); font-family: var(--font-head); font-weight: 700; }
.footer-col h5 { color: var(--white); font-family: var(--font-head); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; margin-bottom: 10px; color: rgba(255,255,255,0.6); }
.footer-col a:hover { color: var(--green-500); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 24px; text-align: center; font-size: 13px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-wrap { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: rgba(16, 21, 26, 0.97);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 28px;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-menu a { padding: 14px 10px; }
  .nav-cta { margin-left: 0; text-align: center; }
  .section { padding: 72px 0; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}
