/*
Theme Name: FCS XVII Theme
Description: Custom plain WordPress theme for the FCS XVII conference website.
Version: 1.0.0
Author: Antigravity
Text Domain: fcs-xvii
*/

:root {
  --primary-color: #043933;
  --primary-dark: #02201d;
  --primary-light: #0d544b;
  --gold-color: #d4af37;
  --gold-dark: #c5a059;
  --gold-hover: #b38e47;
  --gold-light: #fdf6e6;
  --text-dark: #1e2e28;
  --text-muted: #5a6e66;
  --text-light: #ffffff;
  --text-light-muted: #c3d0cb;
  --bg-light: #f9fbfb;
  --bg-white: #ffffff;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 2px 8px rgba(4, 57, 51, 0.05);
  --shadow-md: 0 10px 30px rgba(4, 57, 51, 0.08);
  --shadow-lg: 0 20px 40px rgba(4, 57, 51, 0.12);
  --max-width: 1200px;
  --header-height: 80px;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

.bg-light-sec {
  background-color: var(--bg-light);
}

/* Header & Navigation */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

header.site-header.scrolled {
  background-color: rgba(4, 57, 51, 0.95);
  backdrop-filter: blur(10px);
  height: 70px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.site-branding {
  flex: 1;
  display: flex;
  justify-content: flex-start;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.logo-text h1 {
  font-size: 20px;
  color: var(--gold-color);
  letter-spacing: 1px;
}

.logo-text p {
  font-size: 9px;
  color: var(--text-light-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  margin-top: -2px;
}

nav.main-navigation {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

nav.main-navigation ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

nav.main-navigation ul li a {
  color: var(--text-light-muted);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

nav.main-navigation ul li a .link-text-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

nav.main-navigation ul li a .link-text-wrap svg {
  transition: transform 0.25s ease;
}

nav.main-navigation ul li:hover > a .link-text-wrap svg {
  transform: rotate(180deg);
}

nav.main-navigation ul li a:hover,
nav.main-navigation ul li.current-menu-item a {
  color: var(--text-light);
}

nav.main-navigation ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold-color);
  transition: var(--transition);
}

nav.main-navigation ul li a:hover::after,
nav.main-navigation ul li.current-menu-item a::after {
  width: 100%;
}

/* Dropdown Menu styling */
nav.main-navigation ul li {
  position: relative;
}

nav.main-navigation ul li ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--primary-dark);
  min-width: 180px;
  padding: 10px 0;
  box-shadow: var(--shadow-lg);
  border-radius: 4px;
  flex-direction: column;
  gap: 0;
}

nav.main-navigation ul li:hover ul.sub-menu {
  display: flex;
}

nav.main-navigation ul li ul.sub-menu li a {
  padding: 8px 20px;
  display: block;
}

nav.main-navigation ul li ul.sub-menu li a::after {
  display: none;
}

nav.main-navigation ul li ul.sub-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--gold-color);
}

/* Menu Badges */
.menu-badge {
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 4px;
  border-radius: 2px;
  letter-spacing: 0.5px;
  line-height: 1;
  margin-bottom: 2px;
}

.menu-badge.soon {
  background-color: rgba(212, 175, 55, 0.15);
  color: var(--gold-color);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Header Actions */
.header-actions {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-register-btn {
  padding: 10px 20px;
  font-size: 13px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-gold {
  background-color: var(--gold-color);
  color: var(--primary-dark);
}

.btn-gold:hover {
  background-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--text-light);
  transform: translateY(-2px);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding-top: var(--header-height);
  overflow: hidden;
}

/* Background Slideshow */
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.8s ease-in-out, transform 6s cubic-bezier(0.1, 0.8, 0.25, 1);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(3, 40, 35, 0.95) 0%, rgba(4, 57, 51, 0.85) 45%, rgba(4, 57, 51, 0.45) 75%, rgba(2, 32, 29, 0.6) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 680px;
}

.hero-subtitle-top {
  color: var(--gold-color);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 34px;
  line-height: 1.2;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text-light-muted);
}

.hero-title-accent {
  font-size: 68px;
  font-weight: 800;
  color: var(--gold-color);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--text-light-muted);
  margin-bottom: 32px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero-meta-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold-color);
  flex-shrink: 0;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

/* Feature Cards Section */
.cards-section {
  position: relative;
  margin-top: -60px;
  z-index: 10;
  padding-bottom: 60px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background-color: var(--bg-white);
  padding: 40px 32px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-top: 4px solid transparent;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--gold-color);
}

.card-icon-wrapper {
  width: 60px;
  height: 60px;
  background-color: rgba(4, 57, 51, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition);
}

.feature-card:hover .card-icon-wrapper {
  background-color: var(--primary-color);
}

.card-icon-wrapper svg {
  width: 24px;
  height: 24px;
  fill: var(--primary-color);
  transition: var(--transition);
}

.feature-card:hover .card-icon-wrapper svg {
  fill: var(--gold-color);
}

