/* GoiSmile — refined Smilico-inspired site */
:root {
  --primary: #0b3d91;
  --primary-dark: #062a66;
  --teal: #00c2a8;
  --teal-dark: #00a890;
  --accent: #1a73e8;
  --text: #1e293b;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f0f7ff;
  --border: #e2e8f0;
  --radius: 16px;
  --radius-pill: 999px;
  --shadow: 0 10px 40px rgba(11, 61, 145, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 61, 145, 0.12);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--teal); }
ul { list-style: none; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Top bar — Get the App */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.9);
  font-size: 0.875rem;
  text-align: center;
  padding: 10px 16px;
  position: relative;
  z-index: 1001;
}
.top-bar a {
  color: #fff;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  margin-left: 6px;
}
.top-bar a:hover {
  color: var(--teal);
  border-color: var(--teal);
}

/* Header — floating pill */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 16px 0 0;
  pointer-events: none;
  transition: padding 0.3s var(--ease);
}
.site-header.scrolled { padding-top: 10px; }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-pill);
  padding: 10px 12px 10px 24px;
  box-shadow: var(--shadow);
  pointer-events: auto;
  max-width: 1100px;
  transition: box-shadow 0.3s var(--ease);
}
.site-header.scrolled .container {
  box-shadow: 0 8px 30px rgba(11, 61, 145, 0.12);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
  letter-spacing: -0.3px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--teal), var(--primary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.5px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--primary);
  background: var(--bg-soft);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.btn-primary {
  background: var(--teal);
  color: #fff !important;
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 194, 168, 0.35);
}
.btn-outline {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.45);
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--primary);
  color: #fff !important;
}
.btn-dark:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.35rem;
  color: var(--primary);
  cursor: pointer;
  padding: 8px 12px;
}

