/* ===== MAIN STYLES ===== */

/* Feature Image Slideshow */
.feature-slideshow {
  position: relative;
}

.feature-slideshow .feature-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.feature-slideshow .feature-slide.active {
  opacity: 1;
  position: relative;
}

:root {
  --color-white: #ffffff;
  --color-light-gray: #f8f9fa;
  --color-black: #1a1a1a;
  --color-dark-gray: #2d3436;
  --color-medium-gray: #636e72;
  --color-border: #dfe6e9;
  --color-accent: #0984e3;
  
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  
  --border-radius: 12px;
  --border-radius-sm: 6px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-dark-gray);
  background-color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--color-accent);
}

button {
  font-family: var(--font-primary);
  border: none;
  background: none;
  cursor: pointer;
  transition: var(--transition);
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.main-content {
  min-height: calc(100vh - 200px);
  background-color: var(--color-light-gray);
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  padding-top: 80px; /* Account for fixed header */
  overflow: hidden;
}

.hero-logo-container {
  width: 100%;
  max-width: 600px;
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
}

.hero-logo {
  width: 100%;
  height: auto;
  max-width: 500px;
}

/* Legacy support */
.hero-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.logo-hero {
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

.main-logo {
  max-width: 500px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.1));
}

/* ===== FULLWIDTH SLIDESHOW ===== */
.slideshow-section {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 400px;
  max-height: 700px;
  overflow: hidden;
  background: var(--color-black);
}

.slideshow-fullwidth {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide-item.active {
  opacity: 1;
}

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

.slideshow-indicators {
  position: absolute;
  bottom: var(--spacing-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--spacing-sm);
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--color-white);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.5);
}

.indicator.active {
  background: var(--color-white);
}

/* Homepage specific styles */
.homepage .main-content {
  background: var(--color-white);
}

.homepage .content-section {
  padding-top: var(--spacing-xl);
}

/* ===== CONTENT SECTION ===== */
.content-section {
  padding: var(--spacing-xl) 0;
}

.intro-text {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.intro-text h1 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: var(--spacing-md);
  color: var(--color-black);
}

.intro-text p {
  font-size: 1.2rem;
  color: var(--color-medium-gray);
  line-height: 1.8;
}

/* ===== FEATURE GRID ===== */
.feature-grid {
  display: grid;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.feature-item {
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.feature-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.feature-item:hover .feature-image img {
  transform: scale(1.05);
}

.feature-content {
  padding: var(--spacing-lg);
}

.feature-content h2 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
  color: var(--color-black);
}

.feature-content p {
  font-size: 1rem;
  color: var(--color-medium-gray);
  line-height: 1.8;
}

.feature-note {
  display: block;
  font-size: 0.8rem;
  color: var(--color-medium-gray);
  opacity: 0.7;
  margin-top: var(--spacing-sm);
  font-style: italic;
}

/* ===== LAYOUT VARIATIONS ===== */
.layout-two-col {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
  align-items: stretch;
}

.layout-two-col > * {
  min-height: 100%;
}

.layout-two-col-reverse {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0;
  align-items: stretch;
}

.layout-two-col-reverse > * {
  min-height: 100%;
}

.layout-three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 300;
  line-height: 1.3;
  color: var(--color-black);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.1rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--spacing-sm);
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== FOCUS STATES ===== */
button:focus,
a:focus {
  outline: 2px solid var(--color-medium-gray);
  outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  .hero-section {
    height: auto;
  }
  
  .feature-item {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}