/* =========================================================
   ORNG Theme
   ========================================================= */

/* -----------------------
   1) Tokens
   ----------------------- */
:root{
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --bg: #090A0B;
  --surface: rgba(255,255,255,.02);
  --border: rgba(255,255,255,.08);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.66);

  --orng: #FF8A3D;
  --purple: #A78BFA;

  --shadow: 0 18px 60px rgba(0,0,0,.55);

  --ease: cubic-bezier(.2,.8,.2,1);
  --t: 140ms;
}

/* -----------------------
   2) Base (Safari-safe)
   ----------------------- */
*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  min-height: 100%;
}

/* Keep body background solid for iOS Safari.
   Gradients are moved to body::before to avoid rendering glitches. */
body{
  font-family: var(--font-sans) !important;
  color: var(--text) !important;
  background: var(--bg) !important;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Gradient background layer */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(1100px 700px at 20% -10%, rgba(255,138,61,.10), transparent 58%),
    radial-gradient(900px 600px at 90% 0%, rgba(167,139,250,.10), transparent 55%),
    var(--bg);
}

.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

.main-content{
  padding: 28px 0 54px !important;
}

::selection{
  background: rgba(255,138,61,.25);
  color: var(--text);
}

/* -----------------------
   3) Typography
   ----------------------- */
h1, h2, h3, h4, h5, h6{
  color: var(--text) !important;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

h1{ font-size: clamp(30px, 4vw, 46px); margin: 0 0 10px; }
h2{ font-size: clamp(22px, 3vw, 30px); margin: 26px 0 12px; }
h3{ font-size: 18px; margin: 18px 0 10px; }

p, li{
  color: var(--muted) !important;
  line-height: 1.7;
}

strong{ font-weight: 600; }

hr{ display: none !important; }

/* Consistent page rhythm + alignment */
.main-content .container > :is(
  h1, h2, h3, p, ul, ol, blockquote, pre,
  .hero, .cta, .contact-card, .scheduler-card
){
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.main-content ul{
  margin: 10px 0 0;
  padding-left: 18px;
}

.main-content li{
  margin: 6px 0;
}

/* -----------------------
   4) Links (Purple)
   ----------------------- */
a{
  color: rgba(167,139,250,.95) !important;
  text-decoration: none !important;
}

a:hover{
  color: rgba(167,139,250,1) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* -----------------------
   5) Header / Nav
   ----------------------- */
.page-header{
  position: sticky;
  top: 0;
  z-index: 50;

  background: rgba(9,10,11,.62) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-bottom: 1px solid var(--border) !important;

  padding: 0 !important;
  margin: 0 !important;

  background-image: none !important;
  box-shadow: none !important;
  text-align: left !important;
}

.header-inner{
  display: flex;
  align-items: center !important;
  justify-content: space-between;
  padding: 14px 0;

  padding-left: 16px !important;
  padding-right: 16px !important;
}

/* iPhone notch safe-area support */
@supports (padding: max(0px)){
  .header-inner{
    padding-left: max(16px, env(safe-area-inset-left)) !important;
    padding-right: max(16px, env(safe-area-inset-right)) !important;
  }
}

.site-logo{
  height: 34px;
  width: auto;
  display: block !important;
  vertical-align: middle !important;
  transform: translateY(1px);
}

.top-nav{
  display: flex;
  gap: 12px;
  align-items: center !important;
  font-size: 14px;
}

.top-nav a{
  color: var(--muted) !important;
  padding: 7px 9px;
  line-height: 1 !important;

  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none !important;
}

.top-nav a:hover{
  color: var(--text) !important;
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.06);
  text-decoration: none !important;
}

.top-nav a.active{
  color: rgba(255,255,255,.90) !important;
  background: rgba(255,255,255,.045) !important;
  border-color: rgba(255,255,255,.07) !important;
}

/* -----------------------
   6) Buttons
   ----------------------- */
.btn,
.btn-secondary{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  height: 42px;
  padding: 0 16px !important;
  border-radius: 12px !important;

  font-weight: 600 !important;
  font-size: 14px !important;
  line-height: 1 !important;

  text-decoration: none !important;

  transition:
    transform var(--t) var(--ease),
    filter var(--t) var(--ease),
    background var(--t) var(--ease);
}

.btn{
  background: linear-gradient(180deg, rgba(255,138,61,.26), rgba(255,138,61,.12)) !important;
  border: 1px solid rgba(255,138,61,.45) !important;
  color: rgba(255,255,255,.94) !important;
}

.btn:hover{
  filter: brightness(1.10);
  transform: translateY(-1px);
  color: rgba(255,255,255,.94) !important;
  text-decoration: none !important;
}

.btn-secondary{
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  color: rgba(255,255,255,.85) !important;
}

.btn-secondary:hover{
  background: rgba(255,255,255,.05) !important;
  transform: translateY(-1px);
  color: rgba(255,255,255,.85) !important;
  text-decoration: none !important;
}

/* -----------------------
   7) Layout blocks
   ----------------------- */
.hero,
.cta,
.contact-card,
.scheduler-card{
  max-width: 860px;
  margin: 18px auto 0;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.hero{
  padding: 26px;
  box-shadow: 0 10px 28px rgba(0,0,0,.45) !important;

  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.02)) !important;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero p{
  line-height: 1.55 !important;
  font-weight: 450 !important;
  max-width: 46ch;
}

.hero-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.hero-meta{
  margin-top: 14px;
  color: rgba(255,255,255,.55);
  font-size: 13px;
}

.cta{
  padding: 22px;
  box-shadow: none;
  opacity: 0.98;
}

.cta h2{ margin-top: 0; }

.contact-card,
.scheduler-card{
  padding: 18px;
}

/* =========================================================
   Contact page layout (fixed)
   ========================================================= */

/* Contact hero can be wider, but text stays clean */
.page-contact .hero{
  max-width: 1100px;
}

.page-contact .hero > :is(h1, h2, h3, p, .hero-actions, .hero-meta){
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* 2-column layout */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}

@media (min-width: 780px){
  .contact-grid{
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
    align-items: stretch;
  }
}

/* Make both tiles behave like consistent cards */
.contact-tile{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 170px;
}

/* Ensure both tiles stretch equally */
.contact-grid > .scheduler-card,
.contact-grid > .contact-card{
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Email link should look like a field, not a purple hyperlink */
.email-link{
  display: inline-block;
  margin-top: 6px;

  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;

  color: rgba(255,255,255,.92) !important;
  text-decoration: none !important;
}

.email-link:hover{
  color: rgba(255,255,255,.94) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* Actions row inside tiles */
.tile-actions{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Copy button = consistent sizing */
.copy-btn{
  height: 40px !important;
  padding: 0 14px !important;
  border-radius: 12px !important;
  cursor: pointer;
  font-size: 13.5px !important;
}

.copy-btn:active{
  transform: translateY(0px);
}

.copy-status{
  min-height: 18px;
  opacity: 0.75;
}

/* -----------------------
   Focus grid
   ----------------------- */
.focus-grid{
  list-style: none;
  padding-left: 0;
  margin: 14px 0 0;

  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;

  max-width: 860px;
}

@media (min-width: 780px){
  .focus-grid{
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
  }
}

.focus-grid li{
  position: relative;
  padding: 14px;

  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.015);

  color: var(--muted) !important;
  line-height: 1.55;

  transition: transform var(--t) var(--ease),
              background var(--t) var(--ease),
              border-color var(--t) var(--ease);
}

.focus-grid li:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.02);
  border-color: rgba(255,255,255,.10);
}

.focus-grid li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 999px;
  background: rgba(255,138,61,.35);
  opacity: 0.65;
}

