/* ═══════════════════════════════════════════════════════════════════════
   Aloha homepage — templates/index_aloha.html
   Same tokens as the About page (av2): paper ground, ink text, navy and
   blue, coral for the one primary action, Fraunces display over Inter.
   One ground colour, hairline rules between sections, panels only where
   something is a form or a result. Scoped under .al.
   ═══════════════════════════════════════════════════════════════════════ */

.al {
    --al-paper: #faf7f2;
    --al-ink: #1c2733;
    --al-text: #3d4654;
    --al-muted: #6b7482;
    --al-navy: #003264;
    --al-navy-2: #00264d;
    --al-blue: #0066cc;
    --al-accent: #FF385C;
    --al-accent-2: #e02c4f;
    --al-line: #e7e0d5;
    --al-white: #ffffff;
    --al-serif: 'Fraunces', Georgia, serif;
    --al-sans: 'Inter', system-ui, -apple-system, sans-serif;
    font-family: var(--al-sans);
    color: var(--al-ink);
    background: var(--al-paper);
    line-height: 1.6;
}
.al *, .al *::before, .al *::after { box-sizing: border-box; }
.al h1, .al h2, .al h3, .al h4 {
    font-family: var(--al-serif);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: var(--al-ink);
    margin: 0;
}
.al p { margin: 0; }
.al a { color: var(--al-blue); }
.al a:hover { color: var(--al-navy); }
.al [hidden] { display: none !important; }

/* ---- Rhythm ---- */
.al .al-section { padding: 4.5rem 0; border-top: 1px solid var(--al-line); }
.al .al-section-h { margin-bottom: 2rem; max-width: 42em; }
.al .al-section-h h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 0.6rem; }
.al .al-section-h p { font-size: 1.05rem; line-height: 1.7; color: var(--al-text); }

