/*
Theme Name: X Child
Theme URI: https://theme.co/x/
Description: Child theme for X Theme – Orthodontic Associates
Author: Maverick Marketing
Author URI: https://www.maverickmktg.com
Template: x
Version: 1.0.0
*/

/* =========================================
   GLOBAL HEADER (oaH)
========================================= */

.oaH{
  --blue:#2F74B4;
  --navy:#28234D;
  --gold:#F4A700;
  --ink:#151827;
  --line: rgba(40,35,77,.10);
  --shadow: 0 18px 50px rgba(10,15,25,.14);
  --shadow2: 0 10px 26px rgba(10,15,25,.10);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}
.oaH *{ box-sizing:border-box; }

/* Top bar */
.oaH-top{
  background: linear-gradient(90deg, var(--blue), #2b6aa6);
  color:#fff;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 11px;
}
.oaH-top__inner{
  width:min(1280px, calc(100% - 32px));
  margin:0 auto;
  height: 34px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.oaH-top__left{ display:flex; align-items:center; gap:10px; }
.oaH-dot{ width:8px; height:8px; border-radius:999px; background: var(--gold); box-shadow:0 0 0 3px rgba(244,167,0,.25); }
.oaH-top__right{ display:flex; align-items:center; gap: 10px; }
.oaH-top__link{
  color:#fff; text-decoration:none;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  white-space: nowrap;
}
.oaH-top__link:hover{ background: rgba(255,255,255,.16); }

/* Main header */
.oaH-main{
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(255,255,255,.90);
  border-bottom: 1px solid var(--line);
}
@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))){
  .oaH-main{ -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); background: rgba(255,255,255,.82); }
}
.oaH-main__inner{
  width:min(1280px, calc(100% - 32px));
  margin:0 auto;
  min-height: 96px;
  display:grid;
  grid-template-columns: auto 1fr auto;
  align-items:center;
  gap: 16px;
}

/* Logo */
.oaH-logo{
  display:flex; align-items:center; gap:12px; text-decoration:none;
  font-family: "WESTMOUND", "Westmound", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-weight: 700;
}
.oaH-logo img{
  height: 58px;
  width:auto;
  max-width: 360px;
  display:block;
}

/* Nav */
.oaH-nav{
  display:flex;
  align-items:center;
  gap: 6px;
  flex-wrap: nowrap;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.oaH-nav::-webkit-scrollbar{ display:none; }

.oaH-nav a{
  color: var(--navy);
  text-decoration:none;
  font-weight: 900;
  font-size: 14px;
  padding: 12px 12px;
  border-radius: 14px;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.oaH-nav a:hover{
  background: rgba(47,116,180,.08);
  color: var(--blue);
  transform: translateY(-1px);
}

/* Right actions */
.oaH-actions{
  display:flex;
  justify-content:flex-end;
  gap: 12px;
  align-items:center;
}
.oaH-phone{
  display:inline-flex; align-items:center; gap:10px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(40,35,77,.10);
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow2);
  text-decoration:none;
  color: var(--navy);
  font-weight: 950;
  font-size: 14px;
  white-space: nowrap;
}
.oaH-phone svg{ width:18px; height:18px; fill: var(--blue); }

.oaH-cta{
  display:inline-flex; align-items:center; justify-content:center;
  height: 50px;
  padding: 0 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffcf57, var(--gold));
  color: #151827;
  font-weight: 1000;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: 12px;
  text-decoration:none;
  box-shadow: 0 18px 34px rgba(244,167,0,.26);
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 980px){
  .oaH-main__inner{ grid-template-columns: 1fr auto; }
  .oaH-nav{ display:none; }
  .oaH-phone{ display:none; }
  .oaH-logo img{ height: 48px; max-width: 280px; }
}

/* Hide X default header */
#masthead,
#x-masthead,
.x-masthead,
header.masthead,
.masthead,
.x-header,
.x-navbar,
.x-navbar-wrap,
.x-brand,
.x-nav-wrap,
.x-header-landmark{
  display:none !important;
}

/* Admin bar offset */
body.admin-bar .oaH-main{ top: 32px; }
@media (max-width:782px){
  body.admin-bar .oaH-main{ top: 46px; }
}

/* =========================================
   FOOTER COMPLETO (Imagen 2)
   = pre-footer consult + barra azul
========================================= */

/* Hide X default footer */
#colophon,
#x-colophon,
.x-colophon,
footer.x-colophon,
.site-footer,
footer.site-footer{
  display:none !important;
}

/* HARD RESET WRAPPER (prevents "right side") */
#oa-site-footer{
  position: static !important;
  float: none !important;
  clear: both !important;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;

  flex: 0 0 100% !important;
  align-self: stretch !important;
}

