/* Small additions on top of the original Elementor / Hello theme CSS. */

/* Form honeypot (see js/hygge.v2.js) */
.hygge-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Text links: brand dark brown (booking-button colour) instead of the
   Hello theme's default pink #c36 / navy #336 hover. */
a {
  color: #625445;
}
a:hover,
a:active {
  color: #625445;
  text-decoration: underline;
}
.elementor-button:hover,
.elementor-item:hover,
.e-n-menu-title-container:hover,
.elementor-icon-list-item a:hover,
header a:hover,
footer a:hover {
  text-decoration: none;
}

/* Blog post body text: same Elementor global "Text" typography as the
   text-editor widgets on the main pages (sizes change per breakpoint). */
.single-post .page-content {
  font-family: var(--e-global-typography-text-font-family), sans-serif;
  font-size: var(--e-global-typography-text-font-size);
  font-weight: var(--e-global-typography-text-font-weight);
  line-height: var(--e-global-typography-text-line-height);
  color: var(--e-global-color-text);
}
.single-post .page-content p,
.single-post .page-content li,
.single-post .page-content td,
.single-post .page-content th,
.single-post .page-content blockquote {
  font: inherit;
  color: inherit;
}
.single-post .page-content p {
  margin: 0 0 10px;
}
.single-post .page-content ul,
.single-post .page-content ol {
  margin: 0 0 10px;
  padding-left: 15px;
}
.single-post .page-content li {
  margin-bottom: 4px;
}
.single-post .page-content strong,
.single-post .page-content b {
  font-weight: 400;
}
.single-post .page-content h2,
.single-post .page-content h3,
.single-post .page-content h4 {
  margin: 36px 0 12px;
  color: var(--e-global-color-primary);
}
.single-post .page-content h3,
.single-post .page-content h4 {
  font-family: var(--e-global-typography-722f881-font-family), sans-serif;
  font-size: var(--e-global-typography-722f881-font-size);
  font-weight: var(--e-global-typography-722f881-font-weight);
  line-height: var(--e-global-typography-722f881-line-height);
}

/* Blog post images are plain Markdown images (were wp-block-image figures) */
.single-post .page-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 0 1em;
}


/* ---------- Site header (src/components/Header.astro) ----------
   Solid brown on every page; transparent over the homepage hero until the page scrolls.
   Page heroes keep their Elementor -130px top margin, so they tuck under the header. */
