/* ==========================================================
   Armstrong Edge Docs Prototype — Shared Styles
   One template structure, two brands via CSS custom properties.
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* --- Brand token definitions --- */

.brand-rocky {
  --brand-primary: #002359;
  --brand-primary-light: #0a3a7a;
  --brand-accent: #DCAE3E;
  --brand-accent-text: #c49b54;
  --brand-accent-bg: rgba(220, 174, 62, 0.08);
  --brand-body: #33373b;
  --brand-muted: #6b7280;
  --brand-surface: #f8f7f4;
  --brand-border: #e5e2db;
  --brand-hero-overlay: rgba(0, 35, 89, 0.55);
  --brand-font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --brand-font-body: 'Lexend', system-ui, sans-serif;
  --brand-logo-height: 56px;
}

.brand-canyon {
  --brand-primary: #B25121;
  --brand-primary-light: #c7623a;
  --brand-accent: #BE4D00;
  --brand-accent-text: #B25121;
  --brand-accent-bg: rgba(178, 81, 33, 0.06);
  --brand-body: #33373b;
  --brand-muted: #6b7280;
  --brand-surface: #faf7f5;
  --brand-border: #e8e0d8;
  --brand-hero-overlay: rgba(103, 32, 14, 0.55);
  --brand-font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --brand-font-body: 'Lexend', system-ui, sans-serif;
  --brand-logo-height: 44px;
}

/* --- Reset & base --- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--brand-font-body);
  color: var(--brand-body);
  line-height: 1.6;
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Layout --- */

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--flux-space-5, 20px);
}

/* --- Scroll progress bar --- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--brand-accent);
  z-index: 1000;
  transition: width 50ms linear;
}

/* --- Engagement badge --- */

.engagement-bar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--brand-primary);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 6px var(--flux-space-5, 20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.engagement-bar__left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.engagement-bar__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.engagement-bar__right {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.8;
  font-size: 0.7rem;
}

/* --- Hero --- */

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--flux-space-8, 32px) var(--flux-space-5, 20px);
  background-size: cover;
  background-position: center 30%;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--brand-hero-overlay) 0%,
    rgba(0, 0, 0, 0.25) 40%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__logo {
  position: absolute;
  top: var(--flux-space-6, 24px);
  left: var(--flux-space-5, 20px);
  height: var(--brand-logo-height);
  z-index: 2;
  filter: brightness(0) invert(1);
}

.hero__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: 8px;
}

.hero__title {
  font-family: var(--brand-font-heading);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero__subtitle {
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 16px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border-radius: var(--flux-radius-full, 999px);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- Overview strip --- */

.overview {
  background: var(--brand-primary);
  color: #fff;
  padding: var(--flux-space-6, 24px) 0;
}

.overview__reservation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: var(--flux-space-5, 20px);
  padding-bottom: var(--flux-space-4, 16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.overview__reservation-id {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.overview__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--flux-radius-full, 999px);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.overview__status--booked {
  background: rgba(74, 222, 128, 0.2);
  color: #86efac;
}

.overview__status--option {
  background: rgba(251, 191, 36, 0.2);
  color: #fcd34d;
}

.overview__hold {
  font-size: 0.8rem;
  opacity: 0.8;
}

.overview__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--flux-space-4, 16px);
}

.overview__item-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
  margin-bottom: 2px;
}

.overview__item-value {
  font-size: 0.9rem;
  font-weight: 500;
}

/* --- Section base --- */

.section {
  padding: var(--flux-space-12, 48px) 0;
}

.section--warm {
  background: var(--brand-surface);
}

.section__header {
  margin-bottom: var(--flux-space-8, 32px);
}

.eyebrow {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-accent-text);
  margin-bottom: 6px;
}

.section__title {
  font-family: var(--brand-font-heading);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--brand-primary);
  line-height: 1.2;
}

.section__lead {
  font-size: 0.9rem;
  color: var(--brand-muted);
  margin-top: 6px;
}

/* --- Itinerary accordion --- */

.itinerary__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: var(--flux-space-6, 24px);
}

