/*
Theme Name: Invest Guam with Chris — v2
Theme URI: https://investguamwithchris.com
Author: Christopher Su
Description: Theme for Invest Guam with Chris. Palette and structure are drawn from the island itself: the reef drop-off, first light, and the villages people actually search by.
Version: 2.0.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: invest-guam-v2
*/

/* ==========================================================================
   Fonts — self-hosted so the site owes nothing to a third party at load time
   ========================================================================== */

/* Archivo is a variable font with a width axis. One file covers both the
   monumental display setting (125% width) and the small utility labels. */
@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 400 700;
    font-stretch: 62% 125%;
    font-display: swap;
    src: url('assets/fonts/archivo-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 400 700;
    font-stretch: 62% 125%;
    font-display: swap;
    src: url('assets/fonts/archivo-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Newsreader';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url('assets/fonts/newsreader-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Newsreader';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url('assets/fonts/newsreader-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
    /* Palette, read off the water around the island: the reef flat is bright
       teal, then it drops away to near-black at the edge, and the sun comes up
       over it before anywhere else in the country. */
    --trench: #06222F;   /* past the drop-off — darkest ground */
    --deep:   #0B3B4E;   /* deep water — secondary dark */
    --reef:   #0F8A87;   /* the reef flat — primary brand and interactive */
    --shoal:  #9FDDD4;   /* shallow water over sand — highlights on dark */
    --dawn:   #F2A93B;   /* first light — the single accent, used sparingly */
    --salt:   #EEF2F1;   /* page ground, cool rather than cream */
    --stone:  #56666C;   /* latte-stone grey — secondary text and rules */
    --ink:    #0E2027;   /* body text on light */
    --white:  #ffffff;

    --line:        rgba(14, 32, 39, 0.12);
    --line-dark:   rgba(159, 221, 212, 0.18);

    --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --font-body:    'Newsreader', Georgia, 'Times New Roman', serif;
    --font-util:    'Archivo', 'Helvetica Neue', Arial, sans-serif;

    --wrap: 1180px;
    --gut: clamp(1.25rem, 4vw, 3rem);

    /* One spacing scale, so nothing is eyeballed. */
    --s1: 0.5rem;
    --s2: 1rem;
    --s3: 1.5rem;
    --s4: 2.5rem;
    --s5: 4rem;
    --s6: clamp(4rem, 9vw, 7.5rem);

    --radius: 3px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
    /* The original theme had no global reset, which let side padding push
       full-width elements past the viewport. Set it once, here. */
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--salt);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.72;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--reef);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--deep);
}

:focus-visible {
    outline: 3px solid var(--dawn);
    outline-offset: 3px;
    border-radius: 2px;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.02em;
    margin: 0 0 var(--s3);
    text-wrap: balance;
}

h1 {
    /* The display setting: wide and heavy, so headings read as something built
       rather than something written. Chris's own sentences stay in the serif. */
    font-stretch: 118%;
    font-size: clamp(2.1rem, 4.6vw, 3.7rem);
    text-transform: uppercase;
    letter-spacing: -0.015em;
}

h2 {
    font-stretch: 118%;
    font-size: clamp(1.75rem, 3.6vw, 2.85rem);
    text-transform: uppercase;
}

h3 {
    font-stretch: 105%;
    font-size: 1.2rem;
    letter-spacing: -0.005em;
}

p {
    margin: 0 0 var(--s3);
}

p:last-child {
    margin-bottom: 0;
}

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

.skip-link:focus {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 999;
    background: var(--dawn);
    color: var(--trench);
    padding: 0.75rem 1.25rem;
    font-family: var(--font-util);
    font-weight: 600;
    clip: auto;
    width: auto;
    height: auto;
}

/* Shared layout primitives ------------------------------------------------- */

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gut);
}

/* All vertical section rhythm comes from this one rule, so a later
   element-based selector cannot silently cancel it. */
.section {
    padding-block: var(--s6);
}

.section--tight {
    padding-block: var(--s5);
}

.section--dark {
    background: var(--trench);
    color: var(--salt);
}

