/* BASE STYLES */
:root {
  --primary: #5D4037;
  --secondary: #8D6E63;
  --accent: #FFB74D;
  --text-light: #EFEBE9;
  --text-dark: #3E2723;
  --bg-dark: #262626;
  --bg-light: #333333;
  --highlight: #FF9800;
}

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

body {
  font-family: 'Epilogue', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--accent);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
}

h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--accent);
}

h2 {
  font-size: 2rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.2rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

section {
  padding: 3rem 0;
  position: relative;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* HEADER STYLES */
header {
  background-color: rgba(38, 38, 38, 0.95);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--secondary);
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
  margin-right: 10px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

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

nav li {
  margin-left: 1.5rem;
}

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

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

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

/* HERO SECTION */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-dark);
  position: relative;
  overflow: hidden;
  margin-top: 0;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/hero-banner.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  z-index: -1;
}

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

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent);
  color: var(--text-dark);
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 2px solid var(--accent);
}

.cta-button:hover {
  background-color: transparent;
  color: var(--accent);
}

/* SECTION STYLES */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  display: inline-block;
  position: relative;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent);
}

/* FEATURES SECTION */
.features {
  background-color: var(--bg-light);
  position: relative;
}

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

.feature-card {
  background: var(--bg-dark);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
  border-left: 3px solid var(--accent);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 100%);
  opacity: 0.05;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ABOUT SECTION */
.about {
  position: relative;
  overflow: hidden;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text {
  order: 1;
}

.about-image {
  order: 2;
  position: relative;
}

.about-image::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--accent);
  z-index: -1;
  border-radius: 5px;
}

/* SERVICES SECTION */
.services {
  background-color: var(--bg-light);
  position: relative;
}

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

.service-card {
  background: var(--bg-dark);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
  background: rgba(255, 183, 77, 0.1);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* TESTIMONIAL SECTION */
.testimonials {
  background-color: var(--bg-dark);
  position: relative;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/testimonial-background.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
}

.testimonial-container {
  position: relative;
  z-index: 1;
}

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

.testimonial-card {
  background: rgba(51, 51, 51, 0.8);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--accent);
  position: absolute;
  top: 10px;
  left: 10px;
  opacity: 0.2;
}

.testimonial-content {
  margin-bottom: 1.5rem;
  font-style: italic;
}

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

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
}

.author-info h4 {
  margin-bottom: 0.2rem;
}

.author-info p {
  font-size: 0.9rem;
  margin-bottom: 0;
  opacity: 0.8;
}

/* CONTACT SECTION */
.contact {
  position: relative;
}

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

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-item {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-right: 1rem;
  min-width: 30px;
  text-align: center;
}

.contact-text {
  flex: 1;
}

.contact-form {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
  position: relative;
}

.contact-form h3 {
  margin-bottom: 1.5rem;
}

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

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-light);
  font-family: 'Epilogue', sans-serif;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
}

.form-check {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.form-check-input {
  margin-right: 10px;
  margin-top: 5px;
}

.form-submit {
  width: 100%;
  background-color: var(--accent);
  color: var(--text-dark);
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--accent);
}

.form-submit:hover {
  background-color: transparent;
  color: var(--accent);
}

/* MAP */
.map-container {
  height: 400px;
  margin-top: 2rem;
  border-radius: 8px;
  overflow: hidden;
}

/* FOOTER */
footer {
  background-color: var(--bg-dark);
  padding: 3rem 0 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 60px;
}

.footer-social {
  display: flex;
  margin-top: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-light);
  border-radius: 50%;
  margin-right: 0.5rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

.footer-links h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

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

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* PARALLAX EFFECTS */
.parallax-wrapper {
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  perspective: 1px;
}

.parallax-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.page-banner {
  margin-top: 80px;
}

.parallax-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
}

.parallax-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* HANDCRAFTED ARTISAN STYLE */
.handcrafted-text {
  font-family: 'Epilogue', sans-serif;
  position: relative;
}

.handcrafted-divider {
  position: relative;
  height: 3px;
  background: var(--accent);
  margin: 2rem 0;
  max-width: 100px;
}

.handcrafted-divider::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 30px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}

.handcrafted-divider::after {
  content: '';
  position: absolute;
  top: -5px;
  right: 30px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}

.rustic-border {
  border: 2px solid var(--accent);
  position: relative;
}

.rustic-border::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 20px;
  width: 20px;
  height: 20px;
  background: var(--bg-dark);
  border: 2px solid var(--accent);
  transform: rotate(45deg);
  z-index: -1;
}

