/* Renaissance Factory - Stone-Inspired Design System */

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  background: #f5f5f5;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
  color: #333;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
}

p {
  margin-bottom: 1rem;
}

/* Header Styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

/* Navigation */
nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
}

nav ul li {
  margin: 0 1rem;
}

nav a {
  color: #333;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #d4af37;
}

nav a[aria-current="page"] {
  color: #d4af37;
  font-weight: 600;
}

/* Language Toggle */
#language-toggle, #language-toggle-footer {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #333;
}

/* Hero Section */
.hero {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.hero-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.hero h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
  max-width: 90%;
  z-index: 2;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1;
}

.cta-buttons {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #d4af37;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background: #b8941f;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Section Styles */
.offerings, .featured, .testimonial, .sustainability,
.story, .commitment, .location, .culture,
.overview, .products, .process, .examples, .gallery, .form, .testimonials,
.robotic, .artisan, .quality, .timeline,
.case-studies, .prompt,
.details, .social, .faq {
  padding: 2rem;
  margin: 2rem 0;
}

.offerings, .featured, .overview, .products, .process, .examples, .gallery,
.robotic, .quality, .timeline, .case-studies, .details, .faq {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.testimonial, .sustainability {
  text-align: center;
  background: #333;
  color: #fff;
}

.testimonial blockquote {
  font-size: 1.25rem;
  font-style: italic;
  color: #d4af37;
}

/* Grid Layouts */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.grid article, .grid .product-item {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid article:hover, .grid .product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* Carousel */
.carousel {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding: 1rem 0;
  scroll-behavior: smooth;
}

.carousel article {
  flex: 0 0 300px;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.carousel img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* Filters */
.filters {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filters select {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #333;
}

/* Forms */
form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

form label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
}

form input, form select, form textarea {
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #333;
  transition: border-color 0.3s ease;
}

form input:focus, form select:focus, form textarea:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* Timeline */
.timeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.timeline-grid article {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #d4af37;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Case Studies */
.case-studies article {
  margin-bottom: 3rem;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.case-studies img {
  width: 100%;
  max-width: 400px;
  height: 250px;
  object-fit: cover;
  border-radius: 4px;
  margin: 1rem 0;
}

.case-studies blockquote {
  background: #f5f5f5;
  padding: 1rem;
  border-left: 4px solid #d4af37;
  font-style: italic;
  margin-top: 1rem;
}

/* FAQ */
.faq details {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq summary {
  padding: 1rem;
  background: #f5f5f5;
  cursor: pointer;
  font-weight: 600;
  user-select: none;
}

.faq summary:hover {
  background: #e0e0e0;
}

.faq details[open] summary {
  background: #d4af37;
  color: #fff;
}

.faq details p {
  padding: 1rem;
  margin: 0;
}

/* Footer */
footer {
  background: #333;
  color: #fff;
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
}

footer p {
  margin-bottom: 1rem;
}

.social {
  margin: 1rem 0;
}

.social a {
  display: inline-block;
  margin: 0 0.5rem;
  transition: transform 0.3s ease;
}

.social a:hover {
  transform: scale(1.1);
}

.social img {
  width: 32px;
  height: 32px;
  filter: invert(1);
}

/* Responsive Design */

/* Tablet - 768px and up */
@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .timeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .cta-buttons {
    flex-direction: row;
  }
  
  nav ul {
    display: flex;
  }
  
  .filters {
    justify-content: flex-start;
  }
}

/* Desktop - 1024px and up */
@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .timeline-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .process .grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .gallery .grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero h1 {
    font-size: 4rem;
  }
  
  header {
    padding: 1rem 2rem;
  }
  
  .offerings, .featured, .testimonial, .sustainability,
  .story, .commitment, .location, .culture,
  .overview, .products, .process, .examples, .gallery, .form, .testimonials,
  .robotic, .artisan, .quality, .timeline,
  .case-studies, .prompt,
  .details, .social, .faq {
    padding: 3rem;
  }
}

/* Mobile Navigation (for future enhancement) */
@media (max-width: 767px) {
  header {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 200px;
    text-align: center;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

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

.text-right {
  text-align: right;
}

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Focus Styles for Accessibility */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

/* Additional Styling for Complex Pages */

/* Contact Methods */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.contact-method {
  text-align: center;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-link {
  color: #d4af37;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

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

/* Form Enhancements */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

fieldset {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

legend {
  padding: 0 0.5rem;
  font-weight: 600;
  color: #333;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Case Study Styling */
.case-study {
  margin-bottom: 4rem;
  padding: 3rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.case-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .case-content {
    grid-template-columns: 1fr 1fr;
  }
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: #666;
}

.case-details, .case-challenge {
  margin: 1.5rem 0;
}

.case-details h4, .case-challenge h4 {
  color: #d4af37;
  margin-bottom: 0.5rem;
}

.case-testimonial {
  background: #f8f9fa;
  padding: 1.5rem;
  border-left: 4px solid #d4af37;
  margin: 1.5rem 0;
  font-style: italic;
  font-size: 1.1rem;
}

.case-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.case-images > img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

.case-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.case-image-grid img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

/* Gallery Styling */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 2rem 1rem 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h3 {
  margin-bottom: 0.5rem;
  color: white;
}

.gallery-overlay p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.project-tag {
  background: #d4af37;
  color: #333;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Technology Page Styling */
.technology-overview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin: 2rem 0;
}

@media (min-width: 1024px) {
  .technology-overview {
    grid-template-columns: 2fr 1fr;
  }
}

.tech-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.stat {
  text-align: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.stat h3 {
  font-size: 2rem;
  color: #d4af37;
  margin-bottom: 0.5rem;
}

.stat p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.tech-features {
  margin: 3rem 0;
}

.tech-feature {
  background: #f8f9fa;
  border-left: 4px solid #d4af37;
}

.partnership-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.flow-step {
  text-align: center;
  flex: 1;
  min-width: 200px;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.flow-arrow {
  font-size: 2rem;
  color: #d4af37;
  font-weight: bold;
}

@media (max-width: 767px) {
  .flow-arrow {
    transform: rotate(90deg);
  }
}

/* Process Steps */
.step-number {
  width: 40px;
  height: 40px;
  background: #d4af37;
  color: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
}

.process-step {
  text-align: center;
  position: relative;
}

.step-details {
  text-align: left;
  margin: 1rem 0;
}

.step-details li {
  margin-bottom: 0.5rem;
  color: #666;
}

/* Offering Categories */
.category-highlight {
  border: 2px solid #f0f0f0;
  transition: border-color 0.3s ease;
}

.category-highlight:hover {
  border-color: #d4af37;
}

.category-features {
  text-align: left;
  margin: 1rem 0;
  color: #666;
}

.category-features li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1rem;
}

.category-features li:before {
  content: "•";
  color: #d4af37;
  position: absolute;
  left: 0;
}

/* Product Items */
.product-item {
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.product-item:hover {
  border-color: #d4af37;
  transform: translateY(-5px);
}

.product-info {
  padding: 1rem;
}

.product-specs {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.feature-tag {
  background: #f0f0f0;
  color: #333;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
}

/* Statistics */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: #d4af37;
  margin-bottom: 0.5rem;
}

/* Testimonials Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.testimonial-card {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid #d4af37;
}

.testimonial-card cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  color: #666;
}

.rating {
  margin-top: 0.5rem;
}

/* Awards */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.award-item {
  text-align: center;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-top: 4px solid #d4af37;
}

/* Social Platforms */
.social-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.social-platform {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-decoration: none;
  color: #333;
  transition: transform 0.3s ease;
}

.social-platform:hover {
  transform: translateY(-2px);
  color: #333;
}

/* Footer Enhancements */
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: #d4af37;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
}

.footer-section ul li a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #555;
  padding-top: 1rem;
  text-align: center;
}

/* Specifications Table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.spec-table td {
  padding: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.spec-table td:first-child {
  font-weight: 600;
  width: 40%;
}

/* Response Timeline */
.response-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.response-step {
  text-align: center;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.response-step .step-number {
  background: #d4af37;
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  margin-bottom: 1rem;
  display: inline-block;
}

/* Print Styles */
@media print {
  header, footer, .cta-buttons {
    display: none;
  }
  
  body {
    background: #fff;
    color: #000;
  }
  
  .grid article, .carousel article {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}