:root {
  --brand: #44b3eb;
  --max-width: 1100px;
  --page-gap: 20px;
  --base-font-size: 16px;

  /* Header */
  --header-height: 110px;
  --header-logo-height: 160px;
  --nav-gap: 28px;
  --nav-font-size: 18px;
  --flag-w: 50px;
  --flag-h: 40px;

  --muted: #666;
  --card-shadow: rgba(12, 24, 32, 0.06);
}

/* Reset / base */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
}
body {
  font-family:
    "Sora",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: var(--base-font-size);
  color: #111;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

/* Main layout */
main {
  padding-top: var(--header-height);
}

/* Header */
.header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 60;
  background: #fff;
  box-shadow: 0 6px 18px rgba(13, 24, 35, 0.08);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px var(--page-gap);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  min-height: var(--header-height);
  height: auto;
}
.header-inner .nav.nav-left {
  justify-self: end;
  margin-right: 12px;
}
.header-inner .nav.nav-right {
  justify-self: start;
  margin-left: 12px;
}

.nav {
  display: flex;
  gap: var(--nav-gap);
  align-items: center;
  flex-wrap: wrap;
  row-gap: 8px;
}

.logo {
  height: var(--header-logo-height);
  display: inline-block;
  max-height: calc(var(--header-height) + 30px);
  width: auto;
}

/* Links */
.nav-link {
  position: relative;
  text-decoration: none;
  color: #0f1720;
  font-size: var(--nav-font-size);
  font-weight: 700;
  padding: 8px 0;
  white-space: nowrap;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 3px;
  width: 100%;
  background: var(--brand);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 220ms ease;
}
.nav-link:hover::after,
.nav-link:focus::after {
  transform: scaleX(1);
}

/* Language flag */
.lang-flag {
  display: inline-block;
  position: relative;
}
.lang-flag img {
  width: var(--flag-w);
  height: var(--flag-h);
  object-fit: cover;
  transform: translateY(2px);
  border-radius: 20%;
}
.lang-flag::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 3px;
  width: 100%;
  background: var(--brand);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 220ms ease;
}
.lang-flag:hover::after,
.lang-flag:focus::after {
  transform: scaleX(1);
}

/* ===== Header responsiveness (NO overlap, same as style.css) ===== */

@media (max-width: 1100px) {
  :root {
    --header-height: 104px;
    --header-logo-height: 110px;
    --nav-gap: 18px;
    --nav-font-size: 16px;
    --flag-w: 40px;
    --flag-h: 32px;
  }

  .header-inner {
    gap: 18px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 100px;
    --header-logo-height: 96px;
    --nav-gap: 14px;
    --nav-font-size: 14px;
    --flag-w: 38px;
    --flag-h: 30px;
  }

  .header-inner .nav.nav-left,
  .header-inner .nav.nav-right {
    margin: 0;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 140px;
    --header-logo-height: 92px;
    --nav-gap: 14px;
    --nav-font-size: 14px;
    --flag-w: 42px;
    --flag-h: 34px;
  }

  main {
    padding-top: var(--header-height);
  }

  .header-inner {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 10px 14px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    overflow-x: auto;
    scrollbar-width: none;
  }
  .header-inner::-webkit-scrollbar {
    display: none;
  }

  .logo-link {
    order: 0;
  }

  .nav.nav-left,
  .nav.nav-right {
    margin: 0 !important;
    display: inline-flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    row-gap: 0;
    gap: var(--nav-gap);
    align-items: center;
    flex: 0 0 auto;
  }

  .nav.nav-left {
    order: 1;
  }
  .nav.nav-right {
    order: 1;
  }

  .lang-flag img {
    width: var(--flag-w);
    height: var(--flag-h);
    transform: none;
  }

  .nav-link {
    padding: 6px 0;
  }
}

@media (max-width: 600px) {
  :root {
    --header-height: 124px;
    --header-logo-height: 84px;
    --nav-gap: 12px;
    --nav-font-size: 13px;
    --flag-w: 40px;
    --flag-h: 32px;
  }

  main {
    padding-top: var(--header-height);
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 124px;
    --header-logo-height: 76px;
    --nav-gap: 10px;
    --nav-font-size: 12px;
    --flag-w: 38px;
    --flag-h: 30px;
  }

  main {
    padding-top: var(--header-height);
  }
}

