/* Hod-Gee website — tablet & mobile. (Media & Assets → site/css/responsive.css) */
@media (max-width:1180px){
  .hg-nav a{padding:10px 10px}
}
@media (max-width:1100px){
  .hg-grid--4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hg-footer-grid{grid-template-columns:1fr 1fr}
  .hg-hero-text{max-width:min(50%,560px)}
  .hg-hero h1{font-size:clamp(2rem,4vw,3rem)}
}
/* Desktop keeps the menu in the bar (logo left, links, person icon right). The 3-bar menu starts on small screens only. */
@media (max-width:900px){
  .hg-burger{display:block}
  .hg-header-in{gap:12px;height:68px}
  .hg-brand img{height:30px}
  .hg-nav{position:absolute;top:100%;left:0;right:0;display:none;flex-direction:column;align-items:stretch;gap:2px;margin:0;padding:12px 20px 20px;background:#fff;border-bottom:1px solid var(--hg-line);box-shadow:0 20px 30px -20px rgba(0,29,110,.35)}
  .hg-header.is-open .hg-nav{display:flex}
  .hg-nav a{padding:14px 12px;font-size:1.05rem}
  .hg-nav a.is-current::after{left:12px;right:auto;width:28px;bottom:8px}
  .hg-nav-drop>summary{padding:14px 12px;font-size:1.05rem}
  .hg-nav-menu{position:static;min-width:0;padding:0 0 6px 14px;border:0;border-left:2px solid var(--hg-line);border-radius:0;box-shadow:none}
  .hgs-user{margin-left:auto}
  .hg-burger{margin-left:auto}
  .hgs-user + .hg-burger{margin-left:0}
}
@media (max-width:980px){
  /* Hero on small screens: the whole image stays visible (no face cropped) and the title sits ON its light upper-left area. */
  .hg-hero{aspect-ratio:auto;max-height:none;min-height:0;display:block;background:#fff}
  .hg-hero-bg{position:relative;inset:auto;display:block;width:100%;height:auto;aspect-ratio:1400/788;object-fit:contain;margin-top:-6px}
  .hg-hero > .hg-wrap{position:absolute;left:0;right:0;top:0;z-index:2;width:min(var(--hg-wrap),100% - 32px)}
  .hg-hero-in{padding:16px 0 0;min-height:0}
  .hg-hero-text{max-width:58%}
  .hg-hero h1{font-size:clamp(1.25rem,5.4vw,2.4rem);margin-bottom:.3em}
  .hg-hero .hg-tagline{font-size:clamp(.72rem,2.4vw,1rem)}
  /* Phone: buttons one above the other, below the title area so the faces stay visible */
  .hg-hero-actions{flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:10px;margin-top:12px;max-width:260px}
  .hg-hero-actions .hg-btn{min-height:40px;padding:8px 16px;font-size:.9rem}
  .hg-hero-after-in{grid-template-columns:1fr}
  .hg-hero-after .hg-actions{justify-content:flex-start}
  .hg-hero-bg{position:relative;inset:auto;order:2;width:100%;height:auto;aspect-ratio:1400/788;object-fit:contain}
  .hg-grid--3,.hg-goals,.hg-steps--h{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hg-split{grid-template-columns:1fr;gap:32px}
  .hg-split--rev .hg-split-media{order:0}
  .hg-split-media{aspect-ratio:1400/788}
  .hg-inquiry{grid-template-columns:1fr}
  .hg-section{padding:72px 0}
  .hg-service{grid-template-columns:1fr;gap:26px}
  .hg-flyers{justify-content:start}
}
@media (max-width:640px){
  body{font-size:16px}
  .hg-wrap{width:min(var(--hg-wrap),100% - 32px)}
  .hg-grid--2,.hg-grid--3,.hg-grid--4,.hg-goals,.hg-steps--h,.hg-inquiry-fields{grid-template-columns:1fr}
  .hg-section{padding:56px 0}
  .hg-page-hero{padding:56px 0 48px}
  .hg-card{padding:22px}
  .hg-actions .hg-btn{width:100%}
  .hg-inquiry{padding:22px}
  .hg-footer-grid{grid-template-columns:1fr}
  .hg-head{margin-bottom:32px}
  .hg-flyers{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ===== Hero text: fixed line breaks, everything stays ON the image ===== */
.hg-hero h1 .hg-h1-a,.hg-hero h1 .hg-h1-b{display:block;white-space:nowrap}
.hg-hero h1 .hg-h1-a,.hg-hero h1 .hg-h1-b{background:none}
/* Pink highlight under all three words AND the period, on every line (also when it wraps on phones) */
.hg-hero h1 .hg-hl{display:inline;padding:0 .08em;background:linear-gradient(transparent 60%,rgba(215,38,61,.22) 60%);-webkit-box-decoration-break:clone;box-decoration-break:clone}
.hg-hero h1 .hg-h1-b{width:max-content}
.hg-br-m{display:none}
.hg-hero .hg-tagline{white-space:nowrap}
.hg-hero-text{max-width:none}
/* PC / laptop: one line each, sized to the empty left side of the image */
@media (min-width:981px){
  .hg-hero h1{font-size:clamp(2rem,3.25vw,3.3rem);line-height:1.12}
  .hg-hero .hg-tagline{font-size:clamp(.9rem,1.45vw,1.2rem)}
  .hg-hero-actions{flex-direction:row}
}
/* Tablet: still one line each, buttons side by side */
@media (min-width:601px) and (max-width:980px){
  .hg-hero h1{font-size:4vw;line-height:1.12}
  .hg-hero .hg-tagline{font-size:2vw}
  .hg-hero-in{padding-top:clamp(16px,3vw,28px)}
  .hg-hero-actions{flex-direction:row;max-width:none;gap:10px;margin-top:2vw}
  .hg-hero-actions .hg-btn{min-height:0;padding:1.1vw 2.2vw;font-size:1.8vw}
}
/* Phone: "Expand Your / Opportunities." and "… Connected platforms. / Professional solutions." on two lines;
   small buttons one above the other, still on the image */
@media (max-width:600px){
  .hg-br-m{display:inline}
  .hg-tl-b{display:block}
  .hg-hero-in{padding-top:2.6vw}
  .hg-hero h1{font-size:5.3vw;line-height:1.1;margin-bottom:.25em}
  .hg-hero .hg-tagline{font-size:2.9vw;line-height:1.3}
  .hg-hero-actions{flex-direction:column;align-items:flex-start;gap:1.6vw;margin-top:2.2vw;max-width:none}
  .hg-hero-actions .hg-btn{min-height:0;width:auto;padding:1.3vw 3.2vw;font-size:2.9vw;line-height:1.3}
}

/* ===== Hero intro: on the image on PC / large screens (then the buttons); phones & tablets keep it below the hero ===== */
.hg-hero-intro{display:none}
@media (min-width:981px){
  .hg-hero-intro{display:block;max-width:min(44vw,600px);margin-top:clamp(10px,1.4vw,20px)}
  .hg-hero-intro .hg-eyebrow{margin-bottom:.5em}
  .hg-hero-lead{margin:0;color:var(--hg-ink,#1b2440);font-size:clamp(.92rem,1.08vw,1.1rem);line-height:1.6;white-space:normal}
  .hg-hero-actions{margin-top:clamp(16px,1.8vw,26px)}
  .hg-hero-after{display:none}
}

/* ===== Wide screens: the hero text uses the full height of the image =====
   Title near the top · small gaps (Expand…, One company…) · larger gap, then the red-line intro centred in the
   remaining space · the buttons sit at the bottom. */
@media (min-width:981px){
  .hg-hero > .hg-wrap{display:flex}
  .hg-hero-in{align-items:stretch;min-height:100%;padding:clamp(40px,4.2vw,64px) 0 clamp(40px,4vw,60px)}
  .hg-hero-text{display:flex;flex-direction:column;justify-content:flex-start;min-height:100%}
  .hg-hero h1{margin:0}
  .hg-hero h1 .hg-h1-b{margin-top:.12em}
  .hg-hero .hg-tagline{margin:.7em 0 0}
  .hg-hero-intro{margin-top:auto;margin-bottom:auto;padding:clamp(28px,3vw,48px) 0}
  .hg-hero-intro .hg-eyebrow{margin-bottom:.9em}
  .hg-hero-lead{line-height:1.75}
  .hg-hero-actions{margin-top:0}
}
/* Wide screens: the text never covers the people — sizes follow the free area on the left of the image
   (about 45% of the width, minus the page margin). */
@media (min-width:981px){
  .hg-hero{--hg-free:calc(45vw - max(16px, (100vw - var(--hg-wrap, 1180px)) / 2))}
  .hg-hero h1{font-size:min(3.3rem, 3.25vw, calc(var(--hg-free) / 13.4))}
  .hg-hero .hg-tagline{font-size:min(1.2rem, 1.45vw, calc(var(--hg-free) / 30.2))}
  .hg-hero-intro{max-width:min(600px, var(--hg-free))}
}

/* ===== Phones & tablets: the buttons always sit at the bottom of the hero image; title and tagline stay at the top ===== */
@media (max-width:980px){
  .hg-hero > .hg-wrap{bottom:0;display:flex;flex-direction:column;align-items:flex-start;margin:0 auto}
  .hg-hero-in{min-height:0;padding-bottom:clamp(10px,2.8vw,24px)}
  .hg-hero-text{display:flex;flex-direction:column;flex:1 1 auto}
  .hg-hero-actions{margin-top:auto !important;padding-top:10px}
}

/* ===== Tablet too: the intro (Hod-Gee • Business, Opportunity & Technology + lead) sits ON the hero, between the tagline and the buttons ===== */
@media (min-width:601px) and (max-width:980px){
  .hg-hero-intro{display:block;max-width:50vw;margin:auto 0;padding:1.2vw 0}
  .hg-hero-intro .hg-eyebrow{margin-bottom:.5em;font-size:1.45vw}
  .hg-hero-lead{margin:0;color:var(--hg-ink,#1b2440);font-size:1.75vw;line-height:1.5;white-space:normal}
  .hg-hero-actions{margin-top:0 !important;padding-top:0}
  .hg-hero-after{display:none}
}

/* ===== No text over the people: text stays in the free light area on the left (about 40% of the image) ===== */
/* Soft bottom edge: the hero image fades into the page */
.hg-hero::after{content:"";position:absolute;left:0;right:0;bottom:0;height:clamp(28px,9%,96px);background:linear-gradient(to bottom,rgba(255,255,255,0),#fff);pointer-events:none;z-index:1}
.hg-hero > .hg-wrap{z-index:2}

/* Tablet and phone: the text stays ON the hero image, inside its free light area on the left;
   long lines go to the next line instead of running over the people. */
@media (max-width:980px){
  .hg-hero h1 .hg-h1-b{white-space:normal;width:auto}
  .hg-hero h1 .hg-h1-a{white-space:nowrap;width:max-content;max-width:none} /* "Build Your Business." always one line (above the people) */
  .hg-hero .hg-tagline{white-space:normal}
  .hg-hero-actions .hg-btn{white-space:nowrap}
}
@media (min-width:601px) and (max-width:980px){
  .hg-hero-text{max-width:44vw;width:44vw}
  .hg-hero h1{font-size:3.6vw;line-height:1.1}
  .hg-hero .hg-tagline{font-size:clamp(11px,1.7vw,16px)}
  .hg-hero-intro{max-width:44vw;padding:.8vw 0}
  .hg-hero-intro .hg-eyebrow{font-size:clamp(10px,1.25vw,12px)}
  .hg-hero-lead{font-size:clamp(11px,1.5vw,14px);line-height:1.45}
  .hg-hero-actions{flex-direction:column;align-items:flex-start;gap:8px}
  .hg-hero-actions .hg-btn{font-size:clamp(11px,1.6vw,14px);padding:.7em 1.2em}
}
@media (max-width:600px){
  .hg-hero-text{max-width:calc(46vw - 16px);width:calc(46vw - 16px)}
  .hg-hero-in{padding-top:2.4vw}
  .hg-hero h1{font-size:4.4vw;line-height:1.1;margin-bottom:.2em}
  .hg-hero .hg-tagline{font-size:2.9vw;line-height:1.3}
  .hg-hero-actions{gap:1.4vw}
  .hg-hero-actions .hg-btn{font-size:2.8vw;padding:1.2vw 2.8vw}
}

/* "Expand Your Opportunities." stays on one line whenever it fits in the free area; it goes to the next line only
   where it would touch the people (no forced line break any more). */
@media (max-width:980px){ .hg-hero h1 .hg-br-m{display:none !important} }
/* The title sits at the height of the girl's hair, which starts at ~56% of the image width (measured on the image):
   the title may use up to 54% and only wraps if it would touch her head. Lower lines keep the narrower column. */
@media (max-width:980px){ .hg-hero h1{width:calc(54vw - 16px);max-width:none} }