/* 
  SerenePattern - Tour Operator Website
  Main Stylesheet
*/

/* Base styles and CSS Reset */
:root {
  --primary-color: #1e88e5;
  --secondary-color: #26a69a;
  --accent-color: #ff9800;
  --text-color: #333333;
  --light-text: #666666;
  --bg-color: #ffffff;
  --bg-alt-color: #f5f7fa;
  --border-color: #e0e0e0;
  --success-color: #4caf50;
  --error-color: #f44336;
  --warning-color: #ff9800;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --header-height: 80px;
  --footer-bg: #1a2436;
  --footer-text: #ffffff;
  --transition: all 0.3s ease;
  --container-width: 1200px;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: 'Montserrat', sans-serif;
}

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

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

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

body.font-decreased {
  font-size: 14px;
}

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

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

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

ul, ol {
  list-style-position: inside;
  margin: 1rem 0;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  line-height: 1.3;
  color: var(--text-color);
  font-weight: 600;
}

h1 {
  font-size: 2.5rem;
  margin-top: 0;
}

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

h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

.lead {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--light-text);
}

.small {
  font-size: 0.875rem;
  color: var(--light-text);
}

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

.center {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

/* Buttons */
.btn, .btn-small {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 25px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
  font-size: 1rem;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn:hover, .btn-small:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
}

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

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

/* Header */
header {
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

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;
}

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

nav ul li a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--primary-color);
}

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

.font-btn {
  display: flex;
  align-items: center;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 8px 12px;
  cursor: pointer;
  color: var(--text-color);
  font-size: 0.9rem;
  transition: var(--transition);
}

.font-btn:hover {
  background-color: var(--bg-alt-color);
}

.font-btn svg {
  margin-right: 8px;
}

/* Hero Section */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/1.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 7rem 0;
  margin-bottom: 3rem;
}

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

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* What You'll Learn Section */
.what-youll-learn {
  background-color: var(--bg-alt-color);
  padding: 3rem 0;
  margin-bottom: 3rem;
}

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

