:root{
  --white:#ffffff;
  --cream:#ffffff;
  --ink:#2b1d16;
  --ink-soft:#6b5c52;
  --primary:#104d92;
  --primary-deep:#0b3769;
  --gold:#c9a76a;
  --line:#ece1d8;
  --shadow: 0 20px 60px rgba(43,29,22,0.08);
  --ease: cubic-bezier(.22,.61,.36,1);
  --font-heading: 'Gill Sans MT', 'Gill Sans', 'Calibri', 'Trebuchet MS', sans-serif;
  --font-body: 'Gill Sans MT', 'Gill Sans', 'Calibri', 'Trebuchet MS', sans-serif;
}

*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth; background:var(--white) !important;}
body{
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--white) !important;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block;}
a{text-decoration:none !important;color:inherit;}
ul{list-style:none;}
section{position:relative;}
.hmect-container{
  width:min(1180px, 100% - 64px);
  margin-inline:auto;
}
.hmect-eyebrow{
  font-family:var(--font-heading);
  font-size:12.5px;
  letter-spacing:.28em;
  text-transform:uppercase;
  color:var(--primary);
  font-weight:600;
  display:inline-block;
  margin-bottom:18px;
}
h1,h2,h3,h4{ font-family:var(--font-heading); font-weight:600; line-height:1.2; letter-spacing:.01em; }
p, span, a, li, input, textarea, select{ font-family:var(--font-body); }
.hmect-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:15px 34px;
  border-radius:2px;
  font-family:var(--font-heading);
  font-size:14px;
  letter-spacing:.06em;
  text-transform:uppercase;
  font-weight:600;
  transition:transform .5s var(--ease), background .4s ease, color .4s ease, box-shadow .4s ease;
  cursor:pointer;
  border:1px solid transparent;
  background:none;
  will-change:transform;
}
.hmect-btn-solid{ background:var(--primary); color:#fff; }
.hmect-btn-solid:hover{ background:var(--primary-deep) !important; color:#fff !important; transform:translateY(-2px); box-shadow:0 14px 30px rgba(16,77,146,.28);}
.hmect-btn-outline{ border-color:rgba(43,29,22,.25); color:var(--ink);}
.hmect-btn-outline:hover{ border-color:var(--ink) !important; color:var(--ink) !important; transform:translateY(-2px);}
.hmect-btn-light{ background:#fff; color:var(--primary-deep); margin-top:8px; }
.hmect-btn-light:hover{ background:var(--cream) !important; transform:translateY(-2px); }

/* ---------- reveal animation ---------- */
.hmect-reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity 1s var(--ease), transform 1s var(--ease);
}
.hmect-reveal.in{ opacity:1; transform:translateY(0); }
.hmect-stagger > * { transition-delay:calc(var(--i,0) * 90ms); }

/* signature divider */
.hmect-searline{ width:100%; display:flex; justify-content:center; padding:6px 0; }
.hmect-searline svg{ width:min(420px,70%); height:14px; overflow:visible; }
.hmect-searline path{
  stroke:var(--primary); stroke-width:1.4; fill:none; stroke-linecap:round;
  stroke-dasharray:520; stroke-dashoffset:520;
  transition:stroke-dashoffset 1.4s var(--ease);
}
.hmect-searline.in path{ stroke-dashoffset:0; }
.hmect-searline circle{ fill:var(--gold); opacity:0; transition:opacity .5s ease .9s; }
.hmect-searline.in circle{ opacity:1; }

/* ================= HEADER ================= */
header{
  position:fixed; top:0; left:0; width:100%;
  z-index:1000;
  padding:20px 0;
  background:#ffffff !important;
  box-shadow:0 2px 20px rgba(43,29,22,.05);
  transition:padding .45s var(--ease), box-shadow .45s var(--ease);
}
header .hmect-container{ display:flex; align-items:center; justify-content:space-between; }
header.hmect-scrolled{ padding:10px 0; box-shadow:0 8px 30px rgba(43,29,22,.09); }

.hmect-brand{ display:flex; align-items:center; }
.hmect-brand-img{ width:auto; max-width:260px; transition:height .45s var(--ease); }
.hmect-brand-img--header{ height:var(--logo-h, 44px) !important; max-height:60px; }
header.hmect-scrolled .hmect-brand-img--header{ height:calc(var(--logo-h, 44px) - 10px) !important; }
.hmect-brand-img--footer{ height:var(--logo-h, 50px); }
.hmect-brand-word{
  font-family:var(--font-heading); font-weight:700; color:var(--primary);
  font-size:19px; line-height:1.15; letter-spacing:.05em; text-transform:uppercase;
  transition:font-size .45s var(--ease);
}
header.hmect-scrolled .hmect-brand-word{ font-size:16px; }
.hmect-brand-word--footer{ color:var(--primary); font-size:24px; }

.hmect-nav-links{ display:flex; gap:26px; }
.hmect-nav-links a{
  font-family:var(--font-heading);
  font-size:12.5px; letter-spacing:.06em; text-transform:uppercase; font-weight:500;
  color:var(--ink); position:relative; padding-bottom:4px; transition:color .3s ease;
  white-space:nowrap;
}
.hmect-nav-links a::after{
  content:''; position:absolute; left:0; bottom:0; height:1px; width:0;
  background:var(--primary); transition:width .35s var(--ease);
}
.hmect-nav-links a:hover{ color:var(--primary) !important; }
.hmect-nav-links a:hover::after{ width:100%; }

.hmect-header-actions{ display:flex; align-items:center; gap:24px; }
.hmect-btn-header{
  font-family:var(--font-heading); font-size:13px; font-weight:600; letter-spacing:.04em; text-transform:uppercase;
  color:var(--primary); padding:8px 2px; position:relative; transition:color .3s ease;
}
.hmect-btn-header::after{
  content:''; position:absolute; left:0; bottom:4px; height:1px; width:100%;
  background:currentColor; transform:scaleX(0); transform-origin:right; transition:transform .35s var(--ease);
}
.hmect-btn-header:hover{ color:var(--primary-deep) !important; }
.hmect-btn-header:hover::after{ transform:scaleX(1); transform-origin:left; }

.hmect-burger{ display:none; flex-direction:column; gap:5px; cursor:pointer; z-index:1100; }
.hmect-burger span{ width:26px; height:1.6px; background:var(--ink); transition:all .35s var(--ease); }

.hmect-mobile-nav{
  position:fixed; inset:0; background:var(--white);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:32px;
  transform:translateY(-100%); transition:transform .55s var(--ease);
  z-index:1050;
}
.hmect-mobile-nav.open{ transform:translateY(0); }
.hmect-mobile-nav a{ font-size:22px; letter-spacing:.08em; text-transform:uppercase; font-family:var(--font-heading); }
.hmect-mobile-nav a:hover{ color:var(--primary) !important; }
.hmect-mobile-nav-visit{ margin-top:10px; font-size:14px !important; letter-spacing:.06em !important; padding:15px 36px !important; color:#fff !important; }
.hmect-mobile-nav-visit:hover{ color:#fff !important; }

/* ================= SECTIONS ================= */
.hmect-section{ padding:120px 0; }
.hmect-section-tight{ padding:90px 0; }
.hmect-bg-cream{ background:var(--cream); }

/* ---------- HERO ---------- */
.hmect-hero{
  min-height:100vh; min-height:100svh;
  display:flex; align-items:center; justify-content:center; text-align:center;
  position:relative; padding-top:128px; padding-bottom:80px;
  background:var(--ink); overflow:hidden;
}
.hmect-hero-slider{ position:absolute; inset:0; z-index:0; }
.hmect-hero-slide{
  position:absolute; inset:0; background-size:cover; background-position:center;
  opacity:0; transform:scale(1.06); transition:opacity 1.6s ease;
}
.hmect-hero-slide.is-active{ opacity:1; animation:hmectKenBurns 9s ease-out forwards; }
@keyframes hmectKenBurns{ from{ transform:scale(1.06);} to{ transform:scale(1);} }
.hmect-hero-scrim{
  position:absolute; inset:0; z-index:1;
  background:linear-gradient(180deg, rgba(20,13,9,.62) 0%, rgba(20,13,9,.5) 45%, rgba(20,13,9,.8) 100%);
}
.hmect-hero-dots{ position:absolute; z-index:3; right:34px; top:50%; transform:translateY(-50%); display:flex; flex-direction:column; gap:10px; }
.hmect-hero-dot{ width:8px; height:8px; border-radius:50%; border:1px solid rgba(255,255,255,.6); background:transparent; cursor:pointer; padding:0; transition:background .35s ease, transform .35s ease; }
.hmect-hero-dot.is-active{ background:#fff; transform:scale(1.3); }
@media (max-width:760px){ .hmect-hero-dots{ right:16px; gap:8px; } }

.hmect-hero-inner{ position:relative; z-index:5; max-width:760px; margin-inline:auto; }
.hmect-hero h1{
  font-size:clamp(38px, 6vw, 70px); letter-spacing:-.01em; color:#fff;
  text-shadow:0 2px 14px rgba(0,0,0,.55), 0 0 46px rgba(0,0,0,.35);
  opacity:0; transform:translateY(30px); animation:hmectHeroUp 1.1s var(--ease) .35s forwards;
}
.hmect-subtitle{
  margin-top:22px; font-size:clamp(16px,2vw,20px); font-style:italic; font-weight:400;
  color:rgba(255,255,255,.92);
  text-shadow:0 2px 10px rgba(0,0,0,.5);
  opacity:0; transform:translateY(30px); animation:hmectHeroUp 1.1s var(--ease) .55s forwards;
}
.hmect-hero-ctas{
  margin-top:44px; display:flex; gap:18px; justify-content:center; flex-wrap:wrap;
  opacity:0; transform:translateY(30px); animation:hmectHeroUp 1.1s var(--ease) .75s forwards;
}
.hmect-hero-ctas .hmect-btn-outline{ border-color:rgba(255,255,255,.55); color:#fff; }
.hmect-hero-ctas .hmect-btn-outline:hover{ border-color:#fff !important; color:#fff !important; background:rgba(255,255,255,.08); }
@keyframes hmectHeroUp{ to{ opacity:1; transform:translateY(0);} }

.hmect-scroll-cue{
  position:absolute; bottom:38px; left:50%; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:8px;
  color:rgba(255,255,255,.85); font-size:11px; letter-spacing:.24em; text-transform:uppercase;
  opacity:0; animation:hmectFadeSimple 1s ease 1.3s forwards; z-index:2;
}
@keyframes hmectFadeSimple{ to{ opacity:.85; } }
.hmect-chev{ width:14px; height:14px; border-right:1.4px solid rgba(255,255,255,.85); border-bottom:1.4px solid rgba(255,255,255,.85); transform:rotate(45deg); animation:hmectChevBounce 1.8s ease-in-out infinite; }
@keyframes hmectChevBounce{ 0%,100%{ transform:translateY(0) rotate(45deg);} 50%{ transform:translateY(6px) rotate(45deg);} }

/* ---------- SECTION HEAD (shared) ---------- */
.hmect-section-head{ text-align:center; max-width:680px; margin:0 auto 56px; }
.hmect-section-head p{ font-size:16.5px; color:var(--ink-soft); line-height:1.8; margin-top:14px; }

.hmect-tilt{ transition:transform .5s cubic-bezier(.22,.61,.36,1), box-shadow .6s var(--ease); transform-style:preserve-3d; will-change:transform; }

/* ---------- CONTACT INFO CARDS ---------- */
.hmect-info-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.hmect-info-card{
  border:1px solid var(--line); border-radius:8px; padding:36px 32px; text-align:center; background:#fff;
  display:flex; flex-direction:column; align-items:center; gap:10px;
  transition:transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.hmect-info-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow); border-color:transparent; }
.hmect-info-icon{
  width:52px; height:52px; border-radius:50%; background:var(--cream); color:var(--primary);
  display:flex; align-items:center; justify-content:center; margin-bottom:6px;
  transition:transform .45s var(--ease), background .4s ease, color .4s ease;
}
.hmect-info-card:hover .hmect-info-icon{ transform:translateY(-4px); background:var(--primary); color:#fff; }
.hmect-info-icon svg{ width:23px; height:23px; }
.hmect-info-card h4{ font-size:17px; }
.hmect-info-card p{ font-size:15px; color:var(--ink-soft); }
.hmect-info-card a{
  font-family:var(--font-heading); font-size:13px; font-weight:600; letter-spacing:.03em;
  color:var(--primary); margin-top:4px; transition:color .3s ease;
}
.hmect-info-card a:hover{ color:var(--primary-deep) !important; }

/* ---------- CONTACT FORM (inline) ---------- */
.hmect-form-wrap{ max-width:680px; margin-inline:auto; }
.hmect-contact-form{ width:100%; }
.hmect-form-head{ text-align:center; margin-bottom:40px; }
.hmect-form-head h2{ font-size:clamp(26px,3.2vw,36px); }
.hmect-form-head p{ font-size:16px; color:var(--ink-soft); margin-top:12px; }

.hmect-hp-field{ position:absolute !important; left:-9999px !important; width:1px; height:1px; opacity:0; pointer-events:none; }
.hmect-form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px; }
.hmect-form-field{ display:flex; flex-direction:column; gap:6px; margin-bottom:16px; }
.hmect-form-row .hmect-form-field{ margin-bottom:0; }
.hmect-form-field label{ font-size:12px; letter-spacing:.03em; font-weight:600; color:var(--ink-soft); }
.hmect-form-field input, .hmect-form-field textarea{
  font-family:var(--font-body); font-size:15px; padding:13px 14px;
  border:1px solid var(--line); border-radius:5px; background:#fff;
  color:var(--ink); transition:border-color .3s ease, background .3s ease;
}
.hmect-form-field input:focus, .hmect-form-field textarea:focus{
  outline:none; border-color:var(--primary); background:#fff;
}
.hmect-form-field textarea{ resize:vertical; }
.hmect-form-submit{ width:100%; justify-content:center; margin-top:6px; font-size:15px; padding:16px; }
.hmect-form-submit:disabled{ opacity:.7; cursor:wait; }
.hmect-form-error{ display:none; color:#c0392b; font-size:13.5px; margin-top:12px; text-align:center; }

.hmect-form-banner{
  padding:18px 24px; border-radius:8px; margin-bottom:32px;
  font-size:15px; text-align:center;
}
.hmect-form-banner--success{ background:#eaf6ec; color:#1e7a34; border:1px solid #bfe6c8; }
.hmect-form-banner--error{ background:#fbeaea; color:#a12b2b; border:1px solid #f0c4c4; }

.hmect-form-success{
  display:none; flex-direction:column; align-items:center; text-align:center;
  padding:40px 20px;
}
.hmect-form-success.show{ display:flex; }
.hmect-form-success .hmect-check{
  width:64px; height:64px; border-radius:50%; background:var(--cream);
  display:flex; align-items:center; justify-content:center; margin-bottom:22px;
}
.hmect-form-success .hmect-check svg{ width:28px; height:28px; }
.hmect-form-success h3{ font-size:22px; margin-bottom:10px; }
.hmect-form-success p{ font-size:15px; color:var(--ink-soft); max-width:36ch; }

/* ---------- FOOTER — centered, white background ---------- */
footer{ background:#ffffff !important; color:var(--ink); padding:80px 0 40px; border-top:1px solid var(--line); }
.hmect-footer-centered{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:22px; }
.hmect-footer-centered .hmect-brand-word--footer{ display:inline-block; }
.hmect-footer-tagline{ font-size:15px; line-height:1.8; color:var(--ink-soft); max-width:46ch; margin-top:-4px; }

.hmect-footer-nav{ display:flex; flex-wrap:wrap; justify-content:center; gap:28px; margin-top:6px; }
.hmect-footer-nav a{ font-family:var(--font-heading); font-size:13px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink); transition:color .3s ease; }
.hmect-footer-nav a:hover{ color:var(--primary) !important; }

.hmect-footer-info{ display:flex; flex-wrap:wrap; justify-content:center; gap:10px 22px; font-size:14.5px; color:var(--ink-soft); }
.hmect-footer-info li::after{ content:'·'; margin-left:22px; color:var(--line); }
.hmect-footer-info li:last-child::after{ content:''; margin:0; }

.hmect-footer-social{ display:flex; gap:14px; }
.hmect-footer-social a{
  width:36px; height:36px; border:1px solid var(--line); border-radius:50%; color:var(--primary);
  display:flex; align-items:center; justify-content:center; transition:background .35s ease, border-color .35s ease;
}
.hmect-footer-social a:hover{ background:var(--cream); border-color:var(--primary); }
.hmect-footer-social svg{ width:15px; height:15px; }

.hmect-footer-bottom{
  display:flex; justify-content:center; align-items:center; gap:6px 24px; flex-wrap:wrap;
  padding-top:26px; margin-top:12px; width:100%;
  border-top:1px solid var(--line);
  font-size:13px; color:var(--ink-soft);
}
.hmect-footer-bottom a{ color:var(--ink-soft); }
.hmect-footer-bottom a:hover{ color:var(--primary) !important; }

/* ================= RESPONSIVE ================= */
@media (max-width:1100px){
  .hmect-nav-links{ display:none; }
  .hmect-burger{ display:flex; }
}
@media (max-width:980px){
  .hmect-nav-links{ display:none; }
  .hmect-burger{ display:flex; }
  .hmect-info-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:560px){
  .hmect-container{ width:min(560px, 100% - 40px); }
  .hmect-section{ padding:86px 0; }
  .hmect-section-tight{ padding:60px 0; }
  .hmect-info-grid{ grid-template-columns:1fr; }
  .hmect-form-row{ grid-template-columns:1fr; }
  .hmect-footer-nav{ gap:16px 22px; }
  .hmect-footer-info li::after{ margin-left:14px; }
  .hmect-btn-header{ display:none; }
}
@media (max-width:400px){
  .hmect-brand-word{ font-size:15px; }
  header.hmect-scrolled .hmect-brand-word{ font-size:13px; }
  .hmect-brand-img--header{ height:min(var(--logo-h, 44px), 34px); }
  header.hmect-scrolled .hmect-brand-img--header{ height:min(calc(var(--logo-h, 44px) - 10px), 28px); }
}

@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; }
  .hmect-reveal{ opacity:1; transform:none; }
  .hmect-hero-slide.is-active{ animation:none; transform:scale(1); }
}
