/* 
 * Inchimetas - Main Stylesheet
 * Organization of quests and events in Portugal
 */

/* ===============================
   Base & Reset
   =============================== */
:root {
  --primary-color: #006687;       /* Primary blue - represents the Portuguese sea */
  --primary-dark: #004d66;        /* Darker blue for hover states */
  --secondary-color: #d13b40;     /* Red accent - from Portuguese flag */
  --accent-color: #f2b705;        /* Warm yellow - represents Portuguese sun */
  --text-color: #333333;          /* Main text color */
  --text-light: #666666;          /* Lighter text for subtitles */
  --bg-light: #f9f9f9;            /* Light background */
  --bg-alt: #e7f0fd;              /* Alternate background */
  --white: #ffffff;
  --gray-light: #eeeeee;
  --gray: #cccccc;
  --shadow: rgba(0, 0, 0, 0.1);
  --border-radius: 5px;
  --border-radius-lg: 10px;
  --transition: all 0.3s ease;
  --container-max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px; /* For fixed header */
}

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

img, svg {
  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;
}

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

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

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

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

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-header h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
}

.section-header p {
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* ===============================
   Buttons & Forms
   =============================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

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

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

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

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

input, textarea, select {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--gray);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 102, 135, 0.2);
}

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

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

/* ===============================
   Layout & Sections
   =============================== */
section {
  padding: 5rem 0;
}

/* Header */
header {
  background-color: var(--white);
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  box-shadow: 0 2px 10px var(--shadow);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 15px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  width: 40px;
  height: 40px;
}

.logo span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
}

nav ul {
  display: flex;
  gap: 1.5rem;
}

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

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

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  transition: var(--transition);
}

/* Banner Section */
.banner {
  padding: 4rem 0;
  background-color: var(--bg-alt);
  position: relative;
  overflow: hidden;
}

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

.banner-content h1 {
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}

.banner-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.banner-image {
  flex: 1;
  max-width: 500px;
}

/* About Section */
.about-section {
  background-color: var(--white);
}

.about-content {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.about-text {
  flex: 3;
}

.stats {
  flex: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.stat-item {
  flex: 1 0 calc(50% - 1.5rem);
  background-color: var(--bg-alt);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Services Section */
.services-section {
  background-color: var(--bg-light);
}

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

.service-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 15px var(--shadow);
  transition: var(--transition);
}

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

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

/* Events Section */
.events-section {
  background-color: var(--white);
}

.events-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--gray-light);
}

.events-slider::-webkit-scrollbar {
  height: 6px;
}

.events-slider::-webkit-scrollbar-track {
  background: var(--gray-light);
  border-radius: 10px;
}

.events-slider::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 10px;
}

.event-card {
  min-width: 300px;
  background-color: var(--bg-alt);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: 0 3px 10px var(--shadow);
  transition: var(--transition);
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px var(--shadow);
}

.event-card h3 {
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}

.event-details {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Testimonials Section */
.testimonials-section {
  background-color: var(--bg-light);
}

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

.testimonial-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 3px 10px var(--shadow);
  position: relative;
}