/* ---- Buttons: the site's rounded rectangles ---- */
.al .al-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.97rem;
    line-height: 1.25;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
}
.al .al-btn:hover { text-decoration: none; }
.al .al-btn:focus-visible { outline: 3px solid rgba(0,102,204,0.35); outline-offset: 2px; }
.al .al-btn-accent { background: var(--al-accent); color: #fff; }
.al .al-btn-accent:hover { background: var(--al-accent-2); color: #fff; }
.al .al-btn-navy { background: var(--al-navy); color: #fff; }
.al .al-btn-navy:hover { background: var(--al-navy-2); color: #fff; }
.al .al-btn-line { background: transparent; color: var(--al-ink); border-color: #b9c2cc; }
.al .al-btn-line:hover { border-color: var(--al-ink); color: var(--al-ink); }
.al .al-btn-block { width: 100%; }
.al .al-link { font-weight: 600; text-decoration: none; }
.al .al-link:hover { text-decoration: underline; }

/* ---- Form fields ---- */
.al .al-field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.al .al-field label { font-size: 0.82rem; font-weight: 600; color: var(--al-text); }
.al .al-field select,
.al .al-field input {
    width: 100%;
    min-height: 44px;
    padding: 0.55rem 0.8rem;
    border: 1px solid #c4ccd5;
    border-radius: 6px;
    background: var(--al-white);
    color: var(--al-ink);
    font: inherit;
    font-size: 0.95rem;
}
.al .al-field select:focus,
.al .al-field input:focus { outline: 2px solid var(--al-blue); outline-offset: 1px; border-color: var(--al-blue); }

/* ---- Tabs: underlined ---- */
.al .al-tabs { display: flex; gap: 0.25rem 1.5rem; flex-wrap: wrap; border-bottom: 1px solid var(--al-line); }
.al .al-tab {
    appearance: none;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    padding: 0.7rem 0.1rem;
    min-height: 46px;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--al-muted);
    cursor: pointer;
}
.al .al-tab:hover { color: var(--al-ink); }
.al .al-tab[aria-selected="true"] { color: var(--al-ink); border-bottom-color: var(--al-ink); }
.al .al-tab:focus-visible { outline: 3px solid rgba(0,102,204,0.35); outline-offset: 2px; border-radius: 4px; }

/* ---- Panels: only forms and results get a box ---- */
.al .al-panel { background: var(--al-white); border: 1px solid var(--al-line); border-radius: 12px; }

/* ---- Hero ---- */
.al .al-hero { padding: 4rem 0 4.5rem; }
.al .al-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; }
.al .al-hero h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.06; margin-bottom: 1.1rem; max-width: 12em; }
.al .al-hero-copy { font-size: 1.12rem; line-height: 1.75; color: var(--al-text); max-width: 33em; margin-bottom: 1.5rem; }
.al .al-hero-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.al .al-hero-photo { border-radius: 14px; overflow: hidden; aspect-ratio: 1 / 1; max-width: 460px; margin: 0 auto; }
.al .al-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* The site's mobile stylesheet pads anything whose class contains "-hero"
   ([class*="-hero"] in _mobile_pages.css); keep it off these inner blocks. */
.al .al-hero-grid, .al .al-hero-copy, .al .al-hero-ctas, .al .al-hero-photo { padding: 0; }

/* ---- Calculators: text, tabs and form on the left; the estimate on the right ---- */
.al .al-calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2.5rem; align-items: start; }
.al .al-calc-aside { align-self: center; }
.al .al-calc-main .al-section-h { margin-bottom: 1.5rem; max-width: none; }
.al .al-calc-main .al-section-h p { max-width: 42em; }
.al .al-calc-forms { margin-top: 1.5rem; }
.al .al-calc-form { padding: 1.5rem; }
.al .al-calc-form h3 { font-size: 1.3rem; margin-bottom: 0.2rem; }
.al .al-calc-form > p { font-size: 0.92rem; color: var(--al-text); margin-bottom: 1.2rem; }
.al .al-calc-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; }
.al .al-estimate { background: var(--al-navy); color: #fff; border-radius: 12px; padding: 1.5rem; }
.al .al-estimate-label { font-size: 0.85rem; color: #c9d7e6; }
.al .al-estimate-total { font-family: var(--al-serif); font-size: 2.8rem; line-height: 1.1; font-weight: 600; color: #fff; margin: 0.15rem 0 0.1rem; }
.al .al-estimate-who { font-size: 0.85rem; color: #c9d7e6; }
.al .al-lines { margin: 1rem 0 0.75rem; }
.al .al-line { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-top: 1px solid rgba(255,255,255,0.18); font-size: 0.92rem; }
.al .al-line b { font-weight: 600; white-space: nowrap; }
.al .al-estimate-meta { font-size: 0.88rem; color: #c9d7e6; margin-bottom: 1rem; }
.al .al-estimate-meta b { color: #fff; }
.al .al-estimate-note { margin-top: 0.9rem; font-size: 0.78rem; color: #c9d7e6; line-height: 1.5; }
.al .al-estimate-note a { color: #fff; }
.al .al-estimate-empty { font-size: 0.95rem; color: #c9d7e6; }
.al .al-premier-note { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--al-line); font-size: 0.9rem; color: var(--al-text); line-height: 1.6; }

/* ---- Region explorer: a guidebook spread, stacked full width ---- */
.al .al-region { margin-top: 2rem; display: flex; flex-direction: column; gap: 2.5rem; }
.al .al-region-lead { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3rem; align-items: center; }
.al .al-region-lead-text h3 { font-size: 1.65rem; margin-bottom: 0.7rem; }
.al .al-region-lead-text p { font-size: 1.03rem; line-height: 1.7; color: var(--al-text); margin-bottom: 0.9rem; }
.al .al-region-lead-text .al-region-ctas { margin-top: 1.3rem; }
.al .al-region-photo { border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 2; }
.al .al-region-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.al .al-region h4 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.al .al-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.al .al-mo { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 4px; font-size: 0.84rem; font-weight: 600; }
.al .al-mo-B { background: var(--al-navy); color: #fff; }
.al .al-mo-G { background: #cfe0f3; color: var(--al-navy); }
.al .al-mo-S { background: #e4ded3; color: #3d4654; }
.al .al-mo-P { background: #f0c86a; color: #4a3600; }
.al .al-mo-R { background: #8ea0b0; color: #10202c; }
.al .al-legend { display: flex; gap: 0.35rem 1.25rem; flex-wrap: wrap; margin-top: 0.6rem; font-size: 0.82rem; color: var(--al-muted); }
.al .al-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.al .al-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.al .al-facts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5rem; margin: 0; }
.al .al-fact { padding: 0.85rem 0; border-top: 1px solid var(--al-line); font-size: 0.93rem; line-height: 1.55; }
.al .al-fact dt { font-weight: 700; margin: 0 0 0.15rem; color: var(--al-ink); }
.al .al-fact dd { margin: 0; color: var(--al-text); }
.al .al-region-ctas { display: flex; gap: 0.6rem 1.25rem; flex-wrap: wrap; align-items: center; }

/* ---- Popular destinations: the live homepage's carousel ---- */
.al .al-carousel-head { text-align: center; max-width: 42em; margin: 0 auto 1.25rem; }
.al .al-carousel-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 0.4rem; }
.al .al-carousel-head p { font-size: 1.05rem; color: var(--al-muted); }
.al .al-car-wrap { position: relative; }
.al .al-car-scroll { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 0.5rem 0.25rem 1.5rem; scrollbar-width: none; }
.al .al-car-scroll::-webkit-scrollbar { display: none; }
.al .al-car-card { flex: 0 0 340px; scroll-snap-align: start; background: #fff; border-radius: 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.15), 0 1px 4px rgba(0,0,0,0.1); overflow: hidden; border: 1px solid rgba(0,0,0,0.06); }
.al .al-car-img { width: 100%; height: 220px; object-fit: cover; display: block; }
.al .al-car-body { padding: 1.25rem; }
.al .al-car-body h4 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.al .al-car-body p { font-size: 0.92rem; color: var(--al-text); line-height: 1.55; margin: 0 0 0.75rem; }
.al .al-car-link { font-size: 0.88rem; font-weight: 600; color: var(--al-blue); text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem; }
.al .al-car-link:hover { color: var(--al-navy); text-decoration: underline; }
.al .al-car-hint { display: none; text-align: center; color: var(--al-muted); font-size: 0.85rem; margin-top: 0.25rem; }
.al .al-car-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid rgba(0,0,0,0.1); box-shadow: 0 2px 8px rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; font-size: 1.2rem; color: var(--al-ink); padding: 0; }
.al .al-car-arrow.prev { left: -22px; }
.al .al-car-arrow.next { right: -22px; }
.al .al-car-arrow.hidden { opacity: 0; pointer-events: none; }

/* ---- Meet Courtney ---- */
.al .al-meet-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3.5rem; align-items: center; }
.al .al-meet-photo { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; max-width: 400px; }
.al .al-meet-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.al .al-meet h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: 1rem; }
.al .al-meet p { font-size: 1.03rem; line-height: 1.8; color: var(--al-text); margin-bottom: 1rem; max-width: 36em; }
.al .al-meet-ctas { display: flex; gap: 0.75rem 1.25rem; flex-wrap: wrap; align-items: center; margin: 1.4rem 0 1rem; }
.al .al-meet-small { font-size: 0.86rem; color: var(--al-muted); }
.al .al-sign { font-family: var(--al-serif); font-style: italic; font-size: 1.45rem; color: var(--al-navy); margin-top: 0.4rem; }

/* ---- Also on this site ---- */
.al .al-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5rem; margin: 0; padding: 0; list-style: none; }
.al .al-links li { padding: 0.8rem 0; border-top: 1px solid var(--al-line); font-size: 0.95rem; line-height: 1.5; }
.al .al-links a { font-weight: 600; text-decoration: none; }
.al .al-links a:hover { text-decoration: underline; }
.al .al-links span { display: block; color: var(--al-text); }

/* ---- Blog ---- */
.al .al-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5rem; }
.al .al-post { display: block; text-decoration: none; color: var(--al-ink); padding: 1rem 0 1.25rem; border-top: 1px solid var(--al-line); }
.al .al-post-cat { font-size: 0.82rem; color: var(--al-muted); }
.al .al-post h3 { font-size: 1.12rem; line-height: 1.35; margin: 0.3rem 0 0.4rem; }
.al .al-post:hover h3 { text-decoration: underline; }
.al .al-post p { font-size: 0.92rem; color: var(--al-text); line-height: 1.55; }
.al .al-post-meta { font-size: 0.82rem; color: var(--al-muted); margin-top: 0.5rem; }

/* ---- Closing ---- */
.al .al-close { padding-bottom: 5rem; }
.al .al-close h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 0.8rem; }
.al .al-close p { font-size: 1.05rem; line-height: 1.75; color: var(--al-text); max-width: 36em; margin-bottom: 1.5rem; }
.al .al-close-ctas { display: flex; gap: 0.75rem 1.25rem; flex-wrap: wrap; align-items: center; }

/* ---- Responsive ---- */
@media (max-width: 1199px) {
    .al .al-calc-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .al .al-hero { padding: 2.75rem 0 3rem; }
    .al .al-hero-grid, .al .al-calc-grid, .al .al-meet-grid, .al .al-region-lead { grid-template-columns: 1fr; gap: 2.25rem; }
    .al .al-region-lead { gap: 1.75rem; }
    .al .al-calc-grid { gap: 1.5rem; }
    .al .al-hero-photo { max-width: 100%; aspect-ratio: 4 / 3; }
    .al .al-facts-grid, .al .al-links, .al .al-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .al .al-section { padding: 3.25rem 0; }
    .al .al-meet-photo { max-width: 360px; }
}
@media (max-width: 768px) {
    .al .al-car-card { flex: 0 0 85vw; }
    .al .al-car-hint { display: block; }
    .al .al-car-arrow { display: none; }
}
@media (max-width: 575px) {
    .al .al-facts-grid, .al .al-links, .al .al-posts, .al .al-calc-fields { grid-template-columns: 1fr; }
    .al .al-car-card { flex: 0 0 90vw; }
    .al .al-mo { min-height: 32px; font-size: 0.64rem; }
    .al .al-estimate-total { font-size: 2.3rem; }
    .al .al-calc-form, .al .al-estimate { padding: 1.1rem; }
    .al .al-region { gap: 2rem; }
    .al .al-hero-ctas .al-btn { flex: 1 1 100%; }
}
