/* Master Woodcraft - Woodworking Machines Blog Styles
   Version: 1.0
   Last updated: 2024
*/

/* -----------------
  Table of Contents:
  1. Base & Reset
  2. Typography
  3. Layout & Grid
  4. Navigation
  5. Header
  6. Footer
  7. Hero Section
  8. What You'll Learn Section
  9. Featured Posts
  10. Testimonials
  11. Newsletter
  12. Blog Grid
  13. Contact Form
  14. About Page
  15. Glossary
  16. Cookie Banner
  17. Modal
  18. Buttons & Forms
  19. Utilities
  20. Media Queries
------------------- */

/* 1. Base & Reset */
:root {
  --primary-color: #8b5a2b;
  --primary-light: #a67c52;
  --primary-dark: #6a4216;
  --secondary-color: #4a6741;
  --secondary-light: #6b8362;
  --secondary-dark: #354d2c;
  --text-dark: #333333;
  --text-medium: #555555;
  --text-light: #777777;
  --background-light: #f7f5f0;
  --background-cream: #f1eee5;
  --background-white: #ffffff;
  --border-color: #e0e0e0;
  --border-dark: #ccc;
  --error-color: #d32f2f;
  --success-color: #388e3c;
  --warning-color: #f9a825;
  --info-color: #1976d2;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
  --border-radius: 6px;
  --border-radius-lg: 12px;
  --container-width: 1200px;
  --header-height: 80px;
  --footer-background: #2c2418;
  --footer-text: #e0e0e0;
}

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-white);
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

/* 2. Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  position: relative;
}

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

.container h2 {
  text-align: center;
}

.container h2:after {
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-medium);
}

/* 3. Layout & Grid */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
}

.page-header {
  background-color: var(--background-cream);
  padding: 5rem 0 3rem;
  text-align: center;
}

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

.page-header p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
}

/* 4. Navigation */
.navbar {
  display: flex;
  align-items: center;
}

.navbar li {
  margin-left: 2rem;
}

.navbar a {
  font-weight: 600;
  color: var(--text-dark);
  position: relative;
}

.navbar a:hover, .navbar a.active {
  color: var(--primary-color);
}

.navbar a.active:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  bottom: -5px;
  left: 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background-color: var(--text-dark);
  transition: var(--transition);
}

