/* Base Styles */
:root {
  --primary-color: #4a3f35;
  --primary-dark: #342c25;
  --primary-light: #8c7b6b;
  --secondary-color: #c07a35;
  --secondary-light: #e8a058;
  --text-color: #333333;
  --text-light: #666666;
  --background-color: #f9f6f2;
  --white: #ffffff;
  --black: #222222;
  --gray-light: #f1eee9;
  --gray: #d4d0c8;
  --box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --border-radius: 8px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
  font-size: 16px;
}

body.font-large {
  font-size: 18px;
}

body.font-xlarge {
  font-size: 20px;
}

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

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

a:hover {
  color: var(--secondary-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

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

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

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

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font-body);
}

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

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

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

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

.btn-cookie {
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin: 0 0.25rem;
}

#cookie-accept {
  background-color: var(--secondary-color);
  color: var(--white);
  border: none;
}

#cookie-accept:hover {
  background-color: var(--secondary-light);
}

#cookie-customize, #cookie-decline {
  background-color: var(--white);
  color: var(--text-color);
  border: 1px solid var(--gray);
}

#cookie-customize:hover, #cookie-decline:hover {
  background-color: var(--gray-light);
}

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

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

.logo img {
  height: 60px;
  width: auto;
}

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

nav ul li {
  margin-left: 2rem;
}

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

nav ul li a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

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

nav ul li a.active {
  color: var(--secondary-color);
}

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

#increase-font {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

#increase-font:hover {
  color: var(--secondary-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/1.jpg') no-repeat center center;
  background-size: cover;
  color: var(--white);
  padding: 8rem 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--white);
  font-weight: 400;
}

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

/* Features Section */
.features {
  padding: 5rem 0;
  background-color: var(--white);
}

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

