/* ==========================================================================
   Adv. Pooja Waghela — Custom Stylesheet
   Palette: Navy #0F172A | Gold #CB9B51 / #D97706 | White | Charcoal
   Handles: keyframes, brand components, glassmorphism, hover motion, forms.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --navy-950: #080d18;
  --navy-900: #0f172a;
  --navy-800: #151f38;
  --navy-700: #1e2a47;
  --gold-300: #e8ce9a;
  --gold-400: #ddb877;
  --gold-500: #cb9b51;
  --gold-600: #d97706;
  --white: #ffffff;
  --charcoal: #374151;
  --ring-gold: rgba(203, 155, 81, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Base / accessibility ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* offset for the sticky navbar when jumping to anchors */
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  background-color: var(--navy-900);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--navy-950); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-600), var(--gold-500));
  border-radius: 999px;
  border: 2px solid var(--navy-950);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-400); }

/* Focus ring for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ---------- 3. Keyframes ---------- */
@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes pulseScale {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.12); opacity: 0.85; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(203,155,81,0.35), 0 18px 40px -18px rgba(203,155,81,0.55); }
  50%      { box-shadow: 0 0 0 1px rgba(203,155,81,0.6), 0 26px 60px -20px rgba(203,155,81,0.75); }
}

/* ---------- 4. Utility / typography ---------- */
/* Animated gold gradient text used for headline accents */
.gold-shine {
  background: linear-gradient(100deg, var(--gold-600), var(--gold-300), var(--gold-500), var(--gold-600));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.section-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  font-weight: 600;
  color: var(--white);
}

/* ---------- 5. Buttons ---------- */
.btn-gold {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-900);
  background: linear-gradient(120deg, var(--gold-600), var(--gold-500) 55%, var(--gold-400));
  background-size: 200% auto;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-position 0.6s var(--ease);
  box-shadow: 0 14px 30px -14px rgba(203, 155, 81, 0.75);
}

.btn-gold:hover {
  transform: translateY(-3px);
  background-position: right center;
  box-shadow: 0 22px 45px -16px rgba(203, 155, 81, 0.9);
}

.btn-gold:active { transform: translateY(-1px); }

.btn-gold[disabled] { opacity: 0.75; cursor: not-allowed; transform: none; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--ring-gold);
  background: rgba(203, 155, 81, 0.1);
  color: var(--gold-300);
}

/* ---------- 6. Navbar (glassmorphism) ---------- */
#navbar.scrolled {
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 40px -24px rgba(0, 0, 0, 0.9);
}

.nav-link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: #cbd5e1;
  padding: 0.25rem 0;
  transition: color 0.3s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
  border-radius: 2px;
  transition: width 0.35s var(--ease);
}

.nav-link:hover,
.nav-link.active { color: var(--white); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Mobile drawer links */
.mobile-link {
  display: block;
  padding: 0.9rem 0.5rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.6rem;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.mobile-link:hover { color: var(--gold-400); padding-left: 0.9rem; }

.mobile-link-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  justify-content: center;
  padding: 1rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--navy-900);
  background: linear-gradient(120deg, var(--gold-600), var(--gold-500));
}

/* ---------- 7. Cards (generic) ---------- */
.mini-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.mini-card i {
  color: var(--gold-500);
  font-size: 1.1rem;
  margin-top: 0.15rem;
}
.mini-card:hover {
  transform: translateY(-4px);
  border-color: var(--ring-gold);
  background: rgba(203, 155, 81, 0.06);
}

/* ---------- 8. Service cards (hover lift + gold glow) ---------- */
.service-card {
  position: relative;
  display: block;
  padding: 1.75rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(21, 31, 56, 0.85), rgba(15, 23, 42, 0.75));
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

/* soft gold sheen that follows hover */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(203, 155, 81, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-8px);
  border-color: var(--ring-gold);
  box-shadow: 0 0 0 1px rgba(203,155,81,0.4), 0 30px 60px -28px rgba(203, 155, 81, 0.55);
}
.service-card:hover::before,
.service-card:focus-visible::before { opacity: 1; }

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 18px;
  font-size: 1.35rem;
  color: var(--gold-400);
  background: rgba(203, 155, 81, 0.13);
  border: 1px solid rgba(203, 155, 81, 0.22);
  transition: transform 0.45s var(--ease), background 0.45s var(--ease);
}
.service-card:hover .service-icon {
  transform: scale(1.08) rotate(-4deg);
  background: rgba(203, 155, 81, 0.22);
}

