/* ==========================================================================
   Custom Sewing Shop Theme - Business Card & New Logo Palette
   Palette directly inspired by the card & logo:
   - Primary: Deep Forest Moss (#1b3b22 / #264e2e / #335c3d)
   - Secondary / Contrast: Royal Plum & Mountain Indigo (#362846 / #4d3b60)
   - Mountain Cerulean Sky (#0088cc / #0099e6)
   - Playful Card Accent: Warm Coral Magenta (#e62678 / #d6226c)
   - Spring Needle Green (#79ae41 / #8ac94d)
   - Warm Card Cream & Off-White (#fdfcf7 / #f4f1ec)
   ========================================================================== */

:root {
    /* Business Card & Logo Swatches */
    --card-cream: #fdfcf7;
    --card-cream-dark: #f4f1ec;
    --card-forest-deep: #1b3b22;
    --card-forest: #264e2e;
    --card-forest-mid: #335c3d;
    --card-forest-light: #eef5ee;
    --card-plum: #362846;
    --card-plum-dark: #271c33;
    --card-plum-light: #f5f0f8;
    --card-sky-blue: #0088cc;
    --card-sky-blue-hover: #0077b3;
    --card-sky-blue-light: #e6f4fc;
    --card-spring-green: #79ae41;
    --card-spring-green-dark: #5e8a31;
    --card-magenta: #e62678;
    --card-magenta-dark: #cf1d67;
    --card-magenta-light: #fdf0f5;
    /* Theme Tokens */
    --primary-color: #000000;
    --primary-hover: #1b3b22;
    --primary-dark: #142e1a;
    --secondary-color: #362846;
    --accent-blue: #0088cc;
    --accent-magenta: #e62678;
    --accent-green: #79ae41;
    /* Card Gradients */
    --rainbow-gradient: linear-gradient(90deg, #1b3b22 0%, #2e6930 20%, #79ae41 40%, #d87d24 60%, #e62678 80%, #362846 100%);
    --navbar-gradient: linear-gradient(135deg, #362846 0%, #ffffff 20%);
/*    --navbar-gradient: linear-gradient(135deg, #ffffff 50%, #d9d7dc 100%);*/
    --hero-card-gradient: linear-gradient(145deg, #eef5ee 0%, #ffffff 30%, #cddce3 45%, #dff6e4 100%);
    /* Backgrounds & Text */
    --body-bg: #151521;
    --card-bg: #ffffff;
    --text-primary: #f1ecf7;
    --text-muted: #c4b5d4;
    /* Bootstrap Overrides */
    --bs-primary: #000000;
    --bs-primary-rgb: 0,0,0;
    --bs-secondary: #362846;
    --bs-secondary-rgb: 54, 40, 70;
    --bs-body-bg: var(--body-bg);
    --bs-body-color: var(--text-primary);
}

html {
  font-size: 14px;
  height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  background-color: var(--body-bg);
  background:
    radial-gradient(circle at 10% 15%, #dacdf5 0 9%, transparent 25%),
    radial-gradient(circle at 90% 80%, #f6cbd2 0 8%, transparent 25%),
    #151521;
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: 'Quicksand', 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Typography Enhancements */
.font-script,
.font-playful {
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.font-serif,
h1, h2, h3, .h1, .h2, .h3 {
    font-family: 'Lobster 2', cursive;
    letter-spacing: 0.01em;
    color: var(--card-plum);
}

h4, h5, h6, .h4, .h5, .h6 {
    font-family: 'Quicksand', 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--card-plum);
}

/* Color Utility Classes */
.text-forest {
  color: var(--card-forest) !important;
}

.text-forest-deep {
  color: var(--card-forest-deep) !important;
}

.text-card-dark {
    color: var(--card-plum) !important;
}

.text-card-magenta {
  color: var(--card-magenta) !important;
}

.text-card-blue {
  color: var(--card-sky-blue) !important;
}

.text-card-green {
  color: var(--card-spring-green) !important;
}

.bg-plum {
  background-color: var(--card-plum) !important;
}

.bg-cerulean {
  background-color: var(--card-sky-blue) !important;
}

.bg-forest {
  background-color: var(--card-forest) !important;
}

/* Navbar Styling */
.card-theme-navbar {
  background: var(--navbar-gradient) !important;
  border-bottom: 3px solid var(--card-spring-green) !important;
  box-shadow: 0 4px 18px rgba(27, 59, 34, 0.25) !important;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  width: 100%;
  max-width: 100%;
}

.card-theme-navbar > .container-fluid {
  width: 100%;
  max-width: 100%;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.card-theme-navbar .brand-logo {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: #ffffff;
  padding: 3px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card-theme-navbar .navbar-brand:hover .brand-logo {
  transform: scale(1.08) rotate(-4deg);
}

.card-theme-navbar .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.card-theme-navbar .brand-title {
  font-family: 'Lobster', cursive;
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #000000;
  line-height: 1.1;
}

.card-theme-navbar .brand-tagline {
  font-family: 'Caveat', cursive;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-magenta);
  line-height: 1;
}

.card-theme-navbar .nav-link {
    position: relative;
    overflow: hidden;
    font-family: 'Quicksand', cursive;
    color: black !important;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 0.5rem 0.9rem !important;
    border-radius: 0.4rem;
    transition: all 0.2s ease-in-out;
}

.card-theme-navbar .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--rainbow-gradient);
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.card-theme-navbar .nav-link:hover,
.card-theme-navbar .nav-link:focus {
  color: var(--card-plum) !important;
  background: rgba(121, 174, 65, 0.25);
}

.card-theme-navbar .nav-link:hover::after,
.card-theme-navbar .nav-link:focus::after {
  opacity: 1;
}

.card-theme-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
}

.card-theme-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(121, 174, 65, 0.35);
}

/* Products Dropdown Menu Styling */
.card-theme-navbar .dropdown-menu.card-navbar-dropdown {
  background: #ffffff;
  border: 1px solid rgba(121, 174, 65, 0.35);
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(27, 59, 34, 0.18);
  padding: 0.5rem 0.4rem;
  margin-top: 0.35rem;
  min-width: 220px;
}

.card-theme-navbar .card-navbar-dropdown .dropdown-item {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1e1a26;
  padding: 0.55rem 0.95rem;
  border-radius: 0.5rem;
  transition: all 0.18s ease-in-out;
}

.card-theme-navbar .card-navbar-dropdown .dropdown-item:hover,
.card-theme-navbar .card-navbar-dropdown .dropdown-item:focus {
  background: rgba(121, 174, 65, 0.18);
  color: var(--card-plum);
  transform: translateX(4px);
}

/* ==========================================================================
   Hero Section - TestStyle Inspired Card Layout
   ========================================================================== */
.hero-couture {
  position: relative;
  width: min(1100px, 100%);
  min-height: 580px;
  margin: 0 auto 3rem;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(30px, 6vw, 80px);
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(229, 245, 239, 0.9)), #e9f6ec;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  color: #182d27;
}

/* Pastel decorative glow circles */
.hero-couture::before,
.hero-couture::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(3px);
  opacity: 0.65;
  pointer-events: none;
}

.hero-couture::before {
  width: 300px;
  height: 300px;
  top: -160px;
  right: -40px;
  background: #c7b8ed; /* Lavender orb */
}

.hero-couture::after {
  width: 260px;
  height: 260px;
  bottom: -150px;
  left: 32%;
  background: #f4c86e; /* Gold orb */
}

/* Floating Sparkles inside card */
.hero-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: #b28c38;
  font-size: 18px;
  z-index: 1;
}

.hero-sparkles span {
  position: absolute;
  animation: heroTwinkle 3s ease-in-out infinite;
}

.hero-sparkles span:nth-child(1) {
  top: 13%;
  left: 7%;
}

.hero-sparkles span:nth-child(2) {
  top: 16%;
  right: 8%;
  animation-delay: 0.8s;
}

.hero-sparkles span:nth-child(3) {
  bottom: 16%;
  left: 46%;
  animation-delay: 1.4s;
}

.hero-sparkles span:nth-child(4) {
  bottom: 9%;
  right: 13%;
  animation-delay: 2s;
}

@keyframes heroTwinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8) rotate(0); }
  50% { opacity: 1; transform: scale(1.2) rotate(15deg); }
}

