/* ==========================================================================
   Rose Dental Group & Orthodontics — brand stylesheet
   --------------------------------------------------------------------------
   Replica of https://oxnardrosedental.com/ (an Elementor build on the
   hello-elementor + marina-dental child theme). Palette and type are the
   client's real values, read out of their Elementor kit CSS (post-14.css):

     primary  #EE393F   the rose red used for headings, rules and CTA bars
     accent   #C39A65   the warm gold in the section gradients
     text     #232323
     muted    #707B8E
     light    #F5F5F5

   Everything here is namespaced `orx-`. That is deliberate: @dental/core ships
   a SHARED responsive.css that loads AFTER this file and styles the legacy
   issa class names (.headerMain, .TeamSection, .appointmentWork, .card.plans,
   .custom-btn, .fs-16/32/40 …). Reusing any of those would hand the last word
   to a stylesheet this site does not control.

   Core hardcodes Inter + Manrope in <head>, so the client's Roboto /
   Roboto Slab are pulled in here — this per-site brand file is the only hook
   for it (see packages/core/src/components/Meta.astro).
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&family=Roboto+Slab:wght@400;500;600;700&display=swap');

:root {
  --orx-primary: #EE393F;
  --orx-primary-dark: #d22a30;
  --orx-accent: #C39A65;
  --orx-ink: #232323;
  --orx-muted: #707B8E;
  --orx-light: #F5F5F5;
  --orx-black: #000;
  --orx-sans: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --orx-slab: 'Roboto Slab', Georgia, serif;
  /* The cream/gold wash the client uses behind alternating sections. */
  --orx-wash: linear-gradient(100deg, #fff 0%, #fff 38%, #f6ecdd 68%, #e8d5ba 100%);
  --orx-shell: 1200px;
}

/* --- base ---------------------------------------------------------------- */
body {
  font-family: var(--orx-sans);
  color: var(--orx-ink);
  background: #fff;
  font-size: 16px;
  line-height: 1.7;
}
.orx-shell {
  width: 100%;
  max-width: var(--orx-shell);
  margin-inline: auto;
  padding-inline: 20px;
}
.orx-section { padding: 76px 0; }
.orx-section--light { background: var(--orx-light); }
.orx-section--wash { background: var(--orx-wash); }
.orx-section--tight { padding: 56px 0; }

.orx-eyebrow {
  font-family: var(--orx-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orx-primary);
  margin: 0 0 10px;
}
.orx-eyebrow--muted { color: var(--orx-muted); }

.orx-h1,
.orx-h2 {
  font-family: var(--orx-sans);
  font-weight: 600;
  color: var(--orx-primary);
  line-height: 1.15;
  margin: 0 0 14px;
  /* Core's base css sets a text-shadow on h1/h2 for the issa design. */
  text-shadow: none;
}
.orx-h1 { font-size: clamp(30px, 4.6vw, 48px); }
.orx-h2 { font-size: clamp(26px, 3.6vw, 40px); }
.orx-h3 {
  font-family: var(--orx-sans);
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 500;
  color: var(--orx-muted);
  line-height: 1.3;
  margin: 0 0 18px;
  text-shadow: none;
}
.orx-lead { font-size: 17px; margin: 0 0 18px; }
.orx-body p { margin: 0 0 16px; }
.orx-body p:last-child { margin-bottom: 0; }
.orx-body a { color: var(--orx-primary); font-weight: 600; }

