/* ====================================
   Contact & Pricing Page Styles
   Loaded after styles.css. Uses the same variables as the rest of the site.
   ==================================== */

/* ---------- Page hero ---------- */
.page-hero { padding: 10rem 0 3rem; }
.page-hero .container { max-width: 900px; }

.page-hero .hero-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.page-hero h1 {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2.6rem, 6vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.page-hero h1 em { font-style: italic; color: var(--text-muted); }

.page-hero .lede {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 620px;
    line-height: 1.7;
}

/* Page sections (alternate backgrounds like the homepage) */
.pg-section { padding: 4.5rem 0; }
.pg-section.alt { background: var(--card-bg); transition: background-color 0.3s ease; }
.pg-section .section-header { margin-bottom: 3rem; }
.pg-note { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }

/* Nav: current page */
nav .nav-links a[aria-current="page"],
.mobile-nav-links a[aria-current="page"] { color: var(--text); }
nav .nav-links a[aria-current="page"]::after { width: 100%; }

/* ---------- Pricing tiers ---------- */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.tier {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2.25rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.25s ease;
}

.tier:hover { transform: translateY(-4px); }

.tier.featured {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tier-badge {
    position: absolute;
    top: -0.75rem;
    left: 2rem;
    padding: 0.25rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 50px;
    background: var(--accent);
    color: #fff;
}

[data-theme="dark"] .tier-badge { color: #000; }

.tier-name {
    font-family: 'Instrument Serif', serif;
    font-size: 1.7rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.tier-for {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
    min-height: 3.2em;
}

.tier-price { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.25rem; }
.tier-price .from { font-size: 0.85rem; color: var(--text-muted); }
.tier-price .amount {
    font-family: 'Instrument Serif', serif;
    font-size: 3.2rem;
    line-height: 1;
    letter-spacing: -0.03em;
}

.tier-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-bottom: 1.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.tier ul { list-style: none; flex: 1; margin-bottom: 2rem; }

.tier li {
    position: relative;
    padding: 0.4rem 0 0.4rem 1.6rem;
    font-size: 0.93rem;
    line-height: 1.55;
}

.tier li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 0.9rem;
    height: 0.9rem;
    background: var(--highlight-green);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

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

/* One-page strip under the tiers */
.tier-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 1.5rem;
    padding: 1.75rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: background-color 0.3s ease;
}
.tier-strip .strip-main { flex: 1; }
.tier-strip h3 { font-family: 'Instrument Serif', serif; font-size: 1.5rem; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 0.35rem; }
.tier-strip p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; max-width: 520px; }
.strip-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem; min-width: 140px; }
.strip-price .from { font-size: 0.85rem; color: var(--text-muted); }
.strip-price .amount { font-family: 'Instrument Serif', serif; font-size: 2.4rem; line-height: 1; letter-spacing: -0.03em; }
.strip-price .tier-meta { flex-basis: 100%; }
@media (max-width: 800px) {
    .tier-strip { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
    .tier-strip .btn { width: 100%; justify-content: center; }
}

/* ---------- Card grid (add-ons) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.pg-card {
    padding: 1.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.pg-card h3 { font-size: 1.05rem; font-weight: 500; margin-bottom: 0.6rem; }
.pg-card p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.7; }

.price-tag {
    display: inline-block;
    margin-top: 1.1rem;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    background: var(--tag-bg);
    border-radius: 50px;
    color: var(--text);
}

/* Add-on groups */
.addon-group { margin-bottom: 3rem; }
.addon-group:last-child { margin-bottom: 0; }
.addon-title {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; }
.step { padding-top: 1.25rem; border-top: 1px solid var(--border); }

.step::before {
    counter-increment: step;
    content: "0" counter(step);
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.step h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.step p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.7; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }

.faq summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 0;
    font-size: 1.05rem;
    font-weight: 500;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 300; color: var(--text-muted); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; border-radius: 4px; }
.faq details p { color: var(--text-muted); line-height: 1.8; margin: 0 0 1.5rem; max-width: 680px; }

/* ---------- CTA band ---------- */
.cta-band {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.cta-band h2 {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.cta-band p { color: var(--text-muted); max-width: 520px; margin: 0 auto 2rem; line-height: 1.7; }
.cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact layout ---------- */
.contact-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 4rem; align-items: start; }
.quote-form { display: grid; gap: 1.5rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.85rem; font-weight: 500; }
.field .optional { color: var(--text-muted); font-weight: 400; }

.field input,
.field select,
.field textarea {
    width: 100%;
    font: inherit;
    font-size: 0.95rem;
    color: var(--text);
    padding: 0.85rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: border-color 0.2s ease, background-color 0.3s ease;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); opacity: 0.7; }

.field select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 1.1rem;
}