.itinerary__toggle-all {
  background: none;
  border: 1px solid var(--brand-border);
  border-radius: var(--flux-radius-md, 8px);
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--brand-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.itinerary__toggle-all:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.itinerary__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.itinerary__day {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--flux-radius-lg, 12px);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.itinerary__day:hover {
  box-shadow: var(--flux-shadow-sm, 0 1px 3px rgba(0,0,0,0.08));
}

.itinerary__day-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: var(--flux-space-4, 16px);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
}

.itinerary__day-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 4px 10px;
  border-radius: var(--flux-radius-full, 999px);
  background: var(--brand-accent-bg);
  color: var(--brand-accent-text);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.itinerary__day-titles {
  flex: 1;
}

.itinerary__day-title {
  font-family: var(--brand-font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-primary);
}

.itinerary__day-meta {
  font-size: 0.75rem;
  color: var(--brand-muted);
  margin-top: 2px;
}

.itinerary__day-icon {
  flex-shrink: 0;
  color: var(--brand-muted);
  transition: transform 0.25s ease;
}

.itinerary__day.is-open .itinerary__day-icon {
  transform: rotate(180deg);
}

.itinerary__day-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.itinerary__day.is-open .itinerary__day-body {
  max-height: 1200px;
}

.itinerary__day-inner {
  padding: 0 var(--flux-space-4, 16px) var(--flux-space-5, 20px);
  display: grid;
  gap: var(--flux-space-4, 16px);
}

.itinerary__day-image {
  border-radius: var(--flux-radius-md, 8px);
  overflow: hidden;
  aspect-ratio: 16/9;
}

.itinerary__day-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.itinerary__day-narrative {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--brand-body);
}

.itinerary__day-rail {
  display: flex;
  flex-wrap: wrap;
  gap: var(--flux-space-4, 16px);
  padding: var(--flux-space-3, 12px) var(--flux-space-4, 16px);
  background: var(--brand-surface);
  border-radius: var(--flux-radius-md, 8px);
}

.itinerary__rail-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-muted);
  margin-bottom: 2px;
}

.itinerary__rail-value {
  font-size: 0.82rem;
  font-weight: 500;
}

.itinerary__footnote {
  font-size: 0.75rem;
  color: var(--brand-muted);
  text-align: center;
  margin-top: var(--flux-space-6, 24px);
  font-style: italic;
}

/* --- Pricing --- */

.pricing__grid {
  display: grid;
  gap: var(--flux-space-6, 24px);
}

.pricing__panel {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--flux-radius-lg, 12px);
  padding: var(--flux-space-6, 24px);
}

.pricing__panel-title {
  font-family: var(--brand-font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: var(--flux-space-4, 16px);
}

.pricing__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.pricing__table th {
  text-align: left;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-muted);
  padding: 8px 0;
  border-bottom: 2px solid var(--brand-border);
}

.pricing__table th:last-child {
  text-align: right;
}

.pricing__table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--brand-border);
}

.pricing__table td:last-child {
  text-align: right;
  font-weight: 500;
  white-space: nowrap;
}

.pricing__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--flux-space-5, 20px);
  padding-top: var(--flux-space-4, 16px);
  border-top: 2px solid var(--brand-primary);
}

.pricing__total-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pricing__total-amount {
  font-family: var(--brand-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.pricing__sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--flux-space-4, 16px);
}

.pricing__side-card {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--flux-radius-lg, 12px);
  padding: var(--flux-space-5, 20px);
}

.pricing__side-card-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-muted);
  margin-bottom: 4px;
}

.pricing__side-card-value {
  font-size: 0.9rem;
  font-weight: 500;
}

.pricing__cta {
  background: var(--brand-primary);
  color: #fff;
  border-radius: var(--flux-radius-lg, 12px);
  padding: var(--flux-space-6, 24px);
  text-align: center;
}