/* -----------------------
   8) Footer (muted)
   ----------------------- */
.site-footer{
  background: var(--bg) !important;
  border-top: 1px solid rgba(255,255,255,.06) !important;
  box-shadow: none !important;

  text-align: center !important;
  padding: 18px 12px !important;
  margin-top: 44px !important;

  color: rgba(255,255,255,.45) !important;
  font-size: 13px !important;
}

.site-footer p{
  margin: 10px 0 0 !important;
  color: rgba(255,255,255,.42) !important;
  font-size: 13px !important;
}

.footer-nav, .social-links{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 !important;
}

.footer-nav a,
.social-links a{
  color: rgba(255,255,255,.50) !important;
  font-size: 13px !important;
}

.social-links a{
  display: inline-flex;
  padding: 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.footer-nav a:hover,
.social-links a:hover{
  color: rgba(255,255,255,.72) !important;
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.06);
  text-decoration: none !important;
}

/* Utility */
.small{
  color: var(--muted);
  font-size: 14px;
}

/* -----------------------
   Mobile polish
   ----------------------- */
@media (max-width: 520px){
  .container{
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-inner{
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .top-nav{
    gap: 6px;
  }

  .hero{
    padding: 18px;
  }

  h1{
    font-size: 34px;
    line-height: 1.12;
    letter-spacing: -0.025em;
    font-weight: 650;
  }

  h2{
    font-size: 22px;
    line-height: 1.18;
    font-weight: 650;
  }

  p, li{
    font-size: 15px;
    line-height: 1.6;
  }

  .hero-meta{
    font-size: 12.5px;
    line-height: 1.4;
    opacity: 0.85;
  }

  .hero-actions{
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
  }

  .hero-actions .btn,
  .hero-actions .btn-secondary{
    width: 100%;
    height: 44px;
    padding: 0 14px !important;
    border-radius: 14px !important;
  }

  .btn-secondary{
    background: rgba(255,255,255,.02) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
  }

  .focus-grid{
    gap: 10px;
  }

  .focus-grid li{
    padding: 12px;
  }

  .tile-actions{
    row-gap: 6px;
  }
}

/* iOS text consistency */
@supports (-webkit-touch-callout: none){
  body{
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
  }
}

/* Force contact grid children to behave like grid items (not centered blocks) */
.page-contact .contact-grid > .scheduler-card,
.page-contact .contact-grid > .contact-card{
  max-width: none !important;
  margin: 0 !important;
  justify-self: stretch;
}

/* Make contact tiles feel consistent + tighter typography */
.contact-tile{
  gap: 8px;
}

.contact-tile .small{
  line-height: 1.2;
  margin-bottom: 2px;
}

.email-link{
  line-height: 1.35;
  font-size: 16px;
  font-weight: 600;
}

/* Optional supporting line under email */
.email-note{
  opacity: 0.75;
  margin-top: 2px;
}

.email-link{
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.015);
}
.email-link:hover{
  background: rgba(255,255,255,.02);
  border-color: rgba(255,255,255,.12);
}

h2#schedule {
   margin: 3rem;
   margin-left: 0;
}

