/* ==========================================================================
   Aurelia Dental — global stylesheet
   Class + variable names mirror the Elementor global styles in
   "Claude Design" so Novamira can map them 1:1.
   Colors  : Titles, Subtitles, Text, #1 Links, #1 Light/Dark/Dark Bg,
             Light-1, Light-2, White, #2 Dark Bg, #2 Dark, #2 Light
   Type    : XL (primary), Decorative (secondary), Text, Button / Accent,
             H1–H6, Small Text, Large Text, SUBTITLE, MENU
   ========================================================================== */

:root {
  /* fluid page gutter — scales with the viewport, no breakpoint required */
  --gutter: clamp(20px, 4vw, 54px);

  /* --- Global colors --- */
  --color-primary:    #131C33;   /* Titles */
  --color-secondary:  #24314F;   /* Subtitles */
  --color-text:       #47506B;   /* Text */
  --color-accent:     #5A6A9C;   /* #1 Links */
  --color-1-light:    #93A2CE;   /* #1 Light */
  --color-1-dark:     #24314F;   /* #1 Dark */
  --color-1-dark-bg:  #101728;   /* #1 Dark Bg */
  --color-light-1:    #E9ECF4;   /* Light-1 */
  --color-light-2:    #C7CEE1;   /* Light-2 */
  --color-white:      #FFFFFF;   /* White */
  --color-2-dark-bg:  #17203A;   /* #2 Dark Bg */
  --color-2-dark:     #5A6A9C;   /* #2 Dark */
  --color-2-light:    #B9C4E4;   /* #2 Light */

  /* --- Global fonts --- */
  --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-secondary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-1-dark-bg);
  color: var(--color-white);
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-1-light); }

/* --- Typography (Elementor global text styles) --- */
.typo-primary {                      /* XL (primary) */
  font-family: var(--font-primary); font-weight: 300;
  font-size: clamp(52px, 9vw, 132px); line-height: 0.94; letter-spacing: -0.045em;
}
.typo-secondary {                    /* Decorative (secondary) */
  font-family: var(--font-secondary); font-weight: 300;
  font-size: clamp(22px, 2.4vw, 34px); line-height: 1.3; letter-spacing: -0.02em;
}
.typo-h1 {                           /* H1 (page title) */
  font-family: var(--font-primary); font-weight: 300;
  font-size: clamp(40px, 5.4vw, 74px); line-height: 1.02; letter-spacing: -0.04em; margin: 0;
}
.typo-h2 {                           /* H2 (section title) */
  font-family: var(--font-primary); font-weight: 300;
  font-size: clamp(32px, 3.9vw, 56px); line-height: 1.06; letter-spacing: -0.035em; margin: 0;
}
.typo-h3 {                           /* H3 (widget title) */
  font-family: var(--font-primary); font-weight: 300;
  font-size: clamp(26px, 2.9vw, 40px); line-height: 1.14; letter-spacing: -0.03em; margin: 0;
}
.typo-h4 {                           /* H4 (paragraph title) */
  font-family: var(--font-primary); font-weight: 400;
  font-size: 27px; line-height: 1.22; letter-spacing: -0.02em; margin: 0;
}
.typo-h5 { font-family: var(--font-primary); font-weight: 400; font-size: 21px; line-height: 1.3; letter-spacing: -0.015em; margin: 0; }
.typo-h6 { font-family: var(--font-primary); font-weight: 500; font-size: 17px; line-height: 1.35; margin: 0; }
.typo-text        { font-family: var(--font-primary); font-weight: 400; font-size: 17px; line-height: 1.75; color: var(--color-text); }
.typo-large-text  { font-family: var(--font-primary); font-weight: 400; font-size: 19px; line-height: 1.7; }
.typo-small-text  { font-family: var(--font-primary); font-weight: 400; font-size: 14px; line-height: 1.6; }
.typo-subtitle    { font-family: var(--font-primary); font-weight: 400; font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; }
.typo-menu        { font-family: var(--font-primary); font-weight: 400; font-size: 13.5px; letter-spacing: 0.04em; }
.typo-accent      { font-family: var(--font-primary); font-weight: 500; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }

/* --- Layout --- */
.wrap { max-width: 1340px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(62px, 8.5vw, 124px); }
.section-sm { padding-block: clamp(48px, 6vw, 86px); }
.bg-dark    { background: var(--color-1-dark-bg); }
.bg-deep    { background: var(--color-primary); }
.bg-light   { background: var(--color-light-1); color: var(--color-primary); }
.bg-alt     { background: var(--color-2-dark-bg); }
.on-light .typo-text { color: var(--color-secondary); }
.rule { border-top: 1px solid rgba(255,255,255,0.14); }
.bg-light .rule { border-top-color: var(--color-light-2); }
.eyebrow { color: rgba(255,255,255,0.55); margin-bottom: 24px; }
.bg-light .eyebrow { color: var(--color-1-dark); }
.muted { color: rgba(255,255,255,0.66); }
.bg-light .muted { color: var(--color-text); }

