/* ================================================================
   Shadimentor — app.css
   Bootstrap 5 + Custom Design System
   ================================================================ */

/* ----------------------------------------------------------------
   1. Google Fonts
   ---------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ----------------------------------------------------------------
   2. Bootstrap 5 CDN (loaded via <link> in layout — see note below)
      Custom variables OVERRIDE Bootstrap defaults before compile.
      If using Vite + Bootstrap npm: @import 'bootstrap/scss/bootstrap';
   ---------------------------------------------------------------- */

/* ----------------------------------------------------------------
   3. CSS Custom Properties (Design Tokens)
   ---------------------------------------------------------------- */
:root {
  /* Brand Colours */
  --sm-red: #C0392B;
  --sm-red-dark: #96281B;
  --sm-red-light: #E74C3C;
  --sm-red-pale: #FDEDEC;
  --sm-gold: #D4AC0D;
  --sm-gold-light: #F9E79F;

  /* Neutrals */
  --sm-dark: #1A1A2E;
  --sm-dark-card: #16213E;
  --sm-mid: #4A4A6A;
  --sm-body: #5A5A7A;
  --sm-border: #E8E8F0;
  --sm-bg-soft: #F8F7FF;
  --sm-bg-warm: #FFF9F5;
  --sm-white: #FFFFFF;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --section-py: 5rem;
  --section-py-sm: 3rem;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, .07);
  --shadow-card-hover: 0 12px 40px rgba(192, 57, 43, .15);
  --shadow-nav: 0 2px 20px rgba(0, 0, 0, .12);

  /* Radius */
  --radius-card: 16px;
  --radius-pill: 50px;
  --radius-btn: 8px;

  /* Transitions */
  --transition: all .28s cubic-bezier(.4, 0, .2, 1);
}

/* ----------------------------------------------------------------
   4. Base Reset & Typography
   ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--sm-body);
  background-color: var(--sm-white);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--sm-dark);
  line-height: 1.25;
  font-weight: 700;
}

p {
  margin-bottom: 1.1rem;
}

a {
  transition: var(--transition);
}

img {
  max-width: 100%;
}

/* ----------------------------------------------------------------
   5. Bootstrap Overrides
   ---------------------------------------------------------------- */

/* -- Buttons -- */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .03em;
  border-radius: var(--radius-btn);
  padding: .6rem 1.5rem;
  transition: var(--transition);
}

.btn-lg {
  padding: .85rem 2.2rem;
  font-size: 1rem;
  border-radius: 10px;
}

.btn-sm {
  padding: .35rem .9rem;
  font-size: .8rem;
  border-radius: 6px;
}

.btn-danger {
  background-color: var(--sm-red);
  border-color: var(--sm-red);
  color: #fff;
}

.btn-danger:hover,
.btn-danger:focus {
  background-color: var(--sm-red-dark);
  border-color: var(--sm-red-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(192, 57, 43, .35);
}

.btn-outline-danger {
  color: var(--sm-red);
  border-color: var(--sm-red);
}

.btn-outline-danger:hover {
  background-color: var(--sm-red);
  border-color: var(--sm-red);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-light:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, .2);
}

.btn-light {
  background-color: #fff;
  border-color: #fff;
}

.btn-light:hover {
  background-color: var(--sm-red-pale);
  border-color: var(--sm-red-pale);
  transform: translateY(-1px);
}

/* -- Navbar -- */
.navbar {
  box-shadow: var(--shadow-nav);
  backdrop-filter: blur(12px);
  padding-top: .75rem;
  padding-bottom: .75rem;
}

.navbar-dark.bg-dark {
  background-color: rgba(26, 26, 46, .97) !important;
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -.01em;
  color: #fff !important;
}

.navbar-nav .nav-link {
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .8) !important;
  padding: .45rem .9rem !important;
  border-radius: 6px;
  position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: .2rem;
    right: .2rem;
    height: 2px;
    background: var(--sm-red-light);
    transform: scaleX(0);
    transition: var(--transition);
    border-radius: 2px;
}
 
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #fff !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-expand-lg .navbar-nav .nav-link {
    background-color: rgb(0 0 0 / 70%);
}

.navbar-nav .nav-link.active {
  background-color: rgba(192, 57, 43, 0.5);
}
a.navbar-brand img {
    height: 65px;
}
/* -- Cards -- */
.card {
  border-radius: var(--radius-card);
  border: 1px solid var(--sm-border);
  transition: var(--transition);
}

.card.shadow-sm {
  box-shadow: var(--shadow-card) !important;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover) !important;
}

