/* =================================================================
   Antonio Daniel LLC — Royal Palette
   Nobility · Trust · Heritage · Wealth
   ================================================================= */

:root {
  /* Base structural colors */
  --ad-bg: #0a1628;           /* Midnight Navy */
  --ad-panel: #0f1f3d;        /* Royal Navy */
  --ad-card: #1a2951;         /* Deep Indigo */
  --ad-border: #2a3a6b;       /* Royal border */

  /* Purple spectrum — royalty */
  --ad-purple: #4a2d7a;       /* Royal Purple */
  --ad-purple-deep: #2d1b4e;  /* Imperial Purple */
  --ad-purple-light: #6b4494; /* Lighter royal */

  /* Gold spectrum — prestige */
  --ad-gold: #c9a961;         /* Imperial Gold */
  --ad-gold-light: #e4cc8a;   /* Champagne */
  --ad-gold-dark: #8a7238;    /* Antique Gold */

  /* Text */
  --ad-ivory: #f5f0e1;
  --ad-text: #f5f0e1;
  --ad-muted: #b8bfd4;        /* Parchment */
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--ad-bg);
  color: var(--ad-text);
  /* Subtle royal gradient mesh baked into the body */
  background-image:
    radial-gradient(ellipse at 0% 0%, rgba(74, 45, 122, 0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 100% 100%, rgba(201, 169, 97, 0.06) 0%, transparent 45%);
  background-attachment: fixed;
}

/* ========== TYPOGRAPHY ========== */
.font-display {
  font-family: 'Playfair Display', serif;
  letter-spacing: -0.01em;
}