/* PRE-FOOTER CTA */
.oaFooterCTA{
  --ink: #1f2a44;
  --brand-blue: #2f62a3;
  --brand-blue-dark: #0c2a57;
  --brand-gold: #f2b44c;
  --dot: rgba(47, 98, 163, 0.25);
  --bg: #fbfcfe;
  --border: #d9dbe2;
  --placeholder: #a8acb6;

  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px);
  background-size: 26px 26px;

  padding: 70px 24px 40px;
}

.oaFooterCTA__inner{
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 420px 1fr;
  column-gap: 90px;
  align-items: start;
}

/* LEFT */
.oaFooterCTA__left{ padding-top: 135px; }

.oaFooterCTA__brand{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:36px;
}
.oaFooterCTA__brand svg{
  width:78px;
  height:78px;
  flex:0 0 auto;
}
.oaFooterCTA__brandName{
  display:flex;
  flex-direction:column;
  line-height:1.05;
  letter-spacing:.38em;
  text-transform:uppercase;
  font-weight:600;
  color:#222b45;
}
.oaFooterCTA__brandName .top,
.oaFooterCTA__brandName .bottom{ font-size:22px; }
.oaFooterCTA__brandName .bottom{ margin-top:6px; }

.oaFooterCTA__location h4{
  margin:0 0 10px 0;
  font-size:18px;
  font-weight:800;
  color:#000;
}
.oaFooterCTA__location p{
  margin:0 0 8px 0;
  font-size:18px;
  line-height:1.45;
  color:#243a6b;
  font-weight:500;
}
.oaFooterCTA__phone{
  margin-top:26px;
  font-size:20px;
  font-weight:500;
}
.oaFooterCTA__phone a{
  color:#243a6b;
  text-decoration:none;
}
.oaFooterCTA__social{
  margin-top:22px;
  display:flex;
  gap:14px;
  align-items:center;
}
.oaFooterCTA__social a{
  display:inline-flex;
  width:22px;
  height:22px;
  color:#102a58;
  text-decoration:none;
}
.oaFooterCTA__social svg{
  width:22px;
  height:22px;
  display:block;
  fill:currentColor;
}

/* RIGHT */
.oaFooterCTA__right{ padding-top: 35px; }

.oaFooterCTA__right h2{
  margin:0 0 14px 0;
  font-size:64px;
  font-weight:800;
  letter-spacing:-0.02em;
  color: var(--brand-gold);
}

.oaFooterCTA__lead{
  margin:0 0 34px 0;
  max-width:860px;
  font-size:18px;
  line-height:1.5;
  color:#111;
  font-weight:500;
}

.oaFooterCTA__q{
  margin:0 0 12px 0;
  font-size:16px;
  color:#222;
  font-weight:500;
}
.oaFooterCTA__radios{
  display:grid;
  gap:10px;
  margin:0 0 18px 0;
}
.oaFooterCTA__radioRow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:16px;
  color:#111;
  font-weight:500;
}
.oaFooterCTA__radioRow input[type="radio"]{
  width:14px;
  height:14px;
  margin:0;
  accent-color:#2d6df6;
  transform: translateY(-0.5px);
}
.oaFooterCTA__radioRow input[type="radio"]:checked + span{ font-weight:800; }

.oaFooterCTA__form{ max-width:980px; }

.oaFooterCTA__field{
  width:100%;
  height:48px;
  border:1px solid var(--border);
  background:#fff;
  padding:0 16px;
  font-size:16px;
  outline:none;
  margin:0 0 18px 0;
}
.oaFooterCTA__field::placeholder{
  color: var(--placeholder);
  font-weight:500;
}

.oaFooterCTA__btn{
  margin-top:8px;
  height:52px;
  min-width:150px;
  border:none;
  background: var(--brand-blue);
  color:#fff;
  font-weight:800;
  letter-spacing:.18em;
  text-transform:uppercase;
  cursor:pointer;
}
.oaFooterCTA__btn:active{ transform: translateY(1px); }

/* Responsive CTA */
@media (max-width: 1100px){
  .oaFooterCTA__inner{
    grid-template-columns: 1fr;
    row-gap: 50px;
  }
  .oaFooterCTA__left{ padding-top: 30px; }
  .oaFooterCTA__right{ padding-top: 0; }
  .oaFooterCTA__right h2{ font-size: 44px; }
}

/* FINAL BLUE BAR */
.oaFooterBar{
  width: 100%;
  background:#0b1f3d;
  color: rgba(255,255,255,.85);
  padding: 14px 18px;
}
.oaFooterBar__inner{
  width:min(1280px, calc(100% - 32px));
  margin:0 auto;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  font-size:13px;
  line-height:1.5;
  text-align:center;
}
.oaFooterBar a{
  color: rgba(255,255,255,.85);
  text-decoration:none;
}
.oaFooterBar a:hover{ text-decoration: underline; }
.oaFooterBar__sep{ opacity: .6; }
