/* Inner public pages (EXL-STAGE3-DESIGN-002). Shared chrome lives in site-theme.css;
   the home hero lives in home-hero.css. Loaded only by the 13 non-home public pages. */

/* Page background — warm ivory, same as the home page reference. */
body { background: var(--brand-ivory); }
.site-shell { background: var(--brand-ivory); }

/* Layout containers */
.inner-page { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }
.inner-section { width: 100%; max-width: 1200px; margin-inline: auto; padding: clamp(40px, 5vw, 64px) clamp(20px, 4vw, 48px) clamp(56px, 8vw, 96px); }
.inner-band { background: var(--brand-sand); }
.inner-band .inner-page { padding-block: clamp(48px, 6vw, 72px); }
.inner-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(40px, 6vw, 88px) 48px; align-items: start; }
.inner-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 40px 48px; align-items: start; }

/* Page header */
.inner-page-header { max-width: 1200px; margin-inline: auto; padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 48px) 0; }
.inner-page-header h1 { font-size: clamp(30px, 4.4vw, 56px); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; margin: 0 0 16px; text-wrap: balance; }
.inner-page-lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--brand-muted); max-width: 720px; margin: 0; line-height: 1.65; }
.inner-page-header p + p.inner-page-lead { margin-top: 12px; font-size: 18px; }
.inner-detail-heading { font-size: clamp(30px, 4.4vw, 56px); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; margin: 0 0 16px; text-wrap: balance; }
#contact-form input[type="checkbox"] { margin: 5px 0 0; }

/* Section headings */
.inner-section-title { font-size: clamp(26px, 3vw, 34px); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; margin: 0 0 16px; color: var(--brand-navy); }
.inner-column-title { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; margin: 0 0 20px; padding-bottom: 14px; border-bottom: 2px solid var(--brand-navy); color: var(--brand-navy); }
.inner-case-title { font-size: clamp(22px, 2.4vw, 26px); font-weight: 600; line-height: 1.3; letter-spacing: -.02em; margin: 0 0 16px; color: var(--brand-navy); }

/* Cards */
.inner-card { background: var(--brand-white); border: 1px solid var(--brand-warm-border); border-radius: 12px; padding: 28px; }
.inner-card-accent { border-top: 3px solid var(--brand-copper); }
.inner-card p, .inner-text { font-size: 16px; line-height: 1.7; color: var(--brand-muted); margin: 0 0 16px; }
.inner-card p:last-child { margin-bottom: 0; }
.inner-image-frame { aspect-ratio: 16 / 9; overflow: hidden; background: var(--brand-sand); border-radius: 12px; border: 1px solid var(--brand-warm-border); position: relative; }
.inner-image-frame::after { content: ''; position: absolute; inset: auto 0 0; height: 5px; background: var(--brand-copper); }
.inner-image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Service catalog */
.inner-service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.inner-service-card { background: var(--brand-white); border: 1px solid var(--brand-warm-border); border-top: 3px solid var(--brand-navy); border-radius: 12px; padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.inner-service-card h2 { font-size: 20px; font-weight: 600; line-height: 1.35; margin: 0; color: var(--brand-navy); }
.inner-service-card p { font-size: 15px; color: var(--brand-muted); margin: 0; flex: 1; line-height: 1.6; }
.inner-card-link { align-self: flex-start; color: var(--brand-link); font-weight: 600; text-decoration: none; }
.inner-card-link:hover { color: var(--brand-navy); }

/* Buttons — same metrics as the home .home-button, scoped to inner pages. */
.inner-button, .inner-button-outline, .inner-button-light {
  display: inline-flex; justify-content: center; align-items: center; gap: 12px;
  min-height: 52px; padding: 14px 24px; border-radius: 4px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
}
.inner-button { background: var(--brand-navy); color: var(--brand-white); }
.inner-button:hover { background: var(--brand-midnight); }
.inner-button:active { background: var(--brand-link); }
.inner-button-outline { background: transparent; color: var(--brand-navy); border-color: var(--brand-navy); }
.inner-button-outline:hover { background: var(--brand-navy); color: var(--brand-white); }
.inner-button-light { background: var(--brand-white); color: var(--brand-navy); }
.inner-button-light:hover { background: var(--brand-sand); }
.inner-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Breadcrumbs */
.inner-breadcrumbs { font-size: 14px; margin: 0 0 28px; color: var(--brand-muted); }
.inner-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.inner-breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.inner-breadcrumbs a { color: var(--brand-muted); text-decoration: none; }
.inner-breadcrumbs a:hover { color: var(--brand-navy); }

/* Long-form text (privacy) */
.inner-longform { max-width: 72ch; margin-inline: auto; padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 48px) clamp(56px, 8vw, 96px); }
.inner-longform h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 24px; }
.inner-longform h2 { font-size: 22px; font-weight: 600; line-height: 1.35; margin: 40px 0 12px; color: var(--brand-navy); }
.inner-longform p { margin: 0 0 16px; color: var(--brand-muted); line-height: 1.75; }
.inner-longform ul { margin: 0 0 16px; padding-left: 22px; color: var(--brand-muted); display: grid; gap: 8px; line-height: 1.7; }

