@import url('https://fonts.googleapis.com/css2?family=Finlandica+Headline:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --primary: #075a58;
  --secondary: #42abe1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Finlandica Headline", sans-serif;
  overflow-x: hidden;
}

.appointment-notification {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 3000;
  max-width: min(90vw, 420px);
  padding: 13px 18px;
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.appointment-notification-close {
  margin-left: 12px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.appointment-notification.is-success {
  background: #087f5b;
}

.appointment-notification.is-error {
  background: #c92a2a;
}

header {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1140px;
  z-index: 1000;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-logo img {
  height: 60px;
  padding-right: 15px;
  border-right: 2px solid #055956;
}

.dropdown {
  position: relative;
}

.dropdown > a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 1px;
}

.dropdown > a:after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg);
  margin-top: -4px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 0.5rem 0;
  display: none;
  z-index: 100;
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: 1px;
}

.dropdown-item:hover {
  background-color: #f5f5f5;
  color: var(--primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.phone img {
  height: 20px;
}

.phone a{
  color:#000;
  text-decoration: none;
  letter-spacing: 1px;
}

.appointment {
  background-color: var(--primary);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.appointment:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  gap: 0.2rem;
  z-index: 1001;
  position: relative;
}

.menu-toggle div {
  width: 24px;
  height: 2px;
  background-color: #333;
  margin: 2px 0;
  transition: all 0.3s ease;
}

.menu-toggle.active div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background-color: white;
}

.menu-toggle.active div:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active div:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background-color: white;
}

.menu-toggle span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span {
  color: white;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
  overflow-y: auto;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.overlay-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: none;
}

.circle:nth-child(1) {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
  background: linear-gradient(to right, rgba(66, 171, 225, 0.2), rgba(7, 90, 88, 0.1));
}

.circle:nth-child(2) {
  width: 200px;
  height: 200px;
  top: 60%;
  left: 70%;
  animation-delay: 2s;
  background: linear-gradient(to right, rgba(7, 90, 88, 0.2), rgba(66, 171, 225, 0.1));
}

.circle:nth-child(3) {
  width: 150px;
  height: 150px;
  top: 40%;
  left: 25%;
  animation-delay: 4s;
  background: linear-gradient(to right, rgba(66, 171, 225, 0.2), rgba(7, 90, 88, 0.1));
}

.circle:nth-child(4) {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 80%;
  animation-delay: 6s;
  background: linear-gradient(to right, rgba(7, 90, 88, 0.2), rgba(66, 171, 225, 0.1));
}

.appointment-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.appointment-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.appointment-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 61, 88, 0.7);
}

.appointment-modal-dialog {
  position: relative;
  width: min(100%, 700px);
  max-height: none;
  overflow: visible;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  padding: 1.25rem 1.5rem;
}

.appointment-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f2f7fb;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.appointment-modal-body {
  padding-top: 0;
}

.appointment-modal-content {
  background: #fff;
  border-radius: 20px;
  padding: 0;
}

.appointment-modal-content h3 {
  color: var(--primary);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.appointment-modal-content .form-label {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0.45rem;
  letter-spacing: 1px;
}

.appointment-modal-content .form-control {
  border-radius: 12px;
  border: 1px solid #dbe8f0;
  padding: 10px;
  letter-spacing: 1px;
  width: 100%;
}

.appointment-modal-content .form-control:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 0.2rem rgba(66,171,225,0.18);
}

.appointment-modal-content .captcha-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.appointment-modal-content .captcha-box span {
  color: var(--primary);
  font-weight: 600;
}

