/* ============================================================
   CA Vivek Agarwal — custom styles layered over Bootstrap 5
   ============================================================ */

:root {
  --teal:        #264653;
  --teal-dark:   #1d3742;
  --teal-deep:   #16303a;
  --coral:       #E76F51;
  --coral-dark:  #d85c3f;
  --gold:        #E9C46A;
  --gold-soft:   #f2d894;
  --sand:        #F4F4F4;
  --ink:         #23303a;
  --muted:       #64748b;

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 10px 30px rgba(20, 40, 50, .10);
  --shadow-lg: 0 20px 45px rgba(20, 40, 50, .18);
  --section-y: clamp(4rem, 8vw, 7rem);
}

* { scroll-behavior: smooth; }

html { scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, .navbar-brand { font-family: var(--font-head); }

a { text-decoration: none; }

/* ---------- Buttons ---------- */
.btn-cta {
  --bs-btn-color: #fff;
  background: var(--coral);
  color: #fff;
  border: none;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: 999px;
  padding-inline: 1.6rem;
  box-shadow: 0 8px 20px rgba(231, 111, 81, .35);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-cta:hover, .btn-cta:focus {
  background: var(--coral-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(231, 111, 81, .45);
}
.btn-outline-light { border-radius: 999px; font-weight: 600; padding-inline: 1.6rem; }

/* ---------- Navbar ---------- */
.site-nav {
  background: transparent;
  padding-block: 1rem;
  transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}
.site-nav.scrolled {
  background: var(--teal);
  padding-block: .5rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}
.navbar-brand { line-height: 1.1; }
.brand-monogram svg { display: block; }
.brand-word { display: flex; flex-direction: column; }
.brand-name {
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: .01em;
}
.brand-sub {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 500;
}
.site-nav .nav-link {
  color: rgba(255, 255, 255, .88);
  font-weight: 500;
  padding-inline: .9rem;
  position: relative;
}
.site-nav .nav-link:hover,
.site-nav .nav-link:focus,
.site-nav .nav-link.active {
  color: #fff;
}
.site-nav .nav-link:not(.btn)::after {
  content: "";
  position: absolute;
  left: .9rem; right: .9rem; bottom: .35rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.site-nav .nav-link:not(.btn):hover::after,
.site-nav .nav-link:not(.btn).active::after { transform: scaleX(1); }
.navbar-toggler { border-color: rgba(255,255,255,.4); }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(233, 196, 106, .5); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,0.9)' stroke-width='2.2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Mobile collapsed menu gets a solid panel for readability */
@media (max-width: 991.98px) {
  .site-nav .navbar-collapse {
    background: var(--teal);
    margin-top: .75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
  }
  .site-nav .nav-link:not(.btn)::after { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(233, 196, 106, .55) 0%, rgba(233, 196, 106, 0) 45%),
    linear-gradient(135deg, var(--teal-deep) 0%, var(--teal) 55%, #2f5a68 100%);
  overflow: hidden;
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 15% 90%, rgba(231, 111, 81, .28) 0%, transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; padding-block: 7rem 4rem; }
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1rem;
}
.hero__title {
  font-weight: 800;
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  line-height: 1.08;
  margin-bottom: 1.25rem;
}
.hero__lead {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, .86);
  max-width: 46rem;
  margin: 0 auto 2rem;
}
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute;
  left: 50%; bottom: 1.5rem;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .75);
  font-size: 1.5rem;
  z-index: 2;
  animation: bob 2s ease-in-out infinite;
}
.hero__scroll:hover { color: #fff; }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Generic section ---------- */
.section { padding-block: var(--section-y); }
.section__kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--coral);
  margin-bottom: .75rem;
}
.section__kicker--light { color: var(--gold); }
.section__title {
  font-weight: 700;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  color: var(--teal);
  margin-bottom: 1rem;
}
.section__lead { font-size: 1.1rem; color: var(--ink); }

.section--about { background: #fff; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--sand);
  border-block: 1px solid rgba(38, 70, 83, .08);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.cta-band__title { font-weight: 700; color: var(--teal); font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cta-band__text { color: var(--muted); }

/* ---------- Services ---------- */
.section--services { background: var(--teal); }
.service-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--radius);
  padding: 2.25rem 1.6rem;
  text-align: center;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, .07);
  border-color: rgba(233, 196, 106, .5);
  box-shadow: var(--shadow-lg);
}
.service-card__icon {
  width: 84px; height: 84px;
  margin: 0 auto 1.4rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 10px 22px rgba(231, 111, 81, .4);
  transition: transform .22s ease;
}
.service-card:hover .service-card__icon { transform: scale(1.08) rotate(-4deg); }
.service-card__title { color: #fff; font-weight: 600; font-size: 1.2rem; margin-bottom: .6rem; }
.service-card__text { color: rgba(255, 255, 255, .74); font-size: .95rem; margin-bottom: 0; }

/* ---------- Contact ---------- */
.section--contact {
  background: linear-gradient(180deg, var(--teal-dark) 0%, var(--teal-deep) 100%);
}
.contact-list__item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.75rem; }
.contact-list__icon {
  flex: 0 0 auto;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(233, 196, 106, .14);
  color: var(--gold);
  font-size: 1.35rem;
}
.contact-list__label { color: #fff; font-size: 1.05rem; font-weight: 600; margin-bottom: .2rem; }
.contact-list__item p { color: rgba(255, 255, 255, .78); }
.contact-list__link { color: var(--gold); }
.contact-list__link:hover { color: var(--gold-soft); text-decoration: underline; }

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-lg);
}
.contact-form .form-label { font-weight: 600; color: var(--teal); font-size: .9rem; }
.contact-form .form-control {
  border-radius: var(--radius-sm);
  border: 1px solid #dbe2e6;
  padding: .7rem .9rem;
}
.contact-form .form-control:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 .2rem rgba(231, 111, 81, .18);
}
.cf-result { font-weight: 500; font-size: .95rem; }
.cf-result.is-success { color: #1a7d4b; }
.cf-result.is-error   { color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-deep); color: rgba(255, 255, 255, .72); padding-block: 3.5rem 1.75rem; }
.footer-brand { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.25rem; }
.footer-text { font-size: .95rem; max-width: 24rem; }
.footer-heading { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: rgba(255, 255, 255, .72); transition: color .18s ease; }
.footer-links a:hover { color: var(--gold); }
.footer-divider { border-color: rgba(255, 255, 255, .12); margin-block: 2rem 1.25rem; }
.footer-copy { font-size: .88rem; color: rgba(255, 255, 255, .6); }

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

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll { animation: none; }
}