/* --- Grids --- */
/* Every grid below sizes itself from its own content: auto-fit drops columns
   when they can no longer hold their minimum, and min(100%, …) keeps a single
   column from overflowing a narrow parent. No viewport breakpoints involved. */
.grid { display: grid; gap: clamp(20px, 2.2vw, 30px); }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.split { display: grid; gap: clamp(40px, 5vw, 88px); align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.split-wide { display: grid; gap: clamp(40px, 5vw, 88px); align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }
/* sidebar + long-form body: the index takes a third until there is no room for both */
.split-aside { display: grid; gap: clamp(32px, 4vw, 64px); align-items: start;
  grid-template-columns: minmax(min(100%, 12rem), 0.34fr) minmax(min(100%, 28rem), 1fr); }

/* --- Buttons --- */
.btn {
  display: inline-block; font-family: var(--font-primary); font-weight: 500;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 16px 36px; border-radius: 999px; border: 1px solid transparent;
}
.btn-primary { background: var(--color-accent); color: var(--color-1-dark-bg); }
.btn-primary:hover { background: var(--color-1-light); color: var(--color-1-dark-bg); }
.btn-outline { border-color: rgba(255,255,255,0.7); color: var(--color-white); }
.btn-outline:hover { background: var(--color-white); color: var(--color-1-dark-bg); }
.bg-light .btn-outline { border-color: var(--color-primary); color: var(--color-primary); }
.bg-light .btn-outline:hover { background: var(--color-primary); color: var(--color-white); }
.link-rule { display: inline-block; border-bottom: 1px solid currentColor; padding-bottom: 6px; }

/* --- Header / footer (repeated site-wide) --- */
/* Header matches the index (home) hero header: lockup left, hairline-underlined nav */
.site-header { background: transparent; position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; gap: clamp(20px, 3vw, 40px);
  padding: clamp(24px, 3vw, 34px) var(--gutter); max-width: 1340px; margin-inline: auto; }
.logo-mark { font-size: 25px; font-weight: 700; letter-spacing: 0.16em; color: var(--color-white); }
.logo-sub { font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255,255,255,0.62); margin-top: 5px; }
.main-nav { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.main-nav a { color: var(--color-white); white-space: nowrap; padding-bottom: 5px; border-bottom: 1px solid transparent; }
.main-nav a:hover { border-bottom-color: var(--color-white); }
.main-nav a.is-current { border-bottom: 1.5px solid var(--color-white); color: var(--color-white); }
.site-header .btn { background: transparent; color: var(--color-white); border: 0; border-bottom: 1.5px solid var(--color-white);
  border-radius: 0; padding: 5px 0; font-size: 13.5px; font-weight: 400; letter-spacing: 0.03em; text-transform: none; }
.site-header .btn:hover { background: transparent; color: var(--color-1-light); border-bottom-color: var(--color-1-light); }
.site-footer { background: var(--color-primary); border-top: 1px solid rgba(255,255,255,0.12); padding-block: clamp(44px, 5vw, 62px) 34px; }
.site-footer .cols { display: grid; gap: clamp(30px, 3.4vw, 44px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.site-footer h4 { color: rgba(255,255,255,0.55); margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,0.8); }
.site-footer a:hover { color: var(--color-white); }
.site-footer .legal { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.5); }

.bg-statement { background: var(--color-2-dark-bg); }

/* --- Page hero --- */
.page-hero { position: relative; overflow: hidden; min-height: 62vh; display: flex; align-items: flex-end; }
.page-hero.is-home { min-height: 92vh; }
.page-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero .scrim { position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(12,17,32,0.88) 0%, rgba(12,17,32,0.62) 40%, rgba(12,17,32,0.16) 74%, rgba(12,17,32,0.06) 100%),
    linear-gradient(to bottom, rgba(12,17,32,0.66) 0%, rgba(12,17,32,0.18) 32%, rgba(12,17,32,0.3) 60%, rgba(12,17,32,0.82) 100%); }
.page-hero { min-height: 68vh; }
.page-hero .content { position: relative; width: 100%; max-width: 1340px; margin-inline: auto;
  padding: clamp(122px, 13vw, 152px) var(--gutter) clamp(44px, 5vw, 62px); }

/* --- Index rows (numbered hairline lists) --- */
.index-list { container-type: inline-size; }
.index-row { display: grid; grid-template-columns: 72px 1.05fr 1.5fr 130px; gap: 30px; align-items: baseline; padding: 30px 0; border-top: 1px solid rgba(255,255,255,0.14); }
@container (max-width: 60rem) {
  .index-row { grid-template-columns: 64px 1fr 1fr; }
  .index-row .index-meta { grid-column: 2 / -1; text-align: left; }
}
@container (max-width: 34rem) {
  .index-row, .index-row.index-row-2 { grid-template-columns: 40px 1fr; gap: 8px 18px; }
  .index-row .index-meta { grid-column: 2; }
}
.bg-light .index-row { border-top-color: var(--color-light-2); }
.index-row:hover { background: rgba(255,255,255,0.035); }
.bg-light .index-row:hover { background: rgba(26,24,48,0.03); }
.index-row.index-row-2 { grid-template-columns: 72px 1fr; }
.index-num { font-size: 13px; color: rgba(255,255,255,0.45); }
.bg-light .index-num { color: var(--color-1-dark); }
.index-meta { font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; text-align: right; color: rgba(255,255,255,0.72); }
.bg-light .index-meta { color: var(--color-1-dark); }

