/* ===================================
   Dynamic Solutions 3D - Wooj Style
   =================================== */

:root {
  --bg-color: #f8f7ed; /* Wooj-style off-white/beige */
  --text-main: #111111;
  --text-muted: #555555;
  --border-color: #E5E5E5;
  --accent: #000000;
  --transition-speed: 0.3s;
  --max-width: 1400px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  background: var(--bg-color);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

html { scroll-behavior: smooth; }

/* Announcement Bar */
.announcement-bar {
  background: var(--text-main);
  color: #fff;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Navigation */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.4rem;
  color: #14133c;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  margin-left: 2rem;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}

.nav-links a:hover { opacity: 0.6; }

/* Typography */
h1, h2, h3 {
  margin-top: 0;
  font-weight: 500;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); margin-bottom: 2rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.25rem; font-weight: 600; }

p { color: var(--text-muted); font-size: 1rem; }

/* Sections */
section {
  padding: 5rem 5%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-divider {
  border-top: 1px solid var(--border-color);
}

.text-center-section {
  text-align: center;
  max-width: 800px;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Pushes content to the bottom */
  align-items: flex-start;   /* Aligns content to the left */
  text-align: left;          /* Left-aligns the text itself */
  min-height: 80vh;          /* Gives the hero section enough height */
  padding: 4rem 5%;          /* Adds breathing room around the edges */
  color: #ffffff;
  overflow: hidden;
  max-width: 100%;
  width: 100%;
  margin: 0;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

/* Semi-transparent dark overlay so text is always readable regardless of the image */
.hero-slideshow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); 
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px; /* Keeps the text from stretching too wide on large screens */
}

.hero p {
  max-width: 600px;
  margin: 0 0 1rem 0; /* Removed the 'auto' margin that was centering it */
  font-size: 1.1rem;
  color: #ffffff; 
}

/* Adjust button colors for the dark hero background */
.hero .btn-primary {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}
.hero .btn-primary:hover {
  background: transparent;
  color: #ffffff;
}

.hero .btn-secondary {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}
.hero .btn-secondary:hover {
  background: #ffffff;
  color: #000000;
}
/* ------------------------------------------------ */

/* Buttons */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn-primary, .btn-secondary, button[type="submit"] {
  display: inline-block;
  padding: 1rem 2.5rem;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 40px; /* Pill shape */
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid var(--accent);
}

.btn-primary, button[type="submit"] {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover, button[type="submit"]:hover {
  background: transparent;
  color: var(--accent);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
}

/* Grid & Product Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 3rem 2rem;
}

.product-card {
  text-align: left;
}

.product-image-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: #EFEFEA;
  margin-bottom: 1.5rem;
}

.product-price {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-main);
  /* This spacing separates it cleanly from the title and the description */
  margin: 0.25rem 0 0.75rem 0 !important; 
}

.product-info p {
  font-size: 0.95rem;
  margin: 0;
}

/* Carousels */
.image-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  background: #EFEFEA;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.carousel-images { height: 100%; }

.carousel-image {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-image.active { display: block; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: var(--accent);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0 1rem;
}

.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

.carousel-dots {
  position: absolute;
  bottom: 15px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.3);
  cursor: pointer;
}

.dot.active { background: var(--accent); }

/* Forms */
.minimal-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
  text-align: left;
}

.minimal-form input, .minimal-form textarea {
  width: 100%;
  padding: 1rem 0;
  border: none;
  border-bottom: 1px solid var(--border-color);
  background: transparent;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-main);
}

.minimal-form input:focus, .minimal-form textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 5%;
  font-size: 0.9rem;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent);
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: white;
  padding: 0.5rem 1rem;
  z-index: 2000;
}
.skip-link:focus { top: 0; }