/* =========================================================
   Root Variables
   ========================================================= */
:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --border: #e5e7eb;
  --borderf: #9b9a9a36;
  --text: #0f141b;
  --muted: #33363b;

  --primary: #130bb6;
  --title: #276295;
  --primary-soft: #e9f4fc;

  --radius: 14px;
  --nav-h: 100px;
  --shadow: 0 14px 30px rgba(0, 0, 0, 0.15);

  --slogan-blue: #0716ea;
  --slogan-green: #028f00;
  --slogan-bg: #100e1c;
}

/* =========================================================
   Base / Resets
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Inter",
    sans-serif;
  background: var(--bg);
  color: #1f2937;
  line-height: 1.6;
}

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

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

button {
  font-family: inherit;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Make sure main padding isn’t accidentally injected elsewhere */
main {
  padding: 0;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
  text-align: center;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  z-index: 1000;
  text-decoration: none;
  border-radius: 4px;
}

.skip-link:focus {
  top: 10px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Section layout */
.section {
  padding: 64px 0;
}

.section-lg {
  padding: 96px 0;
}

.section-light {
  background: #cfe4eaaf;
}

.section-inner {
  width: min(1100px, 92%);
  margin: auto;
}

@media (max-width: 767px) {
  .section {
    padding: 48px 0;
  }
  .section-lg {
    padding: 72px 0;
  }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.75em;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  font-weight: 680;
}

h2 {
  font-size: 2rem;
  font-weight: 650;
}

h3 {
  font-size: 1.4rem;
  font-weight: 630;
}

h4 {
  font-size: 1.25rem;
  font-weight: 630;
}

@media (max-width: 767px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.9rem;
  }
  h3 {
    font-size: 1.9rem;
  }
}

/* =========================================================
   Header / Navigation
   ========================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.lefts-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: -18px;
}

.menu-btn {
  min-width: 48px;
  min-height: 48px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.05s ease, background 0.2s ease;
}

.menu-btn:hover {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  background: #f9fafb;
}

.menu-btn:active {
  transform: scale(0.97);
}

.menu-btn:focus-visible {
  outline: 3px solid rgba(30, 136, 229, 0.5);
  outline-offset: 2px;
}

.menu-icon {
  width: 18px;
  height: 12px;
  position: relative;
  display: block;
}

.menu-icon span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.menu-icon span:nth-child(1) {
  top: 0;
}
.menu-icon span:nth-child(2) {
  top: 5px;
}
.menu-icon span:nth-child(3) {
  top: 10px;
}

.company {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.site-logo {
  width: auto;
  height: 70px;
  object-fit: contain;
}

.site-title {
  width: auto;
  height: 100px;
  padding: 0;
  object-fit: contain;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: #f9fafb;
}

.btn:focus-visible {
  outline: 3px solid rgba(30, 136, 229, 0.35);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: rgba(30, 136, 229, 0.4);
}

.btn-primary:hover {
  background: #1976d2;
}

.btn-primary:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* =========================================================
   Slogan
   ========================================================= */
.slogan {
  display: inline-flex;
  align-items: center;
}

.slogan-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #e3e7ed99;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 4px 8px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-left: 3px;
  margin-bottom: 12px;
  white-space: nowrap;
}

.slogan-part-blue {
  color: #18108c;
  font-weight: 700;
}
.slogan-part-green {
  color: #117d18;
  font-weight: 700;
}
.slogan-part-blue1 {
  color: #13a7f1;
  font-weight: 700;
}
.slogan-part-green1 {
  color: #3aed29;
  font-weight: 700;
}

.slogan-mobile-text {
  display: inline;
  font-size: 0.95rem;
  font-weight: 650;
}

.slogan-desktop-text {
  display: none;
  font-size: 0.95rem;
  font-weight: 650;
}

/* Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 999;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(320px, 86vw);
  height: 100%;
  background: #ffffff;
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateX(-103%);
  transition: transform 0.25s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  visibility: hidden;
}

.drawer-header {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
}

.drawer-title {
  font-size: 1rem;
  font-weight: 800;
}

.drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  cursor: pointer;
}

.drawer-close:focus-visible {
  outline: 3px solid rgba(30, 136, 229, 0.35);
  outline-offset: 2px;
}

.drawer-body {
  padding: 14px;
  overflow-y: auto;
}

.drawer-nav {
  display: grid;
  gap: 8px;
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  font-weight: 650;
}

.drawer-link:hover {
  background: #f4f9ff;
  border-color: rgba(30, 136, 229, 0.4);
}

.drawer-link:focus-visible {
  outline: 3px solid rgba(30, 136, 229, 0.35);
  outline-offset: 2px;
}

.drawer-link.active {
  background: var(--primary-soft);
  border-color: rgba(30, 136, 229, 0.6);
}

.drawer-cta {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.drawer-cta p {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--muted);
}

html.drawer-open,
html.drawer-open body {
  overflow: hidden;
}

html.drawer-open .drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

html.drawer-open .drawer {
  transform: translateX(0);
  visibility: visible;
}

/* Mobile slogan section */
.slogan-mobile-section {
  display: none;
  text-align: center;
  background: #24242a;
  font-weight: 700;
  font-size: 0.95rem;
}

