/* ----- CSS Variables / Design Tokens ----- */
:root {
  /* Colors */
  --color-brand: #2563eb;
  /* Primary brand blue */
  --color-brand-dark: #1d4ed8;
  /* Darker blue for hover */
  --color-accent: #eff6ff;
  /* Light blue tint */
  --color-heading: #0f172a;
  /* Very dark navy for headings */
  --color-body: #475569;
  /* Slate gray for body text */
  --color-border: #e2e8f0;
  /* Light border */
  --color-bg: #ffffff;
  /* Page/card background */
  --color-page: #f8fafc;
  /* Subtle off-white page */
  --color-navy: #0f172a;
  /* Dark navy footer background */
  --color-navy-muted: #94a3b8;
  /* Muted text for footer */
  --color-navy-fg: #f1f5f9;
  /* Light text for footer */
  --color-destructive: #ef4444;
  /* Red for required / errors */

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.75rem;
  /* 12px */
  --font-size-sm: 0.8125rem;
  /* 13px */
  --font-size-base: 0.875rem;
  /* 14px */
  --font-size-md: 0.9375rem;
  /* 15px */
  --font-size-lg: 1rem;
  /* 16px */
  --font-size-xl: 1.25rem;
  /* 20px */
  --font-size-2xl: 1.375rem;
  /* 22px */
  --font-size-4xl: 2.75rem;
  /* 44px */

  /* Spacing */
  --header-height: 78px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(15, 35, 85, 0.08);
  --shadow-lg: 0 8px 30px rgba(15, 35, 85, 0.10);

  /* Border radius */
  --radius-sm: 0.375rem;
  /* 6px */
  --radius-md: 0.5rem;
  /* 8px */
  --radius-lg: 0.75rem;
  /* 12px */
  --radius-xl: 1rem;
  /* 16px */
  --radius-full: 9999px;
}


/* =============================================================
   RESET & BASE
   ============================================================= */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--color-body);
  background-color: var(--color-page);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input,
textarea {
  font-family: inherit;
  font-size: inherit;
}


/* =============================================================
   PAGE WRAPPER
   ============================================================= */

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


/* =============================================================
   HEADER
   ============================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: 2rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-img {
  width: 180px;
  height: 50px;
  flex-shrink: 0;
}

.logo-text {
  line-height: 1;
}

.logo-name {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--color-heading);
}

.site-header .logo-name {
  color: var(--color-heading) !important;
}

.logo-name--light {
  color: var(--color-navy-fg);
}

.logo-accent {
  color: var(--color-brand) !important;
}

.logo-tagline {
  margin-top: 3px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-body);
  white-space: nowrap;
}

.logo-tagline--light {
  color: var(--color-navy-muted);
}

/* Navigation */
.main-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
  }
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  height: var(--header-height);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--color-heading);
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-brand);
}

.nav-link--active {
  color: var(--color-brand);
}

/* Active underline bar */
.nav-active-bar {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background-color: var(--color-brand);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-language {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--color-heading);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}

.btn-language:hover {
  color: var(--color-brand);
}


/* =============================================================
   SHARED BUTTONS
   ============================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

/* Outline button */
.btn--outline {
  border-color: var(--color-brand);
  color: var(--color-brand);
  background-color: transparent;
}

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

/* Primary (filled) button */
.btn--primary {
  background-color: var(--color-brand);
  color: #ffffff;
  border-color: var(--color-brand);
}

.btn--primary:hover {
  background-color: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
}

/* Helper: brand text color */
.text-brand {
  color: var(--color-brand);
  text-decoration: none;
}

.text-brand:hover {
  text-decoration: underline;
}


/* =============================================================
   CONTACT MAIN
   ============================================================= */

.contact-main {
  position: relative;
  flex: 1;
  overflow: hidden;
  background-color: var(--color-page);
}

/* Decorative background image (right side) */
.contact-bg-img {
  position: absolute;
  top: 0;
  right: -2.5rem;
  width: 38%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  pointer-events: none;
  display: none;
  /* shown only on xl screens */
}

