/* ============================================================
   FUNK-IT TOOLKIT — A6 Promo Leaflet / Business Card Section

   Physical dimensions:
     Leaflet: A6 landscape — 148mm wide × 105mm tall
     Business card (tear-off): 90mm wide × 55mm tall
                               positioned at BOTTOM-RIGHT of leaflet
                               sharing the bottom-right rounded corner

   Business card as % of A6:
     Width:  90 / 148 = 60.81%
     Height: 55 / 105 = 52.38%

   L-shaped cut line:
     — Horizontal: runs across the TOP of the BC area
     — Vertical:   runs down the LEFT side of the BC area
     — Corner:     rounded where the two cuts meet (top-left of BC)
     — FRONT: border-top + border-left + border-top-left-radius
     — BACK:  border-top + border-right + border-top-right-radius
              (mirrored because of rotateY(180deg) on card flip)

   Web render at 580px width:
     Card:  580px × 411px  (148:105 ratio)
     BC:    353px × 215px  (60.81% × 52.38% — exact print proportions)
     Info:  full width × 196px  (top 47.62%)
   ============================================================ */


/* ── Section wrapper ── */
.biz-card-section {
  background: linear-gradient(160deg, #2a3a50 0%, #1a2740 100%);
  padding: var(--sp-2xl) 1.5rem;
  text-align: center;
  border-top: 3px solid var(--c-rose);
}

.biz-card-section .section-title {
  display: block;    /* override inline-block from main.css — needed for margin:auto centering below */
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  color: var(--c-text-light);
  margin-bottom: 0.4rem;
}

.biz-card-section .section-title::after {
  background: var(--c-rose);
  margin: 0.35rem auto 0;
  width: 60px;
  display: block;
}

.biz-card-section .section-desc {
  color: rgba(242,246,250,0.6);
  margin: 0 auto 2.5rem;
  max-width: 480px;
  font-size: 0.92rem;
}


/* ── Flip wrapper ── */
.a6-flip-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.a6-flip-scene {
  width: 580px;
  max-width: 100%;
  aspect-ratio: 148 / 105;   /* A6 landscape */
  perspective: 1200px;
}


/* ── The flip card ── */
.a6-flip-card {
  width: 100%;
  height: 100%;
  position: relative;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 16px 48px rgba(0,0,0,0.45);
}

.a6-flip-card.flipped {
  transform: rotateY(180deg);
}


/* ── Shared face rules ── */
.a6-face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}


/* ══════════════════════════════════════════════════════════
   FRONT FACE
   ══════════════════════════════════════════════════════════ */

.a6-front {
  /* Base background: diagonal warm stripes on orange */
  background-color: #F96A22;
  /* STRIPE PATTERN — commented out to test background images below */
  /*
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      rgba(255,255,255,0.12) 10px,
      rgba(255,255,255,0.12) 20px
    );
  */
  /* !! BACKGROUND IMAGE PLACEHOLDER (FRONT FACE) !!
     Add your background image path here:
     background-image: url('assets/images/YOUR-IMAGE-HERE.jpg');
     background-size: cover;
     background-position: center;
  */
  /* position: absolute; inset: 0 inherited from .a6-face */
  /* No flex layout — children are absolutely positioned */
}

/* ── Info area: covers top 47.62% (full width, above BC) ── */
.a6-info-area {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 52.38%;           /* stops exactly at BC top edge */
  padding: 1.1rem 1.4rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: rgba(0,0,0,0.18);
  overflow: hidden;         /* clip anything that slightly overruns */
}

/* ── Logo + heading row ── */
/* 3-column grid: [logo] [centered title] [matching spacer for true centering] */
.a6-logo-area {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  align-items: center;
  flex-shrink: 0;
}

/* !! LOGO PLACEHOLDER !!
   Replace with:  <img src="assets/images/logo.png" alt="Funk-IT Web Design logo">
   Suggested rendered size: 80px × 80px.  */
.a6-logo-placeholder {
  width: 80px;               /* doubled from original 40px */
  height: 80px;
  background: rgba(255,255,255,0.22);
  border: 2px dashed rgba(255,255,255,0.5);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.7);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.a6-logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
  text-align: center;       /* centered in middle grid column */
  grid-column: 2;
}

.a6-tagline {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  text-align: center;
}

.a6-services-title {
  font-size: 0.52rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
}

.a6-services-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.a6-services-list li {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.35;
  padding-left: 0.9rem;
  position: relative;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.a6-services-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--c-gold);
}

.a6-services-list a {
  color: var(--c-gold);
  text-decoration: underline;
  text-underline-offset: 1px;
}

.a6-services-list a:hover {
  color: #fff;
}


/* ── Business card area: bottom-right, exact print proportions ── */
/* 90/148 = 60.81% wide, 55/105 = 52.38% tall                       */
/* Bottom-right rounded corner is shared with the A6 outer border    */
.a6-bc-area {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60.81%;
  height: 52.38%;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.85rem;
  /* Bottom-right rounding inherited from .a6-face overflow:hidden */
}

.a6-bc-inner {
  width: 92%;
  height: 86%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem 0.9rem;
  backdrop-filter: blur(4px);
}

/* !! LOGO PLACEHOLDER (business card) !!
   Replace with <img> once logo is ready. Suggested size: 36px × 36px. */
