/* ==========================================================================
   ICEDYN 2027 — Flyer Palette + OpenSD-inspired Layout
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --bg-main: #F5ECEB;
  --bg-alt: #ECE0DF;
  --bg-surface: #FAF6F5;
  --bg-white: #FFFFFF;

  --primary: #8C3B75;
  --primary-light: #A8558F;
  --primary-dark: #6B2858;

  --text-dark: #2D1418;
  --text-body: #473236;
  --text-muted: #70585C;

  --border-dotted: #B8969B;
  --border-subtle: #E1D1CF;

  --radius-sm: 6px;
  --radius-md: 10px;
  --shadow-sm: 0 2px 10px rgba(45, 20, 24, 0.05);
  --shadow-md: 0 8px 24px rgba(45, 20, 24, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.65;
  font-size: 16px;
}

.container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px dotted var(--border-dotted);
}

h3 {
  font-size: 1.2rem;
  margin-top: 1.4rem;
  margin-bottom: 0.65rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-sm {
  padding: 0.45rem 1.15rem;
  font-size: 0.85rem;
}

.btn-block {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #FFFFFF;
}

/* Header & Navigation */
.site-header {
  background-color: rgba(245, 236, 235, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.95rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.5px;
}

.brand-logo {
  height: 1.5em;
  width: auto;
  display: block;
}

.brand-year {
  color: var(--primary);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.92rem;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a.btn {
  background-color: var(--primary);
  color: #FFFFFF;
}

.nav-links a.btn:hover {
  background-color: var(--primary-dark);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 680px;
  height: 76vh;
  max-height: 820px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 0;
  background: url('images/Porto1.jfif') center center / cover no-repeat;
  image-rendering: auto;
  border-bottom: 3px solid var(--primary);
}



.hero-content {
  display: flex;
  justify-content: center;
}

.hero-card {
  width: 100%;
  max-width: 900px;
  padding: 2.5rem 2.25rem;
  border-radius: 14px;
  background-color: rgba(250, 246, 245, 0.45);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 14px 36px rgba(45, 20, 24, 0.18);
}

.hero-wave {
  display: block;
  margin: 0 auto 0.85rem;
  filter: drop-shadow(0 1px 4px rgba(255, 255, 255, 0.75));
}

.hero-logo {
  display: block;
  height: 110px;
  max-width: 320px;
  width: auto;
  margin: 0 auto 0.85rem;
  object-fit: contain;
  filter: drop-shadow(0 1px 6px rgba(255, 255, 255, 0.85));
}

.hero-kicker {
  color: var(--primary-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.8);
}

.hero h1 {
  color: var(--text-dark);
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  margin: 0 auto 0.55rem;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.85);
}

.hero-subtitle {
  color: var(--text-dark);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.85);
}

.hero-meta {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1.85rem;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.85);
}

.btn-hero-solid-light {
  background-color: rgba(255, 255, 255, 0.78);
  color: var(--text-dark);
  border-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(45, 20, 24, 0.1);
}

.btn-hero-solid-light:hover {
  background-color: rgba(255, 255, 255, 0.96);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

/* Second Block: Porto Showcase & Image Carousel */
.porto-band {
  background-color: var(--bg-surface);
  border-bottom: 1.5px dotted var(--border-dotted);
}

.porto-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 2.75rem;
  align-items: center;
}

.eyebrow {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 0.78rem;
  margin-bottom: 0.45rem;
}

.porto-copy h2 {
  margin-bottom: 1rem;
}

.porto-copy p {
  font-size: 0.96rem;
}

.porto-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.porto-carousel {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  background-color: var(--text-dark);
}

.carousel-track {
  position: relative;
  aspect-ratio: 16 / 10;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.55s ease, transform 0.65s ease;
  pointer-events: none;
  margin: 0;
  z-index: 1;
}

.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 1.15rem 2.2rem;
  font-size: 0.85rem;
  color: #FFFFFF;
  background: linear-gradient(180deg, rgba(45, 20, 24, 0) 0%, rgba(45, 20, 24, 0.78) 100%);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background-color: rgba(45, 20, 24, 0.55);
  color: #FFFFFF;
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.carousel-btn:hover {
  background-color: var(--primary);
}

.carousel-btn.prev {
  left: 0.85rem;
}

.carousel-btn.next {
  right: 0.85rem;
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 0.7rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.dot.is-active {
  background-color: #FFFFFF;
  transform: scale(1.2);
}

/* Third Section: Key Dates 4-Box Row */
.keydates-band {
  background-color: var(--bg-main);
  border-bottom: 1.5px dotted var(--border-dotted);
}

.keydates-heading {
  text-align: center;
  border-bottom: none;
  margin-bottom: 2.25rem;
  font-size: 1.95rem;
  color: var(--primary-dark);
}

.keydates-boxes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.keydate-box {
  background-color: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
}

.keydate-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.keydate-date {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
}

.keydate-box--accent {
  background-color: var(--primary);
  border-color: var(--primary);
}

.keydate-box--accent .keydate-label {
  color: rgba(255, 255, 255, 0.88);
}

.keydate-box--accent .keydate-date {
  color: #FFFFFF;
}

.keydates-cta-row {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* Sections & Grids */
.section {
  padding: 4.25rem 0;
}

.section-alt {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-intro {
  max-width: 720px;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.75rem;
  align-items: start;
}

/* Topic List */
.topic-list {
  list-style: none;
  margin-top: 0.75rem;
}

.topic-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
}

.topic-list li::before {
  content: "•";
  color: var(--primary);
  font-size: 1.35rem;
  line-height: 1;
  position: absolute;
  left: 0;
  top: 0.1rem;
}

/* Cards & Timeline */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
}

.dates-list {
  list-style: none;
  position: relative;
  padding-left: 1.5rem;
  margin-top: 1.1rem;
}

.dates-list::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background-color: var(--primary-light);
  opacity: 0.45;
}

