/* ---------- CSS Variables ---------- */
:root {
  /* Colors */
  --color-background: #F4F1EC;
  --color-accent: #D2B48C;
  --color-primary: #7C5E3A;
  --color-text: #3C3C3C;
  --color-white: #FFFFFF;
  --color-highlight: #B69C76;
  
  /* Typography */
  --font-heading: 'Merriweather', Georgia, serif;
  --font-body: 'Lato', Helvetica, Arial, sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  
  /* Other */
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: var(--space-sm);
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--color-primary);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--space-md);
}

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

a:hover {
  color: var(--color-highlight);
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-md) 0;
}

.section {
  padding: var(--space-lg) 0;
}

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

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--color-highlight);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

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

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

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

.nav-desktop {
  display: flex;
}

.nav-desktop ul {
  display: flex;
  list-style: none;
}

.nav-desktop li {
  margin-left: var(--space-md);
}

.nav-desktop a {
  color: var(--color-text);
  font-weight: 500;
  padding: 0.5rem;
  position: relative;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--color-text);
  transition: var(--transition);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--color-white);
  box-shadow: var(--shadow-lg);
  padding: var(--space-lg) var(--space-md);
  z-index: 1001;
  transition: var(--transition);
}

.nav-mobile.active {
  right: 0;
}

.nav-mobile ul {
  list-style: none;
}

.nav-mobile li {
  margin-bottom: var(--space-sm);
}

.nav-mobile a {
  display: block;
  color: var(--color-text);
  font-size: 1.25rem;
  font-weight: 500;
  padding: var(--space-sm) 0;
}

.nav-mobile a:hover {
  color: var(--color-primary);
}

.close-menu {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  background-image: url('../images/workshop-team.jpg');
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--color-white);
  margin-bottom: var(--space-md);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

/* ---------- Services Section ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.service-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: var(--space-md);
  text-align: center;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.service-card h3 {
  margin-bottom: var(--space-sm);
}

/* ---------- Portfolio Section ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  height: 300px;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(124, 94, 58, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
  padding: var(--space-md);
  text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.1);
}

.portfolio-overlay h3 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.portfolio-overlay p {
  color: var(--color-white);
  margin-bottom: 0;
}

.portfolio-category {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-text);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-top: var(--space-sm);
}

/* ---------- About Section ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  align-items: center;
}

.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-content h2::after {
  left: 0;
}

.values-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.value-icon {
  color: var(--color-primary);
  font-size: 1.5rem;
}

/* ---------- Sustainability Section ---------- */
.sustainability {
  background-color: var(--color-accent);
  color: var(--color-text);
}

.sustainability h2::after {
  background-color: var(--color-white);
}

.eco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.eco-item {
  text-align: center;
}

.eco-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

/* ---------- Testimonials Section ---------- */
.testimonial-slider {
  position: relative;
  overflow: hidden;
  padding: var(--space-md) 0;
}

.testimonial-track {
  position: relative;
  width: 100%;
}

.testimonial-card {
  display: none;
  opacity: 0;
  padding: var(--space-md);
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin: 0 var(--space-sm);
  text-align: center;
  transition: opacity 0.4s ease;
  min-height: 180px;
}

.testimonial-card.active {
  display: block;
  opacity: 1;
}

.testimonial-quote {
  font-size: 1.25rem;
  font-style: italic;
  position: relative;
  padding: 0 var(--space-md);
  margin-bottom: var(--space-md);
}

.testimonial-quote::before,
.testimonial-quote::after {
  font-family: Georgia, serif;
  font-size: 3rem;
  position: absolute;
  color: var(--color-accent);
}

.testimonial-quote::before {
  content: '"';
  top: -20px;
  left: 0;
}

.testimonial-quote::after {
  content: '"';
  bottom: -40px;
  right: 0;
}

.testimonial-author {
  font-weight: 700;
}

.testimonial-role {
  color: var(--color-highlight);
  font-size: 0.875rem;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  margin-top: var(--space-md);
}

.testimonial-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-white);
  border: 1px solid var(--color-accent);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  margin: 0 var(--space-xs);
  transition: var(--transition);
}

