:root{
  --maxw: 980px;
  --cardw: 720px;

  /* fallback accents (themes override button styling anyway) */
  --text: #eef2ff;
  --muted: rgba(238,242,255,.75);
  --line: rgba(255,255,255,.14);
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  color: var(--text);
  min-height:100vh;
}

/* Used by preview embeds */
body.embed .sticky-qr,
body.embed .sticky-home,
body.embed .sticky-edit{
  display:none !important;
}

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 16px 50px;
}

.card{
  width: min(var(--cardw), 100%);
  margin: 0 auto;
  border-radius: 22px;
  padding: 22px 18px 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 26px 90px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
}

.header{
  text-align:center;
  margin-bottom: 12px;
}

.logo{
  width: 86px;
  height: 86px;
  border-radius: 18px;
  object-fit: cover;
  display:block;
  margin: 0 auto 10px;
  background: rgba(0,0,0,.22);
}

.brand{
  margin: 0;
  font-size: 34px;
  letter-spacing: .2px;
}

.tagline{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Sections */
.section-title{
  text-align:center;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 13px;
  margin: 6px 0 10px;
}

.about-text{
  text-align:center;
  color: rgba(238,242,255,.88);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 620px;
}

.sep{
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 16px 0;
}

/* Link buttons */
.links{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  justify-content:center;
  margin-top: 10px;
}

.links a.btn{
  text-decoration:none;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.10);
  color: var(--text);
  min-width: 240px;
  text-align:center;
  user-select:none;
  cursor:pointer;
  margin: 4px;
}

/* smaller link style when many buttons exist */
.btn--small{
  padding: 10px 14px;
  min-width: 210px;
}

/* 2-column grid mode for links */
.links--grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
  justify-items: center;
}

.links--grid a.btn{
  width: 100%;
  min-width: 0;
}

/* last full width for odd count */
.btn--last-full{
  grid-column: 1 / -1;
  justify-self: center;
  width: min(520px, 100%);
}

/* Quick contact row (Call/Text/Email) */
.quick-contact{
  display:block;
}

.quick-row{
  display:flex;
  gap: 12px;
  justify-content:center;
  flex-wrap:wrap;
}

.btn--chip{
  min-width: 120px;
  padding: 10px 14px;
  font-size: 13px;
}

/* Contact stack layout */
.contact-stack{
  width: min(520px, 100%);
  margin: 0 auto;
  display:flex;
  flex-direction:column;
  gap: 12px;
  text-align:center;
}

.contact-item{
  padding: 14px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}

.contact-label{
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  opacity: .92;
  margin-bottom: 6px;
}

.contact-value{
  font-weight: 800;
  font-size: 15px;
  color: rgba(238,242,255,.92);
}

.contact-value a{
  color: rgba(238,242,255,.92);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer{
  margin-top: 14px;
  text-align:center;
}

.small{
  color: rgba(238,242,255,.75);
  font-size: 12px;
}

/* Utilities */
.is-hidden{ display:none !important; }

/* =========================
   Sticky Buttons
========================= */

.sticky-home,
.sticky-edit{
  position: fixed;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(0,0,0,.28);
  color: rgba(238,242,255,.92);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  white-space: nowrap;
  line-height: 1;
  backdrop-filter: blur(8px);
}

/* Desktop / default layout */
.sticky-home{
  top: 14px;
  right: 14px;
}

.sticky-edit{
  top: 14px;
  right: 275px;
}

/* Hide home button on homepage only */
body.home #homeSticky{
  display:none !important;
}

/* =========================
   Tablet / medium screens
========================= */

@media (max-width: 700px){
  .sticky-home{
    top: 10px !important;
    right: 10px !important;
    max-width: 185px;
    text-align: center;
  }

  .sticky-edit{
    top: 10px !important;
    right: 230px !important;
  }
}

/* =========================
   Mobile phones
   Force stacked layout
========================= */

@media (max-width: 520px){
  .brand{ font-size: 28px; }
  .btn{ min-width: 200px; }
  .btn--chip{ min-width: 96px; }

  .sticky-home,
  .sticky-edit{
    padding: 8px 10px !important;
    font-size: 11px !important;
    min-width: 0 !important;
    text-align: center !important;
  }

  .sticky-home{
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
    max-width: 165px !important;
  }

  .sticky-edit{
    top: 44px !important;
    right: 8px !important;
    left: auto !important;
    width: auto !important;
    max-width: 90px !important;
  }
}

/* =========================
   Sticky QR
========================= */

.sticky-qr{
  position: fixed;
  top: 14px;
  left: 14px;
  width: 90px;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.20);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  z-index: 9998;
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(8px);
}

.sticky-qr img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

@media (max-width: 520px){
  .sticky-qr{
    top: 8px;
    left: 8px;
    width: 78px;
    height: 78px;
  }
}

/* Slight polish for overall layout feel */
.card,
.contact-item,
.sticky-home,
.sticky-edit,
.sticky-qr{
  transition: all .18s ease;
}