.service-title {
  margin-top: 1.1rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
}

.service-desc {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #94a3b8;
}

.service-tag {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-300);
  border-radius: 999px;
  border: 1px solid rgba(203, 155, 81, 0.3);
  background: rgba(203, 155, 81, 0.08);
}

/* ---------- 9. Tabs (Vision / Mission / Ethics) ---------- */
.tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 0.5rem;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.tab-btn:hover { color: var(--white); }

.tab-btn.tab-active {
  color: var(--navy-900);
  background: linear-gradient(120deg, var(--gold-600), var(--gold-400));
  box-shadow: 0 14px 30px -16px rgba(203, 155, 81, 0.85);
}

.tab-panel { animation: fadeInUp 0.5s var(--ease) both; }

/* ---------- 10. Process steps ---------- */
.step-card {
  position: relative;
  padding: 1.75rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.step-card:hover {
  transform: translateY(-6px);
  border-color: var(--ring-gold);
}
.step-num {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-500);
}
.step-title {
  margin-top: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}
.step-desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #94a3b8;
}

/* ---------- 11. Contact info cards ---------- */
.contact-info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.contact-info-card:hover {
  transform: translateX(6px);
  border-color: var(--ring-gold);
}
.contact-info-icon {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 14px;
  color: var(--gold-400);
  background: rgba(203, 155, 81, 0.13);
  flex-shrink: 0;
}

/* ---------- 12. Form fields ---------- */
.field-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.field-input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  font-size: 0.95rem;
  color: var(--white);
  background: rgba(8, 13, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.field-input::placeholder { color: #64748b; }
.field-input:hover { border-color: rgba(255, 255, 255, 0.22); }
.field-input:focus {
  outline: none;
  border-color: var(--gold-500);
  background: rgba(8, 13, 24, 0.75);
  box-shadow: 0 0 0 4px rgba(203, 155, 81, 0.16);
}
.field-input.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

/* Native select styling */
.field-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23CB9B51' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  padding-right: 2.75rem;
  cursor: pointer;
  color-scheme: dark;
}
.field-select option,
.field-select optgroup {
  background: var(--navy-900);
  color: #e2e8f0;
}

.field-error {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: #f87171;
}

/* ---------- 13. Marquee strip ---------- */
.marquee-track { animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- 14. Preloader ---------- */
.preloader-scale { animation: pulseScale 1.6s ease-in-out infinite; }
#preloader.is-hidden { opacity: 0; visibility: hidden; }

/* ---------- 15. Footer ---------- */
.footer-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.footer-link {
  color: #94a3b8;
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.footer-link:hover { color: var(--gold-400); padding-left: 4px; }

/* ---------- 16. Toast notifications ---------- */
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 280px;
  max-width: 92vw;
  padding: 0.95rem 1.15rem;
  border-radius: 16px;
  font-size: 0.9rem;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  animation: fadeInUp 0.4s var(--ease) both;
}
.toast.toast-success { border-color: rgba(34, 197, 94, 0.4); }
.toast.toast-error { border-color: rgba(239, 68, 68, 0.45); }
.toast .toast-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  flex-shrink: 0;
}
.toast.toast-success .toast-icon { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.toast.toast-error .toast-icon { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.toast.toast-info .toast-icon { background: rgba(203, 155, 81, 0.15); color: var(--gold-400); }
.toast.is-leaving { animation: fadeInUp 0.35s var(--ease) reverse both; }

/* ---------- 17. Drawer / overlay ---------- */
#drawerOverlay.is-open { display: block; opacity: 1; }
#serviceDrawer.is-open { transform: translateX(0); }

/* ---------- 18. Back-to-top ---------- */
#backToTop.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- 19. Reduced-motion friendly marquee ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- 20. Service card arrow affordance ---------- */
.service-card .fa-arrow-up-right-from-square {
  transition: color 0.35s var(--ease), transform 0.35s var(--ease);
}
.service-card:hover .fa-arrow-up-right-from-square,
.service-card:focus-visible .fa-arrow-up-right-from-square {
  color: var(--gold-400);
  transform: translate(2px, -2px);
}