/* --- buttons (the client's black pill) ---------------------------------- */
.orx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--orx-black);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  padding: 13px 30px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}
.orx-btn:hover,
.orx-btn:focus-visible { background: var(--orx-primary); color: #fff; transform: translateY(-1px); }
.orx-btn--light { background: #fff; color: var(--orx-ink); }
.orx-btn--light:hover { background: var(--orx-primary); color: #fff; }

/* --- utility bar (top red strip) ---------------------------------------- */
.orx-utility {
  background: var(--orx-primary);
  color: #fff;
  font-size: 13.5px;
}
.orx-utility .orx-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding-block: 9px;
}
.orx-utility a { color: #fff; text-decoration: none; }
.orx-utility a:hover { text-decoration: underline; }
.orx-utility__pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 0, 0, .82);
  border-radius: 999px;
  padding: 6px 15px;
  font-weight: 500;
  white-space: nowrap;
}
.orx-utility__pill:hover { background: #000; text-decoration: none; }
.orx-utility__item { display: inline-flex; align-items: center; gap: 7px; }
.orx-utility__spacer { margin-left: auto; }
.orx-utility__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .82);
}
.orx-utility__social:hover { background: #000; }
.orx-utility svg { width: 14px; height: 14px; fill: currentColor; flex: none; }

/* --- header ------------------------------------------------------------- */
.orx-header {
  background: #fff;
  border-bottom: 1px solid #e9e9e9;
  position: sticky;
  top: 0;
  z-index: 40;
}
.orx-header .orx-shell {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-block: 12px;
}
.orx-header__logo { display: block; flex: none; }
.orx-header__logo img { display: block; width: 190px; max-width: 46vw; height: auto; }

.orx-nav { margin-left: auto; }
.orx-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.orx-nav__link {
  display: block;
  padding: 10px 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--orx-ink);
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
}
.orx-nav__link:hover,
.orx-nav__link[aria-current='page'] { color: var(--orx-primary); }
.orx-nav__item { position: relative; }
.orx-nav__item--has-menu > .orx-nav__link::after {
  content: '';
  display: inline-block;
  margin-left: 7px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}
.orx-nav__menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 216px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .12);
  list-style: none;
  margin: 0;
  padding: 7px;
  /* Hidden by visibility, not display, so it can be revealed on hover AND on
     keyboard focus inside it. */
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.orx-nav__item--has-menu:hover > .orx-nav__menu,
.orx-nav__item--has-menu:focus-within > .orx-nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.orx-nav__menu a {
  display: block;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--orx-ink);
  text-decoration: none;
  border-radius: 6px;
}
.orx-nav__menu a:hover { background: var(--orx-light); color: var(--orx-primary); }

/* Mobile toggle. NOT named .navbar-toggler — core's layout binds a jQuery
   handler to that class which toggles body.open for the issa header. */
.orx-burger {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 40px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.orx-burger span,
.orx-burger span::before,
.orx-burger span::after {
  display: block;
  height: 2px;
  width: 20px;
  margin-inline: auto;
  background: var(--orx-ink);
  content: '';
  position: relative;
}
.orx-burger span::before { top: -6px; position: absolute; }
.orx-burger span::after { top: 6px; position: absolute; }

/* --- hero --------------------------------------------------------------- */
.orx-hero { background: var(--orx-wash); padding: 84px 0 92px; }
.orx-hero__inner { max-width: 640px; }
.orx-hero__list {
  list-style: none;
  margin: 20px 0 26px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.orx-hero__list a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--orx-primary);
  font-weight: 500;
  text-decoration: none;
}
.orx-hero__list a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orx-primary);
  flex: none;
}
.orx-hero__list a:hover { text-decoration: underline; }

/* --- red call-to-action strip ------------------------------------------- */
.orx-cta {
  background: var(--orx-primary);
  padding: 20px 0;
}
.orx-cta .orx-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 24px;
}
.orx-cta__title {
  font-family: var(--orx-sans);
  font-size: clamp(21px, 2.6vw, 29px);
  font-weight: 600;
  color: #fff;
  margin: 0;
  text-shadow: none;
}

