/* -------- Palette -------- */
:root{
  --luxury-white:#fafafa;
  --dark-blue:#282e75;
  --electric-blue:#009aa5;
  --green:#437638;
  --gray:#cccccc;
}

/* Base */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--gray);
  font-family:"Verdana", Geneva, sans-serif;
  font-weight:400;
  color:#111;
}

/* MAIN container: 100px margin and soft shadow (right/bottom bias) */
.hrhi-main{
  margin:100px;
  background:transparent;
  box-shadow:25px 25px 40px rgba(0,0,0,.25);
}


/* ---------- NAV (285px, centered logo, split menus, top-right button) ---------- */
.hrhi-nav{
  position:relative;
  height:285px;
  background:var(--luxury-white);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 28px;
}

/* Grid: left menu | logo | right menu */
.hrhi-nav-inner{
  width:100%;
  max-width:1400px;
  display:grid;
grid-template-columns: 1.4fr auto 1.4fr;  /* widened menus, logo still centered */  align-items:center;
gap: 100px; /* fixed spacing between logo and each menu */  position: relative;                 /* ensure abs menus position to this grid */
}

/* Logo centered */
.hrhi-logo{
  justify-self:center;
  align-self:center;                  /* keep vertical center */
  grid-column: 2;                     /* explicitly stay in middle column */
  position: relative;
  z-index: 3;                         /* sit above abs menus if they overlap */
}

/* Menus */
.hrhi-menu {
  position: relative;     /* stays in grid flow, allows vertical shift only */
  top: 60px;              /* adjust to place baseline ~180px from top of nav */
  display: flex;
  justify-content: center;
  overflow: visible;
}

.hrhi-menu--left  { left: 0;  justify-content: flex-end; }
.hrhi-menu--right { right: 0; justify-content: flex-start; }

.hrhi-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;       /* prevents double-line wrapping */
  gap: 28px;               /* slightly increased for visual balance */
}

.hrhi-menu--left .hrhi-menu-list {
  justify-content: flex-end;
}

.hrhi-menu--right .hrhi-menu-list {
  justify-content: flex-start;
}

.hrhi-menu-list a {
  text-decoration: none;
  color: var(--green);
  font-size: 16px;
  padding: 6px 2px;
  transition: color .15s ease, border-color .15s ease;
  border-bottom: 3px solid transparent;
  text-transform: uppercase;
  display: inline-block;   /* fixes inconsistent spacing in flex */
}

.hrhi-menu-list a:hover,
.hrhi-menu-list a:focus {
  color: var(--electric-blue);
  border-bottom: 3px dotted var(--electric-blue); /* 3px dotted underline */
  outline: none;
}

/* Top-right button (35px from top/right inside NAV) */
.hrhi-topbtn{
  position:absolute;
  top:35px;
  right:35px;
  display:inline-block;
  padding:12px 18px;
  background:var(--electric-blue);
  color:#fff;
  font-weight:700;
  text-decoration:none;
  border-radius:0; /* square corners */
  box-shadow:0 6px 16px rgba(0,0,0,.25);
  transition:transform .05s ease, box-shadow .15s ease, filter .2s ease;
}
.hrhi-topbtn:hover{ filter:brightness(1.05); }
.hrhi-topbtn:active{
  transform:translateY(2px);
  box-shadow:0 3px 10px rgba(0,0,0,.25); /* depress effect */
}

/* HERO */
.hrhi-hero{
  min-height:50vh;
  background:var(--gray) center/cover no-repeat;
  background-image:var(--hero-image);
}

/* CONTENT */
.hrhi-content{ background:var(--luxury-white); }
.hrhi-content__inner{ padding:32px 28px; max-width:1200px; margin:auto; }

/* CTA (parallax, 340px) */
.hrhi-cta{
  height:340px;
  background:var(--gray) center/cover no-repeat fixed;
  background-image:var(--cta-image);
  display:grid; place-items:center;
}
.hrhi-cta__inner{
  text-align:center; padding:16px 24px;
  background:rgba(250,250,250,.8);
  border-radius:8px;
}