@media (max-width: 499px) {
  .slogan {
    display: none;
  }

  .slogan-mobile-section {
    display: block;
    padding: 6px;
  }

  .slogan-mobile-section .slogan-pill {
    display: inline;
    background: transparent;
    color: #ffffff;
    border: 0;
    border-radius: 0;
    padding: 12px;
    justify-content: center;
  }

  /* FIX: remove invalid var(#hex) usage */
  .slogan-mobile-section .slogan-part-blue1 {
    color: #13a7f1;
  }

  .slogan-mobile-section .slogan-part-green1 {
    color: #1ffc1b;
  }
}

/* Topbar button sizing tweaks */
@media (min-width: 350px) and (max-width: 499px) {
  .topbar-actions .btn {
    min-height: 30px;
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
    border-radius: 10px;
    max-width: 125px;
    max-height: 45px;
  }
}

@media (min-width: 500px) and (max-width: 554px) {
  .topbar-actions .btn {
    min-height: 30px;
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
    border-radius: 10px;
    max-width: 65px;
    max-height: 45px;
  }
}

@media (min-width: 555px) and (max-width: 767px) {
  .topbar-actions .btn {
    min-height: 30px;
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
    border-radius: 10px;
    max-width: 125px;
    max-height: 45px;
  }
}

@media (min-width: 768px) and (max-width: 782px) {
  .topbar-actions .btn {
    min-height: 30px;
    padding: 0.3rem 0.6rem;
    font-size: 0.9rem;
    border-radius: 10px;
    max-width: 125px;
    max-height: 45px;
  }
}

/* Responsive header sizing */
@media (min-width: 768px) {
  .slogan-mobile-text {
    display: none;
  }
  .slogan-desktop-text {
    display: inline;
  }
}

@media (min-width: 500px) and (max-width: 767px) {
  .site-logo {
    height: 65px;
  }

  .slogan-mobile-text {
    display: none;
  }
  .slogan-desktop-text {
    display: inline;
    font-size: 0.75rem;
    font-weight: 660;
  }
}

@media (min-width: 350px) and (max-width: 767px) {
  .topbar {
    height: 70px;
    backdrop-filter: blur(12px);
  }

  .topbar-inner {
    height: 70px;
  }

  .menu-btn {
    width: 38px;
    height: 48px;
  }

  .menu-icon {
    width: 16px;
    height: 12px;
  }

  .company {
    gap: 0;
    margin: auto;
  }

  .topbar-actions {
    gap: 0;
  }

  .lefts-cluster {
    gap: 6px;
    margin-left: 0;
  }

  .site-title {
    height: 60px;
  }

  .site-logo {
    height: 50px;
  }
}

@media (max-width: 349px) {
  .topbar {
    height: 70px;
    backdrop-filter: blur(12px);
  }

  .topbar-inner {
    height: 70px;
  }

  .menu-btn {
    width: 28px;
    height: 48px;
  }

  .menu-icon {
    width: 12px;
    height: 10px;
  }

  .company {
    gap: 0;
    margin: auto;
  }

  .topbar-actions {
    gap: 0;
  }

  .topbar-actions .btn {
    min-height: 30px;
    min-width: 50px;
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
    border-radius: 10px;
    max-width: 65px;
    max-height: 45px;
  }

  .lefts-cluster {
    gap: 3px;
    margin-left: 0;
  }

  .site-title {
    height: 50px;
  }

  .site-logo {
    height: 40px;
  }
}

/* =========================================================
   GoHighLevel Form Embed + Skeleton Loader
   ========================================================= */
.ghl-form-wrapper {
  width: 100%;
  max-width: 720px;
  margin: 2.5rem auto 0;
  padding: 0;
  background: transparent;
  border-radius: 12px;
  contain: layout size;
  min-height: 656px;
  aspect-ratio: 720 / 656;
  position: relative;
}

.ghl-form-wrapper.loading {
  background: #f5f7fa;
}

.ghl-form-wrapper iframe {
  width: 100%;
  height: 656px;
  border: none;
  display: block;
  background: transparent;
  will-change: contents;
}

/* Skeleton Loader */
.form-skeleton {
  position: absolute;
  inset: 0;
  background: #f5f7fa;
  border-radius: 12px;
  padding: 2rem;
  pointer-events: none;
}