.a6-bc-logo {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border: 1.5px dashed rgba(255,255,255,0.4);
  border-radius: var(--radius-xs);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.42rem;
  color: rgba(255,255,255,0.5);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.a6-bc-details {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.a6-bc-details .bc-name {
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.a6-bc-details .bc-person {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
}

.a6-bc-details .bc-contact {
  font-size: 0.56rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
}

.a6-bc-details .bc-contact a {
  color: var(--c-gold);
}


/* ── L-shaped cut line — FRONT FACE ──
   Positioned at bottom-right, same footprint as the business card.
   border-top = horizontal cut across the top of the BC
   border-left = vertical cut down the left side of the BC
   border-top-left-radius = rounded corner where the cuts meet
   scissors icon via ::before at the corner
   ── */
.a6-perf-front {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60.81%;
  height: 52.38%;
  border-top: 2px dashed rgba(255,255,255,0.6);
  border-left: 2px dashed rgba(255,255,255,0.6);
  border-top-left-radius: 0.75rem;
  pointer-events: none;
  z-index: 10;
}

/* Scissors at the corner where the two cuts meet */
.a6-perf-front::before {
  content: '✂';
  position: absolute;
  top: -0.9rem;
  left: -0.9rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transform: rotate(315deg);  /* pointing diagonally into the cut direction */
  line-height: 1;
}


/* ══════════════════════════════════════════════════════════
   BACK FACE
   ══════════════════════════════════════════════════════════ */

.a6-back {
  transform: rotateY(180deg);
  /* Pattern 2 — dark teal with dot grid */
  background-color: #3E4E63;
  /* DOT GRID PATTERN — commented out to test background images below */
  /*
  background-image:
    radial-gradient(circle, rgba(100,153,172,0.55) 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(249,106,34,0.25) 1px, transparent 1px);
  background-size: 22px 22px, 33px 33px;
  background-position: 0 0, 11px 11px;
  */
  /* !! BACKGROUND IMAGE PLACEHOLDER (BACK FACE) !!
     Add your background image path here:
     background-image: url('assets/images/YOUR-IMAGE-HERE.jpg');
     background-size: cover;
     background-position: center;
  */
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.5rem 0.9rem;
  gap: 0.6rem;
}

.a6-back-header {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--c-gold);
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 0.4rem;
  flex-shrink: 0;
}

/* Two-column pricing — landscape gives us the room */
.a6-back-pricing-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  flex: 1;
}

.a6-back-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.a6-back-section {
  flex: 1;
}

.a6-back-section-title {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-orange);
  margin-bottom: 0.25rem;
}

.a6-back-section-title a {
  color: var(--c-teal);
  text-decoration: underline;
  text-underline-offset: 1px;
}

.a6-back-item {
  font-size: 0.68rem;
  color: rgba(242,246,250,0.88);
  line-height: 1.55;
}

.a6-back-item strong {
  color: #fff;
}

.a6-back-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.a6-back-cta {
  text-align: center;
  font-size: 0.68rem;
  color: rgba(242,246,250,0.6);
  flex-shrink: 0;
}

.a6-back-cta a {
  color: var(--c-teal);
  font-weight: 700;
}

.a6-back-cta a:hover {
  color: var(--c-gold);
}


/* ── L-shaped cut line — BACK FACE ──
   Same physical position (bottom-right of card) but uses border-right
   and border-top-right-radius because the face is rotated 180° around Y:
     CSS border-right → viewer sees it as the LEFT edge of the BC
     CSS border-top-right-radius → viewer sees it as the top-LEFT corner
   ── */
.a6-perf-back {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60.81%;
  height: 52.38%;
  border-top: 2px dashed rgba(255,255,255,0.45);
  border-right: 2px dashed rgba(255,255,255,0.45);   /* appears as left to viewer */
  border-top-right-radius: 0.75rem;                   /* appears as top-left to viewer */
  pointer-events: none;
  z-index: 10;
}

.a6-perf-back::before {
  content: '✂';
  position: absolute;
  top: -0.9rem;
  right: -0.9rem;            /* right in CSS = left to viewer (mirrored) */
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transform: rotate(225deg); /* mirrored rotation vs front */
  line-height: 1;
}


/* ── Flip controls ── */
.flip-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-flip {
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--c-text-light);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.3rem;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  letter-spacing: 0.03em;
}

.btn-flip:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.35);
}

.btn-visit-site {
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  background: var(--c-rose);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: filter var(--transition-fast);
  letter-spacing: 0.03em;
}

.btn-visit-site:hover {
  filter: brightness(1.12);
  color: #fff;
}

/* ── Dev placeholder note ── */
.biz-card-placeholder-note {
  font-size: 0.72rem;
  color: rgba(242,246,250,0.35);
  margin-top: 0.5rem;
  font-style: italic;
}


/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
  .a6-flip-scene {
    width: 100%;
    max-width: 520px;
  }
}

@media (max-width: 480px) {
  .a6-flip-scene {
    width: 100%;
    max-width: 400px;
  }

  .a6-logo-placeholder {
    width: 60px;
    height: 60px;
  }

  .a6-logo-text {
    font-size: 1.05rem;
  }

  .a6-tagline {
    font-size: 0.55rem;
  }

  .a6-services-list li {
    font-size: 0.56rem;
  }

  .a6-back {
    padding: 0.8rem 1rem 0.7rem;
    gap: 0.45rem;
  }

  .a6-back-header {
    font-size: 0.88rem;
  }

  .a6-back-item {
    font-size: 0.6rem;
  }

  .a6-back-pricing-cols {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}
