:root {
  --primary: #719732;
  --primary-dark: #4A6520;
  --primary-light: #8FB840;
  --accent: #7D4E1F;
  --accent-gold: #B07D3A;
  --accent-light: #E5D0BF;
  --accent-pale: #F5EDE4;
  --text: #2d2d2d;
  --text-muted: #6b6b5f;
  --border: #D8C9B5;
  --bg: #F7F4EE;
  --white: #ffffff;
  --green: #3D6B12;
  --green-bg: #EBF2DC;
  --blue: #2B5BA8;
  --blue-bg: #E5EDFA;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Firefox scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg);
}

body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary-dark);
}

h1 { font-size: 42px; line-height: 1.2; }
h2 { font-size: 32px; }
h3 { font-size: 20px; }
h4 { font-size: 16px; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 500;
}

.gold-text {
  color: var(--accent-gold);
}

.section-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 8px;
}

/* Buttons */
.btn {
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  border: none;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--primary);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn.btn-outline-gold {
  background: transparent;
  color: var(--accent-gold);
  border: 2px solid var(--accent-gold);
}

.btn.btn-outline-gold:hover {
  background: var(--accent-gold);
  color: #fff;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

/* Header */
.header {
  z-index: 1000;
}

.navbar {
  padding: 12px 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 45px;
  width: auto;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 2px;
}

.nav-link {
  color: var(--text) !important;
  font-weight: 500;
  margin-left: 20px;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
}

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-search {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
}

.btn-search:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-text {
  color: #fff;
  padding: 40px 0;
}

.hero-text .eyebrow {
  color: var(--accent-light);
}

.hero-text h1 {
  color: #fff;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-btn {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* Stats Section */
.stats-section {
  padding: 60px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  margin-bottom: 8px;
}

/* Products Section */
.products-section {
  padding: 80px 0;
  background: var(--bg);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-image {
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--bg);
  display: block;
}

.product-image > a {
  display: block;
}

.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(113, 151, 50, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-info {
  padding: 20px;
}

.product-category {
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.product-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.product-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.product-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-gold);
}

.price-unit {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}

/* About Section */
.about-section {
  padding: 80px 0;
  background: var(--white);
}

.about-image img {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-content {
  padding-left: 40px;
}

.about-content h2 {
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.about-features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 500;
}

/* Studio Partnership Section */
.studio-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  text-align: center;
}

.studio-content {
  color: #fff;
}

.studio-content .eyebrow {
  color: var(--accent-light);
}

.studio-content h2 {
  color: #fff;
  margin-bottom: 16px;
}

.studio-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 40px;
}

.studio-benefits {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.benefit-item {
  text-align: center;
  max-width: 200px;
}

.benefit-item i {
  font-size: 32px;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.benefit-item h4 {
  color: #fff;
  margin-bottom: 8px;
}

.benefit-item p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.studio-content .btn-primary {
  background: var(--accent-light);
  color: var(--primary-dark);
}

.studio-content .btn-primary:hover {
  background: #fff;
}

/* Testimonials Section */
.testimonials-section {
  padding: 80px 0;
  background: var(--accent-pale);
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 16px);
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  height: 450px;
  display: flex;
  flex-direction: column;
}

/* Flip Card Styles */
.testimonial-flip-card {
  width: 320px;
  perspective: 1000px;
  height: 350px;
}

.testimonial-flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.testimonial-flip-card:hover .testimonial-flip-card-inner {
  transform: rotateY(180deg);
}

.testimonial-flip-card-front,
.testimonial-flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-flip-card-front {
  background: var(--white);
}

.testimonial-flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.testimonial-flip-card-back {
  background: var(--white);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 25px;
}

.testimonial-name-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  padding: 12px;
  text-align: center;
}

.testimonial-name {
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
}

.testimonial-flip-card-back .testimonial-content {
  flex: 1;
  display: flex;
  align-items: center;
}

.testimonial-flip-card-back .testimonial-content p {
  font-size: 14px;
  color: var(--text-dark);
  font-style: italic;
  line-height: 1.7;
  margin: 0;
}

.testimonial-flip-card-back .testimonial-author {
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.testimonial-flip-card-back .author-name {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 15px;
}

.testimonial-flip-card-back .author-title {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Testimonials Wrapper */
.testimonials-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.testimonials-carousel {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
  padding: 20px 0;
  min-width: max-content;
  margin: 0 auto;
}

/* Testimonials Section */
.testimonials-section {
  padding: 80px 0;
  background: var(--accent-pale);
  overflow: hidden;
}

.testimonial-content p {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.author-name {
  font-weight: 600;
  color: var(--primary-dark);
}

.author-title {
  font-size: 12px;
  color: var(--text-muted);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
  position: relative;
  z-index: 100;
}

.carousel-prev,
.carousel-next {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--white);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 101;
  pointer-events: auto;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--primary);
  color: #fff;
}

/* Process Section */
.process-section {
  padding: 80px 0;
  background: var(--white);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.process-item {
  position: relative;
}

.process-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4/3;
}

.process-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.process-image:hover img {
  transform: scale(1.05);
}

.process-overlay {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-number {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}

.process-title {
  margin-top: 15px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

/* Blog Section */
.blog-section {
  padding: 80px 0;
  background: var(--bg);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: 24px;
}

.blog-category {
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.blog-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.blog-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.blog-link {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-link:hover {
  text-decoration: underline;
}

/* Newsletter Section */
.newsletter-section {
  padding: 60px 0;
  background: var(--accent-light);
  text-align: center;
}

.newsletter-content h3 {
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.newsletter-content p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background: var(--white);
}

.contact-form-wrapper {
  padding-right: 20px;
}

.contact-info-section {
  padding-left: 20px;
}

.contact-form {
  background: var(--accent-pale);
  padding: 30px;
  border-radius: 12px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.6;
  background: var(--white);
}

.contact-form select {
  height: auto;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234A6520' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-info {
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.info-item i {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.info-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.info-value {
  color: var(--primary-dark);
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary);
  color: #fff;
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 250px;
}

.footer-logo {
  height: 40px;
  margin-bottom: 12px;
}

.footer-brand .brand-name {
  color: #fff;
  display: block;
  margin-bottom: 12px;
}

.brand-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-links h4 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

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

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
}

/* Search Modal */
.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-body {
  padding: 30px;
}

.modal-body .close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  color: var(--text-muted);
}

#searchForm {
  display: flex;
  gap: 12px;
}

#searchForm input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* Success Modal */
.success-icon {
  font-size: 60px;
  color: var(--green);
  margin-bottom: 20px;
}

.success-icon i {
  background: var(--green-bg);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* Floating Contact Us Button */
.floating-contact-btn {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: #fff;
  padding: 14px 10px;
  border-radius: 8px 0 0 8px;
  text-decoration: none;
  writing-mode: vertical-lr;
  letter-spacing: 1px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 999;
  box-shadow: -2px 0 12px rgba(0,0,0,0.12);
  transition: background 0.3s;
}

.floating-contact-btn:hover {
  background: var(--primary-dark);
  color: #fff;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  
  .navbar-brand .brand-name {
    display: none;
  }
  
  .hero-ctas {
    flex-direction: column;
  }
  
  .stats-section {
    padding: 40px 0;
  }
  
  .stat-number {
    font-size: 32px;
  }
  
  .products-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .about-content {
    padding-left: 0;
    margin-top: 30px;
  }
  
  .studio-benefits {
    flex-direction: column;
    align-items: center;
  }
  
  .testimonial-card,
  .testimonial-flip-card {
    flex: 0 0 100%;
  }
  
  .contact-form-wrapper,
  .contact-info-section {
    padding: 0;
  }
  
  .contact-info-section {
    margin-top: 30px;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 992px) {
  .header-actions .btn-primary {
    display: none;
  }
  
  .testimonial-flip-card {
    width: 280px;
    height: 300px;
  }
  
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .testimonial-flip-card {
    width: 100%;
    height: 280px;
    max-width: 320px;
  }
  
  .process-grid {
    grid-template-columns: 1fr;
  }
}