/* Wood & Power - Vintage Design System */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
  /* Color Palette - Vintage Industrial */
  --parchment: #f9f6ef;
  --parchment-dark: #f0e9d7;
  --iron: #1e2022;
  --iron-light: #2c2f33;
  --gold: #d4af37;
  --gold-dark: #b69225;
  --gold-pale: #fce19a;
  --rust: #a6522c;
  --rust-light: #c0693f;
  --steel: #7d8b99;
  --shadow: rgba(0, 0, 0, 0.12);
  --shadow-deep: rgba(0, 0, 0, 0.22);
  --border-double: 3px double var(--iron);
  
  /* Fonts */
  --font-serif-header: 'DM Serif Display', serif;
  --font-serif-body: 'Playfair Display', serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--parchment);
  color: var(--iron);
  font-family: var(--font-sans);
  font-size: 16px;
  overflow-x: hidden;
}

/* Vintage Paper Grain Texture Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.045;
  pointer-events: none;
  z-index: 10000;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

body {
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--parchment-dark);
  border-left: 1px solid rgba(30, 32, 34, 0.1);
}
::-webkit-scrollbar-thumb {
  background: var(--iron);
  border: 3px solid var(--parchment-dark);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--rust);
}

/* Typography & Ornaments */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif-header);
  font-weight: 400;
  line-height: 1.2;
}

p {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--iron-light);
}

.vintage-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem auto;
  width: 100%;
  max-width: 300px;
}
.vintage-divider::before, .vintage-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--iron);
  opacity: 0.3;
}
.vintage-divider::before {
  margin-right: 1rem;
}
.vintage-divider::after {
  margin-left: 1rem;
}
.vintage-divider-dot {
  font-size: 0.8rem;
  color: var(--rust);
  transform: rotate(45deg);
  background-color: var(--rust);
  width: 8px;
  height: 8px;
  display: inline-block;
}

.vintage-tagline {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: var(--rust);
  font-weight: 700;
}

/* Base Layout utility */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(249, 246, 239, 0.95);
  border-bottom: 1px solid rgba(30, 32, 34, 0.1);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  padding: 1.2rem 0;
}

header.scrolled {
  padding: 0.6rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom: 2px solid var(--rust);
}

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

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--iron);
  gap: 0.8rem;
}

.logo-link img {
  height: 38px;
  width: auto;
  transition: var(--transition-smooth);
}

header.scrolled .logo-link img {
  height: 32px;
}

.logo-text {
  font-family: var(--font-serif-header);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  transition: var(--transition-smooth);
}

header.scrolled .logo-text {
  font-size: 1.25rem;
}

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

.nav-link {
  text-decoration: none;
  color: var(--iron);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  padding: 0.3rem 0;
  transition: var(--transition-smooth);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--rust);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--rust);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--iron);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
  background: linear-gradient(rgba(30, 32, 34, 0.4), rgba(30, 32, 34, 0.7)),
              url('./SiteImages/WP-Hero.jpg') no-repeat center center;
  background-size: cover;
  color: var(--parchment);
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to top, var(--parchment) 0%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
  position: relative;
  padding: 3rem;
  background: rgba(30, 32, 34, 0.45);
  backdrop-filter: blur(4px);
  border: 3px double rgba(249, 246, 239, 0.3);
  border-radius: 4px;
}

.hero-logo-img {
  max-width: 160px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
  animation: float 6s ease-in-out infinite;
}

.hero h1 {
  font-size: 3.8rem;
  font-family: var(--font-serif-header);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--parchment);
  text-transform: uppercase;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.hero-sub {
  font-family: var(--font-serif-body);
  font-size: 1.6rem;
  font-style: italic;
  margin-bottom: 2rem;
  color: var(--gold-pale);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.hero-desc {
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: rgba(249, 246, 239, 0.9);
  line-height: 1.8;
  font-weight: 300;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 1rem 2.2rem;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  z-index: 1;
}

.btn-primary {
  background-color: var(--rust);
  color: var(--parchment);
  border: 1px solid var(--rust);
  box-shadow: 0 4px 10px rgba(166, 82, 44, 0.3);
}

.btn-primary:hover {
  background-color: var(--rust-light);
  border-color: var(--rust-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(166, 82, 44, 0.5);
}

.btn-secondary {
  background-color: transparent;
  color: var(--parchment);
  border: 1.5px solid var(--parchment);
  margin-left: 1rem;
}

.btn-secondary:hover {
  background-color: var(--parchment);
  color: var(--iron);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(249, 246, 239, 0.2);
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Section Common */
section.section-pad {
  padding: 7rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4.5rem;
}

.section-header h2 {
  font-size: 2.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.bg-dark {
  background-color: var(--iron);
  color: var(--parchment);
}

.bg-dark p {
  color: rgba(249, 246, 239, 0.85);
}

.bg-dark .vintage-divider::before, .bg-dark .vintage-divider::after {
  background-color: var(--parchment);
}

/* Story Section */
.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story-text h3 {
  font-size: 1.8rem;
  font-family: var(--font-serif-header);
  color: var(--rust);
  margin-bottom: 1rem;
}

.story-text .lead {
  font-family: var(--font-serif-body);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--iron-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.story-text p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

.story-signature {
  font-family: var(--font-serif-body);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--rust);
  margin-top: 2rem;
}

.story-img-container {
  position: relative;
}

.story-img-frame {
  border: 1px solid var(--iron);
  padding: 10px;
  background-color: var(--parchment-dark);
  box-shadow: 0 10px 30px var(--shadow);
  transform: rotate(1deg);
  transition: var(--transition-slow);
}

.story-img-frame:hover {
  transform: rotate(0deg) scale(1.02);
}

.story-img-frame img {
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(1.02) sepia(0.08);
}

/* Gallery Section */
.gallery-filters {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: 1px solid rgba(30, 32, 34, 0.2);
  color: var(--iron-light);
  padding: 0.6rem 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--iron);
  color: var(--parchment);
  border-color: var(--iron);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
}

.gallery-item {
  background: var(--parchment-dark);
  border: 1px solid rgba(30, 32, 34, 0.15);
  padding: 12px;
  border-radius: 2px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--rust);
}

.gallery-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid rgba(30, 32, 34, 0.1);
  background-color: #e5dfd0;
}

.gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
  filter: grayscale(0.1) sepia(0.08) contrast(1.05);
}

