.custom_fonts .custom-google-fonts-enabled * {
    font-family: 'Poppins', Helvetica, sans-serif;
}
.custom_fonts .custom-google-fonts-enabled h1,
.custom_fonts .custom-google-fonts-enabled h2,
.custom_fonts .custom-google-fonts-enabled h3,
.custom_fonts .custom-google-fonts-enabled h4,
.custom_fonts .custom-google-fonts-enabled h5,
.custom_fonts .custom-google-fonts-enabled h6{
    font-family: 'Montserrat', Helvetica, serif;
}

body {
    -webkit-font-smoothing: antialiased !important;
    color: #3d3d3d !important;
}

.mt-6 {
    margin-top: 4rem !important;
}

#home-section {
    min-height: 0;
}

#contact {
    min-height: 0;
}

.bg-section {
    min-height: auto;
    padding-top: 4vh;
}

.lead {
    font-size: 1rem !important;
}

.nav-item:hover {
    top: -2px;
    position: relative
}

#navbar-container {
    background-color: white;
}

h1.head-title {
    font-size: 3em;
    font-weight: 700;
    line-height: 1.3;
    color: #303030;
}

p.head-text {
    line-height: 1.6;
    font-size: 16px;
}

.carousel-item img {
    max-height: 450px;
}

.btn-light {
    border-color: black !important;
}

.btn {
    border-radius: 4px !important;
    min-height: 45px;
}

.btn:hover {
    top: -2px;
    position: relative;
}

.bg-home-colored {
    background-color: #f7dcc9;
}

.carousel-item img {
    max-height: 450px;
    width: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Contact form */
#ftenContactForm .form-control {
    border: 1.5px solid #d0c4b8;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
#ftenContactForm .form-control:focus {
    border-color: #c8102e;
    box-shadow: 0 0 0 3px rgba(200,16,46,0.12);
}

/* ============================================
   FTEN Cost Comparison Cards
   ============================================ */

:root {
  --ften-red:   #c8102e;
  --ften-peach: #f7dcc9;
  --ften-ink:   #1C1510;
  --ften-muted: #888;
  --ften-card-w: 320px;
  --ften-card-h: 420px;
}

.ften-cards-section {
  background: var(--ften-peach);
  padding-bottom: 3rem;
}

.ften-cards-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ften-red);
  margin-bottom: 0.6rem;
}

.ften-cards-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 4.5vw, 2.2rem);
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  max-width: 520px;
}

.ften-cards-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: var(--ften-muted);
  margin-bottom: 2.5rem;
}

/* Remove double-margin gap when card sits inside hero column */
.col-sm-12.col-md-7 .ften-cards-section,
.col-sm-12.col-md-7 [class*="d-none"] {
  margin-top: 0 !important;
}

/* Stage */
.ften-stage {
  position: relative;
  width: var(--ften-card-w);
  height: var(--ften-card-h);
  perspective: 1200px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Inside hero column: remove carousel bottom margin, tighten card top */
#homeCarousel {
  margin-bottom: 0 !important;
}
.col-md-7 #homeCarousel .carousel-indicators {
  margin-bottom: 0 !important;
  bottom: 0;
}
.col-md-7 .d-none.d-md-flex {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Card width constrained to column on mid-range desktops */
@media (min-width: 768px) and (max-width: 1199px) {
  .col-md-7 .ften-stage {
    width: 100%;
    max-width: var(--ften-card-w);
  }
}

/* Collapse carousel to image height when card sits beneath it */
.col-md-7 #homeCarousel,
.col-md-7 #homeCarousel .carousel-inner,
.col-md-7 #homeCarousel .carousel-item {
  height: auto !important;
  max-height: none !important;
}

.ften-ghost {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ften-ghost-1 {
  background: #2C2118;
  transform: rotate(-4deg) translateY(12px) scale(0.96);
  z-index: 1;
}
.ften-ghost-2 {
  background: #3E3028;
  transform: rotate(3.5deg) translateY(18px) scale(0.92);
  z-index: 0;
}
.ften-stage.flipped .ften-ghost-1 { transform: rotate(-6deg) translateY(18px) scale(0.96); }
.ften-stage.flipped .ften-ghost-2 { transform: rotate(5deg)  translateY(26px) scale(0.92); }

/* Card */
.ften-card {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 18px;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.45, 0.05, 0.55, 0.95);
  box-shadow:
    0 4px 6px rgba(0,0,0,.08),
    0 12px 32px rgba(0,0,0,.18),
    0 2px 0 rgba(255,255,255,.4) inset;
}
.ften-stage.flipped .ften-card { transform: rotateY(180deg); }

.ften-face {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Front */
.ften-front {
  background: var(--ften-ink);
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
}

.ften-front-tag {
  font-family: 'Poppins', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f0b429;
  opacity: 0.85;
  margin-bottom: 1.2rem;
}

.ften-emoji {
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
  transition: transform 0.3s ease;
}
.ften-stage:hover .ften-emoji { transform: scale(1.08) rotate(-3deg); }

.ften-front-amount {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #f0b429;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.ften-front-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  text-align: center;
  line-height: 1.4;
  max-width: 200px;
  white-space: pre-line;
}

.ften-hint {
  position: absolute;
  bottom: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ften-hint-arrow {
  animation: ften-pulse 1.6s ease-in-out infinite;
}
@keyframes ften-pulse {
  0%, 100% { transform: translateX(0); opacity: 0.35; }
  50%       { transform: translateX(4px); opacity: 1; }
}

/* Back */
.ften-back {
  transform: rotateY(180deg);
  background: var(--ften-red);
  align-items: flex-start;
  justify-content: space-between;
  padding: 2.2rem 2rem 2rem;
}

.ften-back-top { width: 100%; }

.ften-back-kicker {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.8rem;
}

.ften-back-amount {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.ften-back-divider {
  width: 40px;
  height: 2px;
  background: rgba(255,255,255,0.35);
  margin: 1rem 0;
  border-radius: 2px;
}

.ften-back-headline {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.ften-back-detail {
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.55;
}

.ften-back-bottom { width: 100%; }

.ften-back-cta {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.6rem 1.3rem;
  border-radius: 50px;
  transition: background 0.2s, transform 0.2s;
}
.ften-back-cta:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}

/* Nav */
.ften-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.ften-dot-track { display: flex; gap: 0.4rem; }

.ften-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9b89e;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}
.ften-dot.active {
  background: var(--ften-red);
  width: 20px;
  border-radius: 4px;
}

.ften-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #b0a090;
  background: transparent;
  color: #2c3e50;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.ften-nav-btn:hover {
  background: var(--ften-red);
  border-color: var(--ften-red);
  color: #fff;
}
.ften-nav-btn:disabled { opacity: 0.3; cursor: default; }
.ften-nav-btn:disabled:hover {
  background: transparent;
  border-color: #b0a090;
  color: #2c3e50;
}

.ften-counter {
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  color: var(--ften-muted);
  margin-top: 0.8rem;
}

/* Switching fade */
.ften-stage.switching .ften-card,
.ften-stage.switching .ften-ghost-1,
.ften-stage.switching .ften-ghost-2 {
  transition: opacity 0.18s ease;
  opacity: 0;
}

/* Mobile */
@media (max-width: 430px) {
  :root { --ften-card-w: 300px; --ften-card-h: 410px; }
  .ften-front-amount, .ften-back-amount { font-size: 2.5rem; }
  .ften-emoji { font-size: 4rem; }
}

.navbar-brand {
  position: relative;
  z-index: 10;
}
