:root {
  --bg-main: #0b0f19;
  --bg-card: #111827;
  --bg-card-hover: #172033;
  --border-color: #1f2937;
  --border-highlight: #374151;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.12);
  --accent: #10b981;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1120px;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top Announcement Banner */
.launch-banner {
  background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  font-size: 0.85rem;
  padding: 0.6rem 0;
  text-align: center;
  font-weight: 500;
}

.launch-banner strong {
  color: #93c5fd;
}

/* Typography & Headers */
h1 {
  font-size: 2.85rem;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

p {
  color: var(--text-muted);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

.section-header p {
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

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

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-highlight);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-highlight);
}

.btn-outline:hover {
  border-color: var(--text-muted);
  background-color: var(--bg-card);
}

.btn-block {
  width: 100%;
  text-align: center;
}

/* ==========================================================================
   Navigation Bar & Brand Header
   ========================================================================== */
.navbar {
  padding: 1.15rem 0;
  background: rgba(11, 15, 23, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.015em;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.9;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  flex-shrink: 0;
}

.logo-mark svg {
  display: block;
  width: 32px;
  height: 32px;
}

.logo-text {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1;
  white-space: nowrap;
}

.logo-text span {
  color: #38bdf8;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a:not(.btn) {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links a:not(.btn):hover {
  color: #ffffff;
}


/* Hero */
.hero {
  padding: 5rem 0 4rem 0;
  text-align: center;
}

.hero .container {
  max-width: 840px;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-subtext {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Metrics Bar */
.metrics {
  padding: 2.25rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(17, 24, 39, 0.4);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.metric-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Portfolio / Work Section */
.work {
  padding: 5.5rem 0;
}

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

.work-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
}

.work-preview {
  height: 200px;
  padding: 1.25rem;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.hr-preview {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-bottom: 1px solid var(--border-color);
}

.clinic-preview {
  background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
  border-bottom: 1px solid var(--border-color);
}

.trades-preview {
  background: linear-gradient(135deg, #7c2d12 0%, #451a03 100%);
  border-bottom: 1px solid var(--border-color);
}

.work-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border-radius: 6px;
  color: #ffffff;
}

.demo-screen {
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px 8px 0 0;
  padding: 0.75rem;
}

.demo-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 0.5rem;
}

.demo-nav span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #475569;
}

.demo-body h4 {
  font-size: 0.9rem;
  color: #f8fafc;
  margin-bottom: 0.15rem;
}

.demo-body p {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.demo-btn {
  font-size: 0.7rem;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.work-info {
  padding: 1.5rem;
}

.work-info h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.work-info p {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.work-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.work-tags span {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* Services */
.services {
  padding: 5.5rem 0;
  background-color: rgba(17, 24, 39, 0.2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2.25rem 2rem;
  border-radius: 12px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-highlight);
  background-color: var(--bg-card-hover);
}

.service-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--primary-glow);
  border: 1px solid rgba(59, 130, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.service-svg {
  width: 22px;
  height: 22px;
}

/* Packages & Pricing Styles */
.packages {
  padding: 5.5rem 0;
}

.maintenance {
  padding: 5.5rem 0;
  border-top: 1px solid var(--border-color);
  background-color: rgba(17, 24, 39, 0.2);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.package-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.package-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, var(--bg-card) 100%);
}

.package-card.hero-care {
  border-color: #3b82f6;
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.15);
}

.package-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.package-card.featured .package-tag {
  color: var(--primary);
}

.package-desc {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  min-height: 45px;
}

.price-container {
  margin-bottom: 1.25rem;
}

.original-price {
  font-size: 1rem;
  color: #6b7280;
  text-decoration: line-through;
  font-weight: 500;
  display: block;
}

.package-price {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}

.package-price span {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
}

.package-features {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.package-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.package-features li::before {
  content: "✓";
  color: var(--accent);
  margin-right: 0.5rem;
  font-weight: 700;
}

/* Process */
.process {
  padding: 5.5rem 0;
}

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

.step {
  border-left: 2px solid var(--border-highlight);
  padding-left: 1.5rem;
}

.step-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.step h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

/* Contact */
.contact {
  padding: 5.5rem 0;
  border-top: 1px solid var(--border-color);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-details {
  margin-top: 2rem;
}

.detail-item {
  margin-bottom: 1.25rem;
}

.detail-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.detail-item p {
  color: var(--text-main);
  font-weight: 500;
}

.contact-form {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: 12px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--bg-main);
  border: 1px solid var(--border-highlight);
  border-radius: 6px;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-status {
  font-size: 0.9rem;
  margin-top: 1rem;
  text-align: center;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  font-size: 0.85rem;
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-main);
}

/* Responsive */

/* Direct Email Link Styling */
.email-link {
  color: #38bdf8 !important;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.2s ease;
}

.email-link:hover {
  color: #7dd3fc !important;
  text-decoration: underline;
  transform: translateX(2px);
}

/* Mobile Hamburger Toggle (Hidden on Desktop) */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  z-index: 101;
}

.mobile-menu-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-toggle.is-active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Responsive Media Queries (Mobile & Tablet down to 320px)
   ========================================================================== */

/* Tablet & Small Desktop (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .logo {
    font-size: 1.2rem;
    gap: 0.6rem;
  }

  .logo-mark svg {
    width: 28px;
    height: 28px;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a:not(.btn) {
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .nav-links .btn {
    padding: 0.6rem 1rem;
    font-size: 0.88rem;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: clip;
    width: 100%;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .navbar {
    padding: 0.85rem 0;
    width: 100%;
  }

  .nav-content {
    display: flex;
    justify-content: space-between !important;
    align-items: center;
    width: 100%;
  }

  .logo {
    display: inline-flex;
    align-items: center;
    font-size: 1.15rem;
    gap: 0.5rem;
    line-height: 1;
  }

  .logo-mark svg {
    width: 26px;
    height: 26px;
  }

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

  .nav-links {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    background: rgba(11, 15, 25, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 1.5rem 2.5rem 1.5rem;
    gap: 1.25rem;
    text-align: center;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    z-index: 99;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a:not(.btn) {
    font-size: 1.15rem;
    padding: 0.5rem 0;
    color: #e2e8f0;
  }

  .nav-links .btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }

  .launch-banner {
    font-size: 0.75rem;
    line-height: 1.4;
    padding: 0.6rem 0.5rem;
    text-align: center;
    width: 100%;
  }

  .launch-banner .container {
    padding: 0 0.25rem;
    text-align: center;
  }

  .hero {
    padding: 3rem 0 2.5rem 0;
    text-align: center;
  }

  .hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 0.5rem;
    margin: 0 auto;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
    max-width: 100%;
  }

  .hero h1 { 
    font-size: 1.75rem; 
    line-height: 1.2; 
    text-align: center;
    word-break: break-word;
  }

  .hero-subtext {
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .hero-actions { 
    display: flex;
    flex-direction: column; 
    gap: 0.75rem;
    width: 100%; 
    max-width: 100%;
    margin: 0 auto;
    align-items: center;
  }
  
  .hero-actions .btn { 
    width: 100%; 
    text-align: center; 
    justify-content: center;
    padding: 0.75rem 1rem;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .work-grid,
  .services-grid,
  .packages-grid,
  .process-grid {
    grid-template-columns: 1fr !important;
  }

  .service-card,
  .package-card,
  .work-info {
    padding: 1.5rem 1rem;
  }

  .contact-container { 
    grid-template-columns: 1fr; 
    gap: 2rem; 
  }

  .contact-form {
    padding: 1.25rem 0.85rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .cf-turnstile-wrapper {
    justify-content: center;
  }

  .cf-turnstile {
    transform: scale(0.92);
    transform-origin: center top;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}
