/* ==========================================================================
   AWADHI CULTURAL DESIGN SYSTEM (heritage.css)
   Pixel-perfect implementation matching supplied UI Style Overview reference
   ========================================================================== */

/* --- 1. Mihrab Pointed Arch Card --- */
.arch-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.8rem 0.65rem 1.1rem;
  background-color: #FDF6E9; /* Ivory fill */
  border: 1.5px solid #C9A34E; /* Gold border */
  border-radius: 70px 70px 10px 10px; /* Proportional arch curve */
  box-shadow: 0 3px 10px rgba(62, 39, 35, 0.06);
  transition: all var(--duration-base) var(--ease-out);
  text-decoration: none;
  min-height: 195px;
  justify-content: center;
}

/* Pointed Arch Peak Decoration */
.arch-card::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background-color: #FDF6E9;
  border-top: 1.5px solid #C9A34E;
  border-left: 1.5px solid #C9A34E;
  z-index: 2;
}

.arch-card:hover,
.arch-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(141, 30, 30, 0.14);
  border-color: var(--color-secondary);
}

.arch-card:hover::before {
  border-color: var(--color-secondary);
}

/* Enhanced Vector SVG Icon Wrapper (Increased Size) */
.arch-card__icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgba(242, 101, 34, 0.08);
  border: 1.5px solid rgba(245, 199, 104, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: #F26522;
  transition: all var(--duration-fast) var(--ease-out);
}

.arch-card__icon-wrap svg {
  width: 28px;
  height: 28px;
  stroke: #F26522;
  transition: stroke var(--duration-fast) var(--ease-out);
}

.arch-card:hover .arch-card__icon-wrap {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.arch-card:hover .arch-card__icon-wrap svg {
  stroke: #FFFFFF;
}

.arch-card__title {
  font-family: var(--font-body);
  font-size: 0.8125rem; /* ~13px matching reference */
  font-weight: 700;
  color: #3E2723;
  line-height: 1.3;
  margin: 0;
}

/* Stat Arch Card Variant (In Dark Maroon Section) */
.arch-card--stat {
  background-color: #FDF6E9;
  border: 1.5px solid #F5C768;
  min-height: 185px;
  padding: 1.6rem 0.65rem 1rem;
}

.arch-card--stat .stat-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: rgba(141, 30, 30, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.35rem;
}

.arch-card--stat .stat-icon-wrap svg {
  width: 26px;
  height: 26px;
  stroke: #F26522;
}

.arch-card--stat .stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 1.8vw, 1.8rem); /* ~24px-28px */
  font-weight: 800;
  color: #8D1E1E;
  line-height: 1.1;
  margin-bottom: 0.15rem;
}

.arch-card--stat .stat-label {
  font-size: 0.78rem;
  color: #6D4C41;
  font-weight: 600;
}

/* --- 2. Double Line Heritage Frame --- */
.heritage-frame {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--color-border-strong);
  background-color: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.heritage-frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--color-accent);
  pointer-events: none;
}

.heritage-frame__corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--color-primary);
  border-style: solid;
  pointer-events: none;
}

.heritage-frame__corner--tl { top: 2px; left: 2px; border-width: 2px 0 0 2px; }
.heritage-frame__corner--tr { top: 2px; right: 2px; border-width: 2px 2px 0 0; }
.heritage-frame__corner--bl { bottom: 2px; left: 2px; border-width: 0 0 2px 2px; }
.heritage-frame__corner--br { bottom: 2px; right: 2px; border-width: 0 2px 2px 0; }

/* --- 3. Calligraphic Flourish Separators --- */
.flourish {
  display: inline-block;
  width: 50px;
  height: 18px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  vertical-align: middle;
}

.flourish--left {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 20' fill='%238D1E1E'%3E%3Cpath d='M0 10 Q20 0 30 10 Q40 20 60 10 Q40 10 30 18 Q20 10 0 10 Z'/%3E%3Ccircle cx='55' cy='10' r='2' fill='%23F26522'/%3E%3C/svg%3E");
}

.flourish--right {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 20' fill='%238D1E1E'%3E%3Cpath d='M60 10 Q40 0 30 10 Q20 20 0 10 Q20 10 30 18 Q40 10 60 10 Z'/%3E%3Ccircle cx='5' cy='10' r='2' fill='%23F26522'/%3E%3C/svg%3E");
}

.flourish--gold-left {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 20' fill='%23F5C768'%3E%3Cpath d='M0 10 Q20 0 30 10 Q40 20 60 10 Q40 10 30 18 Q20 10 0 10 Z'/%3E%3Ccircle cx='55' cy='10' r='2' fill='%23FDF6E9'/%3E%3C/svg%3E");
}

.flourish--gold-right {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 20' fill='%23F5C768'%3E%3Cpath d='M60 10 Q40 0 30 10 Q20 20 0 10 Q20 10 30 18 Q40 10 60 10 Z'/%3E%3Ccircle cx='5' cy='10' r='2' fill='%23FDF6E9'/%3E%3C/svg%3E");
}

/* --- 4. Ambient Jaali Background Pattern --- */
.heritage-pattern-bg {
  position: relative;
}

.heritage-pattern-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath d='M18 0 L36 18 L18 36 L0 18 Z' fill='none' stroke='%238D1E1E' stroke-width='0.6' stroke-opacity='0.08'/%3E%3Ccircle cx='18' cy='18' r='3.5' fill='none' stroke='%23F26522' stroke-width='0.6' stroke-opacity='0.08'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
  z-index: 0;
}

.heritage-pattern-bg > * {
  position: relative;
  z-index: 1;
}