/* Gradient overlay to fade the image edge */
.contact-bg-fade {
  position: absolute;
  inset-block: 0;
  right: 10%;
  width: 40%;
  background: linear-gradient(to right, var(--color-page), rgba(248, 250, 252, 0.8), transparent);
  pointer-events: none;
  display: none;
}

@media (min-width: 1280px) {

  .contact-bg-img,
  .contact-bg-fade {
    display: block;
  }
}

/* Main two-column grid */
.contact-grid {
  position: relative;
  max-width: 1400px;
  margin-inline: auto;
  padding: 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1.05fr;
    padding-inline: 5rem;
    gap: 2rem;
  }
}

@media (min-width: 1400px) {
  .contact-grid {
    padding-inline: 8rem;
    gap: 3rem;
  }
}


/* =============================================================
   LEFT COLUMN — CONTACT INFO
   ============================================================= */

.contact-info {
  max-width: 520px;
}

/* Eyebrow label */
.contact-eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-brand);
}

/* Page heading */
.contact-heading {
  margin-top: 0.5rem;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--color-heading);
}

/* Subtitle */
.contact-subtext {
  margin-top: 0.5rem;
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--color-body);
}

/* Contact detail list */
.contact-details {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  padding: 0;
}

.contact-detail-item {
  display: flex;
  gap: 1rem;
}

/* Icon circle */
.detail-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background-color: var(--color-bg);
  box-shadow: 0 2px 10px rgba(15, 35, 85, 0.08);
  color: var(--color-brand);
}

.detail-icon svg {
  width: 16px;
  height: 16px;
}

.detail-label {
  padding-top: 1px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-heading);
}

.detail-value {
  margin-top: 0.15rem;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--color-body);
}

/* Contact page social media links */
.contact-social-item {
  margin-top: 0.2rem;
  margin-left: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social-links-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-social-links {
  display: flex;
  gap: 0.875rem;
  align-items: center;
}

.contact-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-brand);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.contact-social-link:hover {
  background-color: var(--color-brand);
  border-color: var(--color-brand);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Schedule a call card */
.schedule-card {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background-color: var(--color-bg);
}

.schedule-icon {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background-color: var(--color-accent);
  color: var(--color-brand);
}

.schedule-icon svg {
  width: 40px;
  height: 40px;
}

.schedule-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-heading);
}

.schedule-text {
  margin-top: 0.15rem;
  font-size: var(--font-size-xs);
  line-height: 1.5;
  color: var(--color-body);
}

.schedule-btn {
  margin-top: 0.75rem;
  padding: 0.4rem 0.85rem;
  font-size: var(--font-size-xs);
}


/* =============================================================
   RIGHT COLUMN — CONTACT FORM CARD
   ============================================================= */

.contact-form-card {
  padding: 1.25rem 1.5rem;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(15, 35, 85, 0.06);
}

.form-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-heading);
}

.form-subtitle {
  margin-top: 0.25rem;
  font-size: 12.5px;
  color: var(--color-body);
}

/* Form */
.contact-form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

/* Two-column row */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.125rem;
}

@media (min-width: 600px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Form group */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Label */
.form-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-heading);
}

/* Required asterisk */
.required {
  color: var(--color-destructive);
  margin-left: 2px;
}

/* Input & Textarea */
.form-input {
  width: 100%;
  padding: 0.65rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-bg);
  font-size: var(--font-size-sm);
  color: var(--color-heading);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input::placeholder {
  color: #94a3b8;
}

.form-input:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Textarea */
.form-textarea {
  resize: none;
  min-height: 110px;
  height: 110px;
}

/* Form footer row: checkbox + submit button */
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.25rem;
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 11.5px;
  color: var(--color-body);
  cursor: pointer;
}

.form-checkbox {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  accent-color: var(--color-brand);
  cursor: pointer;
}

.mobile-menu-toggle {
  display: none;
}