/* --- Cards / panels --- */
.card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.14); padding: 34px 32px; }
.bg-light .card { background: var(--color-white); border-color: var(--color-light-2); }
.figure { position: relative; overflow: hidden; }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.ratio-4-5 { aspect-ratio: 4/5; }
.ratio-3-4 { aspect-ratio: 3/4; }
.ratio-16-10 { aspect-ratio: 16/10; }
.ratio-5-4 { aspect-ratio: 5/4; }
.counter-value { font-size: clamp(40px, 4.6vw, 68px); font-weight: 300; line-height: 1; letter-spacing: -0.04em; }

/* --- Panel over image (quote / feature band) --- */
.band { position: relative; min-height: 560px; display: flex; align-items: stretch; overflow: hidden; container-type: inline-size; }
@container (max-width: 46rem) {
  .band { flex-direction: column; min-height: 0; }
  .band .panel { width: 100%; padding: clamp(48px, 8vw, 62px) var(--gutter); border-right: 0; border-left: 0; }
}
.band img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band .panel { position: relative; width: 52%; background: rgba(19,26,48,0.44);
  border-right: 1px solid rgba(255,255,255,0.16);
  padding: clamp(56px, 7vw, 92px) clamp(28px, 5vw, 70px) clamp(56px, 7vw, 92px) var(--gutter);
  display: flex; flex-direction: column; justify-content: center; }
.band .panel.right { margin-left: auto; border-right: 0; border-left: 1px solid rgba(255,255,255,0.16); }



/* --- Header "More" dropdown --- */
.has-submenu { position: relative; display: flex; align-items: center; padding-bottom: 16px; margin-bottom: -16px; }
.has-submenu > a { cursor: pointer; }
.has-submenu .submenu { position: absolute; top: 100%; left: 0; min-width: 186px; padding: 8px 0; margin-top: 0;
  background: var(--color-1-dark-bg); border: 1px solid rgba(255,255,255,0.16); display: none; z-index: 20; }
.has-submenu:hover .submenu, .has-submenu:focus-within .submenu { display: grid; }
.has-submenu .submenu a { padding: 9px 18px; border-bottom: 1px solid transparent; }
.has-submenu .submenu a:hover { background: rgba(255,255,255,0.08); border-bottom-color: transparent; }

/* --- Navigation: inline on wide headers, hamburger sheet when it cannot fit ---
   The checkbox is the toggle so the menu works with no JavaScript, which keeps
   the markup converter-safe. Visibility is the one genuinely viewport-level
   decision on the page, so it is the only place a media query is warranted. */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.nav-button { display: none; width: 46px; height: 46px; margin: -6px -8px -6px 0; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 6px; }
.nav-button span { display: block; width: 26px; height: 1.5px; background: var(--color-white);
  transition: transform 180ms ease, opacity 140ms ease; }
.nav-close { display: none; }

@media (max-width: 1080px) {
  .nav-button { display: flex; }
  .site-header { position: absolute; }
  .main-nav {
    position: fixed; inset: 0; z-index: 60;
    flex-direction: column; flex-wrap: nowrap;
    align-items: flex-start; justify-content: safe center;
    gap: clamp(14px, 2.4vw, 22px);
    padding: 96px var(--gutter) var(--gutter);
    background: var(--color-1-dark-bg);
    font-size: clamp(21px, 4.6vw, 30px);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 260ms cubic-bezier(0.4, 0, 0.2, 1), visibility 260ms;
  }
  .nav-toggle:checked ~ .main-nav { transform: translateX(0); visibility: visible; }
  .nav-toggle:checked ~ .nav-button span:first-child { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-button span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-button span:last-child { transform: translateY(-7.5px) rotate(-45deg); }
  .nav-button { position: relative; z-index: 70; }

  /* the dropdown becomes a plain indented group inside the sheet */
  .has-submenu { display: block; padding: 0; margin: 0; }
  .has-submenu > a { display: none; }
  .has-submenu .submenu { position: static; display: grid; gap: clamp(10px, 1.6vw, 14px);
    min-width: 0; margin: 0; padding: 0; background: none; border: 0; }
  .has-submenu .submenu a { padding: 0; font-size: 0.62em; color: rgba(255,255,255,0.7); }
  .has-submenu .submenu a:hover { background: none; color: var(--color-white); }
  .main-nav .btn { margin-top: clamp(10px, 2vw, 18px); font-size: 0.6em; }
}