.feature-card h3 {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-link:hover {
  color: var(--primary-color);
}

/* Split Section: Dates & Venue */
.split-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

.dates-col,
.venue-col {
  background: var(--bg-card, #ffffff);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.venue-image-col {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.section-subtitle {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.section-main-title {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 16px;
}

/* Timeline Layout */
.timeline-container {
  position: relative;
  padding-left: 44px;
  margin-bottom: 32px;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  width: 2px;
  height: 100%;
  background-color: rgba(4, 57, 51, 0.15);
}

.timeline-item {
  position: relative;
  padding-bottom: 28px;
  display: flex;
  align-items: flex-start;
}

.timeline-icon {
  position: absolute;
  left: -44px;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: 2px solid var(--gold-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: var(--transition);
}

.timeline-item:hover .timeline-icon {
  background-color: var(--gold-color);
  border-color: var(--primary-color);
}

.timeline-icon svg {
  width: 14px;
  height: 14px;
  fill: var(--gold-color);
  transition: var(--transition);
}

.timeline-item:hover .timeline-icon svg {
  fill: var(--primary-color);
}

.timeline-content {
  padding-left: 12px;
}

.timeline-content h4 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 4px;
  margin-top: 5px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Venue Section Styling */
.venue-details p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.venue-features {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 40px;
}

.venue-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.v-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.v-feature-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--gold-dark);
}

.venue-feature-item span {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-color);
}

/* Venue Image Slider */
.venue-slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
}

.venue-slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.venue-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
}

.venue-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.venue-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.venue-slide-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(4, 57, 51, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  z-index: 5;
  letter-spacing: 0.5px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary-color);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slider-arrow:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  color: var(--gold-dark);
}

.prev-arrow {
  left: 14px;
}

.next-arrow {
  right: 14px;
}

.venue-slider-dots {
  position: absolute;
  bottom: 18px;
  right: 16px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.venue-slider-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.25s ease;
}

.venue-slider-dots .dot.active {
  background: var(--gold-color);
  width: 20px;
  border-radius: 10px;
}

/* CTA Banner Section */
.cta-banner-section {
  padding: 60px 0;
}

.cta-banner {
  background-color: var(--primary-color);
  border-radius: 16px;
  padding: 48px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-light);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 50%;
  top: -100px;
  right: -50px;
}

.cta-left {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 700px;
}

.cta-icon-outer {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-icon-outer svg {
  width: 24px;
  height: 24px;
  fill: var(--gold-color);
}

.cta-text h3 {
  font-size: 26px;
  margin-bottom: 8px;
}

.cta-text p {
  color: var(--text-light-muted);
  font-size: 14px;
}

/* Footer Styling */
footer.site-footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 80px 0 24px 0;
  font-size: 14px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo img {
  width: 38px;
  height: 38px;
}

.footer-logo-text h3 {
  font-size: 16px;
  color: var(--gold-color);
  letter-spacing: 0.5px;
}

.footer-logo-text p {
  font-size: 8px;
  color: var(--text-light-muted);
  text-transform: uppercase;
  margin-top: -2px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--gold-color);
  border-color: var(--gold-color);
  color: var(--primary-dark);
}

.social-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-color);
  margin-bottom: 24px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul li a {
  color: var(--text-light-muted);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a .menu-badge {
  margin-left: 2px;
  margin-bottom: 0;
}

.footer-col ul li a:hover {
  color: var(--text-light);
  padding-left: 4px;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-light-muted);
}

.footer-contact-list li svg {
  width: 16px;
  height: 16px;
  fill: var(--gold-color);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-light-muted);
  font-size: 12px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

/* Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

/* Architectural Sketch Outline */
.architectural-sketch {
  position: absolute;
  bottom: 0;
  right: 20px;
  width: 280px;
  height: 280px;
  stroke: rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 1;
}

.dates-col {
  position: relative; /* ensure absolute positioning works for its sketch */
}

.dates-col .architectural-sketch {
  stroke: rgba(4, 57, 51, 0.05);
  width: 180px;
  height: 180px;
  bottom: -20px;
  right: -20px;
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
  .split-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .venue-image-col {
    grid-column: span 2;
  }
  .venue-image-col img {
    height: 350px;
  }
}

@media (max-width: 992px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: -30px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-info {
    grid-column: span 2;
  }
  .cta-banner {
    flex-direction: column;
    gap: 32px;
    text-align: center;
    padding: 40px;
  }
  .cta-left {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  .hero-title {
    font-size: 36px;
  }
  .hero-title-accent {
    font-size: 28px;
  }
  .hero-tagline {
    font-size: 16px;
  }
  nav.main-navigation {
    display: none; /* JS will toggle */
  }
  .site-branding {
    flex: none;
  }
  .header-actions {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .split-grid {
    grid-template-columns: 1fr;
  }
  .venue-image-col {
    grid-column: span 1;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-info {
    grid-column: span 1;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
