/*
Theme Name: Island Weddings of Hawaii
Theme URI: https://islandweddingsofhawaii.com/
Description: A restrained, factual child theme for Hawaii wedding planning information.
Author: Larry Sheffer
Template: twentytwentyfive
Version: 2.3.0
Text Domain: island-weddings-hawaii
*/

:root {
  --iwoh-paper: #f7f4ed;
  --iwoh-surface: #fffdf8;
  --iwoh-surface-muted: #ece7db;
  --iwoh-ink: #19302e;
  --iwoh-muted: #52625f;
  --iwoh-teal: #235c58;
  --iwoh-teal-dark: #173f3c;
  --iwoh-gold: #9a7137;
  --iwoh-line: #cbc4b6;
  --iwoh-danger: #813d35;
  --iwoh-max: 1160px;
  --iwoh-copy: 760px;
  --iwoh-space: clamp(3.25rem, 7vw, 6.5rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--iwoh-paper);
  color: var(--iwoh-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
body:has(.iwoh-home) .wp-site-blocks { padding: 0; }
a { color: var(--iwoh-teal-dark); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover, a:focus-visible { color: var(--iwoh-teal); }
:focus-visible { outline: 3px solid var(--iwoh-gold); outline-offset: 3px; }

/* Shared structural pieces. */
.iwoh-home, [class$="-page"], .iwoh-policy-content, .iwoh-search-page, .iwoh-not-found-page {
  width: min(calc(100% - 40px), var(--iwoh-max));
  margin: 0 auto;
}
.iwoh-home { width: 100%; overflow: clip; }
.iwoh-home > section,
[class$="-page"] > section,
.iwoh-policy-content > section,
.iwoh-search-page > section,
.iwoh-not-found-page > section {
  padding: var(--iwoh-space) max(20px, calc((100vw - var(--iwoh-max)) / 2));
}
.iwoh-home > section:nth-of-type(even),
[class$="-page"] > section:nth-of-type(even) { background: var(--iwoh-surface-muted); }

.iwoh-site-header, .iwoh-footer {
  width: min(calc(100% - 40px), var(--iwoh-max));
  margin: 0 auto;
  font-family: inherit;
}
.iwoh-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 82px;
  border-bottom: 1px solid var(--iwoh-line);
}
.iwoh-guide-site-header { flex-wrap: wrap; padding: .95rem 0; }
.iwoh-brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--iwoh-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.1;
  text-decoration: none;
}
.iwoh-brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  grid-template-rows: repeat(2, 5px);
  place-content: center;
  gap: 3px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--iwoh-teal);
  border-radius: 50%;
}
.iwoh-brand-mark i { width: 5px; height: 5px; border-radius: 50%; background: var(--iwoh-teal); }
.iwoh-site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem 1.2rem;
}
.iwoh-site-header nav a {
  color: var(--iwoh-muted);
  font-size: .84rem;
  font-weight: 750;
  text-decoration: none;
}
.iwoh-site-header nav a:hover, .iwoh-site-header nav a:focus-visible { color: var(--iwoh-teal-dark); text-decoration: underline; }
.iwoh-header-tools { display: flex; align-items: center; gap: .7rem; }
.iwoh-all-guides-link { font-size: .8rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.iwoh-header-search { display: flex; min-width: 200px; border: 1px solid var(--iwoh-line); background: var(--iwoh-surface); }
.iwoh-header-search input { min-width: 0; width: 100%; padding: .48rem .6rem; border: 0; background: transparent; color: inherit; font: inherit; font-size: .8rem; }
.iwoh-header-search button { padding: .48rem .7rem; border: 0; border-left: 1px solid var(--iwoh-line); background: var(--iwoh-teal); color: #fff; cursor: pointer; font: inherit; font-size: .78rem; font-weight: 800; }
.iwoh-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* Editorial hierarchy. */
h1, h2, h3 { color: var(--iwoh-ink); font-family: Georgia, "Times New Roman", serif; line-height: 1.16; }
h1 { max-width: 17ch; margin: 0; font-size: clamp(2.35rem, 5vw, 4.6rem); letter-spacing: -.035em; }
h2 { max-width: 28ch; margin: 0; font-size: clamp(1.7rem, 3vw, 2.7rem); letter-spacing: -.025em; }
h3 { margin: 0 0 .55rem; font-size: 1.25rem; }
p { max-width: var(--iwoh-copy); }
.iwoh-eyebrow, .iwoh-card-label, .iwoh-number {
  margin: 0 0 .65rem;
  color: var(--iwoh-gold);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .11em;
  line-height: 1.2;
  text-transform: uppercase;
}
.iwoh-hero-intro, .iwoh-policy-intro { max-width: 60ch; color: var(--iwoh-muted); font-size: 1.1rem; }
.iwoh-section-heading { max-width: var(--iwoh-copy); margin-bottom: 2rem; }
.iwoh-section-heading > p:last-child { color: var(--iwoh-muted); }

/* First screen and repeated callouts. */
.iwoh-hero, [class$="-hero"] {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(270px, .7fr);
  align-items: start;
  gap: clamp(2rem, 7vw, 7rem);
  padding: clamp(4rem, 10vw, 8rem) max(20px, calc((100vw - var(--iwoh-max)) / 2)) !important;
  background: var(--iwoh-paper) !important;
}
.iwoh-reality-card, [class$="-rule"], [class$="-warning"], [class$="-note"], [class$="-callout"], [class$="-status"] {
  padding: 1.35rem 1.45rem;
  border: 1px solid var(--iwoh-line);
  border-left: 4px solid var(--iwoh-gold);
  background: var(--iwoh-surface);
}
.iwoh-reality-card h2 { font-size: 1.5rem; }
.iwoh-reality-card ul { margin: 1rem 0 0; padding-left: 1.1rem; }
.iwoh-reality-card li + li { margin-top: .5rem; }
.iwoh-hero-actions, .iwoh-final-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.iwoh-button, .iwoh-core-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .65rem 1rem;
  border: 1px solid var(--iwoh-teal); font-size: .88rem; font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none;
}
.iwoh-button-primary, .iwoh-core-button { background: var(--iwoh-teal); color: #fff; }
.iwoh-button-primary:hover, .iwoh-core-button:hover { background: var(--iwoh-teal-dark); color: #fff; }
.iwoh-button-secondary { background: transparent; color: var(--iwoh-teal-dark); }
.iwoh-button-light { border-color: #fff; background: #fff; color: var(--iwoh-teal-dark); }

/* Cards, grids, and sequential information. */
[class$="-grid"], .iwoh-decision-grid, .iwoh-question-grid, .iwoh-profile-list, .iwoh-source-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  gap: 1rem;
}
.iwoh-decision-card, [class$="-card"], [class$="-grid"] > article, [class$="-grid"] > div {
  min-width: 0; padding: 1.35rem; border: 1px solid var(--iwoh-line); background: var(--iwoh-surface);
}
.iwoh-decision-card > p, [class$="-card"] > p { margin-bottom: 0; }
.iwoh-decision-card a, .iwoh-source-link { font-weight: 800; }
.iwoh-island-blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.iwoh-island-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: .8rem;
  min-width: 0;
  padding: 1.35rem;
  border: 1px solid var(--iwoh-line);
  border-top: 5px solid var(--iwoh-teal);
  background: var(--iwoh-surface);
  color: var(--iwoh-ink);
  text-decoration: none;
}
.iwoh-island-block:hover, .iwoh-island-block:focus-visible { border-color: var(--iwoh-teal); background: #fdfcf7; color: var(--iwoh-ink); }
.iwoh-island-block strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.iwoh-island-block-fit, .iwoh-island-block-check { display: block; line-height: 1.55; }
.iwoh-island-block b { display: block; margin-bottom: .2rem; color: var(--iwoh-muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.iwoh-island-block-check { padding-top: .75rem; border-top: 1px solid var(--iwoh-line); }
.iwoh-workflow-note {
  max-width: 950px;
  margin: 0 0 1.4rem;
  padding: 1.2rem 1.45rem;
  border: 1px solid var(--iwoh-line);
  border-left: 4px solid var(--iwoh-gold);
  background: var(--iwoh-surface);
  color: var(--iwoh-ink);
}

/* Block-first comparison format. It prevents long island guidance from
   collapsing into one unreadable row when a page is edited in WordPress. */
.iwoh-island-comparison-table,
.iwoh-island-table,
.iwoh-guide-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  overflow: visible;
  border: 0;
  background: transparent;
}
.iwoh-island-comparison-table > .iwoh-island-comparison-head,
.iwoh-island-table > .iwoh-island-head,
.iwoh-guide-table > .iwoh-guide-head { display: none; }
.iwoh-island-comparison-table > .iwoh-island-comparison-row,
.iwoh-island-table > .iwoh-island-row,
.iwoh-guide-table > .iwoh-guide-row {
  display: block;
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--iwoh-line);
  border-top: 4px solid var(--iwoh-teal);
  background: var(--iwoh-surface);
}
.iwoh-island-comparison-table > .iwoh-island-comparison-row > *,
.iwoh-island-table > .iwoh-island-row > *,
.iwoh-guide-table > .iwoh-guide-row > * {
  display: block;
  padding: .75rem 0;
  border: 0;
  border-top: 1px solid var(--iwoh-line);
}
.iwoh-island-comparison-table > .iwoh-island-comparison-row > :first-child,
.iwoh-island-table > .iwoh-island-row > :first-child,
.iwoh-guide-table > .iwoh-guide-row > :first-child {
  padding-top: 0;
  border-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
}
.iwoh-island-comparison-table > .iwoh-island-comparison-row > :nth-child(2)::before,
.iwoh-island-table > .iwoh-island-row > :nth-child(2)::before,
.iwoh-guide-table > .iwoh-guide-row > :nth-child(2)::before,
.iwoh-island-comparison-table > .iwoh-island-comparison-row > :nth-child(3)::before,
.iwoh-island-table > .iwoh-island-row > :nth-child(3)::before,
.iwoh-guide-table > .iwoh-guide-row > :nth-child(3)::before {
  display: block;
  margin-bottom: .28rem;
  color: var(--iwoh-muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.iwoh-island-comparison-table > .iwoh-island-comparison-row > :nth-child(2)::before,
.iwoh-island-table > .iwoh-island-row > :nth-child(2)::before,
.iwoh-guide-table > .iwoh-guide-row > :nth-child(2)::before { content: "Strong starting point"; }
.iwoh-island-comparison-table > .iwoh-island-comparison-row > :nth-child(3)::before,
.iwoh-island-table > .iwoh-island-row > :nth-child(3)::before,
.iwoh-guide-table > .iwoh-guide-row > :nth-child(3)::before { content: "Verify before shortlisting"; }
.iwoh-order-list, .iwoh-method-steps, [class$="-step-list"], .iwoh-foundation-link-grid {
  display: grid; gap: .75rem; padding: 0; list-style: none;
}
.iwoh-order-list li, .iwoh-method-steps li, [class$="-step-list"] li, .iwoh-foundation-link-grid li {
  padding: 1rem 1.15rem; border-left: 3px solid var(--iwoh-teal); background: var(--iwoh-surface);
}
.iwoh-order-list strong, .iwoh-method-steps strong { display: block; margin-bottom: .25rem; }

/* Tables must scroll rather than crush their contents. */
[class$="-table"] { overflow-x: auto; border: 1px solid var(--iwoh-line); background: var(--iwoh-surface); }
[class$="-head"], [class$="-row"] {
  display: grid;
  grid-template-columns: minmax(145px, 1fr) minmax(170px, 1.65fr) minmax(140px, 1fr);
  min-width: 680px;
}
[class$="-head"] { color: #fff; background: var(--iwoh-teal-dark); font-size: .77rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
[class$="-row"] { border-top: 1px solid var(--iwoh-line); }
[class$="-head"] > *, [class$="-row"] > * { padding: .85rem .95rem; }
[class$="-row"] > * + * { border-left: 1px solid var(--iwoh-line); }
[class$="-row"]:nth-child(odd) { background: #faf8f2; }

/* Special content states. */
[class*="failure"], [class*="hazard"], [class*="warning"], .iwoh-permit-no { border-color: #d8aaa4; }
[class*="failure"] h3, [class*="hazard"] h3, .iwoh-permit-no { color: var(--iwoh-danger); }
.iwoh-permit-yes { border-left-color: var(--iwoh-teal); }
.iwoh-final-cta { color: #fff; background: var(--iwoh-teal-dark) !important; }
.iwoh-final-cta h2, .iwoh-final-cta p { color: #fff; }
.iwoh-final-cta .iwoh-eyebrow { color: #e7c98d; }
.iwoh-source-links a, [class$="-sources"] a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--iwoh-line); }
.iwoh-confirmed-vendor-record { display: grid; grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr); gap: 2rem; align-items: start; }
.iwoh-approved-vendors-callout { border: 1px solid var(--iwoh-line); border-left: 5px solid var(--iwoh-teal); background: var(--iwoh-surface); padding: 1.35rem 1.5rem; margin: 0 max(20px, calc((100vw - var(--iwoh-max)) / 2)) 2.5rem; }
.iwoh-approved-vendors-callout p { margin: .35rem 0 0; color: var(--iwoh-muted); }
.iwoh-approved-vendors-callout .iwoh-eyebrow { margin: 0; }
.iwoh-approved-vendor-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.iwoh-approved-vendor-card { padding: 1.15rem; border: 1px solid var(--iwoh-line); border-top: 4px solid var(--iwoh-teal); background: #faf8f2; }
.iwoh-approved-vendor-card h3 { margin: .35rem 0 .55rem; }
.iwoh-approved-vendor-card dl { margin: 1rem 0 0; }
.iwoh-approved-vendor-card dl > div { display: grid; grid-template-columns: minmax(110px, .55fr) minmax(0, 1.45fr); gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--iwoh-line); }
.iwoh-approved-vendor-card dt { color: var(--iwoh-muted); font-size: .76rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.iwoh-approved-vendor-card dd { margin: 0; }
.iwoh-confirmed-vendor-record article { padding: 1.25rem; border: 1px solid var(--iwoh-line); border-top: 4px solid var(--iwoh-teal); background: var(--iwoh-surface); }
.iwoh-confirmed-vendor-record dl { margin: 0; }
.iwoh-confirmed-vendor-record dl > div { display: grid; grid-template-columns: minmax(130px, .6fr) minmax(0, 1.4fr); gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--iwoh-line); }
.iwoh-confirmed-vendor-record dt { color: var(--iwoh-muted); font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.iwoh-confirmed-vendor-record dd { margin: 0; }
.iwoh-vendor-record-disclosure { margin: 1rem 0 0; color: var(--iwoh-muted); font-size: .85rem; }

/* Policy, search, and footer. */
.iwoh-policy-content, .iwoh-search-page, .iwoh-not-found-page { padding: var(--iwoh-space) 0; }
.iwoh-policy-content section { max-width: var(--iwoh-copy); margin: 2.5rem 0; }
.iwoh-policy-reviewed { color: var(--iwoh-muted); font-size: .85rem; }
.iwoh-search-form, .iwoh-directory-search-form { display: flex; gap: .6rem; max-width: 640px; }
.iwoh-search-form input, .iwoh-directory-search-form input { flex: 1; min-width: 0; padding: .7rem .8rem; border: 1px solid var(--iwoh-line); background: var(--iwoh-surface); font: inherit; }
.iwoh-search-form button, .iwoh-directory-search-form button { padding: .7rem 1rem; border: 1px solid var(--iwoh-teal); background: var(--iwoh-teal); color: #fff; font: inherit; font-weight: 800; }
.iwoh-footer { padding: 2.5rem 0; border-top: 1px solid var(--iwoh-line); color: var(--iwoh-muted); font-size: .9rem; }
.iwoh-footer strong { color: var(--iwoh-ink); }
.iwoh-site-legal-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; padding: 1.25rem 20px; border-top: 1px solid var(--iwoh-line); background: var(--iwoh-surface-muted); }
.iwoh-site-legal-nav a { font-size: .78rem; font-weight: 800; }

@media (max-width: 820px) {
  .iwoh-site-header { align-items: flex-start; flex-direction: column; padding: 1rem 0; }
  .iwoh-site-header nav { justify-content: flex-start; }
  .iwoh-header-tools { width: 100%; }
  .iwoh-header-search { flex: 1; }
  .iwoh-hero, [class$="-hero"] { grid-template-columns: 1fr; }
  .iwoh-island-blocks, .iwoh-island-comparison-table, .iwoh-island-table, .iwoh-guide-table { grid-template-columns: 1fr; }
  .iwoh-confirmed-vendor-record { grid-template-columns: 1fr; }
  .iwoh-approved-vendor-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .iwoh-home, [class$="-page"], .iwoh-policy-content, .iwoh-search-page, .iwoh-not-found-page { width: min(calc(100% - 28px), var(--iwoh-max)); }
  .iwoh-home > section, [class$="-page"] > section { padding-inline: 14px; }
  .iwoh-hero, [class$="-hero"] { padding-inline: 14px !important; }
  .iwoh-header-tools { flex-wrap: wrap; }
  .iwoh-header-search { width: 100%; flex-basis: 100%; }
  .iwoh-search-form, .iwoh-directory-search-form { flex-direction: column; }
  .iwoh-button, .iwoh-core-button { width: 100%; }
  .iwoh-confirmed-vendor-record dl > div { grid-template-columns: 1fr; gap: .25rem; }
  .iwoh-approved-vendor-card dl > div { grid-template-columns: 1fr; gap: .25rem; }
}
