/* ===========================================================
   Sri Jayalakshmi Advertising Agency
   Custom theme on top of Bootstrap 5
   =========================================================== */

:root {
  --navy: #0b2447;
  --blue: #19376d;
  --blue-2: #2563eb;
  --accent: #f59e0b;
  --accent-2: #d97706;
  --ink: #1f2937;
  --muted: #6b7280;
  --light: #f4f7fb;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 36, 71, .08);
  --shadow-lg: 0 20px 50px rgba(11, 36, 71, .15);
}

* { box-sizing: border-box; }

body {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.25; }
a { text-decoration: none; }
img { max-width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: #cdd9ec;
  font-size: .85rem;
  padding: .5rem 0;
}
.topbar a { color: #cdd9ec; transition: color .2s; }
.topbar a:hover { color: var(--accent); }
.topbar__sep { margin: 0 .6rem; opacity: .4; }
.topbar__since { font-weight: 500; color: #fff; }
@media (max-width: 575px) {
  .topbar__since { display: none; }
  .topbar { font-size: .78rem; }
}

/* ---------- Navbar ---------- */
.site-nav {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 18px rgba(11, 36, 71, .07);
  padding: .6rem 0;
  transition: padding .25s, box-shadow .25s;
}
.site-nav.scrolled { padding: .35rem 0; box-shadow: 0 4px 22px rgba(11, 36, 71, .12); }

.brand { display: flex; align-items: center; gap: .7rem; }
.brand__mark {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff; font-weight: 800; border-radius: 12px;
  font-size: 1.1rem; letter-spacing: .5px;
}
.brand__logo { height: 90px; width: auto; object-fit: contain; }
.site-nav.scrolled .brand__logo { height: 72px; }
@media (max-width: 575px) {
  .brand__logo { height: 64px; }
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { color: var(--navy); font-size: 1.1rem; letter-spacing: .3px; }
.brand__text small { color: var(--muted); font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; }

.site-nav .nav-link {
  color: var(--ink); font-weight: 500; margin: 0 .15rem;
  padding: .5rem .9rem !important; border-radius: 8px; position: relative;
}
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--blue-2); }
.site-nav .nav-link.active::after {
  content: ''; position: absolute; left: .9rem; right: .9rem; bottom: .25rem;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.nav-link--cta {
  background: var(--accent); color: #fff !important; border-radius: 8px;
  margin-left: .5rem;
}
.nav-link--cta:hover { background: var(--accent-2); }
.nav-link--cta.active::after { display: none; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 10px; padding: .6rem 1.5rem; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(37,99,235,.35), transparent 45%),
    linear-gradient(120deg, var(--navy) 0%, var(--blue) 60%, #102a52 100%);
  color: #fff;
  overflow: hidden;
}
.hero__overlay {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 2px, transparent 2px 22px);
  pointer-events: none;
}
.hero__inner { position: relative; padding: 6rem 0; }
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: 4px; font-size: .8rem;
  color: var(--accent); font-weight: 600; margin-bottom: 1rem;
}
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800;
  margin-bottom: 1.2rem; letter-spacing: .5px;
}
.hero__title span {
  font-family: 'Playfair Display', serif; font-weight: 700; font-style: italic;
  color: var(--accent);
}
.hero__sub { font-size: 1.15rem; max-width: 620px; color: #d7e2f4; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section--alt { background: var(--light); }
.section__head { max-width: 720px; margin: 0 auto 3rem; }
.section__tag {
  display: table; text-transform: uppercase; letter-spacing: 3px;
  font-size: .75rem; font-weight: 700; color: var(--blue-2);
  background: rgba(37,99,235,.1); padding: .35rem .9rem; border-radius: 30px;
  margin-bottom: 1rem;
}
/* In centered heads, center the pill on its own line above the title */
.section__head .section__tag { margin-left: auto; margin-right: auto; }
.section__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--navy) 0%, var(--blue-2) 55%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--navy);
  display: inline-block;
}
/* Centered heads: title takes its own line under the pill */
.section__head.text-center .section__title { display: block; }
.section__lead { color: var(--muted); font-size: 1.05rem; }