.field textarea { min-height: 160px; resize: vertical; line-height: 1.7; }

.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text-muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--text); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.field .hint { font-size: 0.8rem; color: var(--text-muted); }
.field .error-msg { display: none; font-size: 0.8rem; color: var(--highlight-red); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--highlight-red); }
.field.invalid .error-msg { display: block; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.quote-form .btn { border: none; cursor: pointer; font-family: inherit; }
.quote-form .btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }

.form-status {
    display: none;
    padding: 1rem 1.25rem;
    background: var(--tag-bg);
    border-left: 3px solid var(--highlight-green);
    border-radius: 6px;
    line-height: 1.6;
    font-size: 0.95rem;
}
.form-status.show { display: block; }
.form-status.error { border-left-color: var(--highlight-red); }

/* Aside */
.contact-aside { display: grid; gap: 1.25rem; position: sticky; top: 100px; }

.aside-card {
    padding: 1.75rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.aside-card h3 { font-family: 'Instrument Serif', serif; font-size: 1.35rem; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 1rem; }
.aside-card ol { padding-left: 1.2rem; display: grid; gap: 0.8rem; color: var(--text-muted); font-size: 0.93rem; line-height: 1.6; }
.aside-card ol strong { color: var(--text); font-weight: 500; }

.aside-list { list-style: none; display: grid; gap: 0.9rem; font-size: 0.93rem; color: var(--text-muted); }
.aside-list li { display: flex; gap: 0.75rem; align-items: flex-start; line-height: 1.55; }
.aside-list svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.2rem; opacity: 0.7; }
.aside-list a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Legal / long-form text ---------- */
.legal { max-width: 760px; }
.legal h2 {
    font-family: 'Instrument Serif', serif;
    font-size: 1.7rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin: 2.75rem 0 0.9rem;
}
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--text-muted); line-height: 1.8; }
.legal p { margin-bottom: 1rem; }
.legal ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.legal li { margin-bottom: 0.5rem; }
.legal strong { color: var(--text); font-weight: 500; }
.legal a, .pg-note a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer (matches homepage) ---------- */
.subpage footer {
    background: var(--accent);
    color: rgba(255, 255, 255, 0.5);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
[data-theme="dark"] .subpage footer { background: #2D2D2D; }
.subpage footer .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.subpage footer .logo { color: #fff; }
.subpage .footer-left { display: flex; align-items: center; gap: 2.5rem; }
.subpage .footer-links { display: flex; gap: 1.5rem; font-size: 0.9rem; }
.subpage footer a:not(.logo) { color: inherit; text-decoration: none; transition: color 0.2s ease; }
.subpage footer a:not(.logo):hover { color: #fff; }

/* ---------- Entrance animation ---------- */
.subpage .page-hero .container > * { opacity: 0; animation: fadeUp 0.8s ease forwards; }
.subpage .page-hero .container > *:nth-child(2) { animation-delay: 0.15s; }
.subpage .page-hero .container > *:nth-child(3) { animation-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
    .subpage .page-hero .container > * { opacity: 1; animation: none; }
    .tier:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .tier-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
    .tier-for { min-height: 0; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
    .contact-aside { position: static; }
}

@media (max-width: 600px) {
    .page-hero { padding: 7.5rem 0 2rem; }
    .pg-section { padding: 3.5rem 0; }
    .card-grid, .steps, .field-row { grid-template-columns: 1fr; }
    .tier { padding: 2rem 1.5rem; }
    .cta-row { flex-direction: column; }
    .cta-row .btn { justify-content: center; }
    .subpage footer .container { flex-direction: column; text-align: center; }
    .subpage .footer-left { flex-direction: column; gap: 0.75rem; }
}