.pricing__cta-title {
  font-family: var(--brand-font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.pricing__cta-text {
  font-size: 0.82rem;
  opacity: 0.85;
  margin-bottom: var(--flux-space-4, 16px);
}

.button--accent {
  display: inline-block;
  padding: 12px 32px;
  background: var(--brand-accent);
  color: #fff;
  font-family: var(--brand-font-body);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--flux-radius-md, 8px);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.brand-rocky .button--accent {
  color: var(--brand-primary);
}

.brand-canyon .button--accent {
  color: #67200E;
}

.button--accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

/* --- Guests --- */

.guests__list {
  display: grid;
  gap: var(--flux-space-4, 16px);
}

.guest-card {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--flux-radius-lg, 12px);
  padding: var(--flux-space-5, 20px);
  display: flex;
  align-items: center;
  gap: var(--flux-space-4, 16px);
}

.guest-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-accent-bg);
  color: var(--brand-accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--brand-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.guest-card__name {
  font-weight: 600;
  font-size: 0.95rem;
}

.guest-card__detail {
  font-size: 0.78rem;
  color: var(--brand-muted);
  margin-top: 2px;
}

/* --- Trust pillars --- */

.trust {
  padding: var(--flux-space-12, 48px) 0;
  background: var(--brand-surface);
}

.trust__header {
  text-align: center;
  margin-bottom: var(--flux-space-8, 32px);
}

.trust__eyebrow {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-accent-text);
  margin-bottom: 6px;
}

.trust__title {
  font-family: var(--brand-font-heading);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--brand-primary);
}

.trust__grid {
  display: grid;
  gap: var(--flux-space-6, 24px);
}

.trust__pillar {
  text-align: center;
  padding: var(--flux-space-5, 20px);
}

.trust__pillar-icon {
  margin-bottom: 12px;
  color: var(--brand-accent-text);
}

.trust__pillar-title {
  font-family: var(--brand-font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

.trust__pillar-text {
  font-size: 0.82rem;
  color: var(--brand-muted);
  line-height: 1.6;
}

/* --- Footer --- */

.footer {
  background: var(--brand-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--flux-space-10, 40px) 0;
  text-align: center;
}

.footer__logo {
  height: 36px;
  margin: 0 auto var(--flux-space-4, 16px);
  filter: brightness(0) invert(1);
}

.footer__tagline {
  font-family: var(--brand-font-heading);
  font-size: 1rem;
  font-style: italic;
  color: var(--brand-accent);
  margin-bottom: var(--flux-space-4, 16px);
}

.footer__meta {
  font-size: 0.75rem;
  margin-bottom: 4px;
}

.footer__meta a {
  color: rgba(255, 255, 255, 0.7);
}

.footer__meta a:hover {
  color: #fff;
}

.footer__small {
  font-size: 0.65rem;
  margin-top: var(--flux-space-4, 16px);
  opacity: 0.5;
}

/* --- Edge badge (powered by) --- */

.edge-badge {
  padding: var(--flux-space-4, 16px) 0;
  text-align: center;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.edge-badge__inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  color: #9ca3af;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.edge-badge__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--flux-primary-400, #056F82);
}

/* --- Action dock (mobile) --- */

.action-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  display: flex;
  justify-content: center;
  gap: 2px;
  padding: 8px var(--flux-space-5, 20px) calc(8px + env(safe-area-inset-bottom));
  background: var(--brand-primary);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}

.action-dock__button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.6rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

.action-dock__button:hover {
  color: #fff;
  text-decoration: none;
}

.action-dock__button--primary {
  color: var(--brand-accent);
}

.action-dock__icon {
  width: 20px;
  height: 20px;
}

.action-dock__label {
  letter-spacing: 0.04em;
}

/* ==========================================================
   Responsive breakpoints
   ========================================================== */

@media (min-width: 640px) {
  .overview__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .itinerary__day-inner {
    grid-template-columns: 200px 1fr;
  }

  .itinerary__day-rail {
    flex-direction: column;
    gap: var(--flux-space-3, 12px);
  }

  .guests__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .hero {
    min-height: 75vh;
    padding: var(--flux-space-12, 48px) var(--flux-space-8, 32px);
  }

  .hero__logo {
    top: var(--flux-space-8, 32px);
    left: var(--flux-space-8, 32px);
  }

  .container {
    padding: 0 var(--flux-space-8, 32px);
  }

  .section {
    padding: var(--flux-space-16, 64px) 0;
  }
}

@media (max-width: 959px) {
  body {
    padding-bottom: 80px;
  }
}

@media (min-width: 960px) {
  .pricing__grid {
    grid-template-columns: 1fr 280px;
  }

  .action-dock {
    display: none;
  }
}