/* --- two-column media rows ---------------------------------------------- */
.orx-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 46px;
  align-items: center;
}
.orx-split--reverse .orx-split__media { order: 2; }
.orx-split__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* --- service card grid -------------------------------------------------- */
.orx-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 30px;
  margin-top: 40px;
}
.orx-card { text-align: center; text-decoration: none; display: block; }
.orx-card__frame {
  /* The client frames each service photo in a thin red border with a small
     inset gap — the most recognisable detail of this page. */
  /* MUST be block: this is a <span>, and an inline box wrapping the
     display:block <img> renders the border against a line box instead of the
     image, which showed up as stray red ticks above/below each card and a
     photo that ignored its 1:1 aspect-ratio. */
  display: block;
  border: 2px solid var(--orx-primary);
  padding: 7px;
  background: #fff;
  overflow: hidden;
}
.orx-card__frame img,
.orx-card__frame .orx-ph {
  display: block;
  width: 100%;
  /* `height: auto` is load-bearing, not boilerplate. The <img> carries
     width="800" height="800" (kept, so the box is reserved before the photo
     loads), and those content attributes are mapped to CSS width/height as
     presentational hints. `width: 100%` overrides the width hint, but with no
     height declared the height="800" hint survives as height: 800px — both
     axes become definite and `aspect-ratio` is ignored, which rendered every
     service photo as an 800px-tall strip. */
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .35s ease;
}
.orx-card:hover .orx-card__frame img { transform: scale(1.04); }
.orx-card__label {
  display: block;
  margin-top: 14px;
  font-family: var(--orx-sans);
  font-size: 16px;
  font-weight: 700;
  font-style: italic;
  color: var(--orx-ink);
}
.orx-card:hover .orx-card__label { color: var(--orx-primary); }

/* Placeholder panel for artwork we could not retrieve from the client. Reads
   as an intentional brand tile rather than a broken image. */
.orx-ph {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .5) 0 10px, transparent 10px 20px),
    linear-gradient(140deg, #f6ecdd, #e8d5ba);
  color: var(--orx-primary);
}
.orx-ph svg { width: 34%; height: auto; max-width: 76px; opacity: .55; fill: currentColor; }

/* --- "Caring for all your dental needs" link columns -------------------- */
.orx-needs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px 34px;
}
.orx-needs__list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.orx-needs__list li { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.orx-needs__list svg { width: 15px; height: 15px; flex: none; margin-top: 5px; fill: var(--orx-primary); }
.orx-needs__list a { color: var(--orx-ink); text-decoration: none; }
.orx-needs__list a:hover { color: var(--orx-primary); text-decoration: underline; }

/* --- closing band ------------------------------------------------------- */
.orx-band {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .9) 44%, rgba(255, 255, 255, .35) 72%, rgba(255, 255, 255, .1) 100%),
    var(--orx-wash);
  padding: 84px 0;
}
.orx-band__inner { max-width: 560px; }

/* --- footer ------------------------------------------------------------- */
.orx-footer { background: var(--orx-light); border-top: 3px solid var(--orx-primary); padding: 54px 0 0; }
.orx-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px 40px;
}
.orx-footer__logo img { display: block; width: 220px; max-width: 100%; height: auto; margin-bottom: 18px; }
.orx-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.orx-footer__contact li { display: flex; align-items: flex-start; gap: 10px; }
.orx-footer__contact svg { width: 15px; height: 15px; flex: none; margin-top: 6px; fill: var(--orx-primary); }
.orx-footer__contact a { color: var(--orx-ink); text-decoration: none; }
.orx-footer__contact a:hover { color: var(--orx-primary); }
.orx-footer__title {
  font-family: var(--orx-sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--orx-primary);
  margin: 0 0 14px;
}
.orx-hours { list-style: none; margin: 0; padding: 0; font-size: 14.5px; display: grid; gap: 7px; }
.orx-hours span { color: var(--orx-muted); }
.orx-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
.orx-footer__links li { display: flex; align-items: flex-start; gap: 9px; }
.orx-footer__links svg { width: 14px; height: 14px; flex: none; margin-top: 5px; fill: var(--orx-primary); }
.orx-footer__links a { color: var(--orx-ink); text-decoration: none; }
.orx-footer__links a:hover { color: var(--orx-primary); }