.appointment-modal-content .captcha-refresh-btn {
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.appointment-modal-content .field-error {
  display: none;
  min-height: 0;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #d93025;
  letter-spacing: 1px;
}

.appointment-modal-content .field-error:not(:empty) {
  display: block;
  min-height: 1.05rem;
}

.appointment-modal-content .form-label {
  font-size: 15px;
}

.appointment-modal-content .form-control {
  padding: 7px 10px;
  min-height: 40px;
}

.appointment-modal-content textarea.form-control {
  min-height: 68px;
}

.appointment-modal-content .appointment-submit-btn {
  margin-top: 0.75rem;
  padding: 10px 22px;
}

.appointment-modal-content .appointment-submit-btn {
  margin-top: 20px;
  border: 0;
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #45b8e2);
  color: #fff;
  font-weight: 600;
  letter-spacing: 1px;
}

.appointment-modal-content .appointment-submit-btn:hover {
  background: linear-gradient(135deg, #2d8bc4, #2fa4d8);
}

.wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  position: relative;
  z-index: 10;
}

.overlay-header {
  text-align: center;
  margin-bottom: 3rem;
}

.overlay-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
}

.overlay-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--secondary);
  border-radius: 3px;
}

.overlay-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  letter-spacing: 1px;
}

.wrap-nav {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.nav-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.nav-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.15);
}

.nav-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  color: white;
  text-decoration: none;
  height: 100%;
}

.menu-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--secondary);
  transition: all 0.3s ease;
}

.nav-item:hover .menu-icon {
  transform: scale(1.2);
}

.menu-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.menu-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  opacity: 0;
  z-index: -1;
  transition: all 0.3s ease;
}

.nav-item:hover::before {
  opacity: 0.2;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--secondary);
  transition: all 0.3s ease;
}

.nav-item:hover::after {
  width: 100%;
}

.close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  transform: scale(0);
}

.overlay.active .close-btn {
  transform: scale(1);
  transition-delay: 0.5s;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg) scale(1.1);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-link:hover {
  background: var(--secondary);
  transform: translateY(-5px);
}

@media (max-width: 1024px) {
  .nav-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .overlay-header h2 {
    font-size: 2.2rem;
  }

  .overlay-header p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem;
    width: 100%;
    top: 0;
    position: relative;
    border-radius: 0;
    max-width: 100%;
    left: 0;
    transform: translateX(0%);
  }

  .nav-logo {
    gap: 1rem;
  }

  .dropdown {
    display: block;
  }

  .phone span {
    display: none;
  }

  .appointment {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .wrap {
    padding: 1.5rem;
  }

  .overlay-header {
    margin-bottom: 2rem;
  }

  .overlay-header h2 {
    font-size: 1.8rem;
  }

  .overlay-header p {
    font-size: 0.9rem;
    padding: 0 1rem;
  }

  .nav-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .nav-item a {
    padding: 1.5rem 1rem;
  }

  .menu-icon {
    font-size: 1.5rem;
  }

  .menu-title {
    font-size: 1rem;
  }

  .menu-desc {
    font-size: 0.8rem;
  }

  .close-btn {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }

  .social-links {
    margin-top: 0px;
    margin-bottom: 30px;
  }

  .social-link {
    width: 35px;
    height: 35px;
  }

  .content {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .nav-logo img {
    height: 40px;
  }

  .nav-right {
    gap: 0.8rem;
  }

  .appointment {
    display: none;
  }

  .overlay-header h2 {
    font-size: 1.5rem;
  }

  .overlay-header p {
    font-size: 0.85rem;
  }

  .nav-list {
    grid-template-columns: 1fr;
  }

  .nav-item a {
    padding: 1.2rem 1rem;
  }

  .menu-icon {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }

  .menu-title {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
  }

  .menu-desc {
    font-size: 0.75rem;
  }

  .social-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .appointment-modal {
    padding: 0.5rem;
  }

  .appointment-modal-dialog {
    padding: 1rem;
    border-radius: 16px;
  }

  .appointment-modal-content .form-control {
    min-height: 36px;
    padding: 6px 9px;
  }

  .appointment-modal-content textarea.form-control {
    min-height: 54px;
  }

  .menu-toggle.active {
    position: fixed;
    top: 1rem;
    right: 1rem;
  }
}

@media (max-width: 575px) {
  .appointment-modal-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.65rem;
  }

  .appointment-modal-close {
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
  }
}
