/* Live Life In Maine: site styles. Brand: 03_graphics/Live_Life_in_Maine_Brand_Settings.pdf */
:root {
  --blue: #087DA8;
  --blue-dark: #06617f;
  --pine: #27865A;
  --red: #F04D37;
  --red-dark: #d63b26;
  --gold: #F4B942;
  --charcoal: #263238;
  --ink: #263238;
  --muted: #5b6970;
  --line: #dde5e9;
  --sky: #eef6f9;
  --sand: #fbf7ef;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(38, 50, 56, .10);
  --wrap: 1180px;
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Open Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; color: var(--charcoal); }
h1 { font-weight: 800; font-size: clamp(2rem, 5.2vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-weight: 700; font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.eyebrow { font-family: var(--head); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: .6em; display: block; }
.lead { font-size: 1.15rem; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--charcoal); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font-family: var(--head); font-weight: 700; font-size: 1rem; padding: .85em 1.4em; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s; line-height: 1.1; text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--blue); background: transparent; }
.btn-ghost-light { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.btn-ghost-light:hover { background: #fff; color: var(--charcoal); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* Top bar + header */
.topbar { background: var(--charcoal); color: #cfd8dc; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 54px; width: auto; }
.brand span { font-family: var(--head); font-weight: 800; color: var(--charcoal); font-size: 1.05rem; line-height: 1.05; }
.brand small { display: block; font-weight: 600; color: var(--muted); font-size: .72rem; letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-family: var(--head); font-weight: 600; font-size: .95rem; color: var(--charcoal); text-decoration: none; padding: 10px 11px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); background: var(--sky); }
.nav .btn { margin-left: 8px; padding: .7em 1.15em; color: #fff; }
.nav .btn:hover { background: var(--red-dark); color: #fff; }
.menu-btn { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--charcoal); }
.menu-btn svg { width: 28px; height: 28px; }

@media (max-width: 1040px) {
  .topbar { display: none; }
  .menu-btn { display: block; }
  .site-header .wrap { min-height: 64px; }
  .brand img { height: 44px; }
  .nav { position: fixed; inset: 64px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 120px; gap: 2px; overflow-y: auto; display: none; }
  .nav.open { display: flex; }
  .nav a { font-size: 1.15rem; padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .btn { margin: 18px 0 0; border-radius: 999px; border-bottom: 0; }
  body.nav-open { overflow: hidden; }
}

/* Mobile action bar */
.actionbar { display: none; }
@media (max-width: 760px) {
  .actionbar { display: grid; grid-template-columns: 1fr 1fr 1.3fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .actionbar a { display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--head); font-weight: 700; font-size: .92rem; text-decoration: none; border-radius: 10px; padding: 11px 6px; color: var(--charcoal); background: var(--sky); }
  .actionbar a.book { background: var(--red); color: #fff; }
  .actionbar svg { width: 18px; height: 18px; }
  body { padding-bottom: 72px; }
}

/* Hero */
.hero { position: relative; color: #fff; background: var(--charcoal); overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,32,38,.86) 0%, rgba(8,77,105,.62) 52%, rgba(8,125,168,.10) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(64px, 11vw, 140px); padding-bottom: clamp(64px, 10vw, 130px); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { color: #e6eef1; max-width: 46ch; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero .btn-row { margin-top: 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; font-size: .92rem; color: #e6eef1; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust b { color: #fff; }
.stars { color: var(--gold); letter-spacing: 1px; }

.page-hero { position: relative; color: #fff; background: var(--blue); overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,32,38,.85), rgba(8,77,105,.55)); }
.page-hero.plain::after { background: linear-gradient(120deg, var(--blue-dark), var(--blue)); }
.page-hero .wrap { position: relative; z-index: 1; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(44px, 7vw, 84px); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 20ch; }
.page-hero p { color: #e6eef1; max-width: 56ch; font-size: 1.12rem; }
.page-hero .eyebrow { color: var(--gold); }
.crumbs { font-size: .85rem; margin-bottom: 14px; color: #cfe3ea; }
.crumbs a { color: #fff; }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.tight { padding: clamp(40px, 6vw, 64px) 0; }
.bg-sky { background: var(--sky); }
.bg-sand { background: var(--sand); }
.bg-dark { background: var(--charcoal); color: #dfe7ea; }
.bg-dark h2, .bg-dark h3 { color: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.section-head p { margin: .5em 0 0; color: var(--muted); max-width: 60ch; }

.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
a.card { text-decoration: none; color: inherit; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: inherit; }
.card-img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { color: var(--muted); margin: 0; font-size: .97rem; }
.card-link { margin-top: auto; padding-top: 10px; font-family: var(--head); font-weight: 700; color: var(--blue); font-size: .95rem; }
.tag { display: inline-block; font-family: var(--head); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--sky); color: var(--blue-dark); align-self: flex-start; }
.tag.red { background: #fde6e2; color: #b8321f; }
.tag.green { background: #e2f2ea; color: #1d6b47; }
.tag.gold { background: #fdf1d6; color: #8a6100; }

.icon-card { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.icon-card .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; color: #fff; }
.icon-card .ic svg { width: 26px; height: 26px; }
.ic.blue { background: var(--blue); } .ic.pine { background: var(--pine); } .ic.red { background: var(--red); } .ic.gold { background: var(--gold); color: var(--charcoal); }
.icon-card h3 { margin-bottom: .35em; }
.icon-card p { color: var(--muted); font-size: .97rem; }

/* Video */
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .2s; }
.video button { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer; padding: 0; }
.video button:hover img { opacity: 1; }
.video .play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); background: var(--red); border-radius: 14px; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.video .play svg { width: 24px; height: 24px; fill: #fff; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vcard { display: flex; flex-direction: column; gap: 10px; }
.vcard h3 { font-size: 1.02rem; margin: 0; line-height: 1.3; }
.vcard .meta { font-size: .85rem; color: var(--muted); }
.vcard .badge { display: inline-block; background: var(--red); color: #fff; font-family: var(--head); font-weight: 700; font-size: .72rem; padding: 3px 8px; border-radius: 6px; margin-right: 6px; }

/* Heating feature */
.feature-split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .feature-split { grid-template-columns: 1fr; gap: 26px; } }
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--pine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat .k { font-size: .82rem; color: var(--muted); font-weight: 600; }
.stat .v { font-family: var(--head); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--charcoal); line-height: 1.1; margin: 4px 0; }
.stat .d { font-size: .85rem; font-weight: 600; }
.up { color: #1d6b47; } .down { color: #b8321f; } .flat { color: var(--muted); }
.county-label { font-family: var(--head); font-weight: 800; font-size: 1.1rem; margin: 26px 0 12px; display: flex; align-items: center; gap: 10px; }
.county-label::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--blue); }
.county-label.cumb::before { background: var(--pine); }
.source { font-size: .82rem; color: var(--muted); margin-top: 14px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
table.data th, table.data td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th:first-child, table.data td:first-child { text-align: left; white-space: normal; }
table.data thead th { font-family: var(--head); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--sky); }
table.data tbody tr:last-child td { border-bottom: 0; }

/* About split */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.split.rev { grid-template-columns: 1.15fr 1fr; }
@media (max-width: 900px) { .split, .split.rev { grid-template-columns: 1fr; gap: 28px; } }
.portrait { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: var(--sky); max-width: 460px; }
.portrait img { width: 100%; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 24px; }
.facts span { background: var(--sky); color: var(--blue-dark); font-weight: 600; font-size: .9rem; padding: 7px 13px; border-radius: 999px; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--blue-dark), var(--blue)); color: #fff; border-radius: 22px; padding: clamp(30px, 5vw, 56px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #e3f1f6; margin: 0; }
.cta-band .btn-row { justify-content: flex-end; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; } }
.cta-band.red { background: linear-gradient(120deg, #c93a26, var(--red)); }
.cta-band.dark { background: linear-gradient(120deg, #1b2428, var(--charcoal)); }

/* Guide box */
.guide { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; background: var(--sand); border: 1px solid #efe4cc; border-radius: 20px; padding: 26px 30px; }
.guide .book { width: 84px; height: 108px; border-radius: 6px 12px 12px 6px; background: linear-gradient(160deg, var(--blue), var(--pine)); color: #fff; font-family: var(--head); font-weight: 800; font-size: .68rem; line-height: 1.15; padding: 12px 10px; box-shadow: 6px 8px 0 rgba(38,50,56,.12); display: flex; align-items: flex-end; }
.guide h3 { margin: 0 0 4px; font-size: 1.3rem; }
.guide p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .guide { grid-template-columns: 1fr; } .guide .book { display: none; } }

/* Prose */
.prose h2 { margin-top: 1.6em; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose > :first-child { margin-top: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 18px 20px 18px 70px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--head); font-weight: 800; display: grid; place-items: center; }
.steps li h3 { margin: 0 0 4px; font-size: 1.08rem; }
.steps li p { margin: 0; color: var(--muted); font-size: .97rem; }

.with-aside { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.aside { position: sticky; top: 96px; display: grid; gap: 16px; }
.aside .box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.aside .box h3 { font-size: 1.05rem; }
.aside .box.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.aside .box.blue h3 { color: #fff; }
.aside .box.blue p { color: #e3f1f6; }
@media (max-width: 980px) { .with-aside { grid-template-columns: 1fr; } .aside { position: static; } }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 32px; }
.quick div { background: #fff; padding: 16px 18px; }
.quick b { display: block; font-family: var(--head); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.quick span { font-weight: 600; font-size: .97rem; }
@media (max-width: 760px) { .quick { grid-template-columns: 1fr 1fr; } }

/* Filters (videos) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chips a { text-decoration: none; font-family: var(--head); font-weight: 700; font-size: .9rem; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); color: var(--charcoal); background: #fff; }
.chips a:hover { border-color: var(--blue); color: var(--blue); }

/* Forms */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: block; font-family: var(--head); font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border: 1.5px solid #c9d5db; border-radius: 10px; background: #fff; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); outline: 3px solid rgba(8,125,168,.18); }
.form textarea { min-height: 130px; resize: vertical; }
.form .hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form .fine { font-size: .82rem; color: var(--muted); margin: 0; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.notice { padding: 14px 16px; border-radius: 10px; background: #fde6e2; color: #8f2a1a; font-weight: 600; margin-bottom: 14px; display: none; }
.notice.show { display: block; }

.contact-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--sky); color: var(--blue); display: grid; place-items: center; flex: none; }
.contact-list .ic svg { width: 20px; height: 20px; }
.contact-list b { display: block; font-family: var(--head); }
.contact-list a { font-weight: 600; text-decoration: none; }

/* Footer */
.site-footer { background: var(--charcoal); color: #b8c5cb; font-size: .93rem; padding: 64px 0 28px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-logo { width: 170px; margin-bottom: 14px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); }
.social a:hover { background: var(--blue); text-decoration: none; }
.social svg { width: 19px; height: 19px; fill: #fff; }
.legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 24px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; font-size: .82rem; color: #93a3aa; }
.legal svg { width: 46px; height: 46px; fill: #b8c5cb; }
.legal p { margin: 0 0 .6em; }

/* Misc */
.center { text-align: center; }
.mt0 { margin-top: 0; } .mt1 { margin-top: 16px; } .mt2 { margin-top: 32px; } .mb0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.pill-note { display: inline-flex; gap: 8px; align-items: center; background: #fdf1d6; color: #6e4e00; border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .88rem; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.bg-sky .facts span { background: #fff; }