.gallery-item:hover .gallery-img-wrapper img {
  transform: scale(1.06);
  filter: grayscale(0) sepia(0) contrast(1);
}

.gallery-item-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--iron);
  color: var(--parchment);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
  z-index: 2;
}

.gallery-item:hover .gallery-item-badge {
  background-color: var(--rust);
}

.gallery-info {
  padding: 1rem 0.5rem 0.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gallery-info h3 {
  font-family: var(--font-serif-header);
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
  color: var(--iron);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.gallery-info h3 span {
  font-family: var(--font-serif-body);
  font-style: italic;
  font-size: 1rem;
  color: var(--rust);
}

.gallery-info p {
  font-size: 0.85rem;
  color: var(--iron-light);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.gallery-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.gallery-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: rgba(30, 32, 34, 0.05);
  color: var(--iron-light);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 32, 34, 0.95);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(8px);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  position: relative;
  max-width: 800px;
  width: 100%;
  height: 580px;
  background-color: var(--iron);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  overflow: hidden;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(18, 19, 20, 0.6);
  border: none;
  color: var(--parchment);
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 20;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition-smooth);
}

.lightbox-close:hover {
  background: var(--rust);
  color: #fff;
}

.lightbox-img-wrapper {
  width: 100%;
  height: 100%;
  background-color: var(--iron);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(18, 19, 20, 0.82);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 1.8rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--parchment);
  max-height: 60%;
  overflow-y: auto;
  z-index: 10;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.lightbox-title {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
  color: var(--parchment);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.lightbox-category {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-pale);
  margin-bottom: 0.8rem;
}

.lightbox-description {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(249, 246, 239, 0.85);
  margin-bottom: 1.2rem;
}

.lightbox-specs {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1rem;
  margin-bottom: 1.2rem;
}

.lightbox-specs-title {
  font-family: var(--font-serif-header);
  font-size: 1rem;
  color: var(--gold-pale);
  margin-bottom: 0.5rem;
}

.lightbox-specs-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.5rem;
  font-size: 0.85rem;
}

.lightbox-specs-list li {
  color: rgba(249, 246, 239, 0.8);
}

.lightbox-specs-list li strong {
  color: var(--parchment);
}

.lightbox-cta {
  margin-top: 0.8rem;
}

/* Power Section */
.power-section {
  background-color: var(--iron);
  color: var(--parchment);
}

.power-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.power-features {
  display: grid;
  grid-template-rows: repeat(3, auto);
  gap: 2rem;
}

.power-feature-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background-color: rgba(249, 246, 239, 0.03);
  border: 1px solid rgba(249, 246, 239, 0.1);
  transition: var(--transition-smooth);
}

.power-feature-card:hover {
  background-color: rgba(249, 246, 239, 0.05);
  border-color: var(--gold-pale);
  transform: translateX(5px);
}

.power-feature-icon {
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--gold-pale);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border-radius: 2px;
  flex-shrink: 0;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.power-feature-info h3 {
  font-family: var(--font-serif-header);
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
  color: var(--gold-pale);
}

.power-feature-info p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(249, 246, 239, 0.8);
}

.power-visual {
  position: relative;
}

.power-visual-frame {
  border: 1px solid var(--gold-pale);
  padding: 10px;
  background-color: #27292c;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.power-visual-frame img {
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(1.05) brightness(0.95);
}