/* -- Badges -- */
.badge.bg-danger {
  background-color: var(--sm-red) !important;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .7rem;
  letter-spacing: .06em;
  border-radius: 4px;
  padding: .35em .7em;
}

/* -- Tables -- */
.table {
  font-size: .9rem;
}

.table-dark thead th {
  background-color: var(--sm-dark) !important;
  font-family: var(--font-body);
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: none;
  padding: 1rem 1.25rem;
}

.table tbody td {
  padding: .9rem 1.25rem;
  vertical-align: middle;
  border-color: var(--sm-border);
}

.table-hover tbody tr:hover {
  background-color: var(--sm-bg-soft);
}

/* -- Breadcrumb -- */
.breadcrumb {
  font-size: .85rem;
  font-family: var(--font-body);
}

.breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, .4);
}

/* ----------------------------------------------------------------
   6. Layout Helpers
   ---------------------------------------------------------------- */

/* Section vertical padding utility (extends Bootstrap py-*) */
.py-section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

.py-section-sm {
  padding-top: var(--section-py-sm);
  padding-bottom: var(--section-py-sm);
}

/* Bootstrap doesn't have py-6 — add it */
.py-6 {
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
}

.pt-6 {
  padding-top: 4.5rem !important;
}

.pb-6 {
  padding-bottom: 4.5rem !important;
}

/* ----------------------------------------------------------------
   7. Divider (used in hero, about sections)
   ---------------------------------------------------------------- */
.divider {
  max-width: 60px;
  border: none;
  border-top: 4px solid var(--sm-red);
  opacity: 1;
  margin: 1.5rem auto;
}

.divider-light {
  border-top-color: rgba(255, 255, 255, .6);
}

.divider-wide {
  max-width: 120px;
}

/* ----------------------------------------------------------------
   8. Hero / Masthead
   ---------------------------------------------------------------- */
.masthead {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg,
      var(--sm-dark) 0%,
      #2C1654 40%,
      #6B1A2E 100%);
  overflow: hidden;
  padding-top: 72px;
  /* offset fixed navbar */
}

/* Decorative background pattern */
.masthead::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(192, 57, 43, .25) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212, 172, 13, .15) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.masthead .container {
  position: relative;
  z-index: 1;
}

.masthead h1 {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .3);
  letter-spacing: -.01em;
  text-transform: none !important;
  /* override .text-uppercase from old markup */
}

.masthead .lead {
  color: rgba(255, 255, 255, .82);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.8;
}

/* Floating decorative ring */
.masthead::after {
  content: '❤';
  position: absolute;
  right: 8%;
  top: 20%;
  font-size: 18rem;
  opacity: .04;
  pointer-events: none;
  line-height: 1;
  animation: floatHeart 8s ease-in-out infinite;
}

@keyframes floatHeart {

  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }

  50% {
    transform: translateY(-30px) rotate(5deg);
  }
}

/* ----------------------------------------------------------------
   9. Stats / Trust Bar
   ---------------------------------------------------------------- */
.stats-bar {
  background: linear-gradient(90deg, var(--sm-red-dark) 0%, var(--sm-red) 100%);
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, .04) 10px,
      rgba(255, 255, 255, .04) 20px);
  pointer-events: none;
}

.stats-bar .stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.stats-bar .stat-label {
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .75);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.stats-bar .stat-divider {
  width: 1px;
  background: rgba(255, 255, 255, .2);
  height: 48px;
  align-self: center;
}

/* ----------------------------------------------------------------
   10. Section Headings (common pattern)
   ---------------------------------------------------------------- */
.section-heading {
  position: relative;
  display: inline-block;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 4px;
  background: var(--sm-red);
  border-radius: 2px;
}

.section-heading.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sm-red);
  display: block;
  margin-bottom: .75rem;
}

/* ----------------------------------------------------------------
   11. About Intro / Feature Strip
   ---------------------------------------------------------------- */
.feature-strip {
  background-color: var(--sm-bg-soft);
  position: relative;
}

.feature-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sm-red), var(--sm-gold), var(--sm-red));
}

/* ----------------------------------------------------------------
   12. Journey / Step Cards
   ---------------------------------------------------------------- */
.step-card {
  background: var(--sm-white);
  border-radius: var(--radius-card);
  border: 1px solid var(--sm-border);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sm-red), var(--sm-red-light));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.step-card:hover::before {
  transform: scaleX(1);
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sm-red-pale);
  color: var(--sm-red);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: var(--transition);
}

.step-card:hover .step-number {
  background: var(--sm-red);
  color: #fff;
  transform: scale(1.1);
}

