/* ============================================================
   Project Fox — pages.css (page-specific styles)
   ============================================================ */

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(40px, 6vw, 76px) 0 clamp(28px, 4vw, 44px); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 420px at 80% -20%, rgba(111,144,182,.13), transparent 60%); pointer-events: none; }
.page-hero .container { position: relative; max-width: 820px; }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero .lead { max-width: 62ch; }

/* ---------- Prose / rich text ---------- */
.prose { max-width: 760px; }
.prose h2 { margin: 2.4rem 0 1rem; }
.prose h3 { margin: 1.8rem 0 .7rem; }
.prose p { margin-bottom: 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.3rem 1.1rem; color: var(--text-mid); }
.prose li { margin-bottom: .6rem; padding-left: .3rem; }
.prose strong { color: var(--text); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Service detail blocks ---------- */
.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.service-block:nth-child(even) .service-media { order: 2; }
.service-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4/3; background: var(--surface); }
.service-media img { width: 100%; height: 100%; object-fit: cover; }
.service-copy h2 { margin-bottom: 1rem; }
.service-copy ul { list-style: none; margin: 1.2rem 0 0; display: grid; gap: 10px; }
.service-copy li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-mid); font-size: .97rem; }
.service-copy li::before { content: "✓"; color: var(--steel-lt); font-weight: 700; flex: none; }
.service-anchor { scroll-margin-top: 90px; }

/* ---------- Form ---------- */
.form-wrap { background: var(--grad-dark); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .88rem; font-weight: 500; color: var(--text); }
.field label .req { color: var(--steel-lt); }
.field input, .field select, .field textarea {
  font-family: var(--ff-sans); font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border-lt); border-radius: 10px; padding: 13px 15px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--steel); box-shadow: 0 0 0 3px rgba(111,144,182,.18); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23aaacb6' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-consent { display: flex; gap: 11px; align-items: flex-start; font-size: .85rem; color: var(--text-dim); margin: 6px 0 20px; }
.form-consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--steel); }
.form-aside { display: flex; flex-direction: column; gap: 20px; }
.form-aside .contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.form-aside .contact-card h3 { margin-bottom: 14px; }
.contact-line { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; color: var(--text-mid); }
.contact-line:last-child { margin-bottom: 0; }
.contact-line .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-lt); display: grid; place-items: center; flex: none; }
.contact-line strong { display: block; color: var(--text); font-size: .96rem; }
.contact-line a { color: var(--text-mid); }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--grad-dark); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 20px 54px 20px 22px; font-family: var(--ff-serif); font-size: 1.1rem; color: var(--text); position: relative; list-style: none; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--steel-lt); font-family: var(--ff-sans); transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 22px; color: var(--text-mid); }
.faq-item .faq-body p { margin-bottom: .8rem; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ---------- About / team ---------- */
.about-intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.about-figure { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4/5; background: var(--surface); }
.about-figure img { width: 100%; height: 100%; object-fit: cover; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.team-card { background: var(--grad-dark); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; gap: 18px; align-items: flex-start; }
.team-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border-lt); display: grid; place-items: center; font-family: var(--ff-serif); font-size: 1.3rem; color: var(--silver); flex: none; }
.team-card h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.team-card .role { color: var(--steel-lt); font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .5rem; }
.team-card p { font-size: .92rem; }

/* ---------- Value / checklist cards ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.value-card .v-icon { font-size: 1.6rem; margin-bottom: 14px; }
.value-card h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.value-card p { font-size: .94rem; }

/* ---------- Location page ---------- */
.nearby-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.nearby-link { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; color: var(--text); transition: border-color .2s, transform .2s; }
.nearby-link:hover { border-color: var(--silver); transform: translateY(-3px); color: var(--text); }
.nearby-link strong { font-size: 1rem; color: var(--silver-lt); }
.nearby-link span { font-size: .84rem; color: var(--text-dim); }
.local-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 1.5rem; }
.local-point { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; }
.local-point .lp-ic { color: var(--steel-lt); font-size: 1.2rem; flex: none; }
.local-point strong { display: block; color: var(--text); font-size: .96rem; margin-bottom: 2px; }
.local-point span { font-size: .88rem; color: var(--text-mid); }

/* ---------- Notice / placeholder (reviews-pending, finance) ---------- */
.notice { background: var(--surface); border: 1px dashed var(--border-lt); border-radius: var(--radius); padding: clamp(28px, 5vw, 48px); text-align: center; max-width: 760px; margin: 0 auto; }
.notice .n-icon { font-size: 2rem; margin-bottom: 14px; }
.notice h2 { margin-bottom: .8rem; }
.notice p { max-width: 56ch; margin: 0 auto 1rem; }

/* ---------- Confirmation pages ---------- */
.confirm { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.confirm .check { width: 76px; height: 76px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--steel); display: grid; place-items: center; margin: 0 auto 24px; font-size: 2rem; color: var(--steel-lt); }
.confirm h1 { margin-bottom: 1rem; }
.confirm p { max-width: 52ch; margin: 0 auto 1.8rem; }

/* ---------- Misc ---------- */
.split-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8rem; }
.inline-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4rem; }
.inline-badges .badge-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .85rem; color: var(--text-mid); }

@media (max-width: 900px) {
  .service-block, .about-intro, .contact-grid { grid-template-columns: 1fr; }
  .service-block:nth-child(even) .service-media { order: 0; }
  .about-figure { max-width: 420px; margin: 0 auto; }
  .value-grid, .nearby-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .team-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .local-points { grid-template-columns: 1fr; }
}