.power-badge-overlay {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background-color: var(--rust);
  color: var(--parchment);
  font-family: var(--font-serif-header);
  font-size: 1.2rem;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(249, 246, 239, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Order Form Configurator */
.configurator-wrapper {
  background-color: var(--parchment-dark);
  border: 3px double var(--iron);
  border-radius: 4px;
  padding: 3.5rem;
  box-shadow: 0 15px 40px var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  position: relative;
}

/* Vintage watermark logo background */
.configurator-wrapper::after {
  content: "";
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 120px;
  height: 100px;
  background: url('./wood-power-icon.png') no-repeat center center;
  background-size: contain;
  opacity: 0.05;
  pointer-events: none;
}

.configurator-intro h3 {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  color: var(--iron);
}

.configurator-intro p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--iron-light);
  margin-bottom: 2rem;
}

.configurator-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.config-step-card {
  background-color: var(--parchment);
  border-left: 4px solid var(--rust);
  padding: 1.2rem;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.config-step-card h4 {
  font-family: var(--font-serif-header);
  font-size: 1.1rem;
  color: var(--iron);
  margin-bottom: 0.3rem;
}

.config-step-card p {
  font-size: 0.85rem;
  color: var(--iron-light);
}

.configurator-form-container {
  background-color: var(--parchment);
  border: 1px solid rgba(30, 32, 34, 0.15);
  padding: 2.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--iron);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background-color: var(--parchment-dark);
  border: 1px solid rgba(30, 32, 34, 0.2);
  color: var(--iron);
  padding: 0.8rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--rust);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(166, 82, 44, 0.15);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e2022' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
  padding-right: 2.5rem;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.5rem 0 1.5rem;
}

.checkbox-group input {
  width: 16px;
  height: 16px;
  accent-color: var(--rust);
  cursor: pointer;
}

.checkbox-group label {
  margin-bottom: 0;
  cursor: pointer;
}

/* Success Message Alert */
.submit-status {
  padding: 1rem;
  border-radius: 2px;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: none;
  font-weight: 500;
}

.submit-status.active {
  display: block;
}

.submit-status.success {
  background-color: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
}

.submit-status.error {
  background-color: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
}

/* Footer styling */
footer {
  background-color: #121314;
  color: var(--parchment-dark);
  padding: 5rem 0 3rem;
  border-top: 2px solid var(--rust);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  font-family: var(--font-serif-header);
  font-size: 1.2rem;
  color: var(--gold-pale);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-about .logo-link {
  color: var(--parchment);
  margin-bottom: 1.2rem;
}

.footer-about p {
  color: rgba(249, 246, 239, 0.65);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  text-decoration: none;
  color: rgba(249, 246, 239, 0.65);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--gold-pale);
  padding-left: 5px;
}

.footer-contact p {
  color: rgba(249, 246, 239, 0.65);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact p strong {
  color: var(--parchment);
}

.footer-social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-btn {
  width: 36px;
  height: 36px;
  background-color: rgba(249, 246, 239, 0.05);
  color: var(--parchment-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition-smooth);
  border: 1px solid rgba(249, 246, 239, 0.1);
}

.social-btn:hover {
  background-color: var(--rust);
  color: var(--parchment);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(249, 246, 239, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(249, 246, 239, 0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: rgba(249, 246, 239, 0.5);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-bottom-links a:hover {
  color: var(--gold-pale);
}

/* --- Scroll-Driven Entry Reveal Animations --- */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal-up {
      from {
        opacity: 0;
        transform: translateY(40px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    
    .scroll-reveal {
      animation: reveal-up auto linear forwards;
      animation-timeline: view();
      animation-range: entry 10% cover 30%;
    }
  }
}

/* Fallback class for browsers without view() timeline support */
.scroll-reveal-fallback {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-fallback.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .story-img-frame {
    max-width: 500px;
    margin: 0 auto;
  }
  .power-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .configurator-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .lightbox-content {
    height: 75vh;
    max-height: 520px;
    padding: 0;
    overflow: hidden;
  }
  .lightbox-img-wrapper {
    height: 100%;
    aspect-ratio: auto;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .hero {
    padding: 5rem 0 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-content {
    padding: 1.5rem;
    margin: 0.5rem;
    width: 100%;
  }
  .hero-logo-img {
    max-width: 90px;
    margin-bottom: 1rem;
  }
  .hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
  }
  .hero-sub {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
  }
  .hero-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
  .hero-actions {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
  }
  .hero-actions .btn {
    margin: 0;
    padding: 0.8rem 1.2rem;
    font-size: 0.75rem;
    flex: 1;
    max-width: 150px;
    text-align: center;
  }
  .btn-secondary {
    margin-left: 0 !important;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: rgba(249, 246, 239, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--rust);
    padding: 1.5rem 0;
    gap: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  }
  .nav-menu.active {
    display: flex;
    animation: mobileMenuSlideDown 0.3s ease-out forwards;
  }
  .nav-menu li {
    width: 100%;
    text-align: center;
  }
  .nav-menu .nav-link {
    font-size: 1rem;
    padding: 0.5rem 0;
    display: block;
  }
  @keyframes mobileMenuSlideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .mobile-menu-btn {
    display: block;
  }
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .section-header h2 {
    font-size: 2.2rem;
  }
}