.dates-list li {
  position: relative;
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
}

.dates-list li:last-child {
  margin-bottom: 0;
}

.dates-list li::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--primary);
  border: 2px solid var(--bg-surface);
}

.date-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.dates-list strong {
  color: var(--text-dark);
  font-size: 1.02rem;
}

/* News / Submission Cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-white);
}

.news-card h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.65rem;
}

.news-card p {
  font-size: 0.94rem;
  margin-bottom: 1.25rem;
}

.news-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--primary);
  background-color: var(--bg-main);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
}

.text-link {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Venue Section */
.venue-details {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dotted var(--border-dotted);
}

.info-panel {
  border-left: 4px solid var(--primary);
}

.info-panel h3 {
  margin-top: 0;
}

.info-panel ul {
  list-style: none;
}

.info-panel li {
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

.info-panel li:last-child {
  margin-bottom: 0;
}

.venue-top-grid {
  align-items: center;
  margin-bottom: 2rem;
}

.venue-carousel-card {
  padding: 0.5rem;
  overflow: hidden;
}

.venue-carousel {
  box-shadow: none;
  border-radius: calc(var(--radius-md) - 2px);
}

.venue-getting-there {
  margin-top: 0.5rem;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.85rem;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured {
  background-color: var(--bg-white);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.badge {
  position: absolute;
  top: -12px;
  right: 1.4rem;
  background-color: var(--primary);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

.pricing-card h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

.price {
  font-size: 2.15rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0.45rem 0 0.2rem;
}

.price span {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}

.price-late,
.price-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.pricing-card ul {
  list-style: none;
  margin-top: 0.85rem;
  margin-bottom: auto;
  padding-top: 1rem;
  border-top: 1px dotted var(--border-dotted);
}

.pricing-card ul li {
  font-size: 0.9rem;
  margin-bottom: 0.55rem;
  padding-left: 1.25rem;
  position: relative;
}

.pricing-card ul li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  position: absolute;
  left: 0;
}

/* Footer */
.site-footer {
  background-color: var(--text-dark);
  color: var(--bg-main);
  padding: 3rem 0 1.75rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(245, 236, 235, 0.16);
}

.footer-logo {
  color: #FFFFFF;
  margin-bottom: 0.65rem;
}

.brand-year-light {
  color: #D98AC2;
}

.footer-brand p {
  color: var(--bg-alt);
  font-size: 0.88rem;
  margin-bottom: 0;
}

.site-footer h4 {
  color: #FFFFFF;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.site-footer ul {
  list-style: none;
}

.site-footer ul li {
  margin-bottom: 0.45rem;
}

.site-footer a {
  color: var(--bg-alt);
}

.site-footer a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.25rem;
  font-size: 0.82rem;
  color: rgba(245, 236, 235, 0.72);
}

/* Responsive */
@media (max-width: 960px) {
  .porto-grid,
  .keydates-boxes,
  .grid-2,
  .news-grid,
  .pricing-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .nav-links {
    gap: 0.9rem;
    flex-wrap: wrap;
  }

  .nav-links li:not(:last-child) {
    display: none;
  }

  .hero {
    min-height: 540px;
    height: auto;
    max-height: none;
    padding: 3.5rem 0;
  }
}

@media (max-width: 560px) {
  .keydates-boxes {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   6-Item Navigation + Dropdowns (OpenSD-inspired + Flyer Palette)
   ========================================================================== */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0;
}

.nav-link:hover,
.nav-item:hover > .nav-link {
  color: var(--primary);
}

.caret {
  font-size: 0.7rem;
  opacity: 0.8;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  list-style: none;
  background-color: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--primary);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 200;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.has-dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  color: var(--text-dark);
}

.dropdown-menu li a:hover {
  background-color: var(--bg-main);
  color: var(--primary);
}


/* Organizing Committee Grid & Member Cards */
.committee-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.member-card {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  background-color: var(--bg-white);
}

.member-photo {
  flex-shrink: 0;
  width: 110px;
  height: 130px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--bg-alt);
  border: 1px solid var(--border-subtle);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.member-info h3 {
  margin-top: 0;
  margin-bottom: 0.25rem;
  font-size: 1.15rem;
}

.member-email {
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

.member-affiliation {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.45;
}

@media (max-width: 768px) {
  .committee-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .member-card {
    flex-direction: column;
    text-align: center;
  }
}