:root {--hy-header-h: 104px; --hy-header-bg: #54483c; --hy-menu-bg: #2b2825;}
@media (max-width: 1100px) {:root {--hy-header-h: 80px;}}

.hy-header {position: sticky; top: 0; z-index: 1000; height: var(--hy-header-h); background: var(--hy-header-bg); color: #fff; font-family: var(--e-global-typography-accent-font-family), sans-serif; transition: background-color .4s ease;}
.hy-header--overlay:not(.is-scrolled):not(:hover):not(:focus-within):not(.is-mobile-open) {background: transparent;}
.hy-header a {text-decoration: none;}
.hy-header__inner {display: flex; align-items: center; gap: 24px; height: 100%; max-width: 1920px; margin: 0 auto; padding: 0 clamp(20px, 2.6vw, 50px);}

.hy-logo {display: block; flex: none; width: clamp(160px, 11vw, 200px); color: #fff;}
.hy-logo svg {display: block; width: 100%; height: auto;}

/* Main menu */
.hy-nav {flex: 1; display: flex; justify-content: center;}
.hy-nav__list {display: flex; align-items: center; gap: clamp(18px, 2.2vw, 42px); margin: 0; padding: 0; list-style: none;}
.hy-nav__item {position: relative;}
.hy-header .hy-nav__link {display: inline-flex; align-items: center; gap: 9px; padding: 10px 0; border: 0; border-bottom: 1px solid transparent; border-radius: 0; background: none; color: #fff; font: inherit; font-size: 14px; font-weight: 400; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: opacity .2s, border-color .2s;}
.hy-header .hy-nav__link:hover, .hy-header .hy-nav__link:focus, .hy-nav__item.is-open > .hy-nav__link {color: #fff; background: none; opacity: .75;}
.hy-header .hy-nav__link[aria-current="page"], .hy-header .hy-nav__link.is-current {border-bottom-color: currentColor;}
.hy-caret {display: inline-block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; transition: transform .2s;}
.hy-nav__item.is-open .hy-caret, .hy-nav__item:hover .hy-caret, [aria-expanded="true"] > .hy-caret {transform: rotate(180deg);}

/* Dropdowns: open on hover, focus or click */
.hy-dropdown {position: absolute; top: 100%; left: -26px; min-width: 260px; margin-top: calc((var(--hy-header-h) - 38px) / 2 - 15px); padding: 12px 0; background: var(--hy-menu-bg); box-shadow: 0 22px 44px rgba(0, 0, 0, .25); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;}
.hy-dropdown::before {content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: calc((var(--hy-header-h) - 38px) / 2 - 15px);} /* hover bridge */
.hy-nav__item:hover > .hy-dropdown, .hy-nav__item.is-open > .hy-dropdown {opacity: 1; visibility: visible; transform: none;}
.hy-nav__item--mega .hy-dropdown {min-width: 380px; padding: 10px 26px 14px;}
.hy-dropdown a {display: block; padding: 8px 26px; color: #f6f3ef; font-size: 15px; font-weight: 300; line-height: 1.35; letter-spacing: .01em;}
.hy-nav__item--mega .hy-dropdown a {padding: 7px 0;}
.hy-header .hy-dropdown a:hover, .hy-header .hy-dropdown a:focus-visible {color: #fff; opacity: .7;}
.hy-dropdown a[aria-current="page"] {color: #fff; text-decoration: underline; text-underline-offset: 4px;}
.hy-dropdown__group {padding: 14px 0 12px;}
.hy-dropdown__group + .hy-dropdown__group {border-top: 1px solid rgba(255, 255, 255, .16);}
.hy-dropdown__heading {margin: 0 0 8px; color: #cdc2b2; font-size: 11px; font-weight: 600; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase;}

/* Right-hand actions */
.hy-actions {display: flex; flex: none; align-items: center; gap: clamp(14px, 1.4vw, 24px);}
.hy-actions__contact {margin-right: clamp(0px, .6vw, 10px);}
.hy-pill {display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 1px solid #fff; border-radius: 0; font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transition: background-color .25s, color .25s, border-color .25s;}
.hy-header .hy-pill--outline {color: #fff; background: transparent;}
.hy-header .hy-pill--outline:hover {color: var(--hy-header-bg); background: #fff;}
.hy-header .hy-pill--solid {color: #3e3b37; background: #fff;}
.hy-header .hy-pill--solid:hover {color: #fff; background: transparent;}

/* Burger + mobile menu */
.hy-header .hy-burger {display: none; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; margin-left: auto; padding: 10px 8px; border: 0; border-radius: 0; background: none; cursor: pointer;}
.hy-header .hy-burger:hover, .hy-header .hy-burger:focus {background: none;}
.hy-header .hy-burger span {display: block; height: 1.5px; background: #fff; transition: transform .25s, opacity .25s;}
.hy-header .hy-burger[aria-expanded="true"] span:nth-child(1) {transform: translateY(7.5px) rotate(45deg);}
.hy-header .hy-burger[aria-expanded="true"] span:nth-child(2) {opacity: 0;}
.hy-header .hy-burger[aria-expanded="true"] span:nth-child(3) {transform: translateY(-7.5px) rotate(-45deg);}
.hy-mobile {position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - var(--hy-header-h)); overflow-y: auto; padding: 8px clamp(20px, 2.6vw, 50px) 32px; background: var(--hy-menu-bg);}
.hy-mobile[hidden] {display: none;}
.hy-header .hy-mobile__row {display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 18px 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .14); border-radius: 0; background: none; color: #fff; font: inherit; font-size: 14px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; text-align: left; cursor: pointer;}
.hy-header .hy-mobile__row:hover, .hy-header .hy-mobile__row:focus {color: #fff; background: none;}
.hy-mobile__panel {padding: 6px 0 16px; border-bottom: 1px solid rgba(255, 255, 255, .14);}
.hy-mobile__panel[hidden] {display: none;}
.hy-mobile__panel a {display: block; padding: 9px 0; color: #f6f3ef; font-size: 16px; font-weight: 300;}
.hy-mobile__panel .hy-dropdown__heading {margin: 16px 0 4px;}
.hy-mobile__panel .hy-dropdown__heading:first-child {margin-top: 8px;}
.hy-mobile__actions {display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px;}
.hy-mobile__actions .hy-pill {flex: 1 1 200px;}
html.hy-no-scroll {overflow: hidden;}

@media (max-width: 1300px) {
  .hy-header .hy-nav__link {font-size: 13px; letter-spacing: .06em;}
  .hy-pill {padding: 0 16px; min-height: 42px; font-size: 11px;}
  .hy-actions__contact {display: none;}
}
@media (max-width: 1100px) {
  .hy-nav, .hy-actions {display: none;}
  .hy-header .hy-burger {display: flex;}
  .hy-logo {width: 150px;}
}
@media (prefers-reduced-motion: reduce) {.hy-header, .hy-header * {transition: none !important;}}

/* Booking pages: hide the footer's slideshow CTA band (it would point visitors away mid-booking) */
body.hygge-book-page .elementor-element-cc2109d {display: none;}

/* Standard narrow width for content blocks that don't suit the full 1680px layout.
   Add class "hygge-narrow" to a block (or an Elementor container's CSS classes). */
:root {--hygge-narrow-width: 1200px;}
.hygge-narrow {max-width: var(--hygge-narrow-width); margin-left: auto; margin-right: auto;}

/* Footer "Take the next step" band: 30% shorter than the Elementor original (85/80/50/60vh) */
.elementor-180 .elementor-element.elementor-element-cc2109d {--min-height: 59.5vh;}
@media (max-width: 1450px) {.elementor-180 .elementor-element.elementor-element-cc2109d {--min-height: 56vh;}}
@media (max-width: 767px) {.elementor-180 .elementor-element.elementor-element-cc2109d {--min-height: 35vh;}}
@media (min-width: 2400px) {.elementor-180 .elementor-element.elementor-element-cc2109d {--min-height: 42vh;}}

/* Footer CTA band: centred "We'd love to welcome you." layout, from the teeth whitening design file */
.elementor-180 .elementor-element.elementor-element-cc2109d {--justify-content: center; --align-items: center; --overlay-opacity: 1;}
/* Even dark overlay (was a left-to-right gradient for the old left-aligned text) */
.elementor-180 .elementor-element.elementor-element-cc2109d::before,
.elementor-180 .elementor-element.elementor-element-cc2109d > .elementor-background-slideshow::before,
.elementor-180 .elementor-element.elementor-element-cc2109d > .e-con-inner > .elementor-background-slideshow::before {background-image: linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.58));}
.elementor-180 .elementor-element.elementor-element-cc2109d > .e-con-inner {justify-content: center; align-items: center;}
.hygge-welcome {position: relative; z-index: 1; width: 100%; max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff;}
.hygge-welcome .hygge-welcome__title {
  margin: 0 0 18px;
  font-family: var(--e-global-typography-722f881-font-family), sans-serif;
  font-weight: var(--e-global-typography-722f881-font-weight);
  /* Same size as the H1s and H2s (the homepage has no --hygge-h1-size, so it falls back to the same value) */
  font-size: var(--hygge-h1-size, clamp(53px, 4.68vw, 80px));
  line-height: 1.04;
  letter-spacing: var(--e-global-typography-0063517-letter-spacing);
  text-transform: uppercase;
  text-wrap: balance;
  color: #fff;
}
.hygge-welcome .hygge-welcome__text {
  max-width: 650px;
  margin: 0 0 26px;
  font-family: 'arponasans', sans-serif;
  font-weight: 300;
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.65;
  color: #fff;
}

/* H2s across the site: the global H2 style (Elementor kit "7cb87e8"), 30% larger at every breakpoint.
   The scaled sizes are worked out on body, where the kit sets the base sizes, then swapped in on h2s
   so every rule that reads the kit variable (kit h2 style, heading widgets) picks them up. */
.elementor-kit-6 {
  --hygge-h2-font-size: calc(var(--e-global-typography-7cb87e8-font-size) * 1.3);
  --hygge-h2-line-height: calc(var(--e-global-typography-7cb87e8-line-height) * 1.3);
}
.elementor-kit-6 h2 {
  --e-global-typography-7cb87e8-font-size: var(--hygge-h2-font-size);
  --e-global-typography-7cb87e8-line-height: var(--hygge-h2-line-height);
  letter-spacing: -0.02em;
}

/* Top bar removed from the header (40px shorter), so pages that pull their first section up under the
   transparent header pull it up 40px less. Same selectors as the page stylesheets in
   /wp-content/uploads/elementor/css/ (-130px -> -90px, -124px -> -84px, -120px -> -80px); kept here because
   SiteGround serves stale copies of those files (see README). */
.elementor-1080 .elementor-element.elementor-element-86014fc{--margin-top:-90px;}
.elementor-1082 .elementor-element.elementor-element-7de21d9{--margin-top:-90px;}
.elementor-1084 .elementor-element.elementor-element-ad684d6{--margin-top:-90px;}
.elementor-1086 .elementor-element.elementor-element-fc5fcb7{--margin-top:-90px;}
.elementor-1088 .elementor-element.elementor-element-6b5a908{--margin-top:-90px;}
.elementor-1091 .elementor-element.elementor-element-e330234{--margin-top:-90px;}
.elementor-1570 .elementor-element.elementor-element-12ddcf1{--margin-top:-90px;}
.elementor-1626 .elementor-element.elementor-element-2858e0e{--margin-top:-90px;}
.elementor-2233 .elementor-element.elementor-element-93472c0{--margin-top:-90px;}
.elementor-2925 .elementor-element.elementor-element-5b4b2254{--margin-top:-84px;}
.elementor-2935 .elementor-element.elementor-element-73b44626{--margin-top:-84px;}
.elementor-2941 .elementor-element.elementor-element-2888b563{--margin-top:-84px;}
.elementor-2945 .elementor-element.elementor-element-55ad0af5{--margin-top:-84px;}
.elementor-2951 .elementor-element.elementor-element-66e2771{--margin-top:-84px;}
.elementor-2960 .elementor-element.elementor-element-4e4f1bc{--margin-top:-84px;}
.elementor-2966 .elementor-element.elementor-element-6f2aed5b{--margin-top:-84px;}
.elementor-732 .elementor-element.elementor-element-e330234{--margin-top:-90px;}
.elementor-734 .elementor-element.elementor-element-76f707d{--margin-top:-90px;}
.elementor-736 .elementor-element.elementor-element-d23491b{--margin-top:-90px;}
.elementor-738 .elementor-element.elementor-element-f4eec0f{--margin-top:-90px;}
.elementor-74 .elementor-element.elementor-element-0fdeca2{--margin-top:-90px;}
.elementor-740 .elementor-element.elementor-element-12ddcf1{--margin-top:-90px;}
.elementor-78 .elementor-element.elementor-element-26a769a{--margin-top:-90px;}
.elementor-80 .elementor-element.elementor-element-4098262{--margin-top:-90px;}
.elementor-82 .elementor-element.elementor-element-66045e3{--margin-top:-90px;}
.elementor-83 .elementor-element.elementor-element-72d323e{--margin-top:-90px;}
.elementor-84 .elementor-element.elementor-element-2f83afe{--margin-top:-90px;}
.elementor-85 .elementor-element.elementor-element-65fb62b{--margin-top:-90px;}

/* H1s and H2s across the site are set in Georgia, as on the booking pages. !important because page
   stylesheets and Elementor widgets hard-code the old heading fonts. Georgia sits tighter, so H1s drop
   the kit's +0.03em tracking. The homepage hero headline keeps Black Aroug. */
.elementor-kit-6 h1,
.elementor-kit-6 h2 {
  --e-global-typography-0063517-letter-spacing: -0.02em;
  font-family: Georgia, serif !important;
}
.elementor-kit-6 .hd-home-hero h1 {
  --e-global-typography-0063517-letter-spacing: 0.03em;
  font-family: 'Black Aroug', serif !important;
}

/* ---------- Type scale from the New Patients page (src/fragments/pages/new-patients.html) ----------
   H1, H2 (the same size as the H1), H3 (Georgia, 20% larger than the kit H3), eyebrows and body text,
   applied by overriding the Elementor kit's global typography and colour variables, so every widget
   that uses the global styles follows. Not on the homepage, the ad landing pages (Elementor canvas)
   or the booking pages, which have their own designs. FAQ accordion questions keep their style. */
.elementor-kit-6:not(.home):not(.page-template-elementor_canvas):not(.hygge-book-page) {
  --hygge-h1-size: clamp(53px, 4.68vw, 80px);
  --hygge-title-color: #4f4337;
  --e-global-typography-0063517-font-size: var(--hygge-h1-size);
  --e-global-typography-0063517-line-height: 1.025;
  --hygge-h2-font-size: var(--hygge-h1-size);
  --hygge-h2-line-height: 1.025;
  --hygge-h3-font-size: calc(var(--e-global-typography-722f881-font-size) * 1.2);
  /* Eyebrows (Elementor global "9320a53": small uppercase labels above headings) */
  --e-global-typography-9320a53-font-size: 13px;
  --e-global-typography-9320a53-font-weight: 600;
  --e-global-typography-9320a53-line-height: 1.4;
  --e-global-typography-9320a53-letter-spacing: 2.5px;
}
@media (max-width: 800px) {
  .elementor-kit-6:not(.home):not(.page-template-elementor_canvas):not(.hygge-book-page) {
    --hygge-h1-size: clamp(39px, 9.36vw, 59px);
    --e-global-typography-0063517-line-height: 1.06;
    --hygge-h2-line-height: 1.06;
  }
}
/* Dark headings and body text take the New Patients colours (white headings over photos stay white) */
.elementor-kit-6:not(.home):not(.page-template-elementor_canvas):not(.hygge-book-page) :is(h1, h2, h3, .elementor-widget-text-editor) {
  --e-global-color-primary: var(--hygge-title-color);
  --e-global-color-accent: var(--hygge-title-color);
  --e-global-color-text: var(--hygge-title-color);
  --e-global-color-a5fd8a6: var(--hygge-title-color);
}
.elementor-kit-6:not(.home):not(.page-template-elementor_canvas):not(.hygge-book-page) p.elementor-heading-title {
  --e-global-color-primary: #2f2c29;
  --e-global-color-accent: #2f2c29;
  --e-global-color-text: #2f2c29;
  --e-global-color-facb1d6: #2f2c29;
}
.elementor-kit-6:not(.home):not(.page-template-elementor_canvas):not(.hygge-book-page) h3:not(.e-n-accordion-item-title-text) {
  --e-global-typography-722f881-font-size: var(--hygge-h3-font-size);
  --e-global-typography-722f881-font-weight: 400;
  --e-global-typography-722f881-line-height: 1.25;
  font-family: Georgia, serif !important;
  font-weight: 400;
}

/* Suburb pages (dentist-albion, -ascot, -bowen-hills, -clayfield, -fortitude-valley, -new-farm, -newstead):
   their Elementor stylesheets fix each heading's size, so H2s (and the footer banner title) are set here
   to 64px, like every other page (the rule below also covers them; phones use the phone size). */
@media (min-width: 801px) {
  :is(.elementor-2925, .elementor-2935, .elementor-2941, .elementor-2945, .elementor-2951, .elementor-2960, .elementor-2966) h2.elementor-heading-title,
  body:is(.elementor-page-2925, .elementor-page-2935, .elementor-page-2941, .elementor-page-2945, .elementor-page-2951, .elementor-page-2960, .elementor-page-2966) .hygge-welcome .hygge-welcome__title {
    font-size: 64px !important;
  }
}

/* Keep H2s at 64px across pages, including pages with fixed Elementor heading styles.
   On phones (800px and narrower) 64px is wider than some words fit, so H2s use the phone H1 size instead. */
body h2,
body.elementor-kit-6 h2,
body.elementor-kit-6 h2.elementor-heading-title {
  font-size: 64px !important;
  text-wrap: pretty;
}
@media (max-width: 800px) {
  body h2,
  body.elementor-kit-6 h2,
  body.elementor-kit-6 h2.elementor-heading-title {
    font-size: clamp(39px, 9.36vw, 59px) !important;
  }
}

/* Invisalign page heading sizes (desktop and tablet; on phones the page uses the site's phone sizes). */
@media (min-width: 801px) {
  body.elementor-page-82 h1 { font-size: 70px !important; }
  body.elementor-page-82 h2 { font-size: 56px !important; }
  body.elementor-page-82 .hd-inv-value h2 { font-size: 56px !important; }
  body.elementor-page-82 h3 { font-size: 48px !important; }
}

/* Cloudflare Turnstile widget on the enquiry forms (added by hygge.v2.js) */
.hygge-turnstile { min-height: 65px; margin-bottom: 12px; }
