/* General Styles */
:root {
  --primary: #4A6FA5;
  --secondary: #E36F1E;
  --accent: #00A878;
  --background: #F7F9FC;
  --clay: #F4EDE4;
  --text-dark: #2C3E50;
  --text-light: #8493A8;
  --alert: #E74C3C;
  --success: #2ECC71;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.12);
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 18px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

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

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

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-md);
}

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

/* Claymorphism Styles */
.clay-card {
  background-color: var(--clay);
  border-radius: var(--border-radius-lg);
  box-shadow: 
    12px 12px 24px rgba(0, 0, 0, 0.08),
    -12px -12px 24px rgba(255, 255, 255, 0.8),
    inset 1px 1px 2px rgba(255, 255, 255, 0.3),
    inset -1px -1px 2px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.clay-card:hover {
  transform: translateY(-5px);
  box-shadow: 
    15px 15px 30px rgba(0, 0, 0, 0.1),
    -15px -15px 30px rgba(255, 255, 255, 0.9),
    inset 1px 1px 2px rgba(255, 255, 255, 0.3),
    inset -1px -1px 2px rgba(0, 0, 0, 0.05);
}

.clay-button {
  background-color: var(--clay);
  color: var(--text-dark);
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 
    6px 6px 12px rgba(0, 0, 0, 0.08),
    -6px -6px 12px rgba(255, 255, 255, 0.8),
    inset 1px 1px 1px rgba(255, 255, 255, 0.3),
    inset -1px -1px 1px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
}

.clay-button:hover {
  transform: translateY(-2px);
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.1),
    -8px -8px 16px rgba(255, 255, 255, 0.9),
    inset 1px 1px 1px rgba(255, 255, 255, 0.3),
    inset -1px -1px 1px rgba(0, 0, 0, 0.05);
}

.clay-button:active {
  transform: translateY(0);
  box-shadow: 
    inset 4px 4px 8px rgba(0, 0, 0, 0.1),
    inset -4px -4px 8px rgba(255, 255, 255, 0.9);
}

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

.clay-button--secondary {
  background-color: var(--secondary);
  color: white;
}

.clay-button--accent {
  background-color: var(--accent);
  color: white;
}

.clay-input {
  background-color: var(--clay);
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 0.8rem 1rem;
  width: 100%;
  box-shadow: 
    inset 4px 4px 8px rgba(0, 0, 0, 0.05),
    inset -4px -4px 8px rgba(255, 255, 255, 0.5);
  transition: var(--transition);
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
}

.clay-input:focus {
  outline: none;
  box-shadow: 
    inset 6px 6px 10px rgba(0, 0, 0, 0.08),
    inset -6px -6px 10px rgba(255, 255, 255, 0.8),
    0 0 0 3px rgba(74, 111, 165, 0.2);
}

.clay-textarea {
  min-height: 120px;
  resize: vertical;
}

.clay-nav {
  background-color: var(--clay);
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Layout Components */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 3rem;
  background-color: var(--clay);
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero__content {
  position: relative;
  z-index: 10;
  padding: 3rem 0;
}

.hero__title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero__subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background-color: var(--clay);
}

.section__title {
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

.section__title:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--accent);
  margin: 1rem auto 0;
  border-radius: 2px;
}

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

.footer {
  background-color: var(--primary);
  color: white;
  padding: 3rem 0;
  margin-top: 5rem;
}

.footer a {
  color: white;
  opacity: 0.8;
}

.footer a:hover {
  opacity: 1;
}

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

.footer__title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer__title:after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background-color: var(--secondary);
  margin-top: 0.5rem;
  border-radius: 1.5px;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__links li {
  margin-bottom: 0.5rem;
}

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

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  height: 48px;
}

.nav__menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__item {
  margin-left: 2rem;
}

