/* ============================================
   Smile Again Group - Main Stylesheet
   Converted from React/Tailwind design system
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ---- CSS Variables / Design Tokens ---- */
:root {
  --background: hsl(210, 33%, 98%);
  --foreground: hsl(220, 20%, 10%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(220, 20%, 10%);
  --primary: hsl(215, 73%, 19%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(210, 33%, 97%);
  --secondary-foreground: hsl(215, 73%, 19%);
  --muted: hsl(210, 20%, 95%);
  --muted-foreground: hsl(215, 10%, 45%);
  --accent: hsl(354, 76%, 50%);
  --accent-foreground: hsl(0, 0%, 100%);
  --border: hsl(214, 20%, 90%);
  --radius: 0.5rem;
  --sag-blue: hsl(215, 73%, 19%);
  --sag-blue-mid: hsl(210, 68%, 23%);
  --sag-blue-deep: hsl(214, 82%, 12%);
  --shadow-card: 0 4px 24px -4px hsla(215, 73%, 19%, 0.08);
  --shadow-card-hover: 0 8px 32px -4px hsla(215, 73%, 19%, 0.14);
  font-family: 'Inter', system-ui, sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Space Grotesk', system-ui, sans-serif; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ---- Container ---- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: hsla(0, 0%, 100%, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.logo {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.025em;
}
.logo-accent { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsla(220, 20%, 10%, 0.7);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.lang-toggle {
  display: flex; align-items: center; gap: 0.25rem;
  font-size: 0.875rem; font-weight: 500;
  color: var(--muted-foreground);
  background: none; border: none; cursor: pointer;
  transition: color 0.2s;
}
.lang-toggle:hover { color: var(--primary); }
.nav-mobile-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: var(--foreground); font-size: 1.5rem;
}
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  padding: 0 1rem 1rem;
  gap: 0.5rem;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.nav-mobile-menu a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsla(220, 20%, 10%, 0.7);
}
.nav-mobile-menu a:hover { color: var(--primary); }

/* ---- Active Navigation Links ---- */
.nav-links a.active,
.nav-mobile-menu a.active {
  color: var(--primary);
  font-weight: 700;
  position: relative;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
}

.nav-mobile-menu a.active {
  background: hsla(215, 73%, 19%, 0.06);
  border-radius: 0.5rem;
  padding-left: 0.75rem;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .nav-mobile-menu.open { display: flex; }
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sag-blue), var(--sag-blue-mid), var(--sag-blue-deep));
}
.hero-bg {
  position: absolute; inset: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--sag-blue), var(--sag-blue-mid), var(--sag-blue-deep));
  opacity: 0.6;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  animation: float 6s ease-in-out infinite;
}
.hero-orb-1 {
  top: 25%; left: 25%;
  width: 16rem; height: 16rem;
  background: hsla(354, 76%, 50%, 0.1);
}
.hero-orb-2 {
  bottom: 25%; right: 25%;
  width: 20rem; height: 20rem;
  background: hsla(0, 0%, 100%, 0.05);
  animation-delay: 3s;
}
.hero-content {
  position: relative; z-index: 10;
  text-align: center;
  padding: 0 1rem;
}
.hero-badge {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.hero-badge span {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsla(0, 0%, 100%, 0.6);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--primary-foreground);
  max-width: 56rem;
  margin: 0 auto;
  line-height: 1.1;
}
.hero p {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: hsla(0, 0%, 100%, 0.7);
  max-width: 42rem;
  margin-left: auto; margin-right: auto;
  line-height: 1.6;
}
.hero-buttons {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-hero {
  background: var(--accent);
  color: var(--accent-foreground);
  box-shadow: 0 4px 16px hsla(354, 76%, 50%, 0.3);
}
.btn-hero:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.btn-hero-outline {
  background: transparent;
  color: var(--primary-foreground);
  border: 2px solid hsla(0, 0%, 100%, 0.3);
}
.btn-hero-outline:hover {
  background: hsla(0, 0%, 100%, 0.1);
  border-color: hsla(0, 0%, 100%, 0.5);
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover {
  filter: brightness(1.15);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---- Sections ---- */
.section { padding: 6rem 0; }
.section-alt { background: var(--secondary); }
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--foreground);
  text-align: center;
  margin-bottom: 4rem;
}

/* ---- About ---- */
.about-text {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}
.about-text p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 32rem;
  margin: 4rem auto 0;
}
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background: var(--card);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-card);
}
.stat-card svg { margin-bottom: 0.75rem; color: var(--accent); }
.stat-value {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
}
.stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* ---- Services ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--card);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s;
}
.service-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}
.service-icon {
  width: 3rem; height: 3rem;
  border-radius: 0.5rem;
  background: hsla(215, 73%, 19%, 0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.3s;
}
.service-card:hover .service-icon { background: hsla(354, 76%, 50%, 0.1); }
.service-icon svg { width: 1.5rem; height: 1.5rem; color: var(--primary); transition: color 0.3s; }
.service-card:hover .service-icon svg { color: var(--accent); }
.service-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}
.service-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

