/*
Theme Name: Hamilton Energi Coming Soon
Description: A temporary coming-soon theme for Hamilton Energi with a WordPress-managed launch signup list.
Version: 1.0.4
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: hamilton-energi-coming-soon
*/

:root {
  --ink: #161616;
  --taupe: #8a817a;
  --paper: #ffffff;
  --soft: #f4f3f1;
  --line: #dedbd7;
  --muted: #67625e;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
button, input { font: inherit; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: #000;
}

.skip-link:focus { top: 12px; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 132px;
  padding: 8px clamp(24px, 5vw, 76px);
  border-bottom: 1px solid #e9e7e4;
  background: #fff;
}

.brand { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; color: var(--ink); text-decoration: none; }
.brand-energi { display: flex; align-items: center; gap: 8px; width: 132px; color: #82776f; font-size: 12px; font-weight: 500; letter-spacing: .35em; line-height: 1.5; }
.brand-energi::before, .brand-energi::after { content: ''; flex: 1; height: 1px; background: currentColor; }
.brand-services { color: #82776f; font-size: 9px; font-weight: 600; letter-spacing: .025em; line-height: 1.6; text-transform: uppercase; margin-top: 4px; }

.brand-crop {
  display: block;
  width: 146px;
  height: 78px;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.brand-crop img {
  width: 100%;
  height: 116px;
  position: absolute;
  top: 0;
  object-fit: contain;
  clip-path: inset(0 0 15% 0);
  mix-blend-mode: multiply;
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.header-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--taupe);
  box-shadow: 0 0 0 5px rgba(138,129,122,.14);
}

.hero {
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  gap: 38px clamp(54px, 8vw, 140px);
  padding: clamp(58px, 6vw, 92px) clamp(28px, 6vw, 104px) 34px;
}

.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.copy-heading { container-type: inline-size; }

h1 {
  max-width: 780px;
  margin: 30px 0 28px;
  font-size: clamp(32px, 14cqw, 88px);
  font-weight: 450;
  letter-spacing: -.055em;
  line-height: .98;
}

h1 span { color: var(--taupe); }

.intro {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.copy-details {
  align-self: end;
  padding-bottom: 12px;
}

.updates-form {
  max-width: 690px;
  margin-top: 42px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.form-row {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 20px;
}

.form-row label { display: block; }

.form-row label > span {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.form-row small {
  color: var(--taupe);
  font-size: 9px;
  font-weight: 700;
}

.form-row input {
  width: 100%;
  min-height: 54px;
  padding: 14px 15px;
  border: 1px solid #cfcac5;
  border-radius: 0;
  color: var(--ink);
  background: #fff;
}

.form-row input::placeholder { color: #958f8a; }

.form-row input:focus,
.consent input:focus-visible,
button:focus-visible {
  outline: 2px solid var(--taupe);
  outline-offset: 3px;
}

.consent {
  display: grid;
  grid-template-columns: 19px 1fr;
  gap: 11px;
  align-items: start;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.consent input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--ink);
}

.form-action {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
}

.form-action button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  min-height: 54px;
  padding: 15px 21px;
  border: 1px solid #000;
  border-radius: 0;
  color: #fff;
  background: #000;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s, border-color .2s, transform .2s;
}

.form-action button:hover {
  border-color: #625a54;
  background: #625a54;
  transform: translateY(-2px);
}

.form-action button span { font-size: 19px; }

.form-action p {
  max-width: 215px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.form-message {
  margin: 20px 0 0;
  padding: 13px 15px;
  border-left: 3px solid var(--taupe);
  color: var(--ink);
  background: var(--soft);
  font-size: 13px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  grid-column: 1 / -1;
  margin-top: 6px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-meta span + span::before {
  content: '/';
  margin-right: 26px;
  color: var(--taupe);
}

.hero-visual {
  position: relative;
  width: 100%;
  height: clamp(440px, 42vw, 720px);
  overflow: hidden;
  background: #262523;
}

.hero-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  animation: image-in 1.1s ease-out both;
}

.visual-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.66));
}

.visual-caption {
  position: absolute;
  right: clamp(26px, 5vw, 72px);
  bottom: 34px;
  left: clamp(26px, 5vw, 72px);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  color: #fff;
}

.visual-caption strong {
  max-width: 360px;
  font-size: clamp(22px, 2vw, 31px);
  font-weight: 450;
  letter-spacing: -.03em;
  line-height: 1.2;
}

.visual-caption span {
  color: #ddd5ce;
  font-size: 10px;
  letter-spacing: .13em;
  text-align: right;
  text-transform: uppercase;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(24px, 5vw, 76px);
  color: var(--muted);
  background: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

@keyframes image-in {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 980px) {
  .hero-copy { grid-template-columns: 1fr; gap: 22px; padding: 64px 7% 38px; }
  .copy-details { padding-bottom: 0; }
  .hero-visual { min-height: 520px; }
  .hero-meta { margin-top: 18px; }
}

@media (max-width: 620px) {
  .site-header { min-height: 112px; padding: 7px 6%; }
  .brand-crop { width: 118px; height: 64px; }
  .brand-crop img { height: 96px; }
  .brand-services { font-size: 8px; letter-spacing: 0; }
  .brand-energi { font-size: 11px; }
  .header-status { max-width: 128px; font-size: 9px; line-height: 1.4; text-align: right; }
  .hero-copy { padding: 48px 6% 34px; }
  h1 { margin-top: 24px; font-size: clamp(32px, 14cqw, 68px); }
  .intro { font-size: 15px; }
  .updates-form { margin-top: 34px; padding-top: 25px; }
  .form-row { grid-template-columns: 1fr; gap: 16px; }
  .form-action { align-items: flex-start; flex-direction: column; }
  .form-action button { width: 100%; }
  .hero-meta { gap: 12px; padding-top: 42px; }
  .hero-meta span + span::before { margin-right: 12px; }
  .hero-visual { height: 430px; min-height: 0; }
  .visual-caption { align-items: flex-start; flex-direction: column; }
  .visual-caption span { text-align: left; }
  footer { align-items: flex-start; flex-direction: column; padding-block: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