/* Contact Hero */
.contact-hero {
  text-align: center;
  padding: 56px var(--page-gap) 48px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-hero h1 {
  margin: 0 0 12px 0;
  font-size: 48px;
  color: #0f1720;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.contact-hero p {
  margin: 0;
  font-size: 18px;
  color: #555;
  font-weight: 400;
  max-width: 640px;
}

/* Contact Info Grid */
.contact-info-section {
  padding: 32px var(--page-gap) 56px;
  background: #f9fafb;
}

.contact-info-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.contact-card {
  background: #fff;
  padding: 32px 24px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(12, 24, 32, 0.06);
  transition:
    transform 280ms ease,
    box-shadow 280ms ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(12, 24, 32, 0.12);
}

.contact-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--brand), #6bc5f0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.contact-card h3 {
  margin: 0 0 12px 0;
  font-size: 20px;
  color: #0f1720;
  font-weight: 700;
}

.contact-card p {
  margin: 6px 0;
  font-size: 16px;
  color: #555;
}

.contact-card a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  transition: color 160ms ease;
}

.contact-card a:hover {
  color: #2a9ad6;
  text-decoration: underline;
}

/* Social Section */
.social-section {
  padding: 56px var(--page-gap);
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.social-section h2 {
  margin: 0 0 24px 0;
  font-size: 36px;
  color: #0f1720;
  font-weight: 700;
}

.social-icons {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
}

.social-link {
  display: inline-flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  background: #f6f8fa;
  border-radius: 50%;
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 200ms ease,
    background 200ms ease;
}

.social-link:hover {
  transform: translateY(-6px) scale(1.08);
  background: var(--brand);
}

.social-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Contact Form */
.contact-form-section {
  padding: 56px var(--page-gap);
  background: #f9fafb;
}

.contact-form-container {
  max-width: 640px;
  margin: 0 auto;
}

.contact-form-container h2 {
  margin: 0 0 32px 0;
  font-size: 36px;
  color: #0f1720;
  font-weight: 700;
  text-align: center;
}

.contact-form {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(12, 24, 32, 0.08);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #0f1720;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-family: inherit;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  transition: border-color 200ms ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
}

.form-group textarea {
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 14px 24px;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background 200ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.submit-btn:hover {
  background: #2a9ad6;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
}

.submit-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* NEW: form status (Formspree UX) */
.form-status {
  margin: 0 0 18px 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
}
.form-status[data-type="loading"] {
  background: rgba(68, 179, 235, 0.12);
  border-color: rgba(68, 179, 235, 0.35);
  color: #0b3a55;
}
.form-status[data-type="success"] {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #0f3d22;
}
.form-status[data-type="error"] {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #4a0f0f;
}

/* honeypot hidden */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Map Section */
.map-section {
  padding: 56px var(--page-gap) 80px;
}

.map-section h2 {
  margin: 0 0 32px 0;
  font-size: 36px;
  color: #0f1720;
  font-weight: 700;
  text-align: center;
}

.map-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.map-item h3 {
  margin: 0 0 16px 0;
  font-size: 20px;
  color: #0f1720;
  font-weight: 700;
  text-align: center;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(12, 24, 32, 0.1);
}

.map-container iframe {
  display: block;
  width: 100%;
}

/* Footer */
.site-footer {
  background: #fff;
  padding: 28px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-gap);
  text-align: center;
}
.footer-inner .muted {
  color: #778;
  font-size: 14px;
  margin: 0;
}

/* ===== Responsive ===== */
@media (min-width: 1400px) {
  :root {
    --max-width: 1300px;
  }

  body {
    font-size: 17px;
  }

  .contact-hero h1 {
    font-size: 54px;
  }
  .contact-hero p {
    font-size: 20px;
    max-width: 720px;
    margin: 0 auto;
  }

  .social-section h2,
  .contact-form-container h2,
  .map-section h2 {
    font-size: 40px;
  }
}

@media (max-width: 900px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .map-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-hero {
    padding: 40px var(--page-gap) 36px;
  }
}

@media (max-width: 720px) {
  .contact-hero h1 {
    font-size: 32px;
  }
  .contact-hero p {
    font-size: 16px;
  }
  .social-section h2,
  .contact-form-container h2,
  .map-section h2 {
    font-size: 28px;
  }
  .contact-form {
    padding: 28px 20px;
  }
  .map-item h3 {
    font-size: 18px;
  }

  .social-link {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 560px) {
  .contact-hero {
    padding: 32px var(--page-gap) 28px;
  }
  .contact-hero h1 {
    font-size: 26px;
  }

  .contact-form-section,
  .social-section,
  .map-section {
    padding: 32px var(--page-gap);
  }

  .contact-form {
    padding: 24px 18px;
  }
}

@media (max-width: 400px) {
  .contact-hero h1 {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .submit-btn,
  .contact-card,
  .social-link {
    transition: none !important;
  }
}
