/*
Theme Name: Radix Appointments
Theme URI: https://radixsoftware.ca
Author: Radix
Author URI: https://radixsoftware.ca
Description: Custom appointment theme for LatePoint booking flows.
Version: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: radix-appointments
*/

:root {
  --radix-ink: #0b0f16;
  --radix-night: #121826;
  --radix-panel: #151c2e;
  --radix-slate: #1c2538;
  --radix-fog: #9aa4b2;
  --radix-ice: #f7f9fc;
  --radix-blue: #1b7dd6;
  --radix-blue-deep: #0f5aa5;
  --radix-orange: #f07d22;
  --radix-orange-deep: #cf5f0e;
  --radix-line: rgba(255, 255, 255, 0.08);
  --radix-glow: rgba(27, 125, 214, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sora", "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--radix-ink);
  background: var(--radix-ice);
  min-height: 100vh;
}

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

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

.radix-shell {
  background: radial-gradient(circle at 15% 10%, rgba(27, 125, 214, 0.25), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(240, 125, 34, 0.2), transparent 40%),
    #f5f7fb;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.radix-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(245, 247, 251, 0.9);
  border-bottom: 1px solid rgba(9, 14, 24, 0.08);
}

.radix-nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 24px;
}

.radix-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.radix-logo img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(15, 90, 165, 0.2);
}

.radix-logo span {
  font-weight: 600;
  font-size: 18px;
}

.radix-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.radix-menu a {
  font-size: 14px;
  font-weight: 600;
  color: #1c2538;
}

.radix-menu a:hover {
  color: var(--radix-blue);
}

.radix-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--radix-blue), var(--radix-blue-deep));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 15px 30px rgba(27, 125, 214, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.radix-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(27, 125, 214, 0.4);
}

.radix-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.radix-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  margin: 0 0 16px;
  line-height: 1.1;
  color: #0b1526;
}

.radix-hero p {
  font-size: 16px;
  color: #4b5c72;
  margin-bottom: 22px;
}

.radix-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-highlight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(27, 125, 214, 0.12);
  color: var(--radix-blue);
  font-weight: 600;
  font-size: 13px;
}

.radix-hero-panel {
  background: var(--radix-night);
  color: #fff;
  padding: 28px;
  border-radius: 24px;
  box-shadow: 0 22px 45px rgba(12, 18, 34, 0.35);
  position: relative;
  overflow: hidden;
}

.radix-hero-panel::after {
  content: "";
  position: absolute;
  inset: -30% auto auto -20%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(240, 125, 34, 0.35), transparent 60%);
  opacity: 0.8;
}

.radix-hero-panel h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.radix-hero-panel p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 20px;
}

.radix-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
}

.stat-card strong {
  display: block;
  font-size: 18px;
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
}

.section-title p {
  color: #4b5c72;
  margin: 0;
}

.legal-disclaimer {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(9, 14, 24, 0.08);
  box-shadow: 0 15px 30px rgba(12, 18, 34, 0.08);
}

.legal-disclaimer strong {
  color: var(--radix-orange-deep);
}

.radix-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.radix-tab {
  border: 1px solid rgba(12, 18, 34, 0.12);
  background: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  color: #1c2538;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radix-tab.active {
  background: linear-gradient(120deg, var(--radix-blue), var(--radix-blue-deep));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 25px rgba(27, 125, 214, 0.3);
}

.radix-tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.radix-tab-panel.active {
  display: block;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.service-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(12, 18, 34, 0.08);
  box-shadow: 0 18px 30px rgba(12, 18, 34, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 36px rgba(12, 18, 34, 0.12);
}

.service-media {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(12, 18, 34, 0.08);
  background: #f4f6fb;
}

.service-media img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.service-media.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  background: linear-gradient(120deg, rgba(27, 125, 214, 0.12), rgba(240, 125, 34, 0.12));
}

.service-icon {
  font-size: 38px;
  color: var(--radix-blue);
}

.service-card h4 {
  margin: 0;
  font-size: 18px;
}

.service-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: #6c7a90;
}

.service-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(240, 125, 34, 0.15);
  color: var(--radix-orange-deep);
  font-weight: 600;
  font-size: 12px;
}

.radix-footer {
  padding: 40px 20px;
  background: #0b0f16;
  color: #c9d3e2;
  margin-top: auto;
}

.radix-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.radix-footer a {
  color: #c9d3e2;
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 768px) {
  .radix-menu {
    display: none;
  }

  .radix-hero {
    padding-top: 40px;
  }
}
