/* ============================================================================
   Swami Samarth Vision Group - Core Stylesheet
   Palette Source of Truth: theme.txt (Client Updated Maroon & Gold Identity)
   ============================================================================ */

:root {
  /* Direct Theme Tokens from theme.txt */
  --theme-760c12: #760c12; /* Deep Imperial Maroon */
  --theme-853032: #853032; /* Rich Wine / Dark Crimson */
  --theme-a11d2a: #a11d2a; /* Vibrant Crimson Red */
  --theme-b48a58: #b48a58; /* Warm Antique Gold */
  --theme-9e5559: #9e5559; /* Dusty Rose / Terracotta */
  --theme-be8a8e: #be8a8e; /* Soft Mauve / Muted Rose */
  --theme-dfc5c0: #dfc5c0; /* Pale Blush Silk */
  --theme-faf7f7: #faf7f7; /* Soft Off-White Background */

  /* Semantic Theme Variables */
  --color-primary-accent: #a11d2a;
  --color-dark-amber: #b48a58;
  --color-deep-navy: #760c12;
  --color-light-bg: #faf7f7;
  --color-slate-light: #dfc5c0;
  --color-champagne: #b48a58;
  --color-deep-bronze: #853032;
  --color-cool-slate: #5b4648;
  --color-muted-gold: #b48a58;
  --color-heading: #1a1a1a; /* Simple Black / Clean Dark for all Headings */

  --font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --transition: all 0.3s ease-in-out;
  --box-shadow: 0 10px 30px rgba(118, 12, 18, 0.08);
  --box-shadow-hover: 0 15px 35px rgba(161, 29, 42, 0.22);
  --border-radius: 12px;
}

/* Base resets & typography */
body {
  font-family: var(--font-family);
  background-color: var(--color-light-bg);
  color: #2d1e20;
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--color-primary-accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-deep-navy);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Topbar */
.topbar {
  background-color: #58080d;
  color: #f3dfdf;
  padding: 8px 0;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(180, 138, 88, 0.25);
}

.topbar a {
  color: #f5e8e8;
}

.topbar a:hover {
  color: var(--color-dark-amber);
}

