/* HattanMedia overrides on top of the theme's style.css. Loaded after it. */

/* White menu bar, so the brand logo shows in full colour over the dark hero. */
.header-area__inner {
  background-color: #ffffff;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.header-area .header__logo img {
  width: 240px;
  height: auto;
}
@media (min-width: 576px) {
  .header-area__inner { height: 84px; }   /* a little taller than the theme's 75px, to hold the larger logo */
}
.header-area .main-menu li a,
.header-area .main-menu li a:hover {
  color: var(--black);
}
.header-area .main-menu > ul > li:hover > a {
  color: #666666;
}
.header-area .header__navicon i {
  color: var(--black);
}
.header-area .header__shape rect {
  fill: #000000;
}
@media only screen and (max-width: 575px) {
  .header-area .header__logo img {
    width: 180px;
  }
  .header-area__inner {
    padding: 0 20px;
    height: 64px;
  }
}

/* Client quotes reuse the theme's award rows; let the long quote wrap comfortably. */
.award-area .award-box .award {
  max-width: 46ch;
}

/* Hero is 60% of the screen tall (half, plus the 20% asked for). It grows if the headline needs more room. */
@media (min-width: 576px) {
  .hero-area .hero-area-inner {
    height: auto;
    min-height: 60vh;
    padding-top: 130px;
    padding-bottom: 44px;
  }
}
/* Headline at the live demo's size on wide desktop screens: 140px, as measured. */
@media (min-width: 1600px) and (max-width: 1919px) {
  .hero-area .section-content .section-title { font-size: 140px; }
  .hero-area .meta-list li { font-size: 24px; }
}
/* The homepage headline is three fixed lines at every width, so it can never re-break. */
.hero-area .section-content .section-title.hm-hero-title { max-width: none; }
.hm-hero-title > span { display: block; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .hm-hero-title > span { animation: hm-line-in .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hm-hero-title > span:nth-child(2) { animation-delay: .15s; }
  .hm-hero-title > span:nth-child(3) { animation-delay: .3s; }
}
@keyframes hm-line-in { from { opacity: 0; transform: translateY(.3em); } to { opacity: 1; transform: none; } }
/* On screens 1920px and wider the theme's two hero notes sit 720px in from the right, which put the first one
   under the white menu bar. Narrower, so they start clear of it. */
@media (min-width: 1920px) {
  .hero-area .meta-list { width: 600px; max-width: 600px; }
}
/* On laptop widths there is only room for one note beside the menu bar: keep the address, drop the tagline
   (the headline already says it). */
@media (min-width: 1200px) and (max-width: 1499px) {
  .hero-area .meta-list { width: 230px; max-width: 230px; }
  .hero-area .meta-list ul { grid-template-columns: 1fr; }
  .hero-area .meta-list li:first-child { display: none; }
}

/* Brand accent: the blue from the HattanMedia logo replaces the theme's orange (loading screen, hovers, highlights). */
:root {
  --theme: #0873C8;
  --action: #0873C8;
}

/* Loading screen spells the brand name the way the logo does: light "hattan", bold "media". */
.loader-wrap .loader-wrap-heading .load-text {
  text-transform: none;
  font-weight: 400;
  font-size: clamp(34px, 8vw, 100px);
  letter-spacing: -0.02em;
}
.load-text span:nth-child(n+7) { font-weight: 800; }
.load-text span:nth-child(8) { animation-delay: 0.7s; }
.load-text span:nth-child(9) { animation-delay: 0.8s; }
.load-text span:nth-child(10) { animation-delay: 0.9s; }
.load-text span:nth-child(11) { animation-delay: 1s; }

/* Loading wipe: logo blues as a gradient, lightest at the top. */
.loader-wrap {
  background: linear-gradient(180deg, #A6DEFC 0%, #6CC4F7 45%, #2B97E8 78%, #0873C8 100%);
}

/* The "i" in the loading word is drawn like the logo's: a stem with a slanted top and a play triangle
   above it, flush with the stem's left edge and in the same colour as the letters. */
.load-text .hm-play-i {
  position: relative;
  display: inline-block;
  width: 0.178em;
  height: 0.75em;
  margin: 0 0.04em;
}
.load-text .hm-play-i::before,
.load-text .hm-play-i::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  background: currentColor;
}
.load-text .hm-play-i::after {           /* stem */
  bottom: 0;
  height: 0.55em;
  clip-path: polygon(0 100%, 0 14.5%, 100% 0, 100% 100%);
}
.load-text .hm-play-i::before {          /* play triangle */
  bottom: 0.53em;
  height: 0.2em;
  clip-path: polygon(0 0, 100% 60%, 0 100%);
}

/* ---- Match the live demo (measured at 1718px wide) ----
   Between 1600 and 1919px the HTML template steps everything down. The demo keeps its large headings
   and about text there, and uses the template's smaller values for the rest. */
@media (min-width: 1600px) and (max-width: 1919px) {
  .section-title { font-size: 90px; }
  .work-area .section-title { font-size: 420px; }
  .footer-area .footer-widget-wrapper-box .content .title { font-size: 90px; }
  .award-area .section-title { max-width: 975px; }

  /* about block */
  .about-area-2 .about-area-2-inner.section-spacing-top { padding-top: 128px; }
  .about-area-2 .section-title { max-width: 862px; margin-right: 30px; }
  .about-area-2 .section-content-wrapper { margin-top: 50px; grid-template-columns: 1fr 797px; }
  .about-area-2 .section-content .text { font-size: 30px; }
  .about-area-2 .section-subtitle-wrapper { margin-top: 130px; max-width: 671px; }
  .about-area-2 .subtitle-wrapper { padding-top: 18px; border-width: 2px; }
}

/* Demo colours and small type, at every width. */
.about-area-2 .section-content .text,
.about-area-2 .section-subtitle-3 { color: var(--secondary); }
.work-header-meta span:not(:last-child) { color: var(--secondary); }
.footer-area .footer-widget-box .title { color: var(--secondary); }

/* The demo's rows sit in a 741px column on the right. Client quotes are longer, so they keep the wide column. */
.award-area:not(.hm-quotes) .award-wrapper { max-width: 741px; margin-left: auto; }
.award-area.hm-quotes .award-box .award { font-size: 18px; line-height: 1.5; }

/* Inner pages carry the template's own full-width menu (built in tools/hm_site.py), which ends 80px from the
   top like the demo's. The 40px push that cleared the old pill bar is gone, so titles sit where the demo's do.
   Our logo is wider than the template's 100px mark. */
.header-area-2 .header__logo img { width: 200px; height: auto; }
.header-inner .side-toggle button.bar-icon { background: transparent; padding: 0; cursor: pointer; }   /* a real button, not the template's empty link */
@media (max-width: 575px) {
  .header-area-2 .header__logo img { width: 160px; }
}

/* No custom mouse pointer. The theme replaces the cursor with an image that follows the mouse, and shows a
   "View Details" bubble over images. Both are off; the normal system pointer is back everywhere.
   The theme hides the real cursor with `html[data-cursor=c1] * { cursor: none !important }`, so these rules
   carry `:not(#hm)` to outrank it. */
.custom-cursor,
.cb-cursor { display: none !important; }
html:not(#hm), html:not(#hm) body, html:not(#hm) body * { cursor: auto !important; }
html:not(#hm) body :is(a, a *, button, button *, [role="button"], label[for], select, summary,
  input[type="submit"], input[type="button"], .side-toggle, .side-toggle *, .progress-wrap, .progress-wrap *, .accordion-button) { cursor: pointer !important; }
html:not(#hm) body :is(input[type="text"], input[type="email"], input[type="tel"], input[type="search"],
  input[type="url"], input[type="number"], input:not([type]), textarea) { cursor: text !important; }

/* Hero background: a WebGL canvas (assets/js/hm-hero.js) over a still frame. The still shows until the
   canvas has drawn, and stays if WebGL is unavailable. */
.hero-area .area-bg { background: #1a1f26 url(../imgs/hm/hero-poster.webp) center / cover no-repeat; }
.hm-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .9s ease; }
.hm-hero-canvas.is-on { opacity: 1; }

/* Calls to action: a blue "Get a quote" button in the hero with the phone number beside it, and the same
   button floating at the bottom right of every page. */
.rr-btn.hm-btn-blue { background: linear-gradient(180deg, #2B97E8, #0873C8); border-color: #0873C8; color: #fff; padding: 20px 34px; }
.hm-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 22px; }
.hero-area .hm-hero-phone { color: var(--white); font-size: 18px; font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .5); padding-bottom: 2px; }
.hero-area .hm-hero-phone:hover { border-bottom-color: #fff; }

.hm-quote-float {
  position: fixed; right: 26px; bottom: 26px; z-index: 990;
  display: inline-flex; align-items: center; height: 54px; padding: 0 26px;
  border-radius: 100px; background: linear-gradient(180deg, #2B97E8, #0873C8); color: #fff;
  font-family: var(--font_dmsans); font-size: 17px; font-weight: 500; text-decoration: none;
  box-shadow: 0 10px 26px rgba(8, 115, 200, .38), 0 2px 6px rgba(0, 0, 0, .18);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hm-quote-float:hover, .hm-quote-float:focus-visible { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(8, 115, 200, .46), 0 3px 8px rgba(0, 0, 0, .2); }
.hm-quote-float:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
/* Pages that already carry the inquiry form do not need it. */
body:has(main form) .hm-quote-float { display: none; }
/* The theme's back-to-top circle moves up to make room. */
.progress-wrap { bottom: 96px !important; }
@media (max-width: 575px) {
  .hm-quote-float { right: 16px; bottom: 16px; height: 48px; padding: 0 20px; font-size: 16px; }
  .progress-wrap { bottom: 78px !important; }
}
@media (prefers-reduced-motion: reduce) { .hm-quote-float { transition: none; } }
