/* Material 3 Components */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  height: 40px;
  border-radius: var(--md-sys-shape-corner-full);
  font-family: var(--md-sys-typescale-font-family);
  font-size: var(--md-sys-typescale-label-large-size);
  font-weight: var(--md-sys-typescale-label-large-weight);
  letter-spacing: 0.1px;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s, color 0.2s;
  text-decoration: none;
  border: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-filled {
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}

.btn-filled:hover {
  box-shadow: var(--md-sys-elevation-level1);
  /* M3 uses state layers, simplified here with opacity/brightness */
  filter: brightness(1.08);
}

.btn-outlined {
  background-color: transparent;
  color: var(--md-sys-color-primary);
  border: 1px solid var(--md-sys-color-outline);
}

.btn-outlined:hover {
  background-color: rgba(216, 158, 26, 0.08); /* Primary with 8% opacity */
}

/* Cards */
.m3-card {
  border-radius: var(--md-sys-shape-corner-medium);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.m3-card-elevated {
  background-color: var(--md-sys-color-surface-container);
  box-shadow: var(--md-sys-elevation-level1);
  transition: box-shadow 0.2s, transform 0.2s;
}

.m3-card-elevated:hover {
  box-shadow: var(--md-sys-elevation-level2);
  transform: translateY(-2px);
}

.m3-card-filled {
  background-color: var(--md-sys-color-surface-variant);
  border: none;
}

.m3-card-outlined {
  background-color: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline-variant);
}

.m3-card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.m3-card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.m3-card-title {
  margin: 0 0 8px 0;
}

.m3-card-text {
  color: var(--md-sys-color-on-surface-variant);
  margin: 0;
  flex-grow: 1;
}

/* Navigation Bar */
.navbar {
  background-color: var(--md-sys-color-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  box-shadow: var(--md-sys-elevation-level1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  flex: 1;
}

.nav-brand img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  flex: 2;
}

.nav-cta {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-link {
  color: var(--md-sys-color-on-surface);
  font-weight: 500;
  font-size: 16px;
  display: flex;
  align-items: center;
}

.nav-link:hover {
  color: var(--md-sys-color-primary);
}

/* Dropdowns */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--md-sys-color-surface-container);
  min-width: 220px;
  box-shadow: var(--md-sys-elevation-level2);
  border-radius: var(--md-sys-shape-corner-small);
  z-index: 200;
}

.dropdown:hover > .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 12px 16px;
  color: var(--md-sys-color-on-surface);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

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

.dropdown-item:hover {
  background-color: var(--md-sys-color-surface-variant);
  color: var(--md-sys-color-primary);
}

.nested-dropdown {
  position: relative;
}

.nested-dropdown-menu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background-color: var(--md-sys-color-surface-container);
  min-width: 220px;
  box-shadow: var(--md-sys-elevation-level2);
  border-radius: var(--md-sys-shape-corner-small);
}

.nested-dropdown:hover > .nested-dropdown-menu {
  display: block;
}

/* Hero Section */
.hero {
  position: relative;
  background-color: var(--md-sys-color-surface-variant);
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 24px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-content h1 {
  color: #ffffff;
}

.hero-content p {
  font-size: var(--md-sys-typescale-title-large-size);
  margin-bottom: 32px;
  color: #f0f0f0;
}

/* Footer */
.footer {
  background-color: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface);
  padding: 48px 24px 24px 24px;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h3 {
  margin-bottom: 16px;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--md-sys-color-outline-variant);
}

@media (max-width: 768px) {
  .nav-links { display: none; /* simple mobile hide for now */ }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Entrance Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
