/* =========================
   MapleDent Cloud — Static site
   Cloudflare Pages friendly (no build step)
   ========================= */

/* OFFICIAL FONT
   If you have the official font files, put them in /fonts and update these rules.
   Example:
   @font-face {
     font-family: "MapleOfficial";
     src: url("/fonts/MapleOfficial.woff2") format("woff2");
     font-weight: 100 900;
     font-style: normal;
     font-display: swap;
   }
   @font-face {
     font-family: "MapleOfficial";
     src: url("/fonts/MapleOfficial-Italic.woff2") format("woff2");
     font-weight: 100 900;
     font-style: italic;
     font-display: swap;
   }
*/

:root{
  --maple-blue: #3E92C2;
  --maple-orange: #FF6600;
  --maple-coral: #DE744D;

  --bg: #0b1220;
  --panel: rgba(255,255,255,0.06);
  --panel-strong: rgba(255,255,255,0.10);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);
  --faint: rgba(255,255,255,0.55);
  --border: rgba(255,255,255,0.16);

  --radius: 18px;
  --shadow: 0 12px 40px rgba(0,0,0,0.35);

  --container: 1120px;

  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --font-brand: var(--font-sans); /* set to your official font family name when you add it */
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: radial-gradient(900px 420px at 12% 10%, rgba(62,146,194,0.30), transparent 60%),
              radial-gradient(700px 380px at 85% 8%, rgba(255,102,0,0.18), transparent 60%),
              radial-gradient(900px 520px at 60% 85%, rgba(222,116,77,0.14), transparent 65%),
              var(--bg);
  line-height: 1.5;
}

img{ max-width: 100%; height: auto; }
a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.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;
}

.skip-link{
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.14);
  border: 1px solid var(--border);
  transform: translateY(-130%);
  transition: transform 120ms ease;
  z-index: 999;
}
.skip-link:focus{ transform: translateY(0); }

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,0.70);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 0;
  gap: 14px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 220px;
}
.brand-mark{
  width: 34px;
  height: 34px;
}
.brand-name{
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nav{
  display:flex;
  align-items:center;
  gap: 16px;
}
.nav a{
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
}
.nav a:hover{
  background: rgba(255,255,255,0.08);
  color: var(--text);
  text-decoration: none;
}

.nav-toggle{
  display:none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
}
.hamburger{
  width: 18px;
  height: 12px;
  display:block;
  position: relative;
}
.hamburger::before,
.hamburger::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  height:2px;
  background: rgba(255,255,255,0.82);
  border-radius: 999px;
}
.hamburger::before{ top: 1px; }
.hamburger::after{ bottom: 1px; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  background: linear-gradient(135deg, rgba(255,102,0,0.95), rgba(222,116,77,0.92));
  color: #0b1220;
  font-weight: 800;
  text-decoration:none;
  box-shadow: 0 10px 30px rgba(255,102,0,0.18);
}
.btn:hover{ text-decoration:none; filter: brightness(1.02); }
.btn:active{ transform: translateY(1px); }

.btn-small{ padding: 10px 12px; border-radius: 12px; font-weight: 800; }
.btn-ghost{
  background: rgba(255,255,255,0.06);
  color: var(--text);
  box-shadow: none;
}
.btn-ghost:hover{ background: rgba(255,255,255,0.10); }

/* Hero */
.hero{
  position: relative;
  padding: 56px 0 28px;
  overflow: hidden;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.hero-copy{
  position: relative;
  padding: 18px 18px 16px;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(11,18,32,0.52);
  backdrop-filter: blur(10px);
}
.hero-copy::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: inherit;
  pointer-events:none;
  background: radial-gradient(700px 260px at 15% 10%, rgba(62,146,194,0.16), transparent 60%),
              radial-gradient(700px 260px at 85% 20%, rgba(255,102,0,0.10), transparent 60%);
  opacity: 0.9;
}
.hero-wordmark{
  background: rgba(0,0,0,0.14);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 10px 12px;
}

.hero-wordmark{
  width: min(520px, 100%);
  height: auto;
  margin-bottom: 10px;
  filter: drop-shadow(0 14px 40px rgba(0,0,0,0.25));
}
.hero h1{
  font-size: clamp(32px, 4vw, 46px);
  margin: 10px 0 12px;
  letter-spacing: -0.02em;
}
.lead{
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 18px;
}
.cta-row{
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.trust-row{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  font-size: 0.95rem;
}
.pill-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--maple-blue);
  box-shadow: 0 0 0 4px rgba(62,146,194,0.18);
}

/* Card */
.card{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.05));
  box-shadow: var(--shadow);
  padding: 18px;
}
.card-top{
  display:flex;
  align-items:center;
  gap: 12px;
  margin-bottom: 10px;
}
.card-icon{ width: 44px; height: 44px; }
.card-title{ margin:0; font-weight: 900; letter-spacing: 0.2px; }

