/*
 * HOME TO SEARCH — Advertise With Us page styles.
 * Loaded only on that page (see hts_assets in functions.php) and versioned by
 * file modification time, so a stale cached style.css can never leave this
 * page unstyled. Tokens are re-declared on .page-advertise for the same reason.
 */
.page-advertise {
	--green: #244B3C; --green-deep: #1A382C; --paper: #FAF8F3; --sage: #DCE6DC; --sage-soft: #EEF2EC;
	--ink: #252A27; --muted: #6B726D; --muted-on-sage: #566059; --terra: #C77B55; --terra-text: #9A4F2C;
	--terra-light: #EBB394; --white: #FFFFFF; --line: #E2DDD0; --line-strong: #CFC9B9;
	--serif: "Newsreader", Georgia, "Times New Roman", serif;
	--sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--shadow: 0 14px 34px rgba(36, 75, 60, .12);
}

/* ==========================================================================
   12. Advertise With Us — scoped components
   Spacing scale: 8 / 16 / 24 / 32 / 48 / 64. Containers use min-width: 0 so
   long words and wide children can never push a grid track past its column.
   ========================================================================== */
.page-advertise { --gap: clamp(20px, 2.4vw, 32px); padding-bottom: clamp(48px, 6vw, 88px); }
.page-advertise :where(h2, h3, p, li, a, dt, dd) { overflow-wrap: anywhere; }
.page-advertise .btn { text-align: center; }
.split__body .check-list + p { margin-top: 18px; }

.adv-block { padding: clamp(32px, 4vw, 56px) 0; border-top: 1px solid var(--line-strong); }
.adv-block .section__title, .faq-wrap .section__title { margin-bottom: .35em; }
.adv-block .section__intro { margin-bottom: clamp(20px, 3vw, 32px); max-width: 44rem; }
.adv-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.adv-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 24px; background: var(--white); border: 1px solid var(--line-strong); border-top: 3px solid var(--terra); border-radius: 12px; }
.adv-card p { margin: 0; font-size: .98rem; line-height: 1.55; }
.adv-card__title { font-size: 1.3rem; margin: 0; }
.adv-card__for { color: var(--muted); }
.adv-card__status { font-size: .85rem; font-weight: 600; color: var(--terra-text); margin-top: auto; padding-top: 6px; }
.adv-card .text-link { align-self: flex-start; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 3rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -.05em; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--green); color: var(--white); font: 600 .95rem/1 var(--sans); }
.faq-wrap { padding: clamp(32px, 4vw, 56px) 0 0; border-top: 1px solid var(--line-strong); }
.faq-wrap .faq__item:first-child { border-top: 1px solid var(--line-strong); }

/* Buttons used by the advertising components */
.btn--outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn--outline:hover { background: var(--green); color: var(--white); }
.btn--accent { background: var(--terra-light); color: var(--ink); border-color: var(--terra-light); }
.btn--accent:hover { background: #F3C6AB; border-color: #F3C6AB; color: var(--ink); }
.btn--outline-light { background: transparent; color: var(--white); border-color: var(--terra-light); }
.btn--outline-light:hover { background: var(--terra-light); color: var(--ink); }

/* --- Pricing section --------------------------------------------------- */
.pricing { padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--line-strong); }
.pricing__head { text-align: center; max-width: 46rem; margin: 0 auto clamp(28px, 4vw, 48px); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); color: var(--green); font-size: .88rem; font-weight: 600; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--terra); }
.pricing__title { font-size: clamp(2rem, 4vw, 3rem); margin: 18px 0 .4em; }
.pricing__intro { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* Rate card */
.rate-card { background: var(--white); border: 1px solid var(--line-strong); border-radius: 16px; overflow: hidden; margin-bottom: clamp(32px, 4vw, 56px); }
.rate-card__title { margin: 0; padding: 20px 28px; font-size: 1.4rem; border-bottom: 1px solid var(--line-strong); }
.rate-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 1rem; }
.rate-table .c-service { width: 38%; } .rate-table .c-model { width: 27%; } .rate-table .c-price { width: 35%; }
.rate-table th, .rate-table td { padding: 16px 28px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.4; }
.rate-table thead th { background: var(--sage-soft); color: var(--green); font-size: .88rem; font-weight: 700; letter-spacing: .02em; }
.rate-table tbody th { font-weight: 600; color: var(--ink); }
.rate-table tbody tr:last-child th, .rate-table tbody tr:last-child td { border-bottom: 0; }
.rate-table tbody tr:hover { background: var(--sage-soft); }
.rate-table__price { font-weight: 700; color: var(--green); }