.section--deep {
    background: var(--deep);
    color: var(--salt);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--deep h1,
.section--deep h2,
.section--deep h3 {
    color: var(--white);
}

.section--dark a,
.section--deep a {
    color: var(--shoal);
}

/* The eyebrow marks what kind of thing follows. It is a label, not an
   ornament, so it never carries information that isn't repeated below. */
.eyebrow {
    font-family: var(--font-util);
    font-size: 0.72rem;
    font-weight: 600;
    font-stretch: 100%;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--reef);
    margin: 0 0 var(--s2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.eyebrow::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.section--dark .eyebrow,
.section--deep .eyebrow {
    color: var(--dawn);
}

.section--dark .eyebrow::after,
.section--deep .eyebrow::after {
    background: var(--line-dark);
}

.lede {
    font-size: clamp(1.1rem, 1.9vw, 1.3rem);
    line-height: 1.62;
    color: var(--stone);
    max-width: 58ch;
}

.section--dark .lede,
.section--deep .lede {
    color: var(--shoal);
}

/* Buttons ------------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-util);
    font-size: 0.86rem;
    font-weight: 600;
    font-stretch: 100%;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1.05rem 1.9rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
                border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn__arrow {
    transition: transform 0.25s var(--ease);
}

.btn:hover .btn__arrow {
    transform: translateX(4px);
}

.btn--primary {
    background: var(--dawn);
    color: var(--trench);
}

.btn--primary:hover {
    background: var(--white);
    color: var(--trench);
}

.btn--ghost {
    background: transparent;
    color: var(--salt);
    border-color: var(--line-dark);
}

.btn--ghost:hover {
    background: rgba(159, 221, 212, 0.1);
    color: var(--white);
    border-color: var(--shoal);
}

.btn--solid {
    background: var(--reef);
    color: var(--white);
}

.btn--solid:hover {
    background: var(--deep);
    color: var(--white);
}

/* ==========================================================================
   Site header
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--trench);
    border-bottom: 1px solid var(--line-dark);
}

/* The header is sticky, so anything jumped to from the menu has to clear it or
   it lands underneath. "About Me" in the menu points at #about-me. */
[id="about-me"],
.site-main [id] {
    scroll-margin-top: 5.5rem;
}

.site-header__inner {
    max-width: var(--wrap);
    margin-inline: auto;
    padding: 0.9rem var(--gut);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s3);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    /* The nav beside it is wide; without this the name gets squeezed onto two
       lines and the whole header grows to match. */
    flex-shrink: 0;
}

.brand__name,
.brand__role {
    white-space: nowrap;
    display: block;
}

.brand__photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    border: 1px solid var(--line-dark);
    flex-shrink: 0;
}

.brand__name {
    font-family: var(--font-display);
    font-stretch: 112%;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--white);
    margin: 0;
}

.brand__role {
    font-family: var(--font-util);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--shoal);
    margin: 0.18rem 0 0;
}

/* Navigation --------------------------------------------------------------- */

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.main-navigation a {
    display: block;
    font-family: var(--font-util);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--salt);
    /* Menu labels here are long phrases ("Guam Economy Development News"), and
       a phrase broken across two lines reads as two menu items. Keep each on
       one line and hand over to the mobile panel early instead. */
    white-space: nowrap;
    padding: 0.6rem 0.7rem;
    border-radius: var(--radius);
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--trench);
    background: var(--shoal);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    width: 44px;
    height: 44px;
    padding: 0;
    cursor: pointer;
    position: relative;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 2px;
    background: var(--salt);
    transform: translateX(-50%);
    transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.menu-toggle__bars {
    top: 50%;
    margin-top: -1px;
}

.menu-toggle__bars::before {
    content: "";
    top: -6px;
}