.testimonial-card::before {
  content: """;
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-size: 3rem;
  font-family: Georgia, serif;
  color: var(--primary-color);
  opacity: 0.2;
  line-height: 1;
}

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

.testimonial-author h4 {
  margin-bottom: 0.25rem;
  color: var(--primary-dark);
}

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

/* Newsletter Section */
.newsletter-section {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 4rem 0;
}

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

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

.newsletter-form {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.newsletter-form input {
  flex: 1;
  margin-bottom: 0;
}

/* Contact Section */
.contact-section {
  background-color: var(--white);
}

.contact-container {
  display: flex;
  gap: 3rem;
}

.contact-info {
  flex: 1;
}

.contact-form {
  flex: 2;
}

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

.contact-icon {
  width: 40px;
  height: 40px;
  color: var(--primary-color);
}

.contact-item h4 {
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.social-links {
  margin-top: 2rem;
}

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

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--bg-light);
  border-radius: 50%;
  color: var(--primary-color);
  transition: var(--transition);
}

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

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

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo {
  flex: 1 0 250px;
}

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

.footer-logo h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  flex: 2;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.footer-column h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-column h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 2px;
  background-color: var(--accent-color);
}

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

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.cookie-settings-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  cursor: pointer;
  transition: var(--transition);
}

.cookie-settings-btn:hover {
  color: var(--white);
}

/* ===============================
   Cookie Banner & Modal
   =============================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  padding: 1.5rem;
  box-shadow: 0 -5px 20px var(--shadow);
  z-index: 999;
  display: none;
}

.cookie-banner.active {
  display: block;
}

.cookie-content {
  max-width: 900px;
  margin: 0 auto;
}

.cookie-content h3 {
  margin-bottom: 0.5rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal.active {
  display: block;
}

.modal-content {
  background-color: var(--white);
  margin: 10% auto;
  padding: 2rem;
  border-radius: var(--border-radius);
  max-width: 600px;
  position: relative;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

.cookie-options {
  margin: 2rem 0;
}

.cookie-option {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-light);
}

.cookie-option:last-child {
  border-bottom: none;
}

.cookie-option label {
  display: inline-block;
  margin-left: 0.5rem;
  margin-bottom: 0;
}

/* ===============================
   Blog Page
   =============================== */
.blog-hero {
  background-color: var(--bg-alt);
  padding: 4rem 0;
  text-align: center;
}

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

.blog-hero-content h1 {
  margin-bottom: 1rem;
}

.blog-posts {
  padding: 4rem 0;
}

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

.blog-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow);
}

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

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

.blog-content {
  padding: 1.5rem;
}

.blog-date {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.blog-content h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

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

/* ===============================
   Article Page
   =============================== */
.article-section {
  padding: 4rem 0;
}

.article-header {
  margin-bottom: 3rem;
}

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

.article-featured-image {
  margin-bottom: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
}

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

.article-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

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

.article-content ul {
  list-style-type: disc;
}

.article-content ol {
  list-style-type: decimal;
}

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

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 3rem 0;
}

.article-tags span {
  background-color: var(--bg-alt);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--primary-color);
}

.article-share {
  margin-bottom: 3rem;
}

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

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

.social-share-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--bg-light);
  border-radius: 50%;
  color: var(--text-color);
  transition: var(--transition);
}

.social-share-links a:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.other-articles h3 {
  margin-bottom: 1.5rem;
}

.other-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.other-article-card {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 3px 10px var(--shadow);
  transition: var(--transition);
}

.other-article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px var(--shadow);
  background-color: var(--bg-alt);
}

.other-article-card h4 {
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.other-article-card span {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ===============================
   Legal Pages
   =============================== */
.legal-section {
  padding: 4rem 0;
}

.legal-header {
  text-align: center;
  margin-bottom: 3rem;
}

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

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

.legal-content h2 {
  margin-top: 2.5rem;
  color: var(--primary-dark);
}

.legal-content h3 {
  margin-top: 2rem;
  color: var(--primary-color);
}

.legal-content p, .legal-content ul, .legal-content ol {
  margin-bottom: 1.5rem;
}

.legal-content ul, .legal-content ol {
  padding-left: 1.5rem;
}

.legal-content ul {
  list-style-type: disc;
}

.legal-content ol {
  list-style-type: decimal;
}

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

/* ===============================
   Thank You Page
   =============================== */
.thankyou-section {
  padding: 6rem 0;
  text-align: center;
}

.thankyou-content {
  max-width: 600px;
  margin: 0 auto;
}

.thankyou-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
  color: var(--primary-color);
}

.thankyou-content h1 {
  margin-bottom: 1.5rem;
}

.thankyou-content p {
  margin-bottom: 2.5rem;
}

.thankyou-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ===============================
   Responsive Styles
   =============================== */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  .banner .container {
    flex-direction: column;
  }
  
  .banner-content {
    max-width: 100%;
    text-align: center;
  }
  
  .banner-image {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .contact-container {
    flex-direction: column;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-logo {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .footer-logo img {
    margin: 0 auto 1rem;
  }
  
  .footer-links {
    width: 100%;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--white);
    transition: var(--transition);
    padding: 2rem 0;
  }
  
  nav.active {
    left: 0;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
  }
  
  nav ul li {
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-light);
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 576px) {
  section {
    padding: 3rem 0;
  }
  
  .stats {
    flex-direction: column;
  }
  
  .event-card {
    min-width: 250px;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
}