/* Plans: three equal columns, shared internal rhythm, CTA pinned to the bottom */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; margin-bottom: clamp(32px, 4vw, 56px); }
.plan { display: flex; flex-direction: column; min-width: 0; padding: 32px 28px 28px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--white); color: var(--ink); text-align: center; }
.plan__titlerow { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; min-height: 2.2rem; }
.plan__name { font: 500 1.9rem/1.1 var(--serif); margin: 0; color: var(--green); }
.plan__titlerow + .plan__tagline { margin-top: 8px; }
.plan > .plan__name { min-height: 2.2rem; display: flex; align-items: center; justify-content: center; }
.plan__badge { padding: 4px 12px; border-radius: 999px; background: var(--terra-light); color: var(--ink); font-size: .78rem; font-weight: 700; line-height: 1.3; }
.plan__tagline { margin: 8px 0 0; color: var(--green); font-size: 1rem; font-weight: 500; }
.plan__price { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 24px 0; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.plan__from { font-size: .95rem; color: var(--muted); }
.plan__amount { font: 600 3.2rem/1.05 var(--serif); color: var(--green); letter-spacing: -.02em; }
.plan__features { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; text-align: left; flex: 1 1 auto; align-content: start; }
.plan__features li { position: relative; padding-left: 32px; font-size: 1rem; line-height: 1.45; }
.plan__features li::before { content: ""; position: absolute; left: 0; top: .05em; width: 20px; height: 20px; border: 1.5px solid currentColor; border-radius: 50%; opacity: .85; }
.plan__features li::after { content: ""; position: absolute; left: 6.5px; top: .42em; width: 7px; height: 4px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); opacity: .85; }
.plan__saving, .plan__note { margin: 0 0 20px; padding: 12px 14px; border-radius: 10px; font-size: .94rem; line-height: 1.45; text-align: left; }
.plan__cta { width: 100%; margin-top: auto; }

.plan--starter { background: #FBFAF6; }
.plan--growth { background: var(--green); border-color: var(--green); color: var(--paper); box-shadow: var(--shadow); }
.plan--growth .plan__name { color: var(--white); }
.plan--growth .plan__tagline { color: var(--terra-light); }
.plan--growth .plan__from { color: var(--sage); }
.plan--growth .plan__amount { color: var(--white); }
.plan--growth .plan__price { border-color: rgba(220, 230, 220, .25); }
.plan--growth .plan__saving { background: rgba(250, 248, 243, .1); color: var(--white); border: 1px solid rgba(220, 230, 220, .25); }
.plan--premium { background: var(--sage); border-color: #C4D3C4; }
.plan--premium .plan__price { border-color: rgba(36, 75, 60, .18); }
.plan--premium .plan__from { color: var(--muted-on-sage); }
.plan--premium .plan__note { background: rgba(255, 255, 255, .55); color: var(--ink); }
.plan--premium .plan__tagline { color: var(--green); }

/* Add-ons and notes: two balanced panels */
.pricing__extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-bottom: clamp(32px, 4vw, 48px); }
.extra { min-width: 0; padding: 28px; background: var(--sage-soft); border: 1px solid var(--line); border-radius: 16px; }
.extra__title { font-size: 1.3rem; margin: 0 0 14px; }
.extra__list { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; font-size: .98rem; line-height: 1.5; }

/* Help banner (from the pricing reference) */
.help-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; padding: clamp(24px, 3vw, 36px) clamp(24px, 4vw, 44px); background: var(--green); border-radius: 18px; color: var(--sage); }
.help-banner__title { color: var(--white); font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 6px; }
.help-banner p { margin: 0; max-width: 34rem; }
.help-banner .btn { flex: none; }