.orx-footer__bottom {
  margin-top: 44px;
  border-top: 1px solid #e0e0e0;
  padding: 16px 0;
  font-size: 13px;
  color: var(--orx-muted);
}
.orx-footer__bottom .orx-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.orx-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 0; padding: 0; }
.orx-footer__legal a { color: var(--orx-muted); text-decoration: none; }
.orx-footer__legal a:hover { color: var(--orx-primary); }
.orx-footer__socials { display: flex; gap: 9px; }
.orx-footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--orx-black);
}
.orx-footer__socials a:hover { background: var(--orx-primary); }
.orx-footer__socials svg { width: 14px; height: 14px; fill: #fff; }
.orx-footer__copy { margin-left: auto; }

/* --- fixed action rail (the client's right-edge black strip) ------------- */
.orx-rail {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 45;
  background: var(--orx-black);
  border-radius: 8px 0 0 8px;
  padding: 6px 4px;
  display: grid;
  gap: 2px;
}
.orx-rail a {
  display: grid;
  place-items: center;
  gap: 2px;
  width: 46px;
  padding: 7px 2px;
  color: #fff;
  text-decoration: none;
  font-size: 9px;
  line-height: 1.1;
  text-align: center;
  border-radius: 6px;
}
.orx-rail a:hover { background: var(--orx-primary); }
.orx-rail svg { width: 15px; height: 15px; fill: currentColor; }

/* --- pending-page stub -------------------------------------------------- */
.orx-stub { padding: 90px 0 100px; text-align: center; }
.orx-stub__inner { max-width: 620px; margin-inline: auto; }
.orx-stub__note {
  display: inline-block;
  background: var(--orx-light);
  border-left: 3px solid var(--orx-accent);
  padding: 12px 18px;
  text-align: left;
  font-size: 14.5px;
  color: var(--orx-muted);
  margin-bottom: 26px;
}

/* --- responsive --------------------------------------------------------- */
@media (max-width: 1080px) {
  .orx-nav__link { padding: 10px 8px; font-size: 13.5px; }
  .orx-header__logo img { width: 158px; }
}

@media (max-width: 900px) {
  .orx-burger { display: block; }
  .orx-nav {
    display: none;
    order: 3;
    width: 100%;
    margin-left: 0;
    padding-bottom: 10px;
  }
  .orx-header .orx-shell { flex-wrap: wrap; }
  .orx-nav.is-open { display: block; }
  .orx-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .orx-nav__link { padding: 12px 4px; border-bottom: 1px solid #f0f0f0; }
  .orx-nav__item--has-menu > .orx-nav__link::after { float: right; transform: translateY(8px); }
  /* On touch there is no hover: the submenu is always laid out, indented. */
  .orx-nav__menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 14px;
    min-width: 0;
  }
  .orx-nav__menu a { padding: 10px 4px; border-bottom: 1px solid #f6f6f6; font-size: 13.5px; }

  .orx-split,
  .orx-needs,
  .orx-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .orx-split { gap: 30px; }
  .orx-split--reverse .orx-split__media { order: 0; }
  .orx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
  .orx-band {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .8) 100%),
      var(--orx-wash);
  }
  .orx-footer__copy { margin-left: 0; }
  /* The rail becomes a bottom bar so it cannot cover content on a phone. */
  .orx-rail {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    transform: none;
    border-radius: 0;
    grid-auto-flow: column;
    justify-content: center;
    padding: 4px 2px;
  }
  body { padding-bottom: 58px; }
}

@media (max-width: 560px) {
  .orx-section { padding: 52px 0; }
  .orx-hero { padding: 54px 0 60px; }
  .orx-cards { grid-template-columns: minmax(0, 1fr); }
  .orx-utility { font-size: 12.5px; }
  .orx-utility .orx-shell { justify-content: center; }
  .orx-utility__spacer { margin-left: 0; }
}

/* Never let a decorative transform create a horizontal scrollbar on a phone —
   this network has shipped that bug before. */
@media (max-width: 900px) {
  html, body { overflow-x: hidden; }
}
