/* ============================================
   SCOTLAND 40 — Joyce Just a Wee Bit 40
   Main Stylesheet
   ============================================ */

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

:root {
  --forest: #2C4A3E;
  --heather: #7B5EA7;
  --gold: #C9A84C;
  --cream: #F9F5EE;
  --stone: #5C4A2A;
  --mist: #E8E4DC;
  --dark: #0D0D0D;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Cormorant Garamond', serif;
  background: var(--cream);
  color: var(--dark);
  font-size: 18px;
  line-height: 1.7;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(160deg, #1a2e28 0%, #2C4A3E 40%, #3d2a5a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(123,94,167,0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.15) 0%, transparent 50%);
}

.hero-tartan {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(0deg, #fff 0px, #fff 2px, transparent 2px, transparent 40px),
    repeating-linear-gradient(90deg, #fff 0px, #fff 2px, transparent 2px, transparent 40px),
    repeating-linear-gradient(0deg, #C9A84C 0px, #C9A84C 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(90deg, #C9A84C 0px, #C9A84C 1px, transparent 1px, transparent 80px);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.hero-logo {
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.1s forwards;
}

.hero-eyebrow {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem auto;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.7s forwards;
}

.hero-dates {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.65);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: fadeUp 1s ease 1.2s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================
   NAV
   ============================================ */
nav {
  background: var(--forest);
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo { position: absolute; left: 2rem; }

nav a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover { color: var(--gold); }

/* ============================================
   SECTIONS
   ============================================ */
section { padding: 5rem 2rem; max-width: 860px; margin: 0 auto; }

.section-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--heather);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  color: var(--forest);
  line-height: 1.2;
  margin-bottom: 2rem;
}

.gold-rule {
  width: 50px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 2.5rem;
}

/* ============================================
   FLIGHTS
   ============================================ */
.flight-card {
  background: var(--forest);
  border-radius: 12px;
  padding: 2rem;
  color: white;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.flight-card::before {
  content: '';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(201,168,76,0.1);
}

.flight-card.return { background: #3d2a5a; }

.flight-route {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.flight-city {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 400;
}

.flight-arrow {
  color: var(--gold);
  font-size: 1.2rem;
  flex: 1;
  text-align: center;
  letter-spacing: 0.2em;
}

.flight-meta { display: flex; gap: 2rem; flex-wrap: wrap; }
.flight-meta-item { font-size: 1rem; }

.flight-meta-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  display: block;
  margin-bottom: 2px;
}

/* ============================================
   HOTELS
   ============================================ */
.hotel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.hotel-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--mist);
}

.hotel-banner {
  height: 200px;
  overflow: hidden;
}

.hotel-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hotel-card:hover .hotel-banner img { transform: scale(1.04); }

.hotel-body { padding: 1.5rem; }

.hotel-location {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--heather);
  margin-bottom: 0.25rem;
}

.hotel-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--forest);
  margin-bottom: 0.5rem;
}

.hotel-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: var(--stone);
  font-style: italic;
}

/* ============================================
   ITINERARY
   ============================================ */
.day-block {
  margin-bottom: 3rem;
  border-left: 2px solid var(--mist);
  padding-left: 2rem;
  position: relative;
}

.day-block::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.day-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.day-number {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--heather);
}

.day-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--forest);
}

.day-date {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--stone);
  margin-left: auto;
}

.event-list { list-style: none; }

.event-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--mist);
}

.event-item:last-child { border-bottom: none; }

.event-time {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--stone);
  padding-top: 3px;
  text-align: right;
  padding-right: 1rem;
  border-right: 1px solid var(--mist);
}

.event-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 2px;
}

.event-address {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--stone);
}

.tbd-block {
  background: var(--mist);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--stone);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ============================================
   GUESTS
   ============================================ */
.guest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.guest-card {
  background: white;
  border-radius: 10px;
  padding: 1.25rem 1rem;
  text-align: center;
  border: 1px solid var(--mist);
  transition: border-color 0.2s, transform 0.2s;
}

.guest-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.guest-card.birthday {
  border-color: var(--gold);
  background: linear-gradient(135deg, #fff 60%, #fdf8ee);
}

.guest-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto 0.75rem;
  display: block;
  border: 2px solid var(--mist);
}

.guest-card.birthday .guest-photo { border-color: var(--gold); }

.guest-initials {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin: 0 auto 0.75rem;
}

.guest-card.birthday .guest-initials { background: var(--heather); }

.guest-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--dark);
  line-height: 1.3;
}

.birthday-badge {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--dark);
  text-align: center;
  padding: 3rem 2rem;
}

.footer-logo { margin-bottom: 1.5rem; }

.footer-text {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
  section { padding: 3rem 1.25rem; }
  .flight-route { flex-direction: column; gap: 0.5rem; }
  .event-item { grid-template-columns: 65px 1fr; }
  .nav-logo { display: none; }
}