/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

/* ── Variables ── */
:root {
  --bg:        #F0EDE7;
  --slate:     #5E82A0;
  --text:      #1C1A16;
  --muted:     #7A746C;
  --faded:     #C0BAB2;
  --footer-bg: #8AAEC8;
  --logo-w:    100px;
  --h-pad:     32px;
}

/* ── Base ── */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* ── 12px slate top bar ── */
.top-bar {
  height: 12px;
  background: var(--slate);
  flex-shrink: 0;
}

/* ── Header ── */
header {
  background: var(--bg);
  display: flex;
  align-items: center;
  padding: 12px var(--h-pad);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  min-height: 80px;
}

.logo-wrap {
  width: var(--logo-w);
  display: block;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.logo-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Header image zone ──
   Flush to left edge. Logo sits above via z-index.
   Fade: transparent left → fully visible right.
── */
.header-img-zone {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right,
    transparent 0%,
    transparent 15%,
    black 38%,
    black 100%
  );
  mask-image: linear-gradient(to right,
    transparent 0%,
    transparent 15%,
    black 38%,
    black 100%
  );
}

/* ── Header title block ── */
.header-title-block {
  position: relative;
  z-index: 2;
  margin-left: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-title-block .trip-eyebrow {
  margin-bottom: 0.25rem;
}

.header-title-block .trip-name {
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

.header-title-block .trip-dates {
  font-size: 13px;
  margin-bottom: 0;
}

.header-img-zone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display: block;
}

/* Placeholder shown until header photo is provided */
.header-img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--faded);
}

/* ── Back bar ── */
.back-bar {
  background: var(--bg);
  display: flex;
  justify-content: flex-end;
  padding: 8px var(--h-pad);
  flex-shrink: 0;
}

.back-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--slate);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.back-link:hover { text-decoration: underline; }

/* ── Main ── */
main {
  flex: 1;
  padding: 36px var(--h-pad) 48px var(--h-pad);
}

/* ── Trip title block — left edge aligns with logo right edge ── */
.trip-header {
  padding-left: var(--logo-w);
  margin-bottom: 1.5rem;
}

.trip-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.4rem;
}

.trip-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 2.8rem;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.trip-dates {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 1rem;
}

.rule {
  border: none;
  border-top: 0.5px solid rgba(28, 26, 22, 0.15);
  margin-bottom: 1.5rem;
}

/* ── Welcome block — centered ── */
.welcome-block {
  margin-bottom: 2rem;
  text-align: center;
}

.welcome-block h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(18px, 3vw, 26px);
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.welcome-block p {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Card section — constrains label + grid together ── */
.card-section {
  max-width: 720px;
  margin: 0 auto;
}

/* ── Section label — left-aligned above first card ── */
.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ── Card grid — 2 columns ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ── Medical cross SVG icon ── */
.card-icon-cross {
  display: block;
  margin-bottom: 10px;
}

/* Shared card shell */
.plan-card {
  background: white;
  border: 0.5px solid rgba(28, 26, 22, 0.12);
  border-radius: 8px;
  overflow: hidden;
  color: var(--text);
  display: block;
  position: relative;
  padding: 22px 24px 52px;
}

/* Live card */
a.plan-card {
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
}

a.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(28, 26, 22, 0.08);
}

/* Disabled card */
div.plan-card {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

div.plan-card .card-title,
div.plan-card .card-desc {
  color: var(--faded);
}

.card-icon {
  font-size: 22px;
  margin-bottom: 10px;
  display: block;
}

.card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.card-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.55;
}

.card-arrow {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 14px;
  color: var(--slate);
  transition: transform 0.2s;
}

a.plan-card:hover .card-arrow {
  transform: translateX(3px);
}

/* ── Footer ── */
footer {
  background: var(--footer-bg);
  padding: 14px var(--h-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.footer-breadcrumb {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--text);
}

.footer-breadcrumb a {
  color: var(--text);
  text-decoration: none;
}

.footer-breadcrumb a:hover { text-decoration: underline; }

.crumb-esperienze {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
}

.crumb-current { color: var(--text); }

.footer-contact {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
}

.footer-contact:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 600px) {
  :root { --h-pad: 20px; }
  main { padding: 28px var(--h-pad) 40px var(--h-pad); }
  .card-grid { grid-template-columns: 1fr; }
  .header-img-zone {
    -webkit-mask-image: linear-gradient(to right,
      transparent 0%, transparent 55%, black 75%, black 100%);
    mask-image: linear-gradient(to right,
      transparent 0%, transparent 55%, black 75%, black 100%);
  }
}