.menu-toggle__bars::after {
    content: "";
    top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
    transform: translateX(-50%) translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after {
    transform: translateX(-50%) translateY(-6px) rotate(-45deg);
}

/* ==========================================================================
   Hero — the drop-off
   ========================================================================== */

.hero {
    position: relative;
    background: var(--trench);
    color: var(--salt);
    padding-block: clamp(4rem, 11vw, 8.5rem) clamp(4.5rem, 10vw, 7.5rem);
    overflow: hidden;
    isolation: isolate;
}

/* The photograph the site has always opened with — the Westin tower, the palms
   and the rainbow — carrying the deep-water gradient over it rather than being
   replaced by it. The gradient is what keeps white text legible against a sky
   that is bright on one side and dark on the other, so it stays weighted to the
   left where the words are. --hero-image is set in wp_head by the theme. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-color: var(--trench);
    background-image:
        radial-gradient(120% 85% at 78% 118%, rgba(15, 138, 135, 0.5) 0%, rgba(15, 138, 135, 0) 62%),
        radial-gradient(70% 55% at 88% 104%, rgba(242, 169, 59, 0.28) 0%, rgba(242, 169, 59, 0) 60%),
        linear-gradient(180deg, rgba(6, 34, 47, 0) 55%, rgba(6, 34, 47, 0.72) 100%),
        linear-gradient(100deg, rgba(6, 34, 47, 0.94) 0%, rgba(6, 34, 47, 0.82) 38%, rgba(11, 59, 78, 0.58) 68%, rgba(11, 59, 78, 0.42) 100%),
        var(--hero-image, none);
    background-size: auto, auto, auto, auto, cover;
    background-position: center, center, center, center, center 38%;
    background-repeat: no-repeat;
}

/* The image is decoration behind text, so it goes when the connection or the
   viewport says it should. */
@media (max-width: 700px) {
    .hero::before {
        background-image:
            radial-gradient(120% 85% at 78% 118%, rgba(15, 138, 135, 0.5) 0%, rgba(15, 138, 135, 0) 62%),
            linear-gradient(178deg, rgba(6, 34, 47, 0.92) 20%, rgba(11, 59, 78, 0.78) 100%),
            var(--hero-image-small, var(--hero-image, none));
        background-size: auto, auto, cover;
    }
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    z-index: -1;
    background: linear-gradient(90deg, rgba(242, 169, 59, 0) 0%, var(--dawn) 34%, var(--shoal) 100%);
    transform-origin: left center;
}

.hero__inner {
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gut);
}

.hero__coords {
    font-family: var(--font-util);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--shoal);
    margin: 0 0 var(--s3);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 10px rgba(6, 34, 47, 0.6);
}

.hero h1 {
    max-width: 19ch;
    margin-bottom: var(--s3);
    color: var(--white);
    /* Against a photograph rather than a flat ground, the headline needs its
       own edge — soft and wide, so it reads as depth and not as a drop shadow. */
    text-shadow: 0 2px 24px rgba(6, 34, 47, 0.55);
}

/* Chris's slogan, in his words. The first sentence is one line: it is a single
   thought and breaking it mid-phrase reads as two. No max-width here — that
   was what forced the wrap — and the size steps down with the viewport so the
   line holds without ever being set in nowrap, which would overflow instead. */
.hero__slogan {
    font-family: var(--font-body);
    line-height: 1.45;
    color: var(--shoal);
    margin: 0 0 var(--s4);
    text-shadow: 0 1px 12px rgba(6, 34, 47, 0.45);
}

.hero__slogan-line {
    display: block;
    font-size: clamp(0.98rem, 2.05vw, 1.5rem);
}

.hero__slogan strong {
    display: block;
    margin-top: 0.35em;
    font-size: clamp(1.1rem, 2.15vw, 1.55rem);
    font-weight: 600;
    color: var(--dawn);
}

/* On a phone the clamp above is still too big to hold the sentence on one
   line, so below 620px the size is tied directly to the width available
   between the gutters — the sentence is a fixed length, so the size that fits
   it is arithmetic rather than a guess. The floor stops it shrinking past
   readable; under about 360px it wraps instead, which is the right trade. */
@media (max-width: 620px) {
    .hero__slogan-line {
        font-size: max(0.7rem, min(1.02rem, calc(4vw - 1.9px)));
    }
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s2) var(--s3);
    margin-bottom: var(--s4);
}