/* Hero */
.hero-section {
  background: linear-gradient(145deg, #062a66 0%, #0b3d91 45%, #0d8a7a 100%);
  min-height: calc(100vh - 42px);
  display: flex;
  align-items: center;
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
  color: #fff;
  margin-top: -80px;
  padding-top: 160px;
}
.hero-section::before {
  content: '';
  position: absolute;
  right: -15%;
  top: -20%;
  width: 55%;
  height: 100%;
  background: radial-gradient(circle, rgba(0,194,168,0.18) 0%, transparent 65%);
  pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}
.hero-section::after {
  content: '';
  position: absolute;
  left: -10%;
  bottom: -30%;
  width: 40%;
  height: 70%;
  background: radial-gradient(circle, rgba(26,115,232,0.15) 0%, transparent 60%);
  pointer-events: none;
  animation: drift 22s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, -20px) scale(1.05); }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.1s forwards;
}
.hero-section h1 {
  font-size: clamp(2.15rem, 4.2vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeUp 0.75s var(--ease) 0.2s forwards;
}
.hero-section h1 span { color: var(--teal); }
.hero-section .lead {
  font-size: 1.12rem;
  opacity: 0;
  max-width: 480px;
  margin-bottom: 32px;
  color: rgba(255,255,255,0.88);
  animation: fadeUp 0.75s var(--ease) 0.35s forwards;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.75s var(--ease) 0.5s forwards;
}
.hero-visual {
  background: rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 44px 36px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.12);
  opacity: 0;
  animation: fadeUp 0.85s var(--ease) 0.4s forwards;
}
.hero-visual .tagline {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.hero-visual p {
  opacity: 0.85;
  font-size: 0.95rem;
  margin: 0;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Page hero (inner) */
.page-hero {
  background: linear-gradient(145deg, #062a66 0%, #0b3d91 50%, #0d8a7a 100%);
  padding: 140px 0 72px;
  color: #fff;
  text-align: center;
  margin-top: -80px;
  padding-top: 160px;
}
.page-hero h1 {
  font-size: clamp(2rem, 3.8vw, 2.7rem);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.page-hero .breadcrumb {
  opacity: 0.7;
  font-size: 0.95rem;
}
.page-hero .breadcrumb a { color: #fff; }
.page-hero .subtitle {
  opacity: 0.85;
  max-width: 560px;
  margin: 12px auto 0;
  font-size: 1.08rem;
}

/* Sections */
section { padding: 88px 0; }
.section-label {
  display: inline-block;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
}
.text-center { text-align: center; }
.text-center .section-desc { margin-left: auto; margin-right: auto; }

/* Cards — minimal, fewer decorative icons */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 44px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.card:hover {
  box-shadow: var(--shadow);
  border-color: transparent;
  transform: translateY(-4px);
}
.card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
}
.card p { color: var(--text-muted); font-size: 0.94rem; margin: 0; }
.card-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* About split */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-visual-box {
  background: linear-gradient(145deg, var(--primary), #0d8a7a);
  border-radius: 24px;
  padding: 44px;
  color: #fff;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-visual-box h3 { font-size: 1.4rem; margin-bottom: 12px; }
.about-visual-box p { opacity: 0.9; margin-bottom: 24px; }
.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.stat-box {
  background: rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.stat-box strong { display: block; font-size: 1.15rem; font-weight: 700; }
.stat-box span { font-size: 0.8rem; opacity: 0.85; }

/* Mission / Vision */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.mv-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
}
.mv-card h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.mv-card ul { margin-top: 16px; }
.mv-card li {
  padding: 6px 0 6px 20px;
  position: relative;
  color: var(--text);
  font-size: 0.95rem;
}
.mv-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

/* FAQ preview */
.faq-list {
  max-width: 720px;
  margin: 40px auto 0;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}
.faq-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}
.faq-more {
  text-align: center;
  margin-top: 28px;
}
.faq-more a {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--primary);
}
.faq-more a:hover { color: var(--teal); }

/* CTA band */
.cta-band {
  background: linear-gradient(145deg, var(--primary-dark), var(--primary) 50%, #0d8a7a);
  color: #fff;
  text-align: center;
  padding: 72px 0;
}
.cta-band h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-band p {
  opacity: 0.9;
  margin-bottom: 28px;
  font-size: 1.08rem;
}

/* Legal / content pages */
.legal-page main .container {
  max-width: 780px;
  padding-top: 36px;
  padding-bottom: 56px;
}
.legal-page h1 {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.legal-page .subtitle {
  color: var(--text-muted);
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.legal-page .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}
.legal-page h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin: 34px 0 12px;
}
.legal-page h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin: 22px 0 8px;
  color: var(--text);
}
.legal-page p { margin-bottom: 14px; color: var(--text); }
.legal-page ul { margin: 12px 0 18px; }
.legal-page ul li {
  padding: 5px 0 5px 18px;
  position: relative;
  color: var(--text);
}
.legal-page ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}
.card-notice {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 22px 0;
}
.card-notice p { margin: 0; color: #9a3412; }
.card-info {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 18px 0;
}
.card-info p { margin: 0 0 8px; }
.card-info p:last-child { margin: 0; }

/* Form */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 194, 168, 0.15);
}
.form-group textarea { min-height: 110px; resize: vertical; }
#submit-btn {
  width: 100%;
  justify-content: center;
  background: var(--teal);
  color: #fff;
  padding: 14px;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
#submit-btn:hover { background: var(--teal-dark); }
#submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.alert {
  padding: 16px 18px;
  border-radius: 12px;
  margin-top: 16px;
}
.alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.hidden { display: none !important; }

/* Link cards */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.link-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  color: inherit;
  display: block;
}
.link-card:hover {
  box-shadow: var(--shadow);
  border-color: transparent;
  transform: translateY(-4px);
  color: inherit;
}
.link-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.link-card p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* Footer — improved */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.72);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand {
  color: #fff;
  margin-bottom: 14px;
  display: inline-flex;
}
.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 280px;
  margin: 0;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px 0;
  font-size: 0.85rem;
}
.footer-bottom a { color: rgba(255,255,255,0.65); }
.footer-bottom a:hover { color: #fff; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .about-split,
  .mv-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    box-shadow: var(--shadow-lg);
    gap: 2px;
  }
  .mobile-toggle { display: block; }
  .site-header .container { position: relative; }
  .hero-section {
    min-height: auto;
    margin-top: -70px;
    padding: 140px 0 60px;
  }
  .page-hero {
    margin-top: -70px;
    padding: 140px 0 56px;
  }
}
@media (max-width: 600px) {
  .site-header .container { padding: 8px 8px 8px 16px; }
  .brand { font-size: 1.1rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