/* 5. Header */
header {
  background-color: var(--background-white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  height: var(--header-height);
}

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

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

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

/* 6. Footer */
footer {
  background-color: var(--footer-background);
  color: var(--footer-text);
  padding: 4rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-logo img {
  height: 60px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-links h3, .footer-legal h3, .footer-contact h3 {
  color: var(--footer-text);
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-links h3:after, .footer-legal h3:after, .footer-contact h3:after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background-color: var(--primary-light);
  bottom: -8px;
  left: 0;
}

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

.footer-links a, .footer-legal a {
  color: var(--footer-text);
  transition: var(--transition);
}

.footer-links a:hover, .footer-legal a:hover {
  color: var(--primary-light);
}

.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: var(--footer-text);
}

.footer-contact i {
  margin-right: 0.5rem;
  color: var(--primary-light);
}

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

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

.social-icons a:hover {
  color: var(--primary-light);
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: var(--footer-text);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* 7. Hero Section */
.hero {
  background-color: var(--background-light);
  padding: 5rem 0;
  overflow: hidden;
}

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

.hero-content {
  flex: 0 0 50%;
  max-width: 50%;
  padding-right: 2rem;
}

.hero-image {
  flex: 0 0 50%;
  max-width: 50%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

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

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

/* 8. What You'll Learn Section */
.what-you-learn {
  background-color: var(--background-white);
  position: relative;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

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

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

.feature-icon {
  margin-bottom: 1.5rem;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-icon svg {
  color: var(--primary-color);
}

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

.feature p {
  margin-bottom: 0;
}

.learn-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.learn-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.tag {
  background-color: var(--background-cream);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
}

/* 9. Featured Posts */
.featured-posts {
  background-color: var(--background-cream);
}

.posts {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.post {
  flex: 1 1 calc(33.333% - 2rem);
  background-color: var(--background-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

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

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

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

.post-content {
  padding: 1.5rem;
}

.post-content h3 {
  margin-bottom: 0.75rem;
}

.post-content p {
  margin-bottom: 1.25rem;
}

.read-more {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
}

.read-more:hover {
  color: var(--primary-dark);
}

.read-more:after {
  content: '→';
  margin-left: 0.5rem;
  transition: var(--transition);
}

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

.cta-center {
  text-align: center;
  margin-top: 3rem;
}

/* 10. Testimonials */
.testimonials {
  background-color: var(--background-white);
}

.testimonial-slider {
  margin-top: 3rem;
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: none;
}

.testimonial-slider::-webkit-scrollbar {
  display: none;
}

.testimonial {
  flex: 0 0 calc(50% - 1rem);
}

.testimonial-content {
  background-color: var(--background-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  position: relative;
}

.testimonial-content:before {
  content: '"';
  font-size: 5rem;
  line-height: 0;
  position: absolute;
  top: 2rem;
  left: 1.5rem;
  color: rgba(139, 90, 43, 0.1);
}

.testimonial-content p {
  margin-bottom: 1.5rem;
  font-style: italic;
  position: relative;
  z-index: 1;
}

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

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

.testimonial-author h4 {
  margin-bottom: 0.25rem;
  font-weight: 600;
}

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

/* 11. Newsletter */
.newsletter {
  background-color: var(--primary-color);
  color: var(--background-white);
  text-align: center;
  padding: 4rem 0;
}

.newsletter h2, .newsletter p {
  color: var(--background-white);
}

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

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

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-size: 1rem;
}

.newsletter-form button {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  padding: 0 1.5rem;
}

/* 12. Blog Grid */
.blog-filters {
  margin-bottom: 2.5rem;
}

.search-container {
  margin-bottom: 1.5rem;
  position: relative;
}

.search-container input {
  width: 100%;
  padding: 0.75rem 1rem;
  padding-right: 3rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.search-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-medium);
}

.filter-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-btn {
  background-color: var(--background-light);
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--primary-color);
  color: var(--background-white);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.blog-card {
  background-color: var(--background-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.blog-image {
  height: 220px;
  position: relative;
}

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

.blog-category {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.blog-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-content h3 {
  margin-bottom: 0.75rem;
}

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

.blog-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.blog-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.page-btn, .page-next, .page-prev {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--background-light);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.page-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  color: var(--text-medium);
}

.page-next, .page-prev {
  width: auto;
  padding: 0 1rem;
}

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

.page-btn:hover, .page-next:hover, .page-prev:hover {
  background-color: var(--primary-light);
  color: var(--background-white);
}

/* 13. Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.contact-icon {
  margin-right: 1rem;
  color: var(--primary-color);
}

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

.contact-social {
  margin-top: 3rem;
}

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

.contact-form-wrapper {
  background-color: var(--background-light);
  padding: 2.5rem;
  border-radius: var(--border-radius);
}

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

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

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

.form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.form-group {
  flex: 1;
  margin-bottom: 1.25rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
}

.form-group textarea {
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

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

.checkbox-group label {
  margin-bottom: 0;
  font-weight: normal;
}

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

.business-hours {
  margin-top: 2.5rem;
}

.business-hours h3 {
  margin-bottom: 1.25rem;
}

.business-hours ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.business-hours li {
  display: flex;
  flex-direction: column;
}

.business-hours span {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.accordion {
  margin-top: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.accordion-item {
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  background-color: var(--background-light);
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: var(--transition);
}

.accordion-header:hover {
  background-color: var(--background-cream);
}

.accordion-header svg {
  transition: var(--transition);
}

.accordion-item.active .accordion-header svg {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
  padding: 1.25rem;
  border-top: 1px solid var(--border-color);
}

/* 14. About Page */
.our-story .container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.story-content {
  flex: 0 0 60%;
}

.story-image {
  flex: 0 0 40%;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  background-color: var(--background-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
  height: 100%;
}

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

.value-icon {
  margin-bottom: 1.5rem;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.value-icon svg {
  color: var(--primary-color);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

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

.team-member img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin-bottom: 1.25rem;
}

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

.team-member p:first-of-type {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.cta-section {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 4rem 0;
}

.cta-section h2, .cta-section p {
  color: white;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* 15. Glossary */
.glossary {
  background-color: var(--background-cream);
}

.glossary-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.glossary-item {
  background-color: var(--background-white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.glossary-item h3 {
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 0.5rem;
}

.glossary-item p {
  margin-bottom: 0;
}

/* 16. Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--background-white);
  padding: 1.25rem 2rem;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  justify-content: center;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

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

.cookie-content {
  max-width: 1000px;
  display: flex;
  flex-direction: column;
}

.cookie-content p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

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

.cookie-content a {
  font-size: 0.9rem;
}

/* 17. Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1100;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: var(--background-white);
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: modalOpen 0.3s ease;
}

@keyframes modalOpen {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 3rem;
  text-align: center;
}

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

.modal-body h3 {
  margin-bottom: 1rem;
}

.modal-body p {
  margin-bottom: 2rem;
}

/* 18. Buttons & Forms */
.btn {
  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-size: 1rem;
}

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

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

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

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

.tertiary-btn {
  background-color: var(--background-light);
  color: var(--text-medium);
}

.tertiary-btn:hover {
  background-color: var(--border-dark);
}

/* 19. Utilities */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

/* 20. Media Queries */
@media (max-width: 1200px) {
  .container {
    padding: 0 2rem;
  }
  
  .features, .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .glossary-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero .container {
    flex-direction: column;
  }
  
  .hero-content, .hero-image {
    max-width: 100%;
    flex: 0 0 100%;
  }
  
  .hero-content {
    margin-bottom: 2rem;
    padding-right: 0;
  }
  
  .posts {
    flex-direction: column;
  }
  
  .post {
    flex: 0 0 100%;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .our-story .container {
    flex-direction: column;
  }
  
  .story-content, .story-image {
    flex: 0 0 100%;
  }
  
  .business-hours ul {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  header {
    height: auto;
    padding: 1rem 0;
  }
  
  .hamburger {
    display: flex;
  }
  
  .navbar {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--background-white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
  }
  
  .navbar.active {
    height: auto;
  }
  
  .navbar li {
    margin: 0;
    padding: 0.75rem 2rem;
  }
  
  .features, .values-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    flex-direction: column;
    margin-bottom: 0;
  }
  
  .business-hours ul {
    grid-template-columns: 1fr;
  }
  
  .cookie-content {
    text-align: center;
  }
  
  .cookie-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .glossary-items {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  section {
    padding: 3rem 0;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input, .newsletter-form button {
    width: 100%;
    border-radius: var(--border-radius);
  }
  
  .newsletter-form input {
    margin-bottom: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }
}