.stitched-box {
  padding: 2rem;
  border: 2px dashed var(--accent);
  position: relative;
  background: var(--bg-light);
}

.stitched-box::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(255, 183, 77, 0.3);
}

/* APPROACHES PAGE */
.approach-card {
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.approach-card:nth-child(even) .approach-image {
  order: 2;
}

.approach-card:nth-child(even) .approach-content {
  order: 1;
}

.approach-image {
  position: relative;
}

.approach-image img {
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.approach-content h3 {
  margin-bottom: 1rem;
}

/* EXPERTISE PAGE */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.expertise-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.expertise-card:hover {
  transform: translateY(-10px);
}

.expertise-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.skill-bar {
  height: 10px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  margin-bottom: 1.5rem;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: var(--accent);
  border-radius: 5px;
  position: relative;
}

.skill-progress span {
  position: absolute;
  right: 0;
  top: -25px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* EXPERT OPINION PAGE */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.article-card {
  background: var(--bg-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.article-card:hover {
  transform: translateY(-10px);
}

.article-image {
  height: 200px;
  overflow: hidden;
}

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

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

.article-content {
  padding: 1.5rem;
}

.article-meta {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

.article-meta span {
  display: flex;
  align-items: center;
  margin-right: 1rem;
}

.article-meta i {
  margin-right: 0.5rem;
}

.article-card h3 {
  margin-bottom: 1rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-weight: 500;
  margin-top: 1rem;
}

.read-more i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.read-more:hover i {
  transform: translateX(5px);
}

/* CONTACTS PAGE */
.contact-page {
  padding: 5rem 0;
}

.contact-page .contact-grid {
  grid-template-columns: 1fr 1fr;
}

/* THANKS PAGE */
.thanks-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh;
  padding: 5rem 0;
}

.thanks-icon {
  font-size: 5rem;
  color: var(--accent);
  margin-bottom: 2rem;
}

.thanks-section h1 {
  margin-bottom: 1.5rem;
}

.thanks-section p {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.return-button {
  display: inline-block;
  background-color: var(--accent);
  color: var(--text-dark);
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 2px solid var(--accent);
}

.return-button:hover {
  background-color: transparent;
  color: var(--accent);
}

/* POLICIES PAGES */
.policy-content {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.policy-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.policy-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.policy-content ul, 
.policy-content ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.policy-content li {
  margin-bottom: 0.5rem;
}

.policy-updated {
  text-align: right;
  font-style: italic;
  opacity: 0.7;
  margin-top: 2rem;
}

/* COOKIE CONSENT */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-light);
  padding: 1rem;
  z-index: 9999;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
}

.cookie-btn {
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.accept-all {
  background-color: var(--accent);
  color: var(--text-dark);
  border: none;
}

.accept-all:hover {
  background-color: var(--highlight);
}

.customize {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid var(--text-light);
}

.customize:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.reject-all {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid var(--text-light);
}

.reject-all:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cookie-settings {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-settings-content {
  background: var(--bg-light);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
  padding: 2rem;
}

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

.close-settings {
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

.cookie-category {
  margin-bottom: 2rem;
}

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

.category-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.category-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--accent);
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.settings-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.save-preferences {
  background-color: var(--accent);
  color: var(--text-dark);
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.save-preferences:hover {
  background-color: var(--highlight);
}

/* ANIMATIONS */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

/* INTL TEL INPUT */
.iti {
  width: 100%;
}

/* RESPONSIVE STYLES */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .about-content,
  .contact-page .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    order: 1;
    margin-bottom: 2rem;
  }
  
  .about-text {
    order: 2;
  }
  
  .approach-card {
    grid-template-columns: 1fr;
  }
  
  .approach-card .approach-image,
  .approach-card .approach-content {
    order: unset;
  }
}

option {
  color: var(--primary);
}

.close-nav {
  display: none;
}

@media (max-width: 768px) {
  section {
    padding: 2rem 0;
  }
  
  .hero {
    height: auto;
    min-height: 80vh;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .nav-toggle {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-dark);
    padding: 2rem;
    transition: right 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  nav.active {
    right: 0;
  }
  
  nav ul {
    flex-direction: column;
  }
  
  nav li {
    margin: 1rem 0;
  }
  
  .close-nav {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
  }
  
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
  }
  
  .nav-overlay.active {
    display: block;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .container {
    width: 100%;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .feature-card,
  .service-card,
  .testimonial-card,
  .expertise-card {
    padding: 1.5rem;
  }
  
  .cookie-consent {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: space-between;
  }
}