/* Imperial gold gradient for highlight text */
.text-gradient-gold {
  background: linear-gradient(135deg, #e4cc8a 0%, #c9a961 45%, #8a7238 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Purple → gold royal gradient */
.text-gradient-royal {
  background: linear-gradient(135deg, #e4cc8a 0%, #c9a961 40%, #6b4494 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== HERO ========== */
.hero-bg {
  background:
    radial-gradient(ellipse at 75% 20%, rgba(201, 169, 97, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 15% 80%, rgba(74, 45, 122, 0.30) 0%, transparent 55%),
    linear-gradient(135deg, #0a1628 0%, #0f1f3d 50%, #1a2951 100%);
}

.hero-gradient {
  background: linear-gradient(135deg, rgba(10,22,40,0.95) 0%, rgba(10,22,40,0.75) 50%, rgba(10,22,40,0.4) 100%);
}

/* ========== BUTTONS ========== */
.btn-gold {
  background: linear-gradient(135deg, #e4cc8a 0%, #c9a961 50%, #a88a45 100%);
  color: #0a1628;
  font-weight: 700;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid #c9a961;
  box-shadow: 0 4px 14px rgba(201, 169, 97, 0.25), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #f0d999 0%, #e4cc8a 50%, #c9a961 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 169, 97, 0.45), inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-outline-gold {
  background: transparent;
  color: var(--ad-gold-light);
  border: 1.5px solid var(--ad-gold);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-gold:hover {
  background: linear-gradient(135deg, #e4cc8a 0%, #c9a961 100%);
  color: var(--ad-bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 169, 97, 0.3);
}

.btn-dark-gold {
  background: var(--ad-purple-deep);
  color: var(--ad-gold-light);
  border: 1px solid var(--ad-purple);
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-dark-gold:hover {
  background: var(--ad-purple);
  border-color: var(--ad-gold);
}

/* ========== BADGE (eyebrow tag) ========== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  background: linear-gradient(135deg, rgba(74, 45, 122, 0.4), rgba(45, 27, 78, 0.6));
  color: var(--ad-gold-light);
  border: 1px solid var(--ad-purple);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(228, 204, 138, 0.1);
}

/* ========== CARDS ========== */
.feature-card {
  background: linear-gradient(145deg, rgba(26, 41, 81, 0.85) 0%, rgba(15, 31, 61, 0.9) 100%);
  border: 1px solid var(--ad-border);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.4), transparent);
}

.feature-card:hover {
  border-color: var(--ad-gold);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(10, 22, 40, 0.5), 0 0 0 1px rgba(201, 169, 97, 0.2);
}

.card-gold-border {
  border-left: 3px solid var(--ad-gold);
}

/* ========== PILLAR CARDS ========== */
.pillar-card {
  background: linear-gradient(145deg, #000814 0%, #0a1628 100%);
  border: 1px solid var(--ad-border);
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.pillar-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 60%, rgba(74, 45, 122, 0.15) 100%);
  pointer-events: none;
}

.pillar-card:hover,
.pillar-link:hover .pillar-card {
  border-color: var(--ad-gold);
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 50px rgba(10, 22, 40, 0.6), 0 0 40px rgba(201, 169, 97, 0.15);
}

.pillar-link {
  text-decoration: none;
  color: inherit;
}

/* ========== FORM INPUTS ========== */
.form-input {
  width: 100%;
  background: rgba(10, 22, 40, 0.7);
  border: 1px solid var(--ad-border);
  color: var(--ad-text);
  padding: 0.875rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.form-input:focus {
  outline: none;
  border-color: var(--ad-gold);
  background: rgba(10, 22, 40, 0.9);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15);
}

.form-input::placeholder {
  color: rgba(184, 191, 212, 0.5);
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ad-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ========== SOCIAL ICONS ========== */
.social-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ad-border);
  background: rgba(26, 41, 81, 0.5);
  color: var(--ad-ivory);
  border-radius: 50%;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.social-icon:hover {
  background: linear-gradient(135deg, #e4cc8a 0%, #c9a961 100%);
  color: var(--ad-bg);
  border-color: var(--ad-gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(201, 169, 97, 0.35);
}

/* ========== QUOTE ========== */
.quote-bar {
  border-left: 3px solid var(--ad-gold);
  padding: 0.5rem 0 0.5rem 1.25rem;
  font-style: italic;
  color: var(--ad-ivory);
  opacity: 0.92;
}

/* ========== SECTIONS ========== */
.section {
  padding: 5rem 0;
  position: relative;
}

@media (min-width: 768px) {
  .section {
    padding: 7rem 0;
  }
}

/* ========== NAVIGATION ========== */
.nav-blur {
  background: rgba(10, 22, 40, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(74, 45, 122, 0.4);
}

/* ========== DECORATIVE ELEMENTS ========== */
.step-number {
  font-family: 'Playfair Display', serif;
  font-size: 0.875rem;
  color: var(--ad-gold);
  letter-spacing: 0.25em;
  font-weight: 500;
}

.divider-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ad-gold), transparent);
  width: 100%;
  margin: 0;
}

.divider-royal {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ad-purple), var(--ad-gold), var(--ad-purple), transparent);
  width: 100%;
}

/* AD logo monogram */
.ad-monogram {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  background: linear-gradient(135deg, #e4cc8a 0%, #c9a961 50%, #8a7238 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.05em;
}

/* ========== PORTRAIT FRAME ========== */
.portrait-frame {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--ad-purple);
  box-shadow: 0 20px 60px rgba(10, 22, 40, 0.6), 0 0 0 4px rgba(74, 45, 122, 0.15);
}

.portrait-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(201, 169, 97, 0.18) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ========== ROYAL ACCENT BLOCKS ========== */
/* The cream/ivory card — was warm beige, now pearl white on deep purple frame */
.royal-card {
  background: linear-gradient(145deg, #f5f0e1 0%, #e8dfca 100%);
  color: #0a1628;
  border: 1px solid var(--ad-gold);
  box-shadow: 0 20px 50px rgba(10, 22, 40, 0.5), inset 0 1px 0 rgba(255,255,255,0.6);
}

/* Purple gradient offer banner (replaces the old dark-gold banner) */
.offer-banner {
  background: linear-gradient(135deg, var(--ad-purple-deep) 0%, var(--ad-purple) 100%);
  border: 1px solid var(--ad-gold);
  box-shadow: 0 12px 32px rgba(10, 22, 40, 0.4), inset 0 1px 0 rgba(228, 204, 138, 0.15);
}

/* ========== MONEY / CAPITAL PATTERN ========== */
.money-pattern {
  background-color: var(--ad-card);
  background-image:
    linear-gradient(135deg, rgba(201, 169, 97, 0.10) 0%, transparent 50%),
    radial-gradient(circle at 20% 30%, rgba(201, 169, 97, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(74, 45, 122, 0.25) 0%, transparent 40%);
}

/* ========== MESSAGES ========== */
.success-msg {
  background: rgba(201, 169, 97, 0.12);
  border: 1px solid var(--ad-gold);
  color: var(--ad-gold-light);
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
}

.error-msg {
  background: rgba(220, 38, 38, 0.10);
  border: 1px solid #dc2626;
  color: #fca5a5;
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
}

/* ========== ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.mobile-menu.open {
  max-height: 500px;
}

/* ========== SELECT DROPDOWN STYLING ========== */
.form-input[type="date"] {
  color-scheme: dark;
}

select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3e%3cpath d='M1 1L6 6L11 1' stroke='%23c9a961' stroke-width='1.5' stroke-linecap='round'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ========== CAROUSEL (Creative Legacy) ========== */
.carousel {
  position: relative;
}

.carousel-viewport {
  position: relative;
  width: 100%;
  border: 1px solid var(--ad-border);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.6);
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--ad-panel);
}

/* Blurred-image matte behind the main photo:
   the same src is painted full-bleed, heavily blurred and darkened,
   so portrait-oriented photos never get beheaded by a hard crop —
   the full photo shows as 'contain' while the matte fills the letterbox. */
.carousel-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--slide-bg);
  background-size: cover;
  background-position: center;
  filter: blur(26px) brightness(0.45) saturate(1.1);
  transform: scale(1.15); /* avoid blur edge artifacts */
  z-index: 0;
}

.carousel-slide > img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;       /* whole photo is always visible */
  object-position: center;
}

.carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.5rem 1.4rem;
  background: linear-gradient(180deg, rgba(10,22,40,0) 0%, rgba(10,22,40,0.85) 70%, rgba(10,22,40,0.98) 100%);
  color: var(--ad-ivory);
  pointer-events: none;
  z-index: 2; /* sit above both the matte (::before, z-0) and the photo (z-1) */
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ad-gold);
  background: rgba(10, 22, 40, 0.75);
  color: var(--ad-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.25s ease;
  z-index: 5;
}

.carousel-btn:hover {
  background: var(--ad-purple);
  color: var(--ad-gold-light);
  border-color: var(--ad-gold-light);
  transform: translateY(-50%) scale(1.06);
}

.carousel-btn-prev { left: 12px; }
.carousel-btn-next { right: 12px; }

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -36px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--ad-gold);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.carousel-dot.active {
  background: var(--ad-gold);
  transform: scale(1.25);
  box-shadow: 0 0 10px rgba(201, 169, 97, 0.6);
}

.carousel-dot:hover {
  background: var(--ad-gold-light);
}

@media (max-width: 640px) {
  .carousel-btn {
    width: 38px;
    height: 38px;
  }
  .carousel-btn-prev { left: 8px; }
  .carousel-btn-next { right: 8px; }
}

/* ========== ACTIVE NAV LINK ========== */
.nav-link-active {
  position: relative;
}
.nav-link-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ad-gold), transparent);
  border-radius: 1px;
}