/* ---- Approach ---- */
.approach-grid {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
}
.approach-line {
  display: none;
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 2px;
  background: var(--border);
  transform: translateY(-50%);
}
@media (min-width: 1024px) { .approach-line { display: block; } }
.approach-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.approach-circle {
  width: 4rem; height: 4rem;
  border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  position: relative; z-index: 10;
  box-shadow: 0 4px 12px hsla(215, 73%, 19%, 0.3);
}
.approach-circle svg { width: 1.75rem; height: 1.75rem; color: var(--primary-foreground); }
.approach-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.approach-label {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

@media (max-width: 1024px) {
  .approach-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Industries ---- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}
.industry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background: var(--card);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s;
}
.industry-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}
.industry-card svg { width: 2rem; height: 2rem; color: var(--primary); margin-bottom: 0.75rem; }
.industry-card span {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  text-align: center;
}

@media (max-width: 1024px) { .industries-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .industries-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Contact ---- */
.contact-grid {
  max-width: 56rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon-box {
  width: 3rem; height: 3rem;
  border-radius: 0.5rem;
  background: hsla(215, 73%, 19%, 0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-icon-box svg { width: 1.25rem; height: 1.25rem; color: var(--primary); }
.contact-item .label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.contact-item .value {
  font-weight: 500;
  color: var(--foreground);
  white-space: pre-line;
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9375rem;
  transition: box-shadow 0.2s;
  outline: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted-foreground);
}
.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 0 3px hsla(215, 73%, 19%, 0.15);
}
.contact-form textarea { resize: none; }
.contact-form .error-msg {
  font-size: 0.75rem;
  color: var(--accent);
  margin-top: -0.5rem;
}
.contact-form .btn { width: 100%; justify-content: center; }

@media (max-width: 1024px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---- Footer ---- */
.footer {
  background: var(--primary);
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer .logo { color: var(--primary-foreground); }
.footer .logo-accent { color: var(--accent); }
.footer p {
  font-size: 0.875rem;
  color: hsla(0, 0%, 100%, 0.6);
}

/* ---- Verify Page ---- */
.verify-page {
  padding-top: 6rem;
  min-height: 100vh;
}
.verify-container {
  max-width: 36rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}
.verify-container h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  text-align: center;
  margin-bottom: 2rem;
}
.verify-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.verify-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  font-size: 0.9375rem;
  outline: none;
  font-family: 'Inter', system-ui, sans-serif;
}
.verify-input:focus { box-shadow: 0 0 0 3px hsla(215, 73%, 19%, 0.15); }
.verify-result {
  padding: 2rem;
  border-radius: 0.75rem;
  text-align: center;
}
.verify-result h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.status-valid { background: hsla(142, 76%, 36%, 0.1); }
.status-valid h2 { color: hsl(142, 76%, 36%); }
.status-cancelled { background: hsla(354, 76%, 50%, 0.1); }
.status-cancelled h2 { color: var(--accent); }
.status-expired { background: hsla(38, 92%, 50%, 0.1); }
.status-expired h2 { color: hsl(38, 92%, 50%); }
.status-notfound { background: hsla(215, 10%, 45%, 0.1); }
.status-notfound h2 { color: var(--muted-foreground); }
.status-notfound p { color: var(--muted-foreground); margin-top: 0.5rem; }
.doc-details { text-align: left; }
.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.detail-label { font-size: 0.875rem; color: var(--muted-foreground); }
.detail-value { font-weight: 500; color: var(--foreground); }
.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.status-badge.status-valid { color: hsl(142, 76%, 36%); }
.status-badge.status-cancelled { color: var(--accent); }
.status-badge.status-expired { color: hsl(38, 92%, 50%); }

/* ---- Animations ---- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}
.animate-delay-1 { animation-delay: 0.15s; }
.animate-delay-2 { animation-delay: 0.3s; }
.animate-delay-3 { animation-delay: 0.45s; }

/* ---- SVG Icons inline sizing ---- */
.icon { width: 1.25rem; height: 1.25rem; display: inline-block; vertical-align: middle; }
.icon-sm { width: 1rem; height: 1rem; }
.icon-lg { width: 2rem; height: 2rem; }
.icon-xl { width: 1.75rem; height: 1.75rem; }