.checklist{
  list-style: none;
  padding: 0;
  margin: 10px 0 16px;
  display:grid;
  gap: 10px;
}
.checklist li{
  padding-left: 28px;
  position: relative;
  color: var(--muted);
}
.checklist li::before{
  content:"";
  width: 16px;
  height: 16px;
  border-radius: 6px;
  position: absolute;
  left: 0;
  top: 3px;
  background: rgba(62,146,194,0.25);
  border: 1px solid rgba(62,146,194,0.55);
  box-shadow: 0 0 0 4px rgba(62,146,194,0.10);
}
.card-actions{ display:flex; gap: 10px; flex-wrap: wrap; }

/* Sections */
.section{ padding: 54px 0; }
.section-alt{
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.section-head{
  margin-bottom: 22px;
}
.section-head h2{
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.section-head p{
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
}

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.grid-2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.feature{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  padding: 18px;
}
.feature h3{ margin: 0 0 6px; }
.feature p{ margin: 0; color: var(--muted); }
.feature-strong{
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.04));
}

.callout{
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,102,0,0.18);
  background: radial-gradient(700px 240px at 20% 20%, rgba(255,102,0,0.18), transparent 60%),
              rgba(255,255,255,0.04);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.callout p{ margin:0; color: var(--muted); }

/* Steps */
.steps{
  margin: 0;
  padding: 0;
  list-style: none;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  counter-reset: step;
}
.steps li{
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  position: relative;
}
.steps li::before{
  counter-increment: step;
  content: counter(step);
  position:absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--faint);
  font-weight: 900;
}
.steps h3{ margin: 0 0 6px; }
.steps p{ margin: 0; color: var(--muted); }

.note{
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.20);
  color: var(--muted);
}

/* Contact */
.contact-grid{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  align-items: start;
}
.form{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  padding: 18px;
}
label{ display:grid; gap: 6px; margin-bottom: 12px; color: var(--muted); font-weight: 600; }
input, textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.18);
  color: var(--text);
  outline: none;
}
input:focus, textarea:focus{
  border-color: rgba(62,146,194,0.70);
  box-shadow: 0 0 0 4px rgba(62,146,194,0.14);
}
.form-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-actions{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.fineprint{
  margin: 10px 0 0;
  color: var(--faint);
  font-size: 0.92rem;
}
.contact-card .card{ position: sticky; top: 92px; }
.contact-logo{ width: min(320px, 100%); display:block; margin: 0 auto; }
.divider{ height: 1px; background: rgba(255,255,255,0.10); margin: 14px 0; }
.contact-line{ margin: 6px 0; color: var(--muted); }
.mini{ margin-top: 12px; }
.mini-title{ margin: 0 0 6px; font-weight: 900; }
.mini ul{ margin: 0; padding-left: 18px; color: var(--muted); }

/* Footer */
.site-footer{
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-left{ display:flex; align-items:center; gap: 12px; }
.footer-icon{ width: 30px; height: 30px; opacity: 0.95; }
.footer-title{ margin:0; font-weight: 900; }
.footer-sub{ margin: 2px 0 0; color: var(--faint); font-size: 0.95rem; }
.footer-right{ display:flex; gap: 14px; color: var(--muted); }

/* Responsive */
@media (max-width: 920px){
  .hero-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .contact-card .card{ position: relative; top: 0; }
}
@media (max-width: 780px){
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .nav-toggle{ display:inline-flex; }
  .nav{
    position: absolute;
    right: 20px;
    top: 64px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(11,18,32,0.92);
    flex-direction: column;
    align-items: stretch;
    width: min(280px, calc(100vw - 40px));
    box-shadow: var(--shadow);
    display:none;
  }
  .nav a{ color: var(--text); }
  .nav.open{ display:flex; }
  .brand-name{ display:none; }
  .form-row{ grid-template-columns: 1fr; }
}


/* Anchor offset for sticky header */
section{ scroll-margin-top: 86px; }



/* ===== Logo readability upgrades (v4) ===== */
.logo-panel{
  display: inline-block;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(11,18,32,0.82);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 14px 44px rgba(0,0,0,0.42);
}
.hero-wordmark{
  background: transparent; /* panel provides backing */
  border: none;
  padding: 0;
  filter: drop-shadow(0 10px 26px rgba(0,0,0,0.30));
}

/* Backing for small marks (header/footer/card icons) */
.brand-mark,
.footer-icon,
.card-icon{
  background: rgba(11,18,32,0.78);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 6px;
}

/* Stacked logo in contact card gets a readable panel too */
.contact-logo{
  background: rgba(11,18,32,0.80);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 12px 38px rgba(0,0,0,0.35);
}

/* Darken hero background slightly behind content */
.hero-bg{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 12% 10%, rgba(0,0,0,0.38), transparent 60%),
    radial-gradient(900px 520px at 60% 85%, rgba(0,0,0,0.44), transparent 65%),
    linear-gradient(180deg, rgba(11,18,32,0.35), rgba(11,18,32,0.12));
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}
.hero .container{ position: relative; z-index: 1; }

/* Make sticky header more opaque for contrast */
.site-header{
  background: rgba(11,18,32,0.84);
}