.learn-item {
  background-color: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.learn-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.learn-item .icon {
  background-color: var(--primary-color);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.learn-item h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.learn-item p {
  color: var(--light-text);
  margin-bottom: 0;
}

/* Featured Destinations */
.featured-destinations {
  padding: 3rem 0;
}

.destination-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.destination {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.destination:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.destination img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.destination-info {
  padding: 1.5rem;
  background-color: white;
}

.destination-info h3 {
  margin-top: 0;
  font-size: 1.3rem;
}

.destination-info p {
  margin-bottom: 1rem;
}

/* Recent Posts */
.recent-posts {
  background-color: var(--bg-alt-color);
  padding: 3rem 0;
}

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

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

.post:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.post img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-content {
  padding: 1.5rem;
}

.post-content h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

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

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

.read-more::after {
  content: "→";
  margin-left: 5px;
  transition: var(--transition);
}

.read-more:hover::after {
  margin-left: 10px;
}

/* Testimonials */
.testimonials {
  padding: 4rem 0;
  text-align: center;
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.testimonial {
  background-color: var(--bg-alt-color);
  padding: 2rem;
  border-radius: var(--radius);
  position: relative;
  text-align: left;
}

.quote {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

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

.client h4 {
  margin: 0;
  font-size: 1.1rem;
}

.client p {
  margin: 0;
  font-style: normal;
  color: var(--light-text);
  font-size: 0.9rem;
}

/* Page Header */
.page-header {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 5rem 0;
  margin-bottom: 3rem;
}

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

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

/* Blog Posts */
.blog-posts {
  padding: 3rem 0;
}

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

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

.blog-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

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

.blog-post h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

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

/* Subscribe Section */
.subscribe {
  padding: 3rem 0;
}

.subscribe-box {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem;
  border-radius: var(--radius);
  text-align: center;
}

.subscribe-box h2 {
  color: white;
  margin-bottom: 1rem;
}

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

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

.subscribe-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 1rem;
}

.subscribe-form button {
  border-radius: 0 var(--radius) var(--radius) 0;
  background-color: var(--accent-color);
}

.subscribe-form button:hover {
  background-color: #e68900;
}

.subscribe-box .small {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

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

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

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

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

.blog-post-single h1 {
  font-size: 2.5rem;
}

.blog-post-single .post-content {
  max-width: 800px;
  margin: 0 auto;
}

.blog-post-single .post-content h2 {
  margin-top: 3rem;
}

.post-image {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.post-image img {
  width: 100%;
}

.post-image .caption {
  font-size: 0.9rem;
  color: var(--light-text);
  text-align: center;
  padding: 0.5rem;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  background-color: var(--bg-alt-color);
}

.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 4rem 0;
}

.prev-post, .next-post {
  padding: 1.5rem;
  background-color: var(--bg-alt-color);
  border-radius: var(--radius);
  transition: var(--transition);
}

.prev-post:hover, .next-post:hover {
  background-color: #e9eff7;
}

.next-post {
  text-align: right;
}

.nav-label {
  display: block;
  font-size: 0.9rem;
  color: var(--light-text);
  margin-bottom: 0.5rem;
}

.post-title {
  font-weight: 600;
}

.post-cta {
  background-color: var(--bg-alt-color);
  padding: 2rem;
  border-radius: var(--radius);
  margin: 3rem 0;
  text-align: center;
}

.post-cta h3 {
  margin-top: 0;
}

.related-posts {
  margin-top: 4rem;
}

.related-posts h2 {
  margin-bottom: 2rem;
}

/* About Page */
.about-story {
  padding: 3rem 0;
}

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

.about-content h2 {
  margin-top: 0;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.mission-values {
  background-color: var(--bg-alt-color);
  padding: 4rem 0;
}

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

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

.value-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.value-item .icon {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.value-item h3 {
  margin-top: 0;
}

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

.team {
  padding: 4rem 0;
}

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

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

.team-member img {
  border-radius: 50%;
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow);
}

.team-member h3 {
  margin: 0;
  font-size: 1.2rem;
}

.team-member p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.certifications {
  background-color: var(--bg-alt-color);
  padding: 4rem 0;
}

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

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

.cert-item .icon {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.cert-item h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.cert-item p {
  margin-bottom: 0;
  color: var(--light-text);
}

/* Contact Page */
.contact-info {
  padding: 3rem 0;
}

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

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

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

.contact-text h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

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

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

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

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

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

.contact-form-container {
  background-color: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.full-width {
  grid-column: span 2;
}

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

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

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

.checkbox-container {
  display: flex;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--light-text);
  cursor: pointer;
}

.checkbox-container input {
  margin-right: 10px;
  margin-top: 3px;
}

.map-section {
  padding: 3rem 0;
}

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

.map-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.map-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.map-overlay p {
  margin: 0;
}

.faq {
  background-color: var(--bg-alt-color);
  padding: 4rem 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

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

.faq-item h3 {
  margin-top: 0;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.faq-item p {
  margin-bottom: 0;
  color: var(--light-text);
}

/* Call to Action */
.cta {
  padding: 3rem 0;
}

.cta-content {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 3rem;
  border-radius: var(--radius);
}

.cta-content h2 {
  color: white;
  margin-top: 0;
}

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

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

.cta-content .btn:hover {
  background-color: var(--accent-color);
  color: white;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal.show {
  display: flex;
}

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

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
}

.thank-you-message {
  text-align: center;
}

.checkmark {
  color: var(--success-color);
  margin: 0 auto 1rem;
}

.close-btn {
  margin-top: 1.5rem;
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 4rem 0 2rem;
}

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

.footer-about {
  grid-column: span 2;
}

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

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

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

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

.footer-links ul li,
.footer-policy ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a,
.footer-policy ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links ul li a:hover,
.footer-policy ul li a:hover {
  color: white;
}

.footer-contact address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact address p {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.footer-contact address svg {
  margin-right: 10px;
}

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

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 1rem;
  display: none;
}

.cookie-consent.show {
  display: block;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.cookie-content h3 {
  margin-top: 0;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}

.cookie-policy {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    order: -1;
  }
  
  .testimonial-slider {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.7rem;
  }
  
  .hero {
    padding: 5rem 0;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .blog-post {
    grid-template-columns: 1fr;
  }
  
  .blog-post img {
    height: 250px;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .post-navigation {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .next-post {
    text-align: left;
  }
  
  .subscribe-form {
    flex-direction: column;
  }
  
  .subscribe-form input {
    border-radius: var(--radius);
    margin-bottom: 1rem;
  }
  
  .subscribe-form button {
    border-radius: var(--radius);
  }
}

@media (max-width: 576px) {
  header {
    height: auto;
    padding: 1rem 0;
    position: relative;
  }
  
  header .container {
    flex-direction: column;
    align-items: center;
  }
  
  .logo {
    margin-bottom: 1rem;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  nav ul li {
    margin: 0.5rem;
  }
  
  .font-btn {
    margin-top: 1rem;
  }
  
  .contact-form {
    grid-template-columns: 1fr;
  }
  
  .full-width {
    grid-column: 1;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
}