.form-skeleton::before,
.form-skeleton::after {
  content: "";
  position: absolute;
  left: 2rem;
  right: 2rem;
  height: 16px;
  background: linear-gradient(90deg, #e0e4e8 0%, #f0f2f5 50%, #e0e4e8 100%);
  background-size: 200% 100%;
  border-radius: 8px;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.form-skeleton::before {
  top: 2rem;
  width: 60%;
}

.form-skeleton::after {
  top: 5rem;
  width: 100%;
  height: 48px;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.form-skeleton .skeleton-field {
  position: absolute;
  left: 2rem;
  right: 2rem;
  height: 48px;
  background: linear-gradient(90deg, #e0e4e8 0%, #f0f2f5 50%, #e0e4e8 100%);
  background-size: 200% 100%;
  border-radius: 8px;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.form-skeleton .skeleton-field:nth-child(1) {
  top: 9rem;
}
.form-skeleton .skeleton-field:nth-child(2) {
  top: 13rem;
}
.form-skeleton .skeleton-field:nth-child(3) {
  top: 17rem;
  width: 48%;
}
.form-skeleton .skeleton-field:nth-child(4) {
  top: 17rem;
  right: 2rem;
  left: auto;
  width: 48%;
}
.form-skeleton .skeleton-field:nth-child(5) {
  top: 21rem;
  height: 120px;
}

@media (max-width: 768px) {
  .ghl-form-wrapper {
    max-width: 100%;
    margin-top: 2rem;
    min-height: 720px;
    aspect-ratio: auto;
  }

  .ghl-form-wrapper iframe {
    height: 720px;
  }
}

@media (max-width: 480px) {
  .ghl-form-wrapper {
    min-height: 800px;
  }

  .ghl-form-wrapper iframe {
    height: 800px;
  }
}

/* =========================================================
   Schedule Page
   ========================================================= */
.schedule-hero {
  background-image: url("/images/schedule_img1.avif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  min-height: 700px;
  color: #ffffff;
}

.schedule-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.schedule-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
}

.schedule-hero h1 {
  color: #ffffff;
  text-align: center;
}

.schedule-hero-text {
  margin-top: 16px;
  font-size: 1.1rem;
  color: #e5e7eb;
  text-align: center;
}

/* Hero cards grid */
.schedule-hero-cards {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.schedule-card {
  background: #ffffff;
  color: var(--text);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.schedule-card h2 {
  font-size: 1.25rem;
  font-weight: 630;
  text-align: center;
}

.schedule-card ul {
  padding-left: 18px;
  margin: 0;
}

.schedule-card li {
  margin-bottom: 10px;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .schedule-hero-cards {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 32px;
  }

  .schedule-card {
    padding: 40px;
  }
}

@media (max-width: 767px) {
  .schedule-hero {
    padding: 72px 0;
  }
}

/* =========================================================
   Form Section
   ========================================================= */
.schedule-calendar {
  padding-top: 80px;
  padding-bottom: 100px;
}

.schedule-calendar h2 {
  text-align: center;
  margin-bottom: 10px;
}

.schedule-calendar h3 {
  text-align: center;
  font-weight: 600;
  color: var(--text);
  font-size: 1.05rem;
  margin-top: 0;
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .schedule-calendar {
    padding-top: 64px;
    padding-bottom: 80px;
  }

  .schedule-calendar h3 {
    font-size: 1rem;
  }
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  position: relative;
  padding: 40px 0 60px;
  background: #ffffff;
  border-top: 1px solid var(--borderf);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
  justify-items: center;
}

.footer__center {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: center;
  height: auto;
}

/* Note: left as-is even though grid-template-columns syntax is odd */
.footer__nav {
  display: grid;
  grid-template-columns: auto-fit minmax(100px, 1fr);
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.footer__brand .brand__mark {
  width: auto;
  height: 70px;
  align-items: center;
  color: #000000;
}

.footer__links {
  display: inline-flex;
  gap: 22px;
  flex-wrap: wrap;
  color: #0c2a54;
  font-size: 18px;
  font-weight: 600;
}

.footer__note {
  text-align: center;
  margin-bottom: 18px;
  color: #040510;
  font-size: 18px;
  font-weight: 550;
}

@media (min-width: 768px) {
  .footer__brand .brand__mark {
    color: #d2ffcd;
  }

  .footer__links {
    margin-bottom: 30px;
  }
}

@media (max-width: 767px) {
  .footer__brand .brand__mark {
    height: 35px;
    color: #d2ffcd;
  }

  .footer__links {
    font-size: 14px;
    gap: 8px;
  }

  .footer__note {
    font-size: 14px;
  }
}