/* AREAS SERVED */
.hrhi-areas{ background:var(--electric-blue); color:#fff; }
.hrhi-areas__inner{ padding:32px 28px; max-width:1200px; margin:auto; }

/* FOOTER */
.hrhi-footer{
  background:var(--dark-blue);
  height:130px;
  color:#fff;
  display:flex;
  align-items:center;
}
.hrhi-footer__inner{ width:100%; max-width:1200px; margin:auto; padding:0 28px; }

/* Responsiveness: keep spec but avoid overflow */
@media (max-width: 1200px){
  .hrhi-main{ margin:5vw; }
}
@media (max-width: 800px){
  .hrhi-menu--left .hrhi-menu-list,
  .hrhi-menu--right .hrhi-menu-list{ justify-content:center; }
  .hrhi-nav-inner{ grid-template-columns: 1fr; gap:12px; }
  .hrhi-logo{ justify-self:center; }
  .hrhi-topbtn{ top:20px; right:20px; padding:10px 14px; font-size:14px; }
}

/* ================= HERO (full rewrite) ================= */

/* Section */
.hrhi-hero{
  min-height: clamp(360px, 55vh, 720px);
  background: var(--gray) center/cover no-repeat;
  background-image: var(--hero-image);
  display: grid;
  justify-items: stretch;           /* child spans full width */
  align-items: center;
  margin: 0 0 24px 0;               /* no top/left margin */
  padding: 0;                       /* no section padding */
}

/* Inner wrapper — NO LEFT PADDING */
.hrhi-hero__inner{
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 32px 0;                  /* removed left inset */
}

/* Grid — items hug the left edge */
.hrhi-hero-grid{
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  justify-items: start;             /* left-flush children */
}

/* Column placement */
.hrhi-hero-left{
  grid-column: 1; grid-row: 1;
  justify-self: start;              /* hug left edge */
}
.hrhi-hero-right{
  grid-column: 2; grid-row: 1;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  gap: 22px;
}

/* Stack on mobile */
@media (max-width: 900px){
  .hrhi-hero-grid{ grid-template-columns: 1fr; }
  .hrhi-hero-left{ grid-column:1; grid-row:1; }
  .hrhi-hero-right{ grid-column:1; grid-row:2; }
}

/* ===== Media box (single definitive rule) ===== */
.hrhi-photo-frame{
  position: relative;
  width: clamp(260px, 42vw, 625px);
  aspect-ratio: 1 / 1;
  margin: 0 !important;             /* kill any inherited offset */
  padding: 0 !important;
}

/* Masked photo layer */
.hrhi-photo-masklayer{
  position: absolute; inset: 0;
  background-image: var(--hero-photo);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  -webkit-mask-image: url('/wp-content/themes/hrhi/assets/hero-photo-mask.png');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-position: center;

  mask-image: url('/wp-content/themes/hrhi/assets/hero-photo-mask.png');
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center;

  box-shadow: 0 12px 28px rgba(0,0,0,.25);
}

/* Unmasked overlay (correct selector) */
.hrhi-frame-overlay{
  position: absolute; inset: 0;
  width: auto; height: auto;
  max-width: 100%; max-height: 100%;
  margin: auto;
  object-fit: contain; object-position: center;
  pointer-events: none;
  z-index: 2; display: block;
}

/* Optional raw <img> fallback */
.hrhi-photo{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
}

/* ===== Right column: CTA stack (unchanged intent) ===== */
.hrhi-cta-list{
  position: relative;
  display: flex; flex-direction: column;
  gap: 34px; width: min(560px, 90%);
  z-index: 3; justify-content: center; align-items: center;
  transform: translateX(-20%);      /* pull toward photo */
}

/* CTA buttons */
.hero-cta{
  position: relative; display: inline-block; width: 100%;
  padding: 22px 64px 22px 28px;
  background: #fff; color: var(--green);
  text-decoration: none; text-align: center;
  font-weight: 700; text-transform: uppercase; border-radius: 0;
  box-shadow: 0 10px 20px rgba(0,0,0,.25);
  transition: transform .05s ease, box-shadow .15s ease, filter .2s ease;
}
.hero-cta::after{
  content:""; position:absolute; top:0; right:-40px;
  width:40px; height:100%; background:#fff;
  box-shadow: 0 10px 20px rgba(0,0,0,.25);
  transform: skewX(-16deg); pointer-events:none;
}

/* ===== Hard stop: remove any upstream left inset on this block ===== */
:where(.hrhi-hero, .hrhi-hero__inner, .hrhi-hero-grid, .hrhi-hero-left, .hrhi-photo-frame){
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.hero-cta:hover { filter: brightness(1.02); }
.hero-cta:active { transform: translateY(2px); box-shadow: 0 6px 14px rgba(0, 0, 0, .25); }

.hero-cta:hover,
.hero-cta:focus { color: var(--electric-blue); outline: none; }


/* === HERO LEFT FLUSH FIX === */
.hrhi-hero__inner { padding-left: 0 !important; }
.hrhi-hero-grid  { justify-items: start !important; }
.hrhi-photo-frame { margin-left: 0 !important; }

/* ===== HERO DEBUG BORDERS (TEMP) ===== */
.hrhi-hero{ outline:3px solid #e74c3c !important; }
.hrhi-hero__inner{ outline:3px solid #f39c12 !important; }
.hrhi-hero-grid{ outline:3px solid #27ae60 !important; }

.hrhi-hero-left{ outline:3px solid #2980b9 !important; }
.hrhi-hero-right{ outline:3px solid #8e44ad !important; }

.hrhi-photo-frame{ outline:3px solid #2c3e50 !important; }
.hrhi-photo-masklayer{ outline:3px solid #16a085 !important; }
.hrhi-frame-overlay{ outline:3px solid #c0392b !important; }

/* optional: see box bounds clearly */
.hrhi-photo-masklayer{ background-clip: padding-box; }