/* =========================================
   1. Variables & Design System
   ========================================= */
:root {
  /* Color Palette - Premium Beige & Earth Tones */
  --color-bg: #ffffff;
  /* Pure White for cleaner look */
  --color-surface: #ffffff;
  /* Seamless white surface */
  --color-text: #1a1a1a;
  /* Sharp black for better contrast */
  --color-text-light: #666666;
  --color-accent: #d5c7b3;
  /* Main beige */
  --color-accent-dark: #b5a48d;
  /* Darker accent for interactions */
  --color-border: #eaeaea;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}



/* =========================================
   2. Reset & Base Styles
   ========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

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

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* =========================================
   3. Utility Classes
   ========================================= */
.container {
  width: 90%;
  max-width: 1400px;
  /* Increased from 1200px */
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.section {
  padding: var(--spacing-xl) 0;
}

/* Full width section backgrounds */
.section-full {
  width: 100%;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* =========================================
   3.5 Top Announcement Bar
   ========================================= */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 36px;
  background-color: #2c2a26;
  /* Warm charcoal */
  color: #fff;
  z-index: 1001;
  /* Above navbar */
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
}

.top-bar a {
  color: var(--color-accent);
  text-decoration: none;
  margin-left: 10px;
  transition: color 0.2s ease;
}

.top-bar a:hover {
  text-decoration: underline;
  color: #fff;
}

/* =========================================
   4. Navigation (Professional Upgrade)
   ========================================= */
.navbar {
  position: fixed;
  top: 36px;
  /* Below top bar */
  left: 0;
  width: 100%;
  padding: 1.2rem 0;
  /* More breathing room */
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  /* Stronger, premium glass effect */
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  /* Extremely subtle border */
  transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.navbar.scrolled {
  padding: 0.8rem 0;
  /* Compact on scroll */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  background: rgba(255, 255, 255, 0.95);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  /* Needed for absolute positioning context */
  height: 100%;
  /* Ensure full height */
}

.logo img {
  height: 48px;
  width: auto;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
  /* Keep logo above */
}

/* ... logo:hover ... */
.logo:hover img {
  transform: scale(1.02);
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 3rem;
  align-items: center;
  width: max-content;
  /* Ensure it takes necessary width */
}



.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  overflow: hidden;
  padding: 4px 0;
  transition: color 0.3s ease;
}

/* Sophisticated Link Animation */
.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-text);
  transform: translateX(-101%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: #000;
}

.nav-link:hover::before {
  transform: translateX(0);
}

.btn-primary {
  padding: 0.75rem 1.5rem;
  background-color: #111;
  color: #fff;
  border-radius: 2px;
  /* Sharper corners for B2B feel */
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: transparent;
  color: #111;
  border-color: #111;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  color: var(--color-text);
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

/* =========================================
   5. Hero Section
   ========================================= */
.hero {
  padding-top: calc(var(--spacing-xl) + 60px);
  padding-bottom: var(--spacing-xl);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

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

.hero h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
}

.hero p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
  max-width: 90%;
}

.hero-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 6rem;
  /* Push image further down as requested */
}

.hero-image img {
  width: 100%;
  height: auto;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image:hover img {
  transform: scale(1.03);
}

/* =========================================
   6. About / Leadoff
   ========================================= */
.about-section {
  padding: var(--spacing-xl) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  position: relative;
  display: inline-block;
}

.about-content h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
}

.about-lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
  line-height: 1.5;
}

.about-content p {
  color: var(--color-text-light);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.about-highlight {
  background-color: #f9f7f4;
  border-left: 4px solid var(--color-accent);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 4px 4px 0;
}

.about-highlight p {
  margin-bottom: 0;
  color: var(--color-text);
}

/* Image Styling */
.about-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease;
  display: block;
}

.about-image:hover {
  transform: scale(1.02);
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}

/* =========================================
   7. Product Showcase (Grid)
   ========================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.product-card {
  position: relative;
  /* group: hover; removed invalid property */
}

.card-image {
  background-color: transparent;
  /* Removed background for seamless look */
  border-radius: 4px;
  overflow: visible;
  /* Allow shadow to spill out */
  margin-bottom: var(--spacing-sm);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5%;
  /* Reduced padding slightly */
  transition: transform 0.5s ease;
  filter: drop-shadow(0 10px 20px rgba(181, 164, 141, 0.2));
  /* Soft beige shadow for floating effect */
}

.product-card:hover .card-image img {
  transform: scale(1.08) translateY(-5px);
  filter: drop-shadow(0 15px 30px rgba(181, 164, 141, 0.3));
}

.card-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.card-info p {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* =========================================
   8. Footer
   ========================================= */
footer {
  background-color: #1a1918;
  color: #fff;
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.footer-column h4 {
  margin-bottom: var(--spacing-md);
  font-size: 1.1rem;
  color: var(--color-accent);
}

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

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

.footer-links a {
  color: #aaa8a5;
}

.footer-links a:hover {
  color: #fff;
}

.copyright {
  text-align: center;
  color: #555;
  font-size: 0.85rem;
}

/* =========================================
   9. Responsive Design
   ========================================= */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 100px;
    gap: var(--spacing-md);
  }

  .nav-links {
    display: none;
    /* Mobile menu needed */
  }

  .menu-toggle {
    display: block;
  }

  /* Mobile Menu Styles */
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    transform: none;
    background: var(--color-bg);
    padding: var(--spacing-md);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--color-border);
  }
}

/* =========================================
   10. Color Palette & Animations
   ========================================= */