.hero__aside {
    font-size: 0.95rem;
    color: var(--shoal);
    margin: 0;
    text-shadow: 0 1px 10px rgba(6, 34, 47, 0.6);
}

.hero__aside a {
    color: var(--shoal);
}

/* The one live detail on the page. Guam's own motto is a fact about the clock,
   and the time difference is the first thing an off-island buyer asks about. */
/* The ghost button sits over the brightest part of the photograph, where a
   hairline border on transparent stops being a button. It keeps its outline
   treatment but gets enough ground behind it to read. */
.hero .btn--ghost {
    background: rgba(6, 34, 47, 0.42);
    border-color: rgba(238, 242, 241, 0.45);
}

.hero .btn--ghost:hover {
    background: rgba(6, 34, 47, 0.62);
    border-color: var(--shoal);
}

.hero__clock {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem 0.9rem;
    margin-top: var(--s5);
    padding-top: var(--s3);
    border-top: 1px solid var(--line-dark);
    font-family: var(--font-util);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    /* Was --stone, which disappeared against the lit part of the photograph. */
    color: rgba(238, 242, 241, 0.75);
    border-top-color: rgba(238, 242, 241, 0.22);
    text-shadow: 0 1px 10px rgba(6, 34, 47, 0.6);
}

.hero__clock-time {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--dawn);
    font-variant-numeric: tabular-nums;
}

.hero__clock-label {
    color: var(--shoal);
}

/* ==========================================================================
   The island guide
   ========================================================================== */

.villages__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--s3);
    margin-bottom: var(--s5);
}

.villages__head .lede {
    margin: 0;
}

/* ==========================================================================
   The three areas — north, central, south
   --------------------------------------------------------------------------
   A guide, not a filter. The front page used to carry all nineteen village
   names, then three cards carrying listing counts; both told the visitor how
   little was in stock before showing him anything. These three answer the
   question a buyer is actually asking — what is it like there, and is it for
   me? — and send him to Chris rather than into a search result.
   ========================================================================== */

.regions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: var(--s3);
}

.region {
    display: flex;
    flex-direction: column;
    padding: var(--s3) var(--s3) var(--s4);
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--reef);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.region:hover,
.region:focus-visible {
    border-top-color: var(--dawn);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px -24px rgba(6, 34, 47, 0.45);
}

.region__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s2);
    margin-bottom: var(--s2);
}

.region__name {
    margin: 0;
    font-family: var(--font-display);
    font-stretch: 118%;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    line-height: 1;
    letter-spacing: -0.015em;
    text-transform: uppercase;
    color: var(--ink);
}

.region__villages {
    margin: 0 0 var(--s2);
    padding-bottom: var(--s2);
    border-bottom: 1px solid var(--line);
    font-family: var(--font-util);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1.7;
    text-transform: uppercase;
    color: var(--stone);
}

.region__blurb {
    margin: 0 0 var(--s2);
    font-size: 1rem;
    line-height: 1.6;
}

.region__who {
    margin: 0 0 var(--s3);
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--stone);
}

.region__more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-util);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--reef);
}

.region:hover .region__more span,
.region:focus-visible .region__more span {
    transform: translateX(4px);
}

.region__more span {
    transition: transform 0.22s var(--ease);
}

/* ==========================================================================
   Listings
   ========================================================================== */

.listings-block + .listings-block {
    margin-top: var(--s6);
}

.listings-block__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s2);
    margin-bottom: var(--s4);
}

.listings-block__head h2 {
    margin: 0;
}

.listings-block__count {
    font-family: var(--font-util);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--stone);
    font-variant-numeric: tabular-nums;
}

.igwc-listings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: var(--s3);
}

.igwc-listing {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
                border-color 0.3s var(--ease);
}

.igwc-listing:hover {
    transform: translateY(-4px);
    border-color: rgba(15, 138, 135, 0.4);
    box-shadow: 0 18px 40px -24px rgba(6, 34, 47, 0.55);
}