.testimonial-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* ---------- Contact Section ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.contact-form {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow);
}

.contact-details {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group {
  margin-bottom: var(--space-md);
}

label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--color-white);
  color: var(--color-text);
  transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-primary);
  outline: none;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%237C5E3A' viewBox='0 0 256 256'%3E%3Cpath d='M128 165.66 58.34 96a8 8 0 0 1 11.32-11.32L128 143.31l58.34-58.63A8 8 0 0 1 197.66 96Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
  cursor: pointer;
}

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

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.checkbox-group input {
  width: auto;
  margin-top: 0.25rem;
}

.map-container {
  height: 100%;
  min-height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-sm);
}

.contact-icon {
  color: var(--color-primary);
  font-size: 1.25rem;
  margin-right: var(--space-sm);
}

/* ---------- Footer ---------- */
footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.footer-about {
  margin-bottom: var(--space-md);
}

.footer-heading {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  color: var(--color-white);
}

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

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a {
  color: #f0f0f0;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-accent);
}


.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--space-lg);
  padding-top: var(--space-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: var(--space-md);
}

.footer-legal a {
  color: #f0f0f0;
  font-size: 0.875rem;
}

.footer-legal a:hover {
  color: var(--color-accent);
}

/* ---------- Cookie Consent ---------- */
.cookie-consent {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: var(--space-md);
  z-index: 1000;
  transition: bottom 0.5s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.cookie-consent.active {
  bottom: 0;
}

.cookie-text {
  flex: 1;
  min-width: 280px;
}

.cookie-text p {
  margin-bottom: 0;
}

.cookie-buttons {
  display: flex;
  gap: var(--space-sm);
}

/* ---------- Thank You Page ---------- */
.thank-you {
  text-align: center;
  padding: var(--space-xl) 0;
}

.thank-you-icon {
  font-size: 4rem;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.thank-you h1 {
  margin-bottom: var(--space-md);
}

.thank-you-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.thank-you-actions .btn {
  min-width: 180px;
}

/* ---------- 404 Page ---------- */
.error-page {
  text-align: center;
  padding: var(--space-xl) 0;
}

.error-code {
  font-size: 6rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.error-message {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.error-actions .btn {
  min-width: 180px;
  text-align: center;
}

/* ---------- Legal Pages ---------- */
.legal-page {
  background-color: var(--color-white);
  color: var(--color-text);
  padding: var(--space-lg) 0;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  margin-bottom: var(--space-md);
}

.legal-content h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
}

.legal-content p,
.legal-content ul,
.legal-content ol {
  margin-bottom: var(--space-md);
}

.legal-content ul,
.legal-content ol {
  margin-left: var(--space-lg);
}

.legal-content li {
  margin-bottom: var(--space-xs);
}

.legal-date {
  margin-top: var(--space-lg);
  font-style: italic;
  color: #777;
}

.legal-back {
  display: inline-block;
  margin-top: var(--space-lg);
}

/* ---------- Media Queries ---------- */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
  
  .footer-about {
    grid-column: 1 / -1;
  }
  
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .about-img {
    order: -1;
    max-height: 400px;
  }
  
  .about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .eco-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  
  .hamburger {
    display: block;
  }
  
  .nav-mobile {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .values-list {
    grid-template-columns: 1fr;
  }
  
  .values-container {
    padding: var(--space-md);
  }

  .values-container .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  body.services-page .section:not(.hero) {
    padding: var(--space-md) 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

@media (max-width: 576px) {
  html {
    font-size: 14px;
  }
  
  .logo {
    font-size: 1.2rem;
  }
  
  .hero {
    height: 70vh;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .cookie-consent {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .service-card,
  .portfolio-item {
    max-width: 350px;
    margin: 0 auto;
  }
  
  .contact-form {
    padding: var(--space-sm);
  }
  
  .testimonial-card {
    padding: var(--space-sm);
    min-height: 200px;
  }
  
  .testimonial-quote {
    font-size: 1.05rem;
    padding: 0 var(--space-sm);
  }
  
  .thank-you-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .thank-you-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .values-container {
    padding: var(--space-sm);
  }

  .values-container .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-actions .btn {
    width: 100%;
  }
}