@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }

  60% {
    transform: scale(1.1);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.color-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 80px;
  opacity: 0;
  /* Start hidden for animation */
  animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Staggered Delays */
.color-swatch:nth-child(1) {
  animation-delay: 0.1s;
}

.color-swatch:nth-child(2) {
  animation-delay: 0.15s;
}

.color-swatch:nth-child(3) {
  animation-delay: 0.2s;
}

.color-swatch:nth-child(4) {
  animation-delay: 0.25s;
}

.color-swatch:nth-child(5) {
  animation-delay: 0.3s;
}

.color-swatch:nth-child(6) {
  animation-delay: 0.35s;
}

.color-swatch:nth-child(7) {
  animation-delay: 0.4s;
}

.color-swatch:nth-child(8) {
  animation-delay: 0.45s;
}

.color-swatch:nth-child(9) {
  animation-delay: 0.5s;
}

.color-swatch:nth-child(10) {
  animation-delay: 0.55s;
}

.color-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3), 0 4px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  /* Subtle border for definition */
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  cursor: pointer;
}

.color-swatch:hover .color-circle {
  transform: scale(1.1) translateY(-2px);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4), 0 12px 24px rgba(0, 0, 0, 0.12);
}

.color-swatch span {
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-align: center;
  transition: color 0.2s ease;
}

.color-swatch:hover span {
  color: var(--color-text);
  font-weight: 500;
}

/* =========================================
   11. B2B Models
   ========================================= */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  max-width: 900px;
  margin: 0 auto;
  align-items: start;
  /* Fix: Prevent empty card stretching */
}

.model-card {
  background: white;
  padding: var(--spacing-md);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.model-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
}

.model-card h3 {
  margin-bottom: var(--spacing-sm);
  font-size: 1.4rem;
}

.model-card p {
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
}

.model-benefits {
  list-style: none;
  text-align: left;
  margin: 0 auto;
  display: inline-block;
}

.model-benefits li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-text);
}

.model-benefits li::before {
  content: "✓";
  color: var(--color-accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* =========================================
   12. Interactive Color Palette
   ========================================= */
.palette-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
}

.color-preview {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.preview-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto var(--spacing-sm);
  box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.4), 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: background-color 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.color-grid-interactive {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  max-width: 800px;
}

.swatch-btn {
  background: none;
  border: none;
  padding: 4px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.swatch-btn .swatch-color {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.swatch-btn:hover {
  transform: translateY(-2px);
}

.swatch-btn.active {
  border-color: var(--color-text);
  transform: scale(1.1);
}

/* =========================================
   13. Interactive B2B Models (Expandable)
   ========================================= */
.expandable-card {
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: #fff;
  padding: var(--spacing-md);
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.expandable-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.expandable-card.active {
  border-color: var(--color-accent);
  box-shadow: 0 15px 40px rgba(181, 164, 141, 0.15);
  /* Subtle beige glow */
  background-color: #fdfbf9;
  /* Very subtle warm tint */
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.premium-title {
  font-size: 1.4rem;
  margin-bottom: 0 !important;
  transition: color 0.3s ease;
}

.expandable-card.active .premium-title {
  color: #000;
}

.toggle-btn {
  font-size: 1.5rem;
  background: none;
  border: 1px solid var(--color-border);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.expandable-card.active .toggle-btn {
  transform: rotate(180deg);
  /* Smoother full rotation */
  background-color: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.card-teaser {
  color: var(--color-text);
  margin-bottom: 0;
  line-height: 1.6;
  transition: opacity 0.3s ease;
}

/* Hide teaser when active to make space or keep it? 
   Better to keep it as intro. */

.card-details {
  display: grid;
  /* Use grid for max-height transition hack */
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.6s ease,
    margin-top 0.6s ease,
    padding-top 0.6s ease;
  opacity: 0;
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid transparent;
}

.expandable-card.active .card-details {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top-color: rgba(0, 0, 0, 0.06);
}

.card-details-inner {
  overflow: hidden;
  transform: translateY(10px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.expandable-card.active .card-details-inner {
  transform: translateY(0);
}

.card-details p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--color-text-light);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.expandable-card.active .card-details p {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger paragraph animations */
.expandable-card.active .card-details p:nth-child(1) {
  transition-delay: 0.1s;
}

.expandable-card.active .card-details p:nth-child(2) {
  transition-delay: 0.2s;
}

.expandable-card.active .card-details p:nth-child(3) {
  transition-delay: 0.3s;
}

.expandable-card.active .card-details p:nth-child(4) {
  transition-delay: 0.4s;
}

.card-details p:last-child {
  margin-bottom: 0;
}
/* =========================================
   14. Premium Contact Form
   ========================================= */
.contact-form {
    background-color: #ffffff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    max-width: 550px;
    margin: 2rem auto 0;
    border: 1px solid rgba(0,0,0,0.02);
}

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

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--color-border);
    background-color: #fafafa;
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--color-text);
    transition: all 0.3s ease;
    outline: none;
    -webkit-appearance: none;
}

.form-input:hover {
    border-color: #d1d1d1;
    background-color: #fff;
}

.form-input:focus {
    border-color: var(--color-text);
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.form-input::placeholder {
    color: #999;
    transition: color 0.3s ease;
}

.form-input:focus::placeholder {
    color: #ccc;
    transform: translateX(5px);
}

textarea.form-input {
    min-height: 150px;
    resize: vertical;
}

/* Update Button in Form context to be full width and premium */
.contact-form .btn-primary {
    width: 100%;
    padding: 1.1rem;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 1rem;
    border-radius: 6px;
    background-color: var(--color-text); /* Black button */
    color: #fff;
    font-weight: 500;
}
.contact-form .btn-primary:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
