/* CSS Variables for uniform design */
:root {
  --primary-light: #F5F7FA;
  --primary-accent: #C9A96E;
  --primary-main: #2B4C6F;
  --primary-dark: #1A2F4A;
  --text-dark: #333;
  --text-light: #666;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
  --max-width: 1200px;
  --transition: all 0.3s ease;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--primary-light);
  display: flex;
  flex-direction: column;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  height: 40px;
  text-decoration: none;
}

.logo-image {
  height: 100%;
  width: auto;
  max-height: 40px;
  object-fit: contain;
  transition: var(--transition);
}

.logo-image:hover {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-main);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-main);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-dark);
  margin: 5px 0;
  transition: var(--transition);
}

/* Main content wrapper */
main {
  flex: 1;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-main), var(--primary-dark));
  color: var(--white);
  padding: 5rem 0 3rem;
  text-align: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  text-align: left;
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
}

.hero .subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-block;
  padding: 14px 32px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}

.cta-primary {
  background-color: var(--primary-accent);
  color: var(--primary-dark);
}

.cta-primary:hover {
  background-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow);
}

.cta-secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.cta-secondary:hover {
  border-color: var(--white);
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.hero-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  mask-image: linear-gradient(to right, black 60%, transparent 100%),
              linear-gradient(to bottom, black 60%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image: linear-gradient(to right, black 60%, transparent 100%),
                      linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-composite: source-in;
}

.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

/* Content sections */
.content-section {
  padding: 4rem 0;
  background-color: var(--white);
}

.content-section:nth-child(even) {
  background-color: var(--primary-light);
}

.section-title {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  text-align: center;
}

/* Feature cards */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: none;
  box-shadow: 0 5px 20px var(--shadow);
  cursor: default;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-accent);
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-dark);
}

.feature-icon-bar {
  width: 50px;
  height: 4px;
  background: var(--primary-accent);
  border-radius: 2px;
  margin: 0 auto 1.25rem;
}

/* Stats Section */
.content-section.stats-section {
  background-color: var(--primary-dark);
  color: var(--white);
  min-height: auto;
  padding: 3.5rem 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-accent);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Section description (centered paragraph below section title) */
.section-description {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Steps Row (How It Works) */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-main);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.step-card h3 {
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.step-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Insight Teaser */
.insight-teaser {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.insight-teaser blockquote {
  border: none;
  margin: 2rem 0;
  padding: 0;
}

.insight-teaser blockquote p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-dark);
  font-style: italic;
}

.insight-link {
  display: inline-block;
  color: var(--primary-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}

.insight-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Product showcase */
.product-showcase {
  background: linear-gradient(to right, var(--primary-light), var(--white));
  padding: 4rem 0;
}

.product-intro {
  max-width: 720px;
}

.product-features {
  list-style: none;
  padding: 0;
}

.product-features li {
  margin: 1rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.feature-check {
  position: absolute;
  left: 0;
  color: var(--primary-accent);
}

/* Images */
img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.product-image {
  width: 100%;
  aspect-ratio: 3334 / 1800;
  max-height: 600px;
  border-radius: 10px;
  overflow: hidden;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-card {
  text-align: center;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.gallery-zoom-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.8rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.gallery-item:hover .gallery-zoom-hint {
  opacity: 1;
}

.gallery-title {
  margin: 0.75rem 0 0.25rem;
  color: var(--primary-dark);
  font-size: 1.1rem;
}

.gallery-desc {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-img {
  max-width: 95%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

/* About page styles */
.mission-box {
  background: var(--primary-light);
  padding: 2rem;
  border-radius: 10px;
  margin: 2rem 0;
  text-align: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* Contact section */
.contact-info {
  text-align: center;
  padding: 3rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 20px var(--shadow);
  max-width: 600px;
  margin: 0 auto;
}

.contact-details {
  margin: 2rem 0;
  text-align: left;
}

.contact-email {
  color: var(--primary-accent);
  text-decoration: none;
  transition: var(--transition);
}

.contact-email:hover {
  text-decoration: underline;
  color: var(--primary-main);
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: var(--white);
  text-align: center;
  padding: 2rem 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

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

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-accent);
  color: var(--primary-dark);
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Ensure minimum height for content sections (product page) */
.product-showcase {
  min-height: calc(100vh - 140px);
}

/* Insight post cards */
.insight-post {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 20px var(--shadow);
  margin-bottom: 2rem;
  overflow: hidden;
}

.insight-post img {
  width: 100%;
  border-radius: 0;
}

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  background: #f9f9f9;
}

.carousel-slide {
  display: none;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  width: 100%;
  display: block;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #333;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  transition: background 0.2s;
}

.carousel-arrow:hover {
  background: #fff;
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.carousel-dot.active {
  background: #fff;
}

.insight-post-body {
  padding: 1.5rem 2rem;
}

.insight-post-body p {
  margin: 0.5rem 0;
  color: var(--text-dark);
  line-height: 1.7;
}

.insight-post-meta {
  padding: 0 2rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  color: var(--text-light);
  font-size: 0.85rem;
}

.insight-tag {
  background: var(--primary-light);
  color: var(--primary-main);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 5px 20px var(--shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero {
    padding: 3rem 0 2rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-content {
    text-align: center;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .hero-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .hero-ctas {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .cta-button {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .steps-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .image-gallery {
    grid-template-columns: 1fr;
  }

  .logo {
    height: 35px;
  }

  .logo-image {
    max-height: 35px;
  }
}
