/*
Theme Name: Hawaii Services
Theme URI: https://hawaii.services/
Author: Hawaii Services
Description: A fast, email-first WordPress theme for Hawaii.Services that preserves the site's existing stories without relying on Thrive.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: hawaii-services
*/

:root {
  --hs-red: #b9543b;
  --hs-red-dark: #923e2d;
  --hs-blue: #174e55;
  --hs-blue-dark: #0e373c;
  --hs-ink: #151513;
  --hs-muted: #64635e;
  --hs-line: #d8d5cc;
  --hs-cloud: #ece9e1;
  --hs-sand: #f0e7d8;
  --hs-paper: #f5f1e8;
  --hs-white: #ffffff;
  --hs-shadow: 0 28px 80px rgba(30, 26, 20, 0.13);
  --hs-radius: 10px;
  --hs-wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: clip; }
section[id] { scroll-margin-top: 106px; }

body {
  margin: 0;
  background: var(--hs-paper);
  color: var(--hs-ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.admin-bar .site-header { top: 32px; }

a { color: var(--hs-blue); }
a:hover { color: var(--hs-red); }
img { display: block; height: auto; max-width: 100%; }
iframe { max-width: 100%; }
pre { max-width: 100%; overflow-x: auto; }
.entry-content table { display: block; max-width: 100%; overflow-x: auto; }

h1,
h2,
h3,
h4,
.site-brand {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-weight: 500;
}

.screen-reader-text,
.skip-link:not(:focus) {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
}

.skip-link:focus {
  background: var(--hs-white);
  border: 2px solid var(--hs-blue);
  border-radius: 8px;
  color: var(--hs-ink);
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: 16px;
  z-index: 9999;
}

:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

.site-wrap {
  margin-inline: auto;
  max-width: var(--hs-wrap);
  padding-inline: 24px;
}

.site-header {
  background: rgba(245, 242, 235, 0.97);
  border-bottom: 1px solid var(--hs-line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  min-height: 86px;
}

.site-brand { flex: 0 1 310px; }
.site-brand a { color: var(--hs-ink); display: inline-flex; flex-direction: column; text-decoration: none; }
.brand-mark { align-items: baseline; color: var(--hs-ink); display: inline-flex; font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1.35rem; font-weight: 830; letter-spacing: -0.055em; line-height: 1; text-decoration: none; }
.brand-mark b { color: var(--hs-red); font-weight: 900; }
.brand-sub { color: var(--hs-muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.58rem; letter-spacing: 0.12em; margin-top: 6px; text-transform: uppercase; }

.site-nav ul {
  align-items: center;
  display: flex;
  gap: 23px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--hs-ink);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover { color: var(--hs-blue); }

.site-nav .nav-cta {
  background: var(--hs-ink);
  border-radius: 8px;
  color: var(--hs-white);
  padding: 11px 17px;
}

.site-nav .nav-cta:hover { background: var(--hs-blue); color: var(--hs-white); }

.hero {
  background: var(--hs-paper);
  border-bottom: 1px solid var(--hs-line);
  overflow: hidden;
  padding: clamp(76px, 10vw, 136px) 0 90px;
  position: relative;
}

.hero::after {
  background-image: linear-gradient(to right, rgba(25, 24, 23, 0.045) 1px, transparent 1px);
  background-size: calc((100vw - min(1180px, 100vw - 48px)) / 2 + min(1180px, 100vw - 48px) / 6) 100%;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(44px, 7vw, 90px);
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  position: relative;
  z-index: 1;
}

.eyebrow {
  align-items: center;
  color: var(--hs-blue);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 820;
  gap: 9px;
  letter-spacing: 0.1em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.eyebrow::before {
  background: var(--hs-red);
  border-radius: 50%;
  content: "";
  height: 9px;
  width: 9px;
}

.hero h1 {
  color: var(--hs-ink);
  font-size: clamp(3rem, 6.5vw, 6.1rem);
  letter-spacing: -0.065em;
  line-height: 0.91;
  margin: 0;
  max-width: 840px;
}

.hero h1 span { color: var(--hs-red); display: block; font-style: italic; }

.hero-copy {
  color: var(--hs-muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  margin: 28px 0 30px;
  max-width: 680px;
}

.button-row { align-items: center; display: flex; flex-wrap: wrap; gap: 14px; }

.button,
button,
input[type="submit"] {
  align-items: center;
  background: var(--hs-blue);
  border: 0;
  border-radius: 8px;
  color: var(--hs-white);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 720;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--hs-blue-dark);
  box-shadow: 0 12px 28px rgba(0, 76, 163, 0.2);
  color: var(--hs-white);
  transform: translateY(-2px);
}

.button-secondary {
  background: transparent;
  border: 1px solid #aaa397;
  color: var(--hs-ink);
}

.button-secondary:hover { background: var(--hs-white); color: var(--hs-blue); }

.no-call-note {
  color: var(--hs-muted);
  font-size: 0.9rem;
  margin: 18px 0 0;
}

.studio-window {
  background: #161616;
  border: 1px solid #000;
  border-radius: 13px;
  box-shadow: var(--hs-shadow);
  color: #f5f2eb;
  overflow: hidden;
}

.studio-bar {
  align-items: center;
  border-bottom: 1px solid #393836;
  color: #aaa69f;
  display: grid;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.63rem;
  grid-template-columns: 84px 1fr auto;
  letter-spacing: 0.08em;
  padding: 12px 14px;
}

.studio-dots { display: flex; gap: 5px; }
.studio-dots span { background: #655f58; border-radius: 50%; height: 7px; width: 7px; }
.studio-dots span:first-child { background: #df785f; }
.studio-live { color: #8fcf92; }
.studio-canvas { padding: clamp(24px, 4vw, 40px); }
.studio-label { color: #df785f; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.68rem; letter-spacing: 0.1em; margin: 0 0 10px; text-transform: uppercase; }
.studio-window h2 { color: #f5f2eb; font-size: clamp(1.9rem, 3vw, 2.8rem); letter-spacing: -0.04em; line-height: 1; margin: 0 0 29px; }
.studio-flow { border-top: 1px solid #393836; }
.studio-flow > div { align-items: center; border-bottom: 1px solid #393836; display: grid; font-size: 0.75rem; gap: 11px; grid-template-columns: 26px 1fr auto; padding: 11px 0; }
.studio-flow b { color: #77716a; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.65rem; }
.studio-flow span { color: #dedad2; }
.studio-flow em { color: #88837c; font-size: 0.62rem; font-style: normal; text-transform: uppercase; }
.studio-flow .active em { color: #f2bd62; }
.studio-preview { background: #eeebe3; border-radius: 6px; margin-top: 24px; overflow: hidden; padding: 12px; position: relative; }
.mini-nav { align-items: center; display: flex; gap: 7px; padding-bottom: 12px; }
.mini-nav i { background: var(--hs-red); border-radius: 50%; height: 15px; margin-right: auto; width: 15px; }
.mini-nav span { background: #8d8880; height: 3px; width: 22px; }
.mini-layout { display: grid; gap: 10px; grid-template-columns: 1.35fr 0.65fr; }
.mini-layout > div { background: #fff; min-height: 116px; padding: 17px; }
.mini-layout strong { background: #252320; display: block; height: 7px; margin-bottom: 6px; width: 78%; }
.mini-layout strong:nth-child(2) { background: var(--hs-red); width: 56%; }
.mini-layout small { background: #cbc5bb; display: block; height: 4px; margin-top: 16px; width: 90%; }
.mini-layout aside { background: var(--hs-blue); min-height: 116px; }
.preview-mark { color: rgba(25, 24, 23, 0.22); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.72rem; font-weight: 900; inset: 50% auto auto 50%; letter-spacing: 0.16em; position: absolute; transform: translate(-50%, -50%) rotate(-14deg); white-space: nowrap; }
.studio-foot { color: #8e8981; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.62rem; margin: 14px 0 0; text-align: center; }

.trust-strip { background: var(--hs-ink); color: var(--hs-white); }
.trust-items { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { border-right: 1px solid rgba(255,255,255,.12); padding: 20px 22px; text-align: center; }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; font-size: 0.96rem; }
.trust-item span { color: #c7d2db; font-size: 0.78rem; }

.section { padding: clamp(76px, 9vw, 118px) 0; }
.section-soft { background: var(--hs-cloud); border-block: 1px solid var(--hs-line); }
.section-sand { background: var(--hs-sand); }
.section-heading { margin-bottom: 46px; max-width: 760px; }
.section-heading h2 { font-size: clamp(2.35rem, 4.8vw, 4.35rem); letter-spacing: -0.055em; line-height: 0.99; margin: 0; }
.section-heading p { color: var(--hs-muted); font-size: 1.08rem; margin: 18px 0 0; }

.card-grid { border-left: 1px solid var(--hs-line); border-top: 1px solid var(--hs-line); display: grid; gap: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-card {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hs-line);
  border-right: 1px solid var(--hs-line);
  border-radius: 0;
  padding: clamp(25px, 3vw, 38px);
  position: relative;
}
.service-card.featured { background: var(--hs-white); box-shadow: inset 0 4px 0 var(--hs-red); }
.service-card .label { color: var(--hs-blue); font-size: 0.76rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.service-card h3 { font-size: 1.72rem; letter-spacing: -0.035em; line-height: 1.08; margin: 12px 0; }
.service-card .price { color: var(--hs-ink); font-size: 2rem; font-weight: 850; letter-spacing: -0.04em; }
.service-card .price small { color: var(--hs-muted); font-size: 0.8rem; font-weight: 600; }
.service-card p { color: var(--hs-muted); }
.service-card ul { margin: 22px 0 0; padding-left: 20px; }
.service-card li { margin: 8px 0; }

.growth-section { background: #1b1a18; color: #f4f0e8; }
.growth-section .eyebrow { color: #e98a72; }
.growth-section .section-heading { max-width: none; }
.section-heading-split { align-items: end; display: grid; gap: 60px; grid-template-columns: 1.15fr 0.85fr; }
.section-heading-split > p { color: #aaa69f; margin: 0; }
.growth-grid { border-left: 1px solid #403e3a; border-top: 1px solid #403e3a; display: grid; grid-template-columns: repeat(3, 1fr); }
.growth-item { border-bottom: 1px solid #403e3a; border-right: 1px solid #403e3a; padding: clamp(26px, 3.5vw, 42px); }
.growth-item > span { color: #8f8a82; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.69rem; letter-spacing: 0.09em; }
.growth-item h3 { color: #f4f0e8; font-size: 1.75rem; letter-spacing: -0.03em; line-height: 1.08; margin: 22px 0 8px; }
.growth-price { color: #e7a590; font-size: 0.78rem; font-weight: 750; letter-spacing: 0.06em; margin-bottom: 16px; text-transform: uppercase; }
.growth-item p, .growth-item li { color: #bdb8af; font-size: 0.92rem; }
.growth-item ul { margin: 24px 0 0; padding-left: 18px; }
.growth-item li { margin: 8px 0; }
.growth-note { border-bottom: 1px solid #403e3a; color: #aaa69f; font-size: 0.88rem; margin: 0; padding: 22px 0; }
.growth-note strong { color: #f4f0e8; }

.process-grid { counter-reset: hs-step; display: grid; gap: 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.process-step { border-top: 3px solid var(--hs-line); padding-top: 22px; }
.process-step::before { color: var(--hs-red); content: "0" counter(hs-step); counter-increment: hs-step; display: block; font-size: 0.76rem; font-weight: 900; letter-spacing: 0.11em; margin-bottom: 13px; }
.process-step h3 { font-size: 1.15rem; margin: 0 0 9px; }
.process-step p { color: var(--hs-muted); font-size: 0.94rem; margin: 0; }

.preview-panel {
  align-items: center;
  background: #1b1a18;
  border-radius: 10px;
  color: var(--hs-white);
  display: grid;
  gap: 44px;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
  padding: clamp(34px, 6vw, 68px);
  position: relative;
}
.preview-panel::after { border: 1px solid rgba(255,255,255,.12); content: ""; height: 100%; position: absolute; right: 16.5%; top: 0; width: 1px; }
.preview-panel h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.04em; line-height: 1.05; margin: 0; }
.preview-panel p { color: #bdb8af; }
.preview-list { background: transparent; border: 1px solid rgba(255,255,255,.18); border-radius: 7px; padding: 26px; }
.preview-list div { border-bottom: 1px solid rgba(255,255,255,.15); display: flex; gap: 13px; padding: 12px 0; }
.preview-list div:last-child { border-bottom: 0; }
.preview-list strong { color: #fff3b8; }

.stories-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.story-card { background: var(--hs-white); border: 1px solid var(--hs-line); border-radius: 8px; overflow: hidden; }
.story-thumb { aspect-ratio: 3 / 2; background: #dce4df; overflow: hidden; position: relative; }
.story-thumb img { height: 100%; object-fit: cover; width: 100%; }
.story-thumb.is-graphic::before,
.story-thumb.is-graphic::after { border: 1px solid rgba(23,78,85,.16); border-radius: 50%; content: ""; pointer-events: none; position: absolute; }
.story-thumb.is-graphic::before { height: 120%; left: 42%; top: -52%; width: 82%; }
.story-thumb.is-graphic::after { height: 86%; left: 58%; top: 12%; width: 58%; }
.story-graphic { align-items: flex-start; display: flex; flex-direction: column; inset: 0; justify-content: flex-end; padding: 22px; position: absolute; z-index: 1; }
.story-graphic span { color: var(--hs-blue); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .63rem; letter-spacing: .11em; text-transform: uppercase; }
.story-graphic b { color: rgba(21,21,19,.7); font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 1.45rem; font-weight: 500; margin-top: 4px; }
.story-body { padding: 23px; }
.story-meta { color: var(--hs-red); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.story-card h3 { font-size: 1.25rem; line-height: 1.25; margin: 10px 0; }
.story-card h3 a { color: var(--hs-ink); text-decoration: none; }
.story-card h3 a:hover { color: var(--hs-blue); }
.story-card p { color: var(--hs-muted); font-size: 0.92rem; margin: 0; }

.faq-grid { display: grid; gap: 15px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.faq-grid details { background: transparent; border: 0; border-top: 1px solid var(--hs-line); border-radius: 0; padding: 20px 2px; }
.faq-grid summary { cursor: pointer; font-weight: 780; }
.faq-grid p { color: var(--hs-muted); margin: 14px 0 0; }

.contact-card { align-items: center; background: var(--hs-blue); border-radius: 10px; color: var(--hs-white); display: flex; gap: 32px; justify-content: space-between; padding: clamp(34px, 6vw, 66px); }
.contact-card h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -0.04em; line-height: 1.05; margin: 0; }
.contact-card p { color: #c8d2dc; margin: 16px 0 0; max-width: 670px; }
.contact-card .button { background: var(--hs-red); flex: 0 0 auto; }
.contact-card .button:hover { background: var(--hs-red-dark); }

.content-shell { display: grid; gap: 46px; grid-template-columns: minmax(0, 1fr) 290px; padding-block: 64px 96px; }
.content-main { min-width: 0; }
.archive-title, .entry-title { font-size: clamp(2.15rem, 5vw, 4rem); letter-spacing: -0.045em; line-height: 1.05; margin: 0 0 18px; }
.archive-description { color: var(--hs-muted); margin-bottom: 38px; }
.post-list article { border-bottom: 1px solid var(--hs-line); padding: 30px 0; }
.post-list article:first-child { padding-top: 0; }
.post-list h2 { font-size: 1.65rem; line-height: 1.2; margin: 0 0 10px; }
.post-list h2 a { color: var(--hs-ink); text-decoration: none; }
.post-list h2 a:hover { color: var(--hs-blue); }
.entry-meta { color: var(--hs-muted); font-size: 0.84rem; margin-bottom: 18px; }
.entry-content { overflow-wrap: anywhere; }
.entry-content > * { max-width: 760px; }
.entry-content > .alignwide { max-width: 1080px; }
.entry-content > .alignfull { margin-left: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.entry-content h2, .entry-content h3 { line-height: 1.2; margin-top: 1.8em; }
.entry-content img { border-radius: 12px; }
.sidebar { align-self: start; background: var(--hs-cloud); border-radius: 18px; padding: 25px; position: sticky; top: 112px; }
.sidebar h2 { font-size: 1rem; margin: 0 0 12px; }
.sidebar ul { list-style: none; margin: 0 0 28px; padding: 0; }
.sidebar li { border-bottom: 1px solid var(--hs-line); font-size: 0.9rem; padding: 9px 0; }
.sidebar a { color: var(--hs-ink); text-decoration: none; }
.sidebar a:hover { color: var(--hs-blue); }

.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-field { border: 1px solid #bac7d2; border-radius: 999px; font: inherit; max-width: 100%; min-height: 46px; padding: 9px 15px; width: 100%; }
.search-submit { min-height: 46px; padding: 9px 16px; }

.pagination { margin-top: 36px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { border: 1px solid var(--hs-line); border-radius: 8px; padding: 7px 12px; text-decoration: none; }
.page-numbers.current { background: var(--hs-blue); color: var(--hs-white); }

.site-footer { background: var(--hs-paper); border-top: 1px solid var(--hs-line); padding: 54px 0 26px; }
.footer-grid { display: grid; gap: 44px; grid-template-columns: 1.25fr 0.75fr 0.75fr; }
.footer-brand .brand-mark { font-size: 1.55rem; margin-bottom: 16px; }
.footer-brand p, .site-footer li, .site-footer small { color: var(--hs-muted); font-size: 0.88rem; }
.site-footer h2 { font-size: 0.78rem; letter-spacing: 0.1em; margin: 0 0 14px; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: var(--hs-ink); text-decoration: none; }
.site-footer a:hover { color: var(--hs-blue); }
.footer-bottom { border-top: 1px solid var(--hs-line); margin-top: 38px; padding-top: 22px; }

@media (max-width: 960px) {
  body.admin-bar .site-header { top: 46px; }
  .header-inner { align-items: flex-start; flex-direction: column; gap: 16px; padding-block: 18px; }
  .site-brand { flex-basis: auto; }
  .site-header { position: relative; }
  .site-nav { max-width: 100%; overflow-x: auto; width: 100%; }
  .site-nav ul { gap: 18px; width: max-content; }
  .hero-grid, .preview-panel { grid-template-columns: 1fr; }
  .studio-window { max-width: 680px; }
  .trust-items, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .stories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .growth-grid { grid-template-columns: 1fr 1fr; }
  .section-heading-split { align-items: start; gap: 24px; grid-template-columns: 1fr; }
  .content-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 680px) {
  .site-wrap { padding-inline: 18px; }
  .site-nav { overflow: visible; }
  .site-nav ul { gap: 10px; justify-content: space-between; width: 100%; }
  .site-nav li:nth-child(2), .site-nav li:nth-child(4) { display: none; }
  .site-nav a { font-size: .84rem; }
  .site-nav .nav-cta { padding: 10px 13px; }
  .hero { padding-top: 68px; }
  .hero h1 { font-size: clamp(2.45rem, 13vw, 3.7rem); }
  .button-row .button { width: 100%; }
  .trust-items { grid-template-columns: 1fr 1fr; }
  .trust-item { border-bottom: 1px solid rgba(255,255,255,.12); border-right: 0; padding: 16px 8px; }
  .card-grid, .stories-grid, .faq-grid, .process-grid, .footer-grid, .growth-grid { grid-template-columns: 1fr; }
  .contact-card { align-items: flex-start; flex-direction: column; }
  .contact-card .button { width: 100%; }
}

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