/* Base styles and variables */
:root {
  --primary-color: #1e88e5;
  --primary-dark: #1565c0;
  --secondary-color: #f5f5f5;
  --text-color: #333;
  --light-text: #666;
  --white: #fff;
  --light-gray: #e0e0e0;
  --medium-gray: #9e9e9e;
  --dark-gray: #424242;
  --success-color: #4caf50;
  --error-color: #f44336;
  --warning-color: #ff9800;
  --info-color: #2196f3;
  --border-radius: 5px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --font-family-primary: 'Roboto', sans-serif;
  --font-family-heading: 'Playfair Display', serif;
  --container-width: 1200px;
  --section-spacing: 80px;
  --content-spacing: 40px;
}

/* General Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-primary);
  color: var(--text-color);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

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

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

ul, ol {
  list-style: none;
}

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

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--light-text);
  margin-bottom: var(--content-spacing);
  text-align: center;
}

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

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.2);
}

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

.btn-secondary:hover {
  background-color: rgba(30, 136, 229, 0.08);
  color: var(--primary-dark);
}

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

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

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

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

.navbar {
  display: flex;
  gap: 20px;
}

.navbar a {
  color: var(--text-color);
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--border-radius);
  position: relative;
}

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

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

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

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

.mobile-menu-btn span {
  width: 100%;
  height: 3px;
  background-color: var(--text-color);
  border-radius: 3px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: var(--section-spacing) 0;
  text-align: center;
  background-color: #f8f9fa;
  background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
}

.hero h1 {
  margin-bottom: 20px;
  font-size: 3rem;
  color: var(--primary-dark);
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  color: var(--light-text);
}

/* Quote Block */
.quote-block {
  padding: var(--content-spacing) 0;
  background-color: #f1f8fe;
}

.quote-block h2 {
  text-align: center;
  margin-bottom: 20px;
}

blockquote {
  font-style: italic;
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: 20px 40px;
}

blockquote::before {
  content: '"';
  position: absolute;
  top: 0;
  left: 0;
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.2;
  line-height: 1;
}

blockquote p {
  margin-bottom: 10px;
}

blockquote cite {
  font-style: normal;
  font-weight: 500;
  color: var(--light-text);
}

/* Tip Block */
.tip-block {
  padding: var(--content-spacing) 0;
}

.tip-block h2 {
  text-align: center;
  margin-bottom: 20px;
}

.tip-content {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 30px;
  max-width: 800px;
  margin: 0 auto;
  border-left: 4px solid var(--primary-color);
}

.tip-content p {
  margin-bottom: 0;
}

/* Blog Posts */
.blog-posts {
  padding: var(--section-spacing) 0;
  background-color: var(--secondary-color);
}

.blog-posts h2 {
  text-align: center;
  margin-bottom: 40px;
}

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

.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);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.post-image {
  height: 200px;
}

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

.post-content {
  padding: 20px;
}

.post-content h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.post-content p {
  color: var(--light-text);
  margin-bottom: 20px;
}

.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 500;
}

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

/* Page Header */
.page-header {
  padding: 60px 0;
  background-color: #f1f8fe;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.page-header p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--light-text);
  font-size: 1.1rem;
}

/* About Page */
.about-intro {
  padding: var(--section-spacing) 0;
}

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

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

.about-text h2 {
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.team-section {
  padding: var(--section-spacing) 0;
  background-color: var(--secondary-color);
}

.team-section h2, 
.expertise-section h2 {
  text-align: center;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

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

.team-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  text-align: center;
  padding-bottom: 20px;
}

.team-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.team-card h3 {
  margin: 15px 0 5px;
  padding: 0 15px;
}

.team-card p {
  color: var(--light-text);
  margin-bottom: 15px;
  padding: 0 15px;
}

.team-card .social-links {
  margin-top: 15px;
}

.team-card .social-links a {
  margin: 0 5px;
  color: var(--medium-gray);
}

.team-card .social-links a:hover {
  color: var(--primary-color);
}

.expertise-section {
  padding: var(--section-spacing) 0;
}

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

.expertise-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

.expertise-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.expertise-icon {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.expertise-card h3 {
  margin-bottom: 15px;
  color: var(--primary-dark);
}

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

/* Contact Page */
.contact-section {
  padding: var(--section-spacing) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info h2,
.contact-form-container h2 {
  margin-bottom: 30px;
  color: var(--primary-dark);
}

.info-item {
  display: flex;
  margin-bottom: 30px;
}

.info-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background-color: rgba(30, 136, 229, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
}

.info-text h3 {
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.info-text p, 
.info-text address {
  color: var(--light-text);
  font-style: normal;
}

.contact-form {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  font-family: var(--font-family-primary);
  font-size: 16px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.2);
}

.checkbox-group {
  display: flex;
  align-items: center;
}

.checkbox-group input {
  width: auto;
  margin-right: 10px;
}

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

.map-section {
  padding: 0 0 var(--section-spacing);
}

.map-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-dark);
}

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

.map-placeholder {
  width: 100%;
  height: 100%;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--medium-gray);
}

/* Footer */
footer {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: 60px 0 30px;
  margin-top: auto;
}

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

.footer-column h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-column p,
.footer-column address {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
  font-style: normal;
}

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

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

.footer-links li {
  margin-bottom: 10px;
}

.subscribe-form {
  display: flex;
  margin-top: 15px;
}

.subscribe-form input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  color: var(--white);
  font-family: var(--font-family-primary);
}

.subscribe-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.subscribe-form input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.15);
}

.subscribe-form button {
  padding: 10px 20px;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  transition: var(--transition);
}

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

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

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

.modal-content {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  max-width: 500px;
  width: 100%;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: var(--medium-gray);
}

.close-modal:hover {
  color: var(--text-color);
}

.modal-body {
  padding: 40px;
  text-align: center;
}

.success-icon {
  margin-bottom: 20px;
  color: var(--success-color);
}

.modal-body h2 {
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.close-btn {
  margin-top: 20px;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  z-index: 999;
  display: none;
}

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

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cookie-content p {
  margin: 0;
  flex: 1;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 992px) {
  :root {
    --section-spacing: 60px;
    --content-spacing: 30px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .about-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    order: 2;
  }
  
  .about-text {
    order: 1;
  }
  
  .cookie-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
  
  .navbar {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .navbar.active {
    max-height: 300px;
  }
  
  .navbar li {
    width: 100%;
  }
  
  .navbar a {
    display: block;
    padding: 15px 20px;
    border-radius: 0;
  }
  
  .navbar a::after {
    display: none;
  }
  
  .navbar a:hover,
  .navbar a.active {
    background-color: rgba(30, 136, 229, 0.1);
  }
  
  .mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  .posts-grid,
  .team-grid,
  .expertise-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  :root {
    --section-spacing: 40px;
    --content-spacing: 20px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .btn-primary, .btn-secondary {
    padding: 10px 20px;
  }
  
  blockquote {
    padding: 15px 25px;
    font-size: 1rem;
  }
  
  .footer-columns {
    grid-template-columns: 1fr;
  }
  
  .modal-body {
    padding: 30px 20px;
  }
}