/* Left Brand Panel */
.hero-brand-panel {
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-logo-frame {
    position: relative;
    width: min(320px, 100%);
    aspect-ratio: 1 / 0.88;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 28px rgba(53, 78, 65, 0.13);
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.4s ease;
}

.hero-logo-frame:hover {
  transform: translateY(-4px) scale(1.02);
}

.hero-logo-frame::before {
  content: "✦";
  position: absolute;
  top: 14px;
  right: 18px;
  color: #ec9eb2;
  font-size: 20px;
}

.hero-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.hero-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border: 1px solid rgba(24, 45, 39, 0.14);
  border-radius: 999px;
  color: #486057;
  background: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-contact-pill:hover {
  background: rgba(255, 255, 255, 0.85);
  color: #16483a;
  transform: translateY(-1px);
}

/* Right Content Column */
.hero-content-col {
  max-width: 520px;
  position: relative;
  z-index: 2;
  color: #182d27;
  font-family: "DM Sans", sans-serif;
}

.hero-eyebrow {
  margin: 0 0 14px;
  color: #16483a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: block;
}

.hero-title {
  margin: 0;
  max-width: 520px;
  font-family: "Cormorant Garamond", serif !important;
  font-size: clamp(40px, 5.5vw, 68px) !important;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -2px;
  color: #182d27 !important;
}

.hero-title em {
  display: block;
  color: #bb5873;
  font-family: "Playfair Display", serif;
  font-size: 0.64em;
  font-weight: 500;
  letter-spacing: -1px;
  font-style: italic;
  transform: rotate(-3deg);
  margin-top: 4px;
}

.hero-intro {
  max-width: 430px;
  margin: 22px 0 0;
  color: #3f554c;
  font-size: 15px;
  line-height: 1.65;
}

.card-playful-quote {
  position: relative;
  margin: 20px 0;
  padding: 12px 18px;
  border-left: 3px solid #ec9eb2;
  border-radius: 4px 12px 12px 4px;
  color: #a74e68;
  background: rgba(255, 255, 255, 0.65);
  font-family: "Playfair Display", serif;
  font-size: 14.5px;
  font-style: italic;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-btn {
  border: 0;
  border-radius: 8px;
  padding: 13px 22px;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.hero-btn-primary {
  color: #ffffff !important;
  background: #16483a;
  box-shadow: 0 7px 0 #0b2e25;
}

.hero-btn-primary:hover {
  background: #246a55;
  transform: translateY(-3px);
  box-shadow: 0 10px 0 #0b2e25;
  color: #ffffff !important;
}

.hero-btn-primary:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #0b2e25;
}

.hero-btn-secondary {
  color: #16483a !important;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 7px 0 rgba(22, 72, 58, 0.25);
}

.hero-btn-secondary:hover {
  background: #ffffff;
  box-shadow: 0 10px 0 rgba(22, 72, 58, 0.25);
  transform: translateY(-3px);
  color: #16483a !important;
}

.hero-btn-secondary:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 rgba(22, 72, 58, 0.25);
}

/* Stitched thread curve accent */
.hero-thread {
  position: absolute;
  right: 6%;
  bottom: 20%;
  width: 140px;
  height: 75px;
  border: 2px solid #ec9eb2;
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(22deg);
  opacity: 0.85;
  pointer-events: none;
  z-index: 777;
}

.hero-thread::after {
  content: "✦";
  position: absolute;
  right: -10px;
  top: -15px;
  color: #f4c86e;
  font-size: 22px;
}

/* Mobile responsive for TestStyle hero */
@media (max-width: 820px) {
  .hero-couture {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 36px;
    padding: 38px 22px 50px;
    text-align: center;
  }

  .hero-content-col {
    margin: 0 auto;
    text-align: center;
  }

  .hero-title {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-intro {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-thread {
    right: 4%;
    bottom: 2%;
    transform: scale(0.7) rotate(-22deg);
  }
}

.badge-card-pill {
  background: rgba(38, 78, 46, 0.1);
  color: var(--card-forest-deep);
  border: 1px solid rgba(38, 78, 46, 0.25);
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 50rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-rainbow-strip {
  height: 6px;
  background: var(--rainbow-gradient);
  width: 100%;
}

.service-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eacf5a;
  border: 1px solid rgba(121, 174, 65, 0.35);
  flex-shrink: 0;
}

.tracking-wide {
  letter-spacing: 0.12em;
}

/* Feature & Layout Cards */

.card-header-background {
    background: #e9e7ea;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 1.25rem;
}
.feature-card {
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 1.25rem;
  background: #ffffff;
  color: #182d27;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.feature-card .card-title {
  color: var(--accent-blue) !important;
}

.feature-card .card-text,
.feature-card p,
.feature-card li {
  color: #000000 !important;
}

.feature-card .text-muted {
  color: #556c62 !important;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.feature-list-item {
  display: grid;
  grid-template-columns: 18px 185px 1fr;
  align-items: baseline;
  column-gap: 10px;
  margin-bottom: 0 !important;
}

.feature-list-item .check-icon {
  line-height: 1;
}

.feature-list-item .feature-label {
  color: #182d27;
  font-weight: 700;
  line-height: 1.35;
}

.feature-list-item .feature-desc {
  color: #2c4239;
  line-height: 1.45;
}

@media (max-width: 576px) {
  .feature-list-item {
    grid-template-columns: 18px 1fr;
  }
  .feature-list-item .feature-desc {
    grid-column: 2 / -1;
    margin-top: 2px;
  }
}

.feature-card strong {
  color: #182d27;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--rainbow-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.feature-card:hover::before {
  opacity: 1;
}

.card {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.card-header.bg-primary {
  background: var(--navbar-gradient) !important;
  border-bottom: 2px solid var(--card-spring-green);
}

.border-primary {
  border-color: rgba(38, 78, 46, 0.35) !important;
}

.card-process-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(233, 246, 236, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 1.25rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  color: #182d27;
}

.card-process-box h3,
.card-process-box h5 {
  color: #182d27 !important;
}

.card-process-box p,
.card-process-box .text-muted {
  color: #3f554c !important;
}

/* Buttons */
.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #264e2e 0%, #1b3b22 100%);
  border: 1px solid rgba(121, 174, 65, 0.4);
  box-shadow: 0 4px 12px rgba(38, 78, 46, 0.25);
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #1b3b22 0%, #142e1a 100%);
  border-color: var(--card-spring-green);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(38, 78, 46, 0.35);
}

.btn-outline-primary {
  color: var(--card-forest);
  border-color: var(--card-forest);
  font-weight: 600;
}

.btn-outline-primary:hover {
  background-color: var(--card-forest);
  border-color: var(--card-forest);
  color: #ffffff;
}

.btn-outline-forest {
  color: var(--card-forest-deep);
  border-color: var(--card-forest-deep);
  font-weight: 600;
}

.btn-outline-forest:hover {
  background-color: var(--card-forest-deep);
  border-color: var(--card-forest-deep);
  color: #ffffff;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(121, 174, 65, 0.4);
}

.form-control:focus, .form-select:focus {
  border-color: var(--card-forest);
  box-shadow: 0 0 0 0.2rem rgba(38, 78, 46, 0.18);
}

/* Pattern Drafting Components */
.pattern-summary-card,
.pattern-layout-card,
.pattern-card {
  background: #ffffff;
  border: 1px solid rgba(38, 78, 46, 0.15);
  border-radius: 0.85rem;
  padding: 1.15rem;
  box-shadow: 0 3px 12px rgba(38, 78, 46, 0.04);
}

.pattern-summary-card {
  height: 100%;
}

.pattern-card {
  height: 100%;
}

.pattern-piece-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pattern-preview {
  background-color: #ffffff;
  background-image: linear-gradient(#e7eee8 1px, transparent 1px), linear-gradient(90deg, #e7eee8 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1px dashed rgba(38, 78, 46, 0.25);
  border-radius: 0.75rem;
  padding: 1.5rem;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pattern-preview svg {
  width: 100%;
  height: auto;
  max-height: 600px;
  display: block;
}

.pattern-preview.layout-preview {
  min-height: 400px;
  padding: 2rem;
  background-size: 40px 40px;
}

.pattern-preview.layout-preview svg {
  max-width: none;
}

/* Nav Pills (Studio Tabs) */
.nav-pills .nav-link {
  color: var(--card-forest);
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.55rem 1.25rem;
  transition: all 0.2s ease;
}

.nav-pills .nav-link:hover {
  background-color: var(--card-forest-light);
  color: var(--card-forest-deep);
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background: linear-gradient(135deg, #264e2e 0%, #1b3b22 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(38, 78, 46, 0.25);
}

/* Alerts */
.alert-info {
  background-color: rgba(0, 136, 204, 0.08);
  border-color: rgba(0, 136, 204, 0.25);
  color: #005580;
  border-radius: 0.75rem;
}

.alert-success {
  background-color: rgba(121, 174, 65, 0.12);
  border-color: rgba(121, 174, 65, 0.35);
  color: #264e2e;
  border-radius: 0.75rem;
}

/* Footer Styling */
.card-theme-footer {
  margin-top: auto;
  background: #ffffff;
  border-top: 1px solid rgba(38, 78, 46, 0.15) !important;
  font-size: 0.88rem;
}

.card-theme-footer .footer-link {
  color: var(--card-forest);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.card-theme-footer .footer-link:hover {
  color: var(--card-magenta);
}

/* Links */
a {
  color: var(--card-sky-blue);
  text-decoration: none;
}

a:hover {
  color: var(--card-sky-blue-hover);
  text-decoration: underline;
}

.draft-status {
  min-height: 1.5rem;
}

.invalid-feedback {
  display: block;
  min-height: 1.2rem;
}

/* Print Overrides */
@media print {
  body * {
    visibility: hidden !important;
  }

  .printable-area,
  .printable-area * {
    visibility: visible !important;
  }

  .printable-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 0;
    background: #fff;
  }

  .printable-area .pattern-card {
    break-inside: avoid;
  }

  .printable-area .pattern-preview svg {
    max-width: none;
  }
}

.card-theme-navbar .navbar-brand,
.card-theme-navbar .navbar-brand:hover,
.card-theme-navbar .navbar-brand:focus,
.card-theme-navbar .brand-text,
.card-theme-navbar .brand-title,
.card-theme-navbar .brand-tagline {
  text-decoration: none !important;
}

header {
  position: relative;
  z-index: 1030;
}

main,
footer,
.container {
  position: relative;
  z-index: 1;
}

/* Services Section Contrast and Continuity */
#services h2.text-primary {
  color: #ffffff !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

#services p.text-muted {
  color: #e3d9f3 !important;
}

#services .badge-card-pill {
  background: rgba(255, 255, 255, 0.15);
  color: #f1ecf7;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}

#services .badge-card-pill a.badge {
  color: #16483a !important;
  font-weight: 700;
}

/* ==========================================================================
   Form Floating & Identity Controls (White input background + Clean labels)
   ========================================================================== */
.form-control {
  background-color: #ffffff !important;
  color: #212529 !important;
}

.form-floating > .form-control {
  background-color: #ffffff !important;
  color: #212529 !important;
}

.form-floating > .form-control:-webkit-autofill,
.form-floating > .form-control:-webkit-autofill:hover,
.form-floating > .form-control:-webkit-autofill:focus,
.form-floating > .form-control:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #212529 !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

.form-floating > label {
  color: #555555 !important;
  font-weight: 500;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-control:-webkit-autofill ~ label {
  color: #264e2e !important;
  opacity: 0.95;
}

.form-floating > .form-control:focus ~ label::after,
.form-floating > .form-control:not(:placeholder-shown) ~ label::after,
.form-floating > .form-control:-webkit-autofill ~ label::after {
  background-color: transparent !important;
}

/* ==========================================================================
   Identity & Account / Manage Page Styling
   ========================================================================== */
.manage-account-container h1,
.manage-account-container h2,
.manage-account-container h3,
.manage-account-container h4 {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.manage-account-container p,
.manage-account-container label,
.manage-account-container ol,
.manage-account-container li {
  color: #f1ecf7;
}

.manage-account-container .nav-pills .nav-link {
  color: #dacdf5;
  border-radius: 0.5rem;
  margin-bottom: 0.25rem;
  transition: all 0.2s ease;
}

.manage-account-container .nav-pills .nav-link:hover {
  color: #ffffff;
  background-color: rgba(121, 174, 65, 0.25);
}

.manage-account-container .nav-pills .nav-link.active {
  background-color: var(--card-forest);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(38, 78, 46, 0.4);
}

.manage-account-container table {
  color: #f1ecf7;
}

/* ==========================================================================
   Main White Background Section (80% width with 100% theme gradient behind)
   ========================================================================== */
.site-main-wrapper {
  width: 100%;
  flex: 1 0 auto;
  display: flex;
  justify-content: center;
  padding: 1.5rem 0 3rem;
}

.site-main-sheet {
  width: 80%;
  max-width: 1400px;
  background-color: #ffffff;
  color: #182d27;
  --bs-body-color: #182d27;
  --bs-body-color-rgb: 24, 45, 39;
  --bs-body-bg: #ffffff;
  --bs-secondary-color: #556c62;
  --bs-tertiary-color: #6d7f76;
  --bs-emphasis-color: #1b3b22;
  --bs-border-color: #d5e0d8;
  --bs-card-color: #182d27;
  --bs-card-bg: #ffffff;
  --bs-card-cap-color: #1b3b22;
  border-radius: 1.25rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  padding: 2.5rem 2.5rem 3rem;
}

/* Ensure inner cards and controls inside main sheet reflect homepage palette */
.site-main-sheet .card {
  background-color: #ffffff;
  border: 1px solid rgba(54, 40, 70, 0.12);
}

.site-main-sheet .bg-light {
  background-color: #fbf9f6 !important;
}

.site-main-sheet .table {
  --bs-table-color: #182d27;
  --bs-table-bg: #ffffff;
  --bs-table-border-color: #d5e0d8;
  --bs-table-striped-color: #182d27;
  --bs-table-striped-bg: #f4f8f5;
  --bs-table-hover-color: #182d27;
  --bs-table-hover-bg: #e7f3ea;
  --bs-table-accent-bg: #ffffff;
  color: #182d27;
  background-color: #ffffff;
}

.site-main-sheet .table > :not(caption) > * > * {
  color: #182d27;
  background-color: var(--bs-table-bg);
  border-bottom-color: #d5e0d8;
  box-shadow: none;
}

.site-main-sheet .table thead th {
  color: #1b3b22;
  background-color: #e7f0e8;
  font-weight: 700;
  white-space: nowrap;
}

.site-main-sheet .table-hover > tbody > tr:hover > * {
  color: #182d27;
  background-color: #e7f3ea;
}

.site-main-sheet .table .btn {
  white-space: nowrap;
}

.site-main-sheet .text-muted {
  color: #645a6c !important;
}

.site-main-sheet .card,
.site-main-sheet .card-body,
.site-main-sheet .card-header {
  color: #182d27;
}

.site-main-sheet h1,
.site-main-sheet h2,
.site-main-sheet h3,
.site-main-sheet h4,
.site-main-sheet h5,
.site-main-sheet .form-label,
.site-main-sheet .form-check-label,
.site-main-sheet .col-form-label {
  color: #1b3b22;
  opacity: 1;
}

.site-main-sheet .form-label,
.site-main-sheet .col-form-label {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.site-main-sheet .form-control,
.site-main-sheet .form-select,
.site-main-sheet textarea.form-control {
  background-color: #ffffff !important;
  color: #182d27 !important;
  border: 1px solid #c5d4c8;
  border-radius: 0.65rem;
  min-height: 2.75rem;
}

.site-main-sheet textarea.form-control {
  min-height: 7rem;
}

.site-main-sheet .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%231b3b22' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.25rem;
}

.site-main-sheet .form-select option {
  color: #182d27;
  background-color: #ffffff;
}

.site-main-sheet .form-control:focus,
.site-main-sheet .form-select:focus {
  border-color: #264e2e;
  box-shadow: 0 0 0 0.2rem rgba(38, 78, 46, 0.16);
}

.site-main-sheet .form-check-input {
  border-color: #7d9a84;
}

.site-main-sheet .form-check-input:checked {
  background-color: #264e2e;
  border-color: #264e2e;
}

.site-main-sheet .manage-account-container label,
.site-main-sheet .manage-account-container .form-label {
  color: #f1ecf7;
}

@media (max-width: 991.98px) {
  .site-main-sheet {
    width: 92%;
    padding: 1.5rem 1.25rem 2rem;
  }
}

/* ==========================================================================
   Magical Banner (Services Header)
   ========================================================================== */
.magical-banner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 5px solid #362846;
    background: linear-gradient(135deg, #ffffff 0%, #eef7f2 75%, #fbf6ee 100%) !important;
    box-shadow: 0 14px 40px rgba(54, 40, 70, 0.12), 0 2px 10px rgba(121, 174, 65, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.85);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.magical-banner:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 50px rgba(54, 40, 70, 0.16),
    0 4px 14px rgba(121, 174, 65, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.95);
}

/* Soft magical glowing orbs behind banner */
.magical-banner::before,
.magical-banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(28px);
  opacity: 0.55;
}

.magical-banner::before {
  width: 220px;
  height: 220px;
  top: -80px;
  left: -40px;
  background: radial-gradient(circle, #e9d5f7 0%, rgba(233, 213, 247, 0) 70%);
}

.magical-banner::after {
  width: 240px;
  height: 240px;
  bottom: -90px;
  right: -30px;
  background: radial-gradient(circle, #d6edd9 0%, #fbe7b8 50%, rgba(251, 231, 184, 0) 75%);
}

.magical-banner-content {
  z-index: 2;
}

/* Pill badge at top of magical banner */
.magical-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #c6d2b9 0%, #45b2e8 100%);
  color: white;
  border: 1px solid rgba(230, 38, 120, 0.28);
  box-shadow: 0 2px 8px rgba(230, 38, 120, 0.08);
  padding: 0.5rem 1.25rem;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 50rem;
}

/* Elegant magical heading */
.magical-heading {
  font-family: 'Lobster Two', 'Lobster', cursive !important;
  font-size: clamp(2.1rem, 3.8vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--card-plum) !important;
  text-shadow: 0 2px 14px rgba(54, 40, 70, 0.1);
}

.magical-dots {
  color: var(--card-plum);
  font-family: serif;
  letter-spacing: 0.08em;
}

/* Subtext with improved contrast & readable tint */
.magical-subtext {
  color: black !important;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  line-height: 1.6;
}

/* Magical Call/Text action button */
.magical-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50rem;
  background: linear-gradient(135deg, #ffffff 0%, #fdf8fb 100%);
  color: var(--card-magenta) !important;
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1.5px solid rgba(230, 38, 120, 0.35);
  box-shadow:
    0 4px 16px rgba(230, 38, 120, 0.15),
    0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

.magical-call-btn strong {
  color: var(--card-plum);
  font-weight: 700;
}

.magical-call-btn .call-icon {
  color: #d89b2c;
  font-size: 1.1rem;
  display: inline-block;
  animation: magicalGlint 3s ease-in-out infinite;
}

.magical-call-btn:hover {
  background: linear-gradient(135deg, #e62678 0%, #362846 100%);
  color: #ffffff !important;
  border-color: transparent;
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 8px 24px rgba(230, 38, 120, 0.3),
    0 2px 6px rgba(54, 40, 70, 0.2);
}

.magical-call-btn:hover strong,
.magical-call-btn:hover .call-icon {
  color: #ffffff;
}

/* Sparkle elements floating around the banner */
.magical-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.m-sparkle {
  position: absolute;
  color: #d89b2c;
  font-size: 1.25rem;
  animation: heroTwinkle 3.2s ease-in-out infinite;
}

.m-sparkle-1 {
  top: 14%;
  left: 5%;
  animation-delay: 0.2s;
}

.m-sparkle-2 {
  top: 18%;
  right: 6%;
  font-size: 1rem;
  color: var(--card-magenta);
  animation-delay: 1.1s;
}

.m-sparkle-3 {
  bottom: 18%;
  left: 9%;
  font-size: 0.95rem;
  color: var(--card-spring-green);
  animation-delay: 1.8s;
}

.m-sparkle-4 {
  bottom: 14%;
  right: 8%;
  animation-delay: 2.4s;
}

/* Magic Wand SVG background wrapper positioned to the right */
.magical-wand-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 50%;
  max-width: 480px;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  transform: translateX(35px);
}

.magical-wand-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  opacity: 0.95;
  filter: drop-shadow(0 4px 18px rgba(143, 91, 212, 0.2));
}

@media (max-width: 991.98px) {
  .magical-wand-bg {
    width: 60%;
  }
}

@media (max-width: 768px) {
  .magical-wand-bg {
    width: 100%;
    opacity: 0.25;
    transform: none;
  }
  .magical-wand-svg {
    transform: scale(1.1);
  }
}

/* ==========================================================================
   Product Gallery & Interactive Zoom Lightbox
   ========================================================================== */
.product-card {
  cursor: pointer;
  outline: none;
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
}

.product-card:focus-visible {
  box-shadow: 0 0 0 3px var(--card-magenta), 0 16px 36px rgba(0, 0, 0, 0.25);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.3);
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #f7f5fa;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.45s ease;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-zoom-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(36, 21, 51, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem;
  border-radius: 50rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.product-card:hover .product-zoom-badge {
  opacity: 1;
  transform: translateY(0);
}

/* Modal Lightbox & Zoom Canvas */
.product-zoom-modal {
  z-index: 1065;
}

.product-zoom-modal .modal-content {
  border-radius: 1rem;
  overflow: hidden;
  background: #181423;
  color: #f1ecf7;
}

.product-zoom-modal .modal-header {
  background: #231d33;
  color: #f1ecf7;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.product-zoom-modal .modal-header .modal-title {
  color: #f1ecf7 !important;
  font-size: 1.25rem;
}

.product-zoom-modal .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.zoom-viewport-container {
  background: #100d18;
  height: min(72vh, 680px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
}

.zoom-viewport {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  touch-action: none;
}

.zoom-active-img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.06s ease-out;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
}

.zoom-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(36, 21, 51, 0.65);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.zoom-nav-btn:hover {
  background: var(--card-magenta);
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 16px rgba(230, 38, 120, 0.4);
}

.zoom-prev-btn {
  left: 16px;
}

.zoom-next-btn {
  right: 16px;
}

.zoom-hint-pill {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(16, 13, 24, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #d1c7e0;
  font-size: 0.75rem;
  padding: 0.25rem 0.85rem;
  border-radius: 50rem;
  pointer-events: none;
  z-index: 5;
}

@media (max-width: 576px) {
  .zoom-viewport-container {
    height: 60vh;
  }
  .zoom-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  .zoom-prev-btn { left: 8px; }
  .zoom-next-btn { right: 8px; }
  .zoom-hint-pill {
    display: none;
  }
}