.step-icon {
  font-size: 2.5rem;
  line-height: 1;
  display: block;
  margin-bottom: .75rem;
  transition: var(--transition);
}

.step-card:hover .step-icon {
  transform: scale(1.15);
}

/* ----------------------------------------------------------------
   13. Why Choose Us — Feature List
   ---------------------------------------------------------------- */
.feature-check-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1.1rem;
  font-size: .95rem;
}

.feature-check-list .check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sm-red-pale);
  color: var(--sm-red);
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
}

/* ----------------------------------------------------------------
   14. CTA Section
   ---------------------------------------------------------------- */
.cta-section {
  background: linear-gradient(135deg, #f2b0a9 0%, var(--sm-red) 60%, #E55A4A 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

/* ----------------------------------------------------------------
   15. Page Hero (inner pages - About, Services, Blog)
   ---------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--sm-dark) 0%, #1E1445 100%);
  margin-top: 60px;
  /* fixed navbar height */
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 100%, rgba(192, 57, 43, .3) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 0%, rgba(212, 172, 13, .15) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
}

.page-hero .lead {
  color: rgba(255, 255, 255, .7);
  font-size: 1rem;
}

/* ----------------------------------------------------------------
   16. Service Items (Services page)
   ---------------------------------------------------------------- */
.service-item {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--sm-border);
  transition: var(--transition);
}

.service-item:last-child {
  border-bottom: none;
}

.service-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: var(--sm-red-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.service-item:hover .service-icon-wrap {
  background: var(--sm-red);
  transform: rotate(-6deg) scale(1.08);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .75rem;
}

.service-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--sm-red);
  background: var(--sm-red-pale);
  border-radius: 4px;
  padding: .25rem .6rem;
  letter-spacing: .03em;
}

/* ----------------------------------------------------------------
   17. Footer
   ---------------------------------------------------------------- */
.site-footer {
  background-color: var(--sm-dark);
  color: rgba(255, 255, 255, .6);
  font-size: .88rem;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sm-red), var(--sm-gold), var(--sm-red));
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fff;
  display: block;
  margin-bottom: 1rem;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
  margin-bottom: 1.25rem;
}

.footer-link {
  color: rgba(255, 255, 255, .55);
  text-decoration: none;
  display: block;
  padding: .2rem 0;
  font-size: .88rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: #fff;
  padding-left: 6px;
}

.footer-divider {
  border-color: rgba(255, 255, 255, .1);
  margin: 2rem 0;
}

.footer-bottom {
  color: rgba(255, 255, 255, .35);
  font-size: .8rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, .4);
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, .8);
}

/* ----------------------------------------------------------------
   18. Scroll Animations (using Intersection Observer / CSS only)
   ---------------------------------------------------------------- */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate-delay="1"] {
  transition-delay: .1s;
}

[data-animate-delay="2"] {
  transition-delay: .2s;
}

[data-animate-delay="3"] {
  transition-delay: .3s;
}

[data-animate-delay="4"] {
  transition-delay: .4s;
}

/* ----------------------------------------------------------------
   19. Responsive Adjustments
   ---------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .masthead {
    min-height: 90vh;
  }

  .masthead::after {
    font-size: 10rem;
  }

  .py-6 {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }
}

@media (max-width: 767.98px) {
  .masthead {
    min-height: 85vh;
    padding-top: 80px;
  }

  .masthead h1 {
    font-size: 1.75rem;
  }

  .stats-bar .stat-divider {
    display: none;
  }

  .page-hero {
    padding: 3.5rem 0 3rem;
  }
}

@media (max-width: 575.98px) {
  :root {
    --section-py: 3rem;
  }

  .btn-lg {
    padding: .75rem 1.5rem;
    font-size: .95rem;
  }

  .masthead::after {
    display: none;
  }
}

/* ----------------------------------------------------------------
   20. Utility Classes
   ---------------------------------------------------------------- */
.text-sm-red {
  color: var(--sm-red) !important;
}

.bg-sm-red {
  background-color: var(--sm-red) !important;
}

.bg-sm-soft {
  background-color: var(--sm-bg-soft) !important;
}

.bg-sm-warm {
  background-color: var(--sm-bg-warm) !important;
}

.rounded-xl {
  border-radius: var(--radius-card) !important;
}

.fw-800 {
  font-weight: 800 !important;
}

.font-display {
  font-family: var(--font-display) !important;
}

/* Image hover zoom */
.img-hover-zoom {
  overflow: hidden;
  border-radius: var(--radius-card);
}

.img-hover-zoom img {
  transition: transform .5s ease;
  width: 100%;
}

.img-hover-zoom:hover img {
  transform: scale(1.05);
}