/* ---------- Service cards ---------- */
.card-svc {
  background: #fff; border-radius: var(--radius); padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow); border: 1px solid #eef2f8;
  transition: transform .25s, box-shadow .25s;
}
.card-svc:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card-svc__icon {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff;
  font-size: 1.7rem; margin-bottom: 1.3rem;
}
.card-svc h3 {
  font-size: 1.2rem; margin-bottom: .6rem; display: inline-block;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-2) 60%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--navy);
}
.card-svc p { color: var(--muted); margin: 0; }

/* ---------- Values & flow ---------- */
.values { list-style: none; padding: 0; margin: 1.5rem 0; }
.values li { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; font-weight: 500; }
.values li i { color: var(--accent); font-size: 1.2rem; }

.flow-box {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff; border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow-lg);
}
.flow-box h3 { margin-bottom: 1.5rem; }
.flow { list-style: none; padding: 0; margin: 0; }
.flow li { display: flex; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.flow li:last-child { border-bottom: none; }
.flow__num {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700;
}
.flow li strong { display: block; }
.flow li span { color: #c5d3ea; font-size: .9rem; }

/* ---------- Visionary / stats ---------- */
.visionary {
  padding: 4.5rem 0;
  background: linear-gradient(120deg, var(--blue-2), var(--blue));
  color: #fff;
}
.visionary__avatar {
  width: 130px; height: 130px; border-radius: 50%; margin: 0 auto 1rem;
  display: grid; place-items: center; font-size: 2rem; font-weight: 800;
  background: rgba(255,255,255,.15); border: 3px solid rgba(255,255,255,.4);
  overflow: hidden;
}
.visionary__avatar--photo img { width: 100%; height: 100%; object-fit: cover; }
.visionary h3 { margin: 0; }
.visionary .section__tag { background: rgba(255,255,255,.18); color: #fff; }
.stat { text-align: center; }
.stat__num { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1; }
.stat__plus { font-size: 2rem; font-weight: 800; color: var(--accent); }
.stat__label { display: block; margin-top: .4rem; color: #dbe6f8; font-size: .9rem; }

/* ---------- Testimonials ---------- */
.quote {
  background: #fff; border-radius: var(--radius); padding: 2.2rem;
  box-shadow: var(--shadow); position: relative; border-left: 4px solid var(--accent);
}
.quote__icon { font-size: 2.4rem; color: rgba(37,99,235,.2); }
.quote p { font-size: 1.05rem; font-style: italic; color: #374151; margin: .5rem 0 1.2rem; }
.quote footer strong { display: block; color: var(--navy); }
.quote footer span { color: var(--muted); font-size: .88rem; }

/* ---------- Clients ---------- */
.clients {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1.2rem;
  align-items: stretch;
}
.client {
  background: #fff; border: 1px solid #e6ecf5; border-radius: var(--radius);
  margin: 0; padding: 1.1rem; height: 110px;
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(11,36,71,.05); transition: transform .25s, box-shadow .25s;
}
.client:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.client img {
  max-height: 80px; max-width: 100%; width: auto; object-fit: contain;
  opacity: 1; transition: transform .25s;
}
.client:hover img { transform: scale(1.05); }
/* legacy text pill (kept for any non-image client entries) */
.clients__item {
  background: #fff; border: 1px solid #e6ecf5; border-radius: 50px;
  padding: .7rem 1.6rem; font-weight: 600; color: var(--navy);
  box-shadow: 0 4px 14px rgba(11,36,71,.05); transition: .25s;
}
.clients__item:hover { background: var(--navy); color: #fff; transform: translateY(-3px); }

/* ---------- Process steps ---------- */
.process-step {
  background: #fff; border-radius: var(--radius); padding: 2rem; height: 100%;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.process-step__num {
  font-size: 3rem; font-weight: 800; color: rgba(37,99,235,.12); line-height: 1;
}
.process-step h4 {
  margin: .5rem 0; display: inline-block;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-2) 60%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--navy);
}
.process-step p { color: var(--muted); margin: 0; }

/* ---------- Portfolio / works ---------- */
.work {
  border-radius: var(--radius); overflow: hidden; background: #fff; margin: 0;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.work:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.work__media {
  height: 320px; overflow: hidden; background: var(--light);
  display: grid; place-items: center;
}
.work__media img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .4s;
}
.work:hover .work__media img { transform: scale(1.06); }
.work__body { padding: 1.1rem 1.3rem; }
.work__body h4 {
  display: inline-block;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-2) 60%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--navy);
  margin: 0; font-size: 1.05rem;
}

/* ---------- Team members ---------- */
.member {
  background: #fff; border-radius: var(--radius); padding: 2.2rem; text-align: center;
  box-shadow: var(--shadow); transition: transform .25s; border: 1px solid #eef2f8;
}
.member:hover { transform: translateY(-6px); }
.member__avatar {
  width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 1rem;
  display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2)); overflow: hidden;
}
.member__avatar--photo img { width: 100%; height: 100%; object-fit: cover; }
.member h3 {
  font-size: 1.15rem; margin-bottom: .2rem; display: inline-block;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-2) 60%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--navy);
}
.member p { color: var(--muted); margin: 0; }