/* --- Inquiry form: dark card, soft light fields ----------------------- */
.inquiry { padding: clamp(24px, 3vw, 40px) 0 clamp(40px, 5vw, 72px); }
.inquiry-card { max-width: 920px; margin-inline: auto; padding: clamp(28px, 4.5vw, 56px); background: var(--green); border-radius: 22px; color: var(--paper); box-shadow: var(--shadow); }
.inquiry-card__title { color: var(--white); text-align: center; font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 0 0 .3em; }
.inquiry-card__intro { text-align: center; color: var(--sage); margin: 0 auto 28px; max-width: 34rem; font-size: 1.05rem; }
.inquiry-card .form-notice { margin-bottom: 24px; }
.ifm__legend { margin: 0 0 20px; font-size: .9rem; color: var(--sage); }
.req { color: var(--terra-light); font-weight: 700; }
.opt { font-weight: 400; color: var(--sage); opacity: .85; font-size: .85em; }
.ifm__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.ifm__field { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ifm__field--full { grid-column: 1 / -1; }
.ifm label { margin: 0; font-size: .95rem; font-weight: 600; color: var(--white); line-height: 1.3; }
.ifm input[type="text"], .ifm input[type="email"], .ifm input[type="url"], .ifm select, .ifm textarea {
	display: block; width: 100%; max-width: 100%; min-height: 52px; padding: 14px 18px; border: 2px solid transparent; border-radius: 14px;
	background: #F3F5F1; color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.4; box-sizing: border-box;
}
.ifm input::placeholder, .ifm textarea::placeholder { color: #6B726D; opacity: 1; }
.ifm textarea { min-height: 170px; resize: vertical; }
.ifm__field--full textarea[name="hts_notes"] { min-height: 100px; }
.ifm select { appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23244B3C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
.ifm input:focus, .ifm select:focus, .ifm textarea:focus { outline: none; border-color: var(--terra-light); box-shadow: 0 0 0 4px rgba(235, 179, 148, .35); background-color: var(--white); }
.ifm input:focus-visible, .ifm select:focus-visible, .ifm textarea:focus-visible, .ifm .btn:focus-visible { outline: 3px solid var(--terra-light); outline-offset: 3px; }
.ifm__submit { width: 100%; min-height: 56px; margin-top: 28px; font-size: 1.05rem; }
.ifm__privacy { margin: 16px 0 0; text-align: center; font-size: .9rem; color: var(--sage); }
.ifm__privacy a { color: var(--white); text-decoration-color: var(--terra-light); }

/* --- Referral ---------------------------------------------------------- */
.referral { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(40px, 5vw, 72px); padding: clamp(28px, 4vw, 56px); background: var(--sage-soft); border: 1px solid var(--line-strong); border-radius: 22px; }
.referral__title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin: 0 0 .5em; }
.referral__text p { color: var(--ink); font-size: 1.08rem; margin: 0 0 24px; max-width: 34rem; }
.referral__visual { display: grid; place-items: center; min-height: 200px; padding: 24px; background: var(--sage); border-radius: 16px; }
.referral__visual svg { width: 100%; max-width: 340px; height: auto; }
.rf-link { stroke: var(--green); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; fill: none; }
.rf-node { fill: var(--terra); stroke: var(--paper); stroke-width: 4; }
.rf-house path, .rf-house rect { fill: none; stroke: var(--green); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.rf-house--b path, .rf-house--b rect { stroke: var(--terra-text); }

/* --- Responsive: the layout reflows, content is never scaled down ----- */
@media (max-width: 1100px) {
	.plans { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
	.plan__features { flex: 0 1 auto; }
	.adv-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.pricing__extras { grid-template-columns: 1fr; }
	.referral { grid-template-columns: 1fr; }
	.help-banner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
	.rate-card__title { padding: 18px 20px; }
	.rate-table, .rate-table tbody, .rate-table tr, .rate-table th, .rate-table td { display: block; width: 100%; }
	.rate-table thead, .rate-table colgroup { display: none; }
	.rate-table tr { padding: 16px 20px; border-bottom: 1px solid var(--line); }
	.rate-table tbody tr:last-child { border-bottom: 0; }
	.rate-table th, .rate-table td { padding: 0; border: 0; }
	.rate-table tbody th { font-size: 1.05rem; margin-bottom: 6px; }
	.rate-table td { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; }
	.rate-table td::before { content: attr(data-label); color: var(--muted); font-weight: 400; flex: none; }
	.rate-table td.rate-table__price { text-align: right; }
}
@media (max-width: 700px) {
	.adv-cards, .ifm__grid { grid-template-columns: 1fr; }
	.plan { padding: 28px 22px 24px; }
	.plan__amount { font-size: 2.8rem; }
	.inquiry-card { border-radius: 18px; }
	.help-banner .btn { width: 100%; }
}
.referral__visual svg { max-width: 420px; }
.plan__cta, .ifm__submit, .help-banner .btn, .referral .btn { border-radius: 12px; }
.ifm__submit { border-radius: 14px; }
@media (max-width: 760px) { .rate-table td { text-align: right; } }