.nav__link {
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

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

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

.nav__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* Experts Section */
.expert-card {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: var(--transition);
}

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

.expert-card__image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.expert-card__content {
  padding: 1.5rem;
  background-color: var(--clay);
}

.expert-card__title {
  margin-bottom: 0.5rem;
}

.expert-card__position {
  color: var(--secondary);
  margin-bottom: 1rem;
  font-weight: 500;
}

/* Blog Section */
.blog-card {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: white;
}

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

.blog-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

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

.blog-card__title {
  margin-bottom: 0.75rem;
}

.blog-card__date {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.blog-card__text {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

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

.contact-info__item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-info__icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.contact-info__text {
  flex-grow: 1;
}

.contact-info__title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* Map */
.map-container {
  height: 400px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  margin-top: 3rem;
  box-shadow: var(--shadow-md);
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 4rem);
  max-width: 1200px;
  background-color: var(--clay);
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: none;
}

.cookie-consent--visible {
  display: block;
  animation: slideUp 0.5s ease forwards;
}

.cookie-consent__title {
  margin-bottom: 1rem;
}

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

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

.cookie-settings-modal--visible {
  display: flex;
  animation: fadeIn 0.3s ease forwards;
}

.cookie-settings-modal__content {
  background-color: var(--clay);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  max-width: 600px;
  width: calc(100% - 4rem);
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

.cookie-settings-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.cookie-settings-modal__title {
  margin-bottom: 0;
}

.cookie-settings-modal__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

.cookie-settings-modal__option {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cookie-settings-modal__option:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cookie-settings-modal__option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cookie-settings-modal__option-title {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.cookie-settings-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: var(--transition);
  border-radius: 24px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: var(--transition);
  border-radius: 50%;
}

input:checked + .switch-slider {
  background-color: var(--primary);
}

input:checked + .switch-slider:before {
  transform: translateX(26px);
}

input:disabled + .switch-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Thank You Page */
.thank-you {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}

.thank-you__icon {
  font-size: 5rem;
  color: var(--success);
  margin-bottom: 2rem;
}

.thank-you__title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 2rem);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Media Queries */
@media (max-width: 768px) {
  .hero__title {
    font-size: 2.5rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--clay);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1001;
    box-shadow: var(--shadow-lg);
  }
  
  .nav__menu.active {
    right: 0;
  }
  
  .nav__item {
    margin: 1rem 0;
  }
  
  .nav__toggle {
    display: block;
    z-index: 1002;
  }
  
  .footer__grid {
    grid-template-columns: 1fr;
  }
  
  .cookie-consent__actions {
    flex-direction: column;
  }
  
  .cookie-consent__actions .clay-button {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .hero__title {
    font-size: 2rem;
  }
  
  .hero__subtitle {
    font-size: 1.2rem;
  }
  
  .section__title {
    font-size: 1.8rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .contact-info__item {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-info__icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

/* Tel Input Specific Styles */
.iti {
  width: 100%;
  margin-bottom: 1rem;
}

.iti__flag {
  background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.1/build/img/flags.png");
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .iti__flag {
    background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.1/build/img/flags@2x.png");
  }
}

.iti--separate-dial-code .iti__selected-flag {
  background-color: var(--clay);
  border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
}

.iti__country-list {
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-md);
}

/* Micromodal Styles */
.modal {
  display: none;
}

.modal.is-open {
  display: block;
}

.modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal__container {
  background-color: var(--clay);
  padding: 2rem;
  max-width: 500px;
  max-height: 100vh;
  border-radius: var(--border-radius-md);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

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

.modal__title {
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.modal__close {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1.5rem;
}

.modal__content {
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
}

/* SimpleBar Custom Styles */
.simplebar-scrollbar::before {
  background-color: var(--primary);
}

.simplebar-track.simplebar-vertical {
  width: 10px;
}

/* Custom Checkbox */
.custom-checkbox {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  height: 20px;
  width: 20px;
  background-color: var(--clay);
  border-radius: 4px;
  margin-right: 10px;
  flex-shrink: 0;
  box-shadow: 
    inset 2px 2px 4px rgba(0, 0, 0, 0.05),
    inset -2px -2px 4px rgba(255, 255, 255, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-top: 3px;
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--primary);
}

.checkmark:after {
  content: "";
  display: none;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.custom-checkbox label {
  user-select: none;
  cursor: pointer;
  font-size: 0.9rem;
}