.igwc-listing__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--deep);
    overflow: hidden;
}

.igwc-listing__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.igwc-listing:hover .igwc-listing__media img {
    transform: scale(1.04);
}

.igwc-listing__badge {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    font-family: var(--font-util);
    font-size: 0.63rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.4rem 0.7rem;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--trench);
}

.igwc-listing__badge--for-sale {
    background: var(--dawn);
    color: var(--trench);
}

.igwc-listing__badge--for-rent {
    background: var(--shoal);
    color: var(--trench);
}

.igwc-listing__badge--pending {
    background: var(--stone);
    color: var(--white);
}

.igwc-listing__badge--sold {
    background: var(--trench);
    color: var(--salt);
}

.igwc-listing__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: var(--s3);
}

.igwc-listing__price {
    font-family: var(--font-display);
    font-stretch: 108%;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    margin: 0 0 0.3rem;
}

.igwc-listing__type {
    font-family: var(--font-util);
    font-stretch: 100%;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--reef);
    margin: 0 0 0.6rem;
}

/* Chris's line on the property, and the reason the card is on the page at all.
   It is set at reading size in the body serif so it carries as a sentence
   somebody wrote, with the numbers below it demoted to what they are:
   confirmation, not the argument. */
.igwc-listing__highlight {
    font-size: clamp(1.02rem, 1.3vw, 1.12rem);
    line-height: 1.62;
    color: var(--ink);
    margin: 0 0 var(--s3);
}

.igwc-listing__specs {
    font-family: var(--font-util);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--stone);
    font-variant-numeric: tabular-nums;
    margin: 0 0 0.4rem;
    padding-top: var(--s2);
    border-top: 1px solid var(--line);
}

.igwc-listing__address {
    font-size: 0.9rem;
    color: var(--stone);
    margin: 0 0 var(--s3);
}

.igwc-listing__link {
    margin-top: auto;
    font-family: var(--font-util);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--reef);
}

.igwc-listing__link:hover {
    color: var(--deep);
    text-decoration: underline;
}

.igwc-listing.is-sold {
    opacity: 0.55;
}

/* An empty result is a place to act, not an apology. */
.igwc-listings-empty {
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    padding: var(--s4);
    text-align: center;
    color: var(--stone);
    background: var(--white);
}

.igwc-listings-empty strong {
    display: block;
    font-family: var(--font-display);
    font-stretch: 112%;
    font-size: 1.25rem;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

/* The line under the short list. A hand-picked page has to say out loud that
   the list is short on purpose and that more exists off it, or the visitor
   draws the other conclusion by himself. ---------------------------------- */

.listings-ask {
    margin: var(--s5) 0 0;
    padding-top: var(--s3);
    border-top: 1px solid var(--line);
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--stone);
}

.listings-ask a {
    color: var(--deep);
    text-decoration-color: var(--dawn);
    text-underline-offset: 0.18em;
}

.listings-ask a:hover {
    color: var(--reef);
}

/* The same idea at the foot of the Highlights page, where the village index
   used to be. ------------------------------------------------------------- */

.ask-chris {
    margin-top: var(--s6);
    padding: var(--s4);
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--dawn);
}

.ask-chris__title {
    margin: 0 0 var(--s2);
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.ask-chris__text {
    max-width: 58ch;
    margin: 0 0 var(--s3);
    line-height: 1.65;
    color: var(--stone);
}

.ask-chris__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s2) var(--s3);
}

/* The ghost button is drawn for the dark sections, so it is light text on
   nothing. On this white card that is invisible; it needs ink instead. */
.ask-chris .btn--ghost {
    color: var(--ink);
    border-color: var(--line);
}

.ask-chris .btn--ghost:hover {
    background: rgba(15, 138, 135, 0.08);
    color: var(--deep);
    border-color: var(--reef);
}

/* Filter chip shown when a village is selected --------------------------- */

.listing-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s2);
    margin-bottom: var(--s4);
    padding: var(--s2) var(--s3);
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 3px solid var(--dawn);
    border-radius: var(--radius);
}