/* Navbar */
.navbar-custom {
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(118, 12, 18, 0.06);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-brand-logo {
  height: 80px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: var(--transition);
  display: block;
}

.footer-brand-logo {
  height: 80px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  display: inline-block;
}

.navbar-custom .nav-link {
  color: #1a1a1a !important;
  font-weight: 600;
  padding: 8px 16px !important;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.navbar-custom .nav-link:hover {
  color: var(--color-primary-accent) !important;
}

.navbar-custom .nav-link.active {
  color: var(--color-primary-accent) !important;
  font-weight: 700;
}

.navbar-custom .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 16px;
  right: 16px;
  height: 3px;
  background-color: var(--color-primary-accent);
  border-radius: 3px;
}

/* Primary Button */
.btn-primary-custom {
  background: linear-gradient(
    135deg,
    var(--color-primary-accent) 0%,
    var(--color-deep-navy) 100%
  );
  color: #ffffff !important;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 15px rgba(161, 29, 42, 0.35);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-custom:hover {
  background: linear-gradient(
    135deg,
    #b82332 0%,
    var(--color-deep-bronze) 100%
  );
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(161, 29, 42, 0.45);
}

.btn-outline-custom {
  border: 2px solid var(--color-primary-accent);
  color: var(--color-deep-navy);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 50px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-custom:hover {
  background-color: var(--color-primary-accent);
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* Warning / Yellow Accent Button */
.btn-warning-custom {
  background: #ffc107;
  color: #1a1a1a !important;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid #e0a800;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.35);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-warning-custom:hover {
  background: #e0a800;
  color: #000000 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.45);
}

/* Hero Section & Hero Auto Slider */
.hero-slider-section,
.hero-section {
  position: relative;
  height: 600px;
  max-height: 600px;
  overflow: hidden;
  color: #ffffff;
}

.hero-slider-section .carousel-inner,
.hero-slider-section .carousel-item {
  height: 600px;
  position: relative;
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

/* Slide Content Overlay */
.hero-slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-slide-content h1,
.hero-section h1 {
  color: #ffffff;
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.hero-slide-content h1 span,
.hero-section h1 span {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.hero-slide-content p,
.hero-section p {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 20px;
  max-width: 630px;
  line-height: 1.5;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}

.hero-slide-content .text-light,
.hero-section .text-light {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

/* Hero Carousel Indicators */
.hero-slider-section .carousel-indicators {
  margin-bottom: 16px;
  z-index: 5;
}

.hero-slider-section .carousel-indicators [data-bs-target] {
  width: 30px;
  height: 4px;
  border-radius: 4px;
  background-color: #ffffff;
  opacity: 0.6;
  border: none;
  transition: all 0.3s ease;
}

.hero-slider-section .carousel-indicators .active {
  width: 48px;
  background-color: #ffc107;
  opacity: 1;
}

/* Hero Carousel Controls */
.hero-slider-section .carousel-control-prev,
.hero-slider-section .carousel-control-next {
  width: 46px;
  height: 46px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  opacity: 0.75;
  transition: all 0.3s ease;
  z-index: 5;
}

.hero-slider-section .carousel-control-prev {
  left: 20px;
}

.hero-slider-section .carousel-control-next {
  right: 20px;
}

.hero-slider-section .carousel-control-prev:hover,
.hero-slider-section .carousel-control-next:hover {
  background: rgba(0, 0, 0, 0.85);
  opacity: 1;
}

.hero-slider-section .carousel-control-prev-icon,
.hero-slider-section .carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

.hero-glass-card {
  background: rgba(45, 4, 7, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(180, 138, 88, 0.35);
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.hero-glass-card h5 {
  color: #ffffff !important;
}

/* Feature Cards & Service Cards */
.card-custom {
  background: #ffffff;
  border-radius: var(--border-radius);
  border: 1px solid rgba(223, 197, 192, 0.6);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
  overflow: hidden;
}

.card-custom:hover {
  transform: translateY(-6px);
  box-shadow: var(--box-shadow-hover);
  border-color: var(--color-champagne);
}

/* Service Card Image Presentation */
.service-card-img-wrap {
  position: relative;
  height: 195px;
  overflow: hidden;
  background-color: #2a0407;
}

.service-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card-custom:hover .service-card-img-wrap img {
  transform: scale(1.08);
}

.service-card-icon-badge {
  position: absolute;
  bottom: -18px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: linear-gradient(
    135deg,
    var(--color-primary-accent) 0%,
    var(--color-deep-navy) 100%
  );
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  border: 3px solid #ffffff;
  z-index: 2;
  transition: var(--transition);
}

.card-custom:hover .service-card-icon-badge {
  background: var(--color-dark-amber);
  color: #1a0204;
  transform: scale(1.08);
}

.service-icon-box {
  width: 52px;
  height: 52px;
  background: rgba(161, 29, 42, 0.08);
  color: var(--color-primary-accent);
  border: 1px solid rgba(161, 29, 42, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 16px;
  transition: var(--transition);
}

.card-custom:hover .service-icon-box {
  background: var(--color-primary-accent);
  border-color: var(--color-primary-accent);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Commitments & Why Choose Us Standout Section */
.commitments-section {
  background: linear-gradient(180deg, #ffffff 0%, #faf6f6 50%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.commitment-card {
  background: #ffffff;
  border: 1px solid rgba(223, 197, 192, 0.6);
  border-left: 4px solid var(--color-dark-amber);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.commitment-card:hover {
  transform: translateY(-3px);
  border-left-color: var(--color-primary-accent);
  box-shadow: 0 10px 25px rgba(161, 29, 42, 0.09);
}

.commitment-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(180, 138, 88, 0.15) 0%, rgba(161, 29, 42, 0.08) 100%);
  color: var(--color-dark-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.commitment-card:hover .commitment-icon-wrap {
  background: var(--color-dark-amber);
  color: #ffffff;
}

.commitments-showcase-card {
  background: linear-gradient(145deg, #1f2228 0%, #121417 100%);
  border: 1px solid rgba(180, 138, 88, 0.35);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  position: relative;
}

.commitments-showcase-card h3 {
  color: #ffffff !important;
}

.commitments-showcase-img-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.commitments-showcase-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.commitments-showcase-card:hover .commitments-showcase-img-wrap img {
  transform: scale(1.05);
}

.commitments-showcase-badge {
  position: absolute;
  bottom: 12px;
  left: 16px;
  background: rgba(18, 20, 23, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(180, 138, 88, 0.4);
  color: #ffc107;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
}

.trust-pillar-item {
  background: #ffffff;
  border: 1px solid rgba(223, 197, 192, 0.6);
  border-radius: 12px;
  padding: 16px 20px;
  transition: var(--transition);
}

.trust-pillar-item:hover {
  border-color: var(--color-dark-amber);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

/* About Section Layered Visual */
.about-visual-container {
  position: relative;
}

.about-main-img {
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(118, 12, 18, 0.2);
  width: 100%;
  height: 420px;
  object-fit: cover;
  border: 4px solid #ffffff;
}

.about-badge-card {
  position: absolute;
  bottom: -20px;
  right: -10px;
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(180, 138, 88, 0.3);
  max-width: 270px;
}

/* Gallery Showcase Styles */
.gallery-thumb-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
  border-radius: 12px;
}

.gallery-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-thumb-wrap:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(118, 12, 18, 0.88) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-thumb-wrap:hover .gallery-overlay {
  opacity: 1;
}

/* Section Header */
.section-subtitle {
  color: var(--color-dark-amber);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  color: var(--color-heading);
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 15px;
}

/* Accordion Headings */
.accordion-button {
  color: var(--color-heading) !important;
}

.accordion-button:not(.collapsed) {
  color: var(--color-heading) !important;
  background-color: rgba(180, 138, 88, 0.12);
  box-shadow: none;
}

/* Page Header / Breadcrumb Header */
.page-banner {
  background: linear-gradient(135deg, var(--color-deep-navy) 0%, #4a060a 100%);
  color: #ffffff;
  padding: 60px 0 50px;
  border-bottom: 4px solid var(--color-dark-amber);
}

.page-banner h1 {
  color: #ffffff;
  margin: 0;
  font-size: 2.5rem;
}

.breadcrumb-custom {
  background: transparent;
  padding: 0;
  margin-top: 10px;
}

.breadcrumb-custom a {
  color: var(--color-champagne);
}

.breadcrumb-custom .active {
  color: #dfc5c0;
}

/* Contact Form */
.form-control-custom,
.form-select-custom {
  border: 1px solid var(--color-slate-light);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control-custom:focus,
.form-select-custom:focus {
  border-color: var(--color-primary-accent);
  box-shadow: 0 0 0 3px rgba(161, 29, 42, 0.2);
  outline: none;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(
    135deg,
    var(--color-deep-navy) 0%,
    var(--color-primary-accent) 100%
  );
  color: #ffffff;
  border-radius: var(--border-radius);
  padding: 50px 40px;
  box-shadow: 0 15px 35px rgba(118, 12, 18, 0.25);
  border: 1px solid rgba(180, 138, 88, 0.3);
}

.cta-banner h2 {
  color: #ffffff;
}

/* Footer */
footer {
  background-color: #16191e;
  color: #ffffff;
  margin-top: auto;
  padding-top: 60px;
  border-top: 3px solid var(--color-dark-amber);
}

footer p,
footer span,
footer li {
  color: #d1d5db !important;
}

footer h5 {
  color: #ffffff !important;
  font-size: 1.15rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
  font-weight: 700;
}

footer h5::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-dark-amber);
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: 10px;
}

footer ul a {
  color: #e5e7eb !important;
  transition: var(--transition);
}

footer ul a:hover {
  color: var(--color-champagne) !important;
  padding-left: 5px;
}

.footer-bottom {
  background-color: #0f1114;
  padding: 20px 0;
  margin-top: 50px;
  font-size: 0.9rem;
  color: #9ca3af !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom a {
  color: #d1d5db !important;
}
.footer-bottom a:hover {
  color: var(--color-champagne) !important;
}

/* Responsive fixes */
@media (max-width: 768px) {
  .navbar-brand-logo {
    height: 62px;
  }
  .footer-brand-logo {
    height: 64px;
  }
  .hero-slider-section,
  .hero-section,
  .hero-slider-section .carousel-inner,
  .hero-slider-section .carousel-item {
    height: auto !important;
    min-height: 480px;
    max-height: none;
  }
  .hero-slide-content {
    padding: 50px 0;
  }
  .hero-section h1,
  .hero-slide-content h1 {
    font-size: 1.85rem;
  }
  .hero-section p,
  .hero-slide-content p {
    font-size: 0.95rem;
  }
  .hero-slider-section .carousel-control-prev,
  .hero-slider-section .carousel-control-next {
    display: none;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .cta-banner {
    padding: 30px 20px;
  }
}