/* Detail-page body sections */
.inner-text-section { max-width: 880px; margin-inline: auto; padding: 24px clamp(20px, 4vw, 48px); }
.inner-text-section p { font-size: 17px; line-height: 1.75; color: var(--brand-muted); max-width: 70ch; margin: 0 0 16px; }
.inner-text-section p:last-child { margin-bottom: 0; }

/* Lists */
.inner-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; color: var(--brand-muted); }
.inner-list li { padding: 14px 0; border-bottom: 1px solid var(--brand-warm-border); line-height: 1.6; }
.inner-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.inner-list strong { color: var(--brand-navy); font-weight: 600; }
.inner-steps { margin: 0 0 32px; padding-left: 26px; display: grid; gap: 14px; color: var(--brand-muted); }
.inner-steps li { line-height: 1.65; }
.inner-steps strong { color: var(--brand-navy); font-weight: 600; }
.inner-steps { counter-reset: none; }
.inner-steps li::marker { color: var(--brand-copper-text); font-weight: 700; }

/* Portfolio */
.portfolio-layout { width: 100%; max-width: 1200px; margin-inline: auto; padding: clamp(40px, 5vw, 64px) clamp(20px, 4vw, 48px) clamp(56px, 8vw, 96px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(40px, 6vw, 88px); align-items: start; }
.portfolio-layout > aside { position: sticky; top: 24px; background: var(--brand-white); border: 1px solid var(--brand-warm-border); border-top: 3px solid var(--brand-copper); border-radius: 12px; padding: 28px; }
.portfolio-aside-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; }
.portfolio-aside-list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--brand-warm-border); color: var(--brand-navy); text-decoration: none; }
.portfolio-aside-list li:last-child a { border-bottom: 0; }
.inner-case-card { background: var(--brand-white); border: 1px solid var(--brand-warm-border); border-radius: 12px; padding: 32px; margin-bottom: 24px; }
.inner-case-card p { margin: 0 0 12px; color: var(--brand-muted); line-height: 1.7; }
.inner-case-card p:last-child { margin-bottom: 0; }
.inner-case-card strong { color: var(--brand-navy); font-weight: 600; }
.inner-cta-band { background: var(--brand-navy); color: var(--brand-page); }
.inner-cta-band .inner-page { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding-block: clamp(56px, 7vw, 96px); }
.inner-cta-band h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 600; line-height: 1.25; margin: 0 0 12px; color: var(--brand-white); }
.inner-cta-band p { margin: 0; color: #C9C6BE; max-width: 560px; line-height: 1.65; }

/* Contacts */
.inner-contact-panel { background: var(--brand-white); border: 1px solid var(--brand-warm-border); border-top: 3px solid var(--brand-copper); border-radius: 12px; padding: 28px; }
.inner-contact-list { margin: 0; display: grid; gap: 18px; font-size: 15px; }
.inner-contact-list dt { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-muted); font-weight: 600; }
.inner-contact-list dd { margin: 4px 0 0; color: var(--brand-text); }
.inner-contact-list a { color: var(--brand-navy); text-decoration: none; }
.inner-contact-list a:hover { color: var(--brand-copper-text); }
#contact-form label[for] { display: block; font-size: 14px; font-weight: 500; color: var(--brand-text); margin: 0 0 8px; }
#contact-form input:not([type="checkbox"]), #contact-form select, #contact-form textarea {
  width: 100%; box-sizing: border-box; min-height: 48px; padding: 14px 16px;
  border: 1px solid var(--brand-warm-border); border-radius: 4px;
  background: var(--brand-white); font: inherit; font-size: 16px; color: var(--brand-navy);
}
#contact-form input:not([type="checkbox"]):hover, #contact-form select:hover, #contact-form textarea:hover { border-color: var(--brand-copper); }
#contact-form textarea { resize: vertical; }
#contact-form button[type="submit"] {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px;
  background: var(--brand-navy); color: var(--brand-white); border: 0; border-radius: 4px;
  padding: 14px 24px; font: inherit; font-weight: 600; cursor: pointer;
}
#contact-form button[type="submit"]:hover { background: var(--brand-midnight); }
#contact-form button[type="submit"]:active { background: var(--brand-link); }
.inner-faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px 64px; }
.inner-faq h3 { font-size: 18px; font-weight: 600; line-height: 1.4; margin: 0 0 12px; color: var(--brand-navy); }
.inner-faq p { margin: 0; color: var(--brand-muted); line-height: 1.7; }

/* Detail-page closing CTA */
.inner-detail-cta { width: 100%; max-width: 1200px; margin-inline: auto; padding: 28px clamp(20px, 4vw, 48px) 64px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.inner-link-more { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-link); font-weight: 600; text-decoration: none; }
.inner-link-more:hover { color: var(--brand-navy); }

/* Responsive */
@media (max-width: 900px) {
  .inner-cta-band .inner-page { flex-direction: column; align-items: flex-start; }
  .inner-image-frame { border-radius: 8px; }
  .inner-case-card { padding: 24px; }
}
@media (max-width: 480px) {
  .inner-page-header h1 { font-size: 28px; }
  .inner-actions .inner-button, .inner-actions .inner-button-outline { width: 100%; }
}