.listing-filter__label {
    font-family: var(--font-util);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--stone);
}

.listing-filter__value {
    font-family: var(--font-display);
    font-stretch: 112%;
    font-weight: 700;
    font-size: 1.15rem;
    text-transform: uppercase;
    color: var(--ink);
}

.listing-filter__clear {
    margin-left: auto;
    font-family: var(--font-util);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--reef);
    text-decoration: none;
}

/* ==========================================================================
   About Chris
   ========================================================================== */

.about__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.about__portrait {
    position: relative;
}

.about__portrait img {
    width: 100%;
    border-radius: var(--radius);
    filter: saturate(0.95);
}

/* One rule of first light down the edge of the portrait — the same line that
   closes the hero, used once more and then never again. */
.about__portrait::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 8%;
    bottom: 8%;
    width: 2px;
    background: linear-gradient(180deg, var(--dawn), rgba(242, 169, 59, 0));
}

.about__text p {
    font-size: clamp(1.05rem, 1.7vw, 1.18rem);
    line-height: 1.72;
    color: var(--salt);
}

/* The section title carries the rule, the same device the eyebrows use
   elsewhere, at heading size because this section has no eyebrow above it. */
.about__title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    margin-bottom: var(--s3);
}

.about__title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line-dark);
}

.about__greeting {
    color: var(--dawn);
    font-weight: 500;
}

.about__signoff {
    margin-top: var(--s4);
    display: flex;
    flex-wrap: wrap;
    gap: var(--s2) var(--s3);
    align-items: center;
}

.about__credential {
    font-family: var(--font-util);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--shoal);
}

/* ==========================================================================
   Two paths (Economy & Dev / Why Guam)
   ========================================================================== */

.paths {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--s3);
}

.path {
    display: flex;
    flex-direction: column;
    padding: var(--s4);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
                box-shadow 0.3s var(--ease);
}

.path:hover {
    border-color: rgba(15, 138, 135, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px -26px rgba(6, 34, 47, 0.5);
    color: inherit;
}

.path__index {
    font-family: var(--font-util);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--reef);
    margin: 0 0 var(--s3);
}

.path h3 {
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    font-stretch: 115%;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.path p {
    color: var(--stone);
    margin: 0 0 var(--s3);
}

.path__more {
    margin-top: auto;
    font-family: var(--font-util);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--reef);
}

/* ==========================================================================
   Closing call to action
   ========================================================================== */

.closer {
    text-align: center;
}

.closer h2 {
    max-width: 20ch;
    margin-inline: auto;
    color: var(--white);
}

.closer .lede {
    margin-inline: auto;
    margin-bottom: var(--s4);
}

.closer__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--s2) var(--s3);
}

/* ==========================================================================
   Page template
   ========================================================================== */

.page-hero {
    background: var(--trench);
    color: var(--salt);
    padding-block: clamp(3rem, 7vw, 5rem);
    border-bottom: 2px solid var(--dawn);
}

.page-hero h1 {
    color: var(--white);
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.6rem);
}

/* A standfirst belongs with the title it describes, not adrift at the top of
   the body copy. Set in the serif, so it reads as a sentence rather than as a
   second label under the heading. */
.page-hero__tagline {
    max-width: 60ch;
    margin: var(--s2) 0 0;
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.55;
    color: var(--shoal);
}

.page-hero__tagline a {
    color: var(--shoal);
}

.entry-content {
    max-width: 74ch;
}

.entry-content.entry-content--wide {
    max-width: none;
}

/* Inside an article the display face is a subhead, not a billboard. Uppercase
   at section-title size fights the reading rhythm, so it is dropped here. */
.entry-content h2 {
    font-stretch: 106%;
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    text-transform: none;
    letter-spacing: -0.01em;
    margin-top: var(--s5);
    margin-bottom: var(--s2);
}

.entry-content h2:first-child {
    margin-top: 0;
}