/* Mobile Header & Navigation Adjustments */
@media (max-width: 1023px) {
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--color-heading);
    border: none;
    background: none;
    cursor: pointer;
  }

  .nav-menu {
    display: none !important;
  }
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding-inline: 1rem;
    gap: 1rem;
  }

  .logo-tagline {
    display: none;
  }

  .logo-name {
    font-size: 1.25rem;
  }

  .header-actions .btn-lang,
  .header-actions .btn-language,
  .header-actions .btn--outline {
    display: none;
  }

  .header-actions .btn--primary {
    display: none !important;
  }

  /* =============================================================
     CONTACT PAGE MOBILE RESPONSIVE STYLES
     ============================================================= */

  /* Reduce outer page padding */
  .contact-grid {
    display: flex !important;
    flex-direction: column !important;
    padding: 1rem !important;
    gap: 0.5rem !important;
  }

  /* LEFT COLUMN — INFO */
  .contact-info {
    display: contents !important;
  }

  .contact-eyebrow {
    order: 1 !important;
    font-size: 11px !important;
    letter-spacing: 0.1em !important;
  }

  .contact-heading {
    order: 2 !important;
    font-size: 1.625rem !important;
    margin-top: 0.125rem !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
  }

  .contact-subtext {
    order: 3 !important;
    font-size: 12.5px !important;
    margin-top: 0.125rem !important;
    line-height: 1.5 !important;
  }

  /* Contact detail list — compact */
  .contact-details {
    order: 4 !important;
    margin-top: 0.75rem !important;
    gap: 0.625rem !important;
  }

  .contact-social-item {
    margin-top: 0.2rem !important;
    margin-left: 2.75rem !important;
    gap: 0.375rem !important;
  }

  .social-links-title {
    font-size: 11px !important;
  }

  .contact-social-links {
    gap: 0.625rem !important;
  }

  .contact-social-link {
    width: 32px !important;
    height: 32px !important;
  }

  .contact-social-link svg {
    width: 15px !important;
    height: 15px !important;
  }

  .contact-detail-item {
    gap: 0.75rem !important;
  }

  .detail-icon {
    width: 32px !important;
    height: 32px !important;
  }

  .detail-icon svg {
    width: 14px !important;
    height: 14px !important;
  }

  .detail-label {
    font-size: 12.5px !important;
  }

  .detail-value {
    font-size: 11px !important;
    margin-top: 0.1rem !important;
  }

  /* Schedule card — compact horizontal layout (Moved below the form) */
  .schedule-card {
    order: 6 !important;
    margin-top: 1.25rem !important;
    padding: 0.875rem !important;
    gap: 0.75rem !important;
    border-radius: 12px !important;
  }

  .schedule-icon {
    width: 52px !important;
    height: 52px !important;
    flex-shrink: 0 !important;
  }

  .schedule-icon svg {
    width: 24px !important;
    height: 24px !important;
  }

  .schedule-title {
    font-size: 12.5px !important;
  }

  .schedule-text {
    font-size: 11px !important;
    margin-top: 0.1rem !important;
  }

  .schedule-btn {
    font-size: 11.5px !important;
    padding: 0.35rem 0.75rem !important;
    margin-top: 0.5rem !important;
  }

  /* RIGHT COLUMN — FORM CARD */
  .contact-form-card {
    order: 5 !important;
    margin-top: 1.25rem !important;
    padding: 1rem !important;
    border-radius: 14px !important;
  }

  .form-title {
    font-size: 15px !important;
  }

  .form-subtitle {
    font-size: 11.5px !important;
    margin-top: 0.2rem !important;
  }

  .contact-form {
    margin-top: 0.875rem !important;
    gap: 0.625rem !important;
  }

  .form-label {
    font-size: 11.5px !important;
  }

  .form-input {
    font-size: 12.5px !important;
    padding: 0.45rem 0.625rem !important;
  }

  .form-textarea {
    min-height: 72px !important;
    height: 72px !important;
    font-size: 12.5px !important;
  }

  /* Keep form inputs side-by-side on mobile to prevent height increase */
  .form-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
  }

  /* Form footer: keep checkbox and button side-by-side */
  .form-footer {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }

  /* Submit button: compact and auto width */
  .form-footer .btn--primary {
    width: auto !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 12px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
  }

  .checkbox-label {
    font-size: 10px !important;
    line-height: 1.25 !important;
  }
}