/* ---------- Page hero (inner) ---------- */
.page-hero {
  position: relative; padding: 5rem 0 4rem; color: #fff;
  background: linear-gradient(120deg, var(--navy), var(--blue));
  text-align: center;
}
.page-hero__overlay {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 2px, transparent 2px 22px);
}
.page-hero h1 { position: relative; font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .6rem; }
.page-hero p { position: relative; color: #d7e2f4; max-width: 620px; margin: 0 auto 1rem; }
.crumbs { position: relative; font-size: .9rem; color: #c5d3ea; }
.crumbs a { color: var(--accent); }
.crumbs span { margin: 0 .4rem; opacity: .6; }

/* ---------- Contact ---------- */
.contact-info { margin-top: 2rem; }
.contact-info__row { display: flex; gap: 1rem; margin-bottom: 1.6rem; }
.contact-info__icon {
  flex: none; width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(37,99,235,.1); color: var(--blue-2); font-size: 1.3rem;
}
.contact-info__row strong { color: var(--navy); display: block; }
.contact-info__row p { color: var(--muted); margin: 0; }
.contact-info__row a { color: var(--muted); }
.contact-info__row a:hover { color: var(--blue-2); }

.form-card { background: #fff; border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow); }
.form-card .form-control { border-radius: 10px; padding: .7rem .9rem; }
.form-card .form-control:focus { border-color: var(--blue-2); box-shadow: 0 0 0 .2rem rgba(37,99,235,.15); }
.form-label { font-weight: 500; color: var(--navy); }

.map-wrap { line-height: 0; }

/* ---------- CTA ---------- */
.cta {
  padding: 4.5rem 0;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
}
.cta h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: .5rem; }
.cta p { font-size: 1.1rem; margin-bottom: 1.8rem; opacity: .95; }
.cta .btn-light { color: var(--accent-2); font-weight: 700; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #b9c6dc; }
.footer__brand strong { color: #fff; font-size: 1.3rem; letter-spacing: .5px; }
.footer__brand p { color: var(--accent); font-size: .85rem; margin: .2rem 0 1rem; }
.footer__about { font-size: .92rem; }
.footer h5 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; }
.footer__links, .footer__contact { list-style: none; padding: 0; margin: 0; }
.footer__links li, .footer__contact li { margin-bottom: .6rem; font-size: .92rem; }
.footer__links a, .footer__contact a { color: #b9c6dc; transition: color .2s; }
.footer__links a:hover, .footer__contact a:hover { color: var(--accent); }
.footer__contact i { color: var(--accent); margin-right: .4rem; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.1); padding: 1.2rem 0; font-size: .85rem; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px;
  border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: .3s; z-index: 999; font-size: 1.2rem;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent-2); color: #fff; }

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