.entry-content h3 {
    font-family: var(--font-display);
    font-stretch: 104%;
    font-size: 1.25rem;
    text-transform: none;
    letter-spacing: -0.005em;
    margin-top: var(--s4);
    margin-bottom: var(--s2);
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.3rem;
    margin: 0 0 var(--s3);
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content blockquote {
    margin: var(--s4) 0;
    padding-left: var(--s3);
    border-left: 3px solid var(--dawn);
    font-size: 1.15rem;
    color: var(--stone);
}

.entry-content img {
    border-radius: var(--radius);
    margin-block: var(--s3);
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--s3);
}

.entry-content th,
.entry-content td {
    text-align: left;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--line);
}

.entry-content th {
    font-family: var(--font-util);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--stone);
}

/* Posts list (index.php) --------------------------------------------------- */

.post-list {
    display: grid;
    gap: var(--s4);
}

.post-card {
    padding-bottom: var(--s4);
    border-bottom: 1px solid var(--line);
}

.post-card:last-child {
    border-bottom: 0;
}

.post-card__meta {
    font-family: var(--font-util);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--stone);
    margin: 0 0 0.6rem;
}

.post-card h2 {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    margin-bottom: 0.7rem;
}

.post-card h2 a {
    color: var(--ink);
    text-decoration: none;
}

.post-card h2 a:hover {
    color: var(--reef);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--trench);
    color: var(--shoal);
    padding-block: var(--s5) var(--s4);
    font-size: 0.95rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--s4);
    padding-bottom: var(--s4);
    border-bottom: 1px solid var(--line-dark);
}

.footer__heading {
    font-family: var(--font-util);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--stone);
    margin: 0 0 var(--s2);
}

.footer__name {
    font-family: var(--font-display);
    font-stretch: 115%;
    font-weight: 700;
    font-size: 1.15rem;
    text-transform: uppercase;
    color: var(--white);
    margin: 0 0 0.35rem;
    letter-spacing: -0.01em;
}

.site-footer a {
    color: var(--shoal);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--dawn);
    text-decoration: underline;
}

/* The supplied logo is artwork on an opaque white background, so it cannot be
   knocked out with a filter — that just turns the whole rectangle white. Give
   it a light chip to sit on, the way a print logo is placed on dark stock. */
.footer__logo {
    max-height: 62px;
    width: auto;
    margin-bottom: var(--s3);
    background: var(--white);
    border-radius: var(--radius);
    padding: 0.6rem 0.8rem;
}

.footer__legal {
    padding-top: var(--s3);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--s2);
    font-size: 0.85rem;
    /* --stone is 2.7:1 on --trench, below WCAG AA; --shoal is 10.8:1. */
    color: var(--shoal);
}

.footer__fair-housing {
    margin-top: var(--s3);
    font-size: 0.8rem;
    line-height: 1.6;
    /* A legal notice, so it keeps the footer's readable colour rather than the
       dimmer grey of the disclaimer below it. */
    color: var(--shoal);
    max-width: 90ch;
}

.footer__policies {
    margin-top: var(--s2);
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.4rem;
    font-size: 0.8rem;
}

.footer__disclaimer {
    margin-top: var(--s3);
    font-size: 0.76rem;
    line-height: 1.6;
    color: var(--shoal);
    max-width: 90ch;
}

/* ==========================================================================
   Chat widget — same markup and script as the original theme, restyled
   ========================================================================== */

.chat-widget {
    position: fixed;
    right: clamp(1rem, 3vw, 1.75rem);
    bottom: clamp(1rem, 3vw, 1.75rem);
    z-index: 80;
    font-family: var(--font-body);
}

.chat-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--dawn);
    color: var(--trench);
    border: 0;
    border-radius: 999px;
    padding: 0.95rem 1.4rem;
    font-family: var(--font-util);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 12px 32px -12px rgba(6, 34, 47, 0.7);
    transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}

.chat-toggle:hover {
    transform: translateY(-2px);
    background: var(--white);
}

.chat-window {
    display: none;
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.85rem);
    width: min(370px, calc(100vw - 2rem));
    max-height: min(560px, calc(100vh - 6rem));
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 30px 70px -30px rgba(6, 34, 47, 0.65);
}