.feature-card {
  background-color: var(--gray-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
}

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

.feature-icon {
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

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

/* Latest Posts Section */
.latest-posts {
  padding: 5rem 0;
  background-color: var(--background-color);
}

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

.post-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

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

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

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

.post-content {
  padding: 1.5rem;
}

.post-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

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

/* Blog Page Styles */
.blog-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/3.jpg') no-repeat center center;
  background-size: cover;
  color: var(--white);
  padding: 6rem 0;
  text-align: center;
}

.blog-hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.blog-content {
  padding: 5rem 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.blog-post {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.blog-post .post-image {
  height: 100%;
}

.blog-post .post-content {
  padding: 2rem;
}

.post-meta {
  display: flex;
  margin-bottom: 1rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.post-meta .date {
  margin-right: 1rem;
}

.post-meta .category {
  color: var(--secondary-color);
  font-weight: 600;
}

/* Blog Post Single */
.blog-post-single {
  padding: 5rem 0;
}

.post-header {
  margin-bottom: 2rem;
}

.post-header h1 {
  margin-bottom: 1rem;
}

.post-author {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
}

.post-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
}

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

.author-name {
  font-weight: 600;
}

.author-title {
  color: var(--text-light);
  font-size: 0.9rem;
}

.post-featured-image {
  margin-bottom: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  max-height: 500px;
}

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post-single .post-content {
  padding: 0;
}

.blog-post-single .post-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.blog-post-single .post-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-quote {
  margin: 2.5rem 0;
  padding: 2rem;
  background-color: var(--gray-light);
  border-left: 5px solid var(--secondary-color);
  border-radius: var(--border-radius);
}

.post-quote blockquote {
  font-style: italic;
  font-size: 1.2rem;
  font-family: var(--font-heading);
  color: var(--primary-dark);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.tag {
  display: inline-block;
  background-color: var(--gray-light);
  color: var(--text-color);
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.post-navigation {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  border-top: 1px solid var(--gray);
  padding-top: 2rem;
}

.post-navigation-item {
  display: flex;
}

.post-navigation-item.prev {
  justify-content: flex-start;
}

.post-navigation-item.next {
  justify-content: flex-end;
  text-align: right;
}

.post-navigation-item a {
  display: flex;
  flex-direction: column;
}

.direction {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.title {
  font-weight: 600;
  color: var(--primary-color);
}

.post-image figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
  padding: 0.5rem 0;
}

/* About Page */
.about-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/6.jpg') no-repeat center center;
  background-size: cover;
  color: var(--white);
  padding: 6rem 0;
  text-align: center;
}

.about-hero h1 {
  color: var(--white);
}

.about-mission {
  padding: 5rem 0;
  background-color: var(--white);
}

.mission-content {
  max-width: 600px;
}

.mission-content h2 {
  margin-bottom: 2rem;
}

.mission-content p {
  margin-bottom: 1.5rem;
}

.about-mission .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.mission-image {
  border-radius: var(--border-radius);
  overflow: hidden;
}

.about-values {
  padding: 5rem 0;
  background-color: var(--background-color);
}

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

.value-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.value-icon {
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.team-section {
  padding: 5rem 0;
  background-color: var(--white);
}

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

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

.team-member img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  box-shadow: var(--box-shadow);
}

.team-member h3 {
  margin-bottom: 0.5rem;
}

.team-member p {
  margin-bottom: 1rem;
}

.team-member .social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.team-member .social-icons a {
  color: var(--text-light);
}

.team-member .social-icons a:hover {
  color: var(--secondary-color);
}

/* Contact Page */
.contact-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/4.jpg') no-repeat center center;
  background-size: cover;
  color: var(--white);
  padding: 6rem 0;
  text-align: center;
}

.contact-hero h1 {
  color: var(--white);
}

.contact-content {
  padding: 5rem 0;
  background-color: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h2 {
  margin-bottom: 1.5rem;
}

.contact-details {
  margin: 3rem 0;
}

.contact-item {
  display: flex;
  margin-bottom: 2rem;
}

.contact-icon {
  margin-right: 1.5rem;
  color: var(--secondary-color);
  display: flex;
  align-items: flex-start;
}

.contact-text h3 {
  margin-bottom: 0.5rem;
}

.contact-text p {
  color: var(--text-light);
}

.social-connect h3 {
  margin-bottom: 1.5rem;
}

.social-icons {
  display: flex;
  gap: 1.5rem;
}

.social-icons a {
  color: var(--text-color);
  transition: var(--transition);
}

.social-icons a:hover {
  color: var(--secondary-color);
}

.contact-form-container h2 {
  margin-bottom: 2rem;
}

.contact-form, .complaint-form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input, .form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--gray);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.map-section {
  padding: 5rem 0;
  background-color: var(--background-color);
}

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.map-container iframe {
  display: block;
}

/* Complaint Section */
.complaint-section {
  padding: 5rem 0;
  background-color: var(--gray-light);
  text-align: center;
}

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

.complaint-form {
  max-width: 600px;
  margin: 0 auto;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  padding: 1.5rem;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  display: flex;
  justify-content: center;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

.cookie-consent.active {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cookie-content p {
  margin-bottom: 1rem;
  text-align: center;
}

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

.cookie-policy {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Popup */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.popup.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.popup.active .popup-content {
  transform: scale(1);
}

.close-popup {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
}

.popup-content h2 {
  margin-bottom: 1rem;
}

.popup-content p {
  margin-bottom: 2rem;
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 5rem 0 2rem;
}

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

.footer-logo img {
  height: 60px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-links h3, .footer-contact h3, .footer-social h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

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

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

.footer-links ul li a {
  color: var(--gray);
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--white);
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  color: var(--gray);
}

.footer-contact p svg {
  margin-right: 0.75rem;
  margin-top: 4px;
}

.footer-social .social-icons a {
  color: var(--gray);
}

.footer-social .social-icons a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray);
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .about-mission .container, .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .mission-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
  }
  
  .logo {
    margin-bottom: 1rem;
  }
  
  nav ul {
    justify-content: center;
  }
  
  nav ul li {
    margin: 0 1rem;
  }
  
  .hero {
    padding: 6rem 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero h2 {
    font-size: 1.5rem;
  }
  
  .blog-post {
    grid-template-columns: 1fr;
  }
  
  .blog-post .post-image {
    height: 200px;
  }
  
  .post-navigation {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .post-navigation-item.next {
    justify-content: flex-start;
    text-align: left;
  }
  
  .cookie-content {
    flex-direction: column;
  }
  
  .cookie-buttons {
    margin: 1rem 0;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  nav ul {
    flex-wrap: wrap;
  }
  
  nav ul li {
    margin: 0.5rem 0.75rem;
  }
  
  .feature-grid, .post-grid, .values-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-logo img {
    margin: 0 auto 1rem;
  }
  
  .footer-contact p {
    justify-content: center;
  }
  
  .footer-social .social-icons {
    justify-content: center;
  }
}