.chat-window.active {
    display: flex;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s2);
    background: var(--trench);
    color: var(--white);
    padding: 0.9rem 1.1rem;
    font-family: var(--font-util);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.chat-header .close-btn {
    background: transparent;
    border: 0;
    color: var(--shoal);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.2rem;
}

.chat-header .close-btn:hover {
    color: var(--white);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    background: var(--salt);
}

.chat-messages .message {
    max-width: 85%;
    padding: 0.7rem 0.95rem;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.55;
}

.chat-messages .message.bot {
    align-self: flex-start;
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--ink);
}

/* Legal small print inside a bot message: the TCPA notice at the phone question
   and the privacy note in the greeting. Readable, but clearly secondary. */
.chat-messages .chat-consent {
    display: block;
    margin-top: 0.6rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--line);
    font-size: 0.76rem;
    line-height: 1.5;
    color: var(--stone);
}

.chat-messages .message.bot a {
    color: var(--reef);
    text-decoration: underline;
}

.chat-messages .message.user {
    align-self: flex-end;
    background: var(--reef);
    color: var(--white);
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.chat-options .option-btn {
    background: var(--white);
    border: 1px solid var(--reef);
    color: var(--reef);
    border-radius: 999px;
    padding: 0.5rem 0.85rem;
    font-family: var(--font-util);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.chat-options .option-btn:hover {
    background: var(--reef);
    color: var(--white);
}

.chat-input-area {
    display: flex;
    gap: 0.5rem;
    padding: 0.8rem;
    border-top: 1px solid var(--line);
    background: var(--white);
}

.chat-input-area input {
    flex: 1;
    min-width: 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
}

.chat-input-area button {
    background: var(--reef);
    color: var(--white);
    border: 0;
    border-radius: var(--radius);
    padding: 0.65rem 1.1rem;
    font-family: var(--font-util);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}

.chat-input-area button:hover {
    background: var(--deep);
}

/* ==========================================================================
   Motion — one orchestrated entrance, then quiet
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.hero__coords,
.hero h1,
.hero__slogan,
.hero__actions,
.hero__aside,
.hero__clock {
    animation: rise 0.85s var(--ease) both;
}

.hero h1        { animation-delay: 0.06s; }
.hero__slogan   { animation-delay: 0.14s; }
.hero__actions  { animation-delay: 0.22s; }
.hero__aside    { animation-delay: 0.28s; }
.hero__clock    { animation-delay: 0.36s; }

.hero::after {
    animation: draw 1.1s var(--ease) 0.3s both;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

@keyframes draw {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: var(--s4);
    }

    .about__portrait {
        max-width: 340px;
    }

    .about__portrait::before {
        display: none;
    }
}

/* The full menu needs about 1,165px of row and the row starts at the centred
   wrap edge, so below ~1,280px "Contact" runs off the right of the screen.
   Keep in step with the min-width in assets/js/site.js. */
@media (max-width: 1280px) {
    .menu-toggle {
        display: block;
    }

    /* The panel is positioned against the sticky header, so it has to be
       measured from the header rather than the viewport. */
    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--trench);
        border-bottom: 1px solid var(--line-dark);
        padding: var(--s2) var(--gut) var(--s3);
    }

    .main-navigation.is-open ul {
        display: flex;
    }

    .main-navigation a {
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--line-dark);
        border-radius: 0;
        font-size: 0.82rem;
    }

    .main-navigation a:hover,
    .main-navigation .current-menu-item > a {
        background: transparent;
        color: var(--dawn);
    }

    .site-header__inner {
        position: relative;
    }

    .villages__head {
        display: block;
    }

    .villages__head .lede {
        margin-top: var(--s2);
    }
}

@media (max-width: 560px) {
    body {
        font-size: 1rem;
    }

    .hero h1 {
        max-width: none;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .brand__role {
        display: none;
    }

    .chat-toggle .chat-text {
        display: none;
    }

    .chat-toggle {
        padding: 1rem;
        font-size: 1.2rem;
    }

    .listing-filter__clear {
        margin-left: 0;
    }
}
