/* style.css — Reconxx Components */

/* ============ UTILITIES ============ */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============ CONTAINER ============ */
.container { width: 100%; max-width: var(--content-wide); margin: 0 auto; padding-inline: var(--space-6); }
.container--narrow { max-width: var(--content-default); }

/* ============ HEADER ============ */
.header { position: sticky; top: 0; z-index: 50; background: oklch(from var(--color-navy) l c h / 0.95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,0.06); }
.header--scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.2); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.header-logo { display: flex; align-items: center; text-decoration: none; }
.header-logo img { height: 48px; width: auto; }
.nav-desktop { display: flex; align-items: center; gap: var(--space-6); }
.nav-desktop a { font-size: var(--text-sm); font-weight: 500; color: rgba(255,255,255,0.7); text-decoration: none; letter-spacing: 0.01em; position: relative; padding: var(--space-1) 0; }
.nav-desktop a::after { content:''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--color-accent); transition: width 0.3s var(--ease-out); }
.nav-desktop a:hover { color: #fff; }
.nav-desktop a:hover::after { width: 100%; }
.header-cta { display: inline-flex; }
.mobile-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: #fff; }
.mobile-toggle svg { width: 24px; height: 24px; }
.mobile-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 72px); background: var(--color-navy); z-index: 49; padding: var(--space-8) var(--space-6); flex-direction: column; gap: var(--space-5); overflow-y: auto; }
.mobile-nav.active { display: flex; }
.mobile-nav a { font-size: var(--text-lg); font-weight: 500; color: rgba(255,255,255,0.85); text-decoration: none; padding: var(--space-3) 0; border-bottom: 1px solid rgba(255,255,255,0.08); }

/* ============ BUTTONS ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.02em; padding: var(--space-3) var(--space-6); border-radius: var(--radius-md); text-decoration: none; border: none; cursor: pointer; transition: background var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--accent { background: var(--color-accent); color: #fff; }
.btn--accent:hover { background: var(--color-accent-hover); }
.btn--navy { background: var(--color-navy); color: #fff; }
.btn--navy:hover { background: var(--color-navy-light); }
.btn--outline { background: transparent; color: var(--color-text); border: 1.5px solid var(--color-border); }
.btn--outline:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn--ghost-light { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.15); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.14); }
.btn--lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); border-radius: var(--radius-lg); }
.btn--block { width: 100%; }

/* ============ HERO ============ */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(7,26,68,0.92) 0%, rgba(7,26,68,0.7) 50%, rgba(7,26,68,0.55) 100%); }
.hero__content { position: relative; z-index: 1; padding-block: clamp(var(--space-16), 10vw, var(--space-32)); }
.hero__label { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); margin-bottom: var(--space-6); }
.hero__label::before { content:''; width: 28px; height: 2px; background: var(--color-accent); }
.hero h1 { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 700; color: var(--color-text-on-dark); max-width: 16ch; margin-bottom: var(--space-6); letter-spacing: -0.025em; line-height: 1.08; }
.hero p { font-size: var(--text-lg); color: var(--color-text-on-dark-muted); max-width: 52ch; margin-bottom: var(--space-8); line-height: 1.6; }
.hero__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.hero__stats { display: flex; gap: var(--space-12); margin-top: var(--space-12); padding-top: var(--space-8); border-top: 1px solid rgba(255,255,255,0.1); }
.stat { display: flex; flex-direction: column; }
.stat__value { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; color: var(--color-accent); letter-spacing: -0.02em; }
.stat__label { font-size: var(--text-xs); color: var(--color-text-on-dark-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: var(--space-1); }

/* ============ SECTION ============ */
.section { padding-block: clamp(var(--space-12), 8vw, var(--space-24)); }
.section--navy { background: var(--color-navy); color: var(--color-text-on-dark); }
.section--alt { background: var(--color-surface-2); }
.section__label { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); margin-bottom: var(--space-4); }
.section__label::before { content:''; width: 20px; height: 2px; background: var(--color-accent); }
.section__title { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; letter-spacing: -0.02em; margin-bottom: var(--space-4); }
.section__desc { font-size: var(--text-base); color: var(--color-text-muted); max-width: 58ch; margin-bottom: var(--space-10); }
.section--navy .section__desc { color: var(--color-text-on-dark-muted); }

/* ============ LOGO BAR ============ */
.logo-bar { padding-block: var(--space-8); border-bottom: 1px solid var(--color-divider); }
.logo-bar__label { font-size: var(--text-xs); color: var(--color-text-faint); text-transform: uppercase; letter-spacing: 0.06em; text-align: center; margin-bottom: var(--space-6); }
.logo-bar__logos { display: flex; align-items: center; justify-content: center; gap: var(--space-10); flex-wrap: wrap; }
.logo-bar__item { display: inline-flex; align-items: center; height: 32px; opacity: 0.92; filter: saturate(1) contrast(1); transition: opacity var(--ease), transform var(--ease); }
.logo-bar__item:hover { opacity: 1; transform: translateY(-1px); }
.logo-bar__item svg { height: 28px; width: auto; display: block; }
@media (max-width: 768px) {
  .logo-bar__logos { gap: var(--space-6); }
  .logo-bar__item svg { height: 22px; }
}

/* ============ SERVICE CARDS ============ */
.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-6); }
.services-grid > .card { grid-column: span 2; }
.services-grid > .card:nth-child(4):nth-last-child(2) { grid-column: 2 / span 2; }
.services-grid > .card:nth-child(5):nth-last-child(1) { grid-column: 4 / span 2; }
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-8); position: relative; overflow: hidden; transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease); }
.card::before { content:''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease-out); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--color-accent); }
.card:hover::before { transform: scaleX(1); }
.card__icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--color-accent-light); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-5); color: var(--color-accent); }
.card h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; color: var(--color-text); margin-bottom: var(--space-3); }
.card p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; }
.card__link { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); font-weight: 600; color: var(--color-accent); text-decoration: none; margin-top: var(--space-4); transition: gap var(--ease); }
.card__link:hover { gap: var(--space-3); }
.card__link svg { width: 14px; height: 14px; }

/* ============ PROCESS ============ */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.step { text-align: center; }
.step__num { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; color: var(--color-accent); opacity: 0.35; margin-bottom: var(--space-4); }
.step h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; color: var(--color-text-on-dark); margin-bottom: var(--space-3); }
.step p { font-size: var(--text-sm); color: var(--color-text-on-dark-muted); line-height: 1.6; max-width: 28ch; margin: 0 auto; }

/* ============ SPLIT ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: center; }
.split__img { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4/3; }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-6); }
.feature-item { display: flex; gap: var(--space-4); }
.feature-item__check { flex-shrink: 0; width: 32px; height: 32px; border-radius: var(--radius-full); background: var(--color-accent-light); display: flex; align-items: center; justify-content: center; color: var(--color-accent); margin-top: 2px; }
.feature-item h4 { font-family: var(--font-display); font-size: var(--text-base); font-weight: 600; margin-bottom: var(--space-1); }
.feature-item p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.5; }

/* ============ TESTIMONIAL ============ */
.testimonial { max-width: 720px; margin: 0 auto; text-align: center; }
.testimonial__quote { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 500; line-height: 1.45; margin-bottom: var(--space-8); position: relative; }
.testimonial__quote::before { content: '\201C'; font-size: 120px; color: var(--color-accent); opacity: 0.12; position: absolute; top: -40px; left: 50%; transform: translateX(-50%); line-height: 1; }
.testimonial__author { font-size: var(--text-sm); font-weight: 600; }
.testimonial__role { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--space-1); }

/* ============ CTA BANNER ============ */
.cta-banner { background: linear-gradient(135deg, var(--color-accent) 0%, #d06800 100%); text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content:''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23fff' fill-opacity='.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.cta-banner__inner { position: relative; z-index: 1; }
.cta-banner h2 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; color: #fff; margin-bottom: var(--space-4); }
.cta-banner p { font-size: var(--text-lg); color: rgba(255,255,255,0.85); max-width: 50ch; margin: 0 auto var(--space-8); }
.btn--white { background: #fff; color: var(--color-accent); font-weight: 700; }
.btn--white:hover { background: rgba(255,255,255,0.9); }

/* ============ CONTACT FORM ============ */
.contact-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-12); align-items: start; }
.contact-detail { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-4); }
.contact-detail a { color: var(--color-text-muted); text-decoration: none; }
.contact-detail a:hover { color: var(--color-accent); }
.form { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-8); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form__group { margin-bottom: var(--space-5); }
.form__group label { display: block; font-size: var(--text-sm); font-weight: 500; margin-bottom: var(--space-2); }
.form__group input, .form__group select, .form__group textarea { width: 100%; padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg); font-size: var(--text-sm); }
.form__group input:focus, .form__group select:focus, .form__group textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(238,125,0,0.12); }
.form__group textarea { resize: vertical; min-height: 100px; }
.form__checks { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.form__check { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); cursor: pointer; padding: var(--space-2) var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); transition: border-color var(--ease), background var(--ease); }
.form__check:has(input:checked) { border-color: var(--color-accent); background: var(--color-accent-light); }
.form__check input { width: 16px; height: 16px; accent-color: var(--color-accent); }
.form-msg { display: none; align-items: center; gap: var(--space-3); padding: var(--space-4); background: rgba(45,138,78,0.08); border-radius: var(--radius-md); margin-top: var(--space-4); font-size: var(--text-sm); color: var(--color-success); font-weight: 500; }
.form-msg.show { display: flex; }

/* ============ FOOTER ============ */
.footer { background: var(--color-navy); color: var(--color-text-on-dark); padding-block: var(--space-16) var(--space-8); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-8); margin-bottom: var(--space-10); }
.footer__brand-text { font-size: var(--text-sm); color: var(--color-text-on-dark-muted); margin-top: var(--space-4); max-width: 32ch; line-height: 1.6; }
.footer-col h4 { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; color: rgba(255,255,255,0.9); margin-bottom: var(--space-4); text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a { font-size: var(--text-sm); color: var(--color-text-on-dark-muted); text-decoration: none; }
.footer-col a:hover { color: var(--color-accent); }
.footer__bottom { padding-top: var(--space-6); border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; font-size: var(--text-xs); color: rgba(255,255,255,0.35); }

/* ============ IMAGE BREAK ============ */
.img-break { position: relative; height: 50vh; overflow: hidden; }
.img-break img { width: 100%; height: 100%; object-fit: cover; }
.img-break__fade { position: absolute; inset: 0; background: linear-gradient(to bottom, var(--color-bg) 0%, transparent 18%, transparent 82%, var(--color-bg) 100%); }

/* ============ PAIN CARDS ============ */
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); margin-top: var(--space-8); }
.pain-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-lg); padding: var(--space-6); text-align: center; }
.pain-card__icon { font-size: 2rem; display: block; margin-bottom: var(--space-3); }
.pain-card p { font-size: var(--text-sm); color: var(--color-text-on-dark-muted); line-height: 1.5; }

/* ============ APPROACH ============ */
.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); margin-top: var(--space-10); position: relative; }
.approach-grid::before { content: ''; position: absolute; top: 32px; left: 16.67%; right: 16.67%; height: 2px; background: linear-gradient(to right, transparent, var(--color-accent) 20%, var(--color-accent) 80%, transparent); opacity: 0.25; z-index: 0; }
.approach-step { text-align: center; padding: var(--space-6); background: var(--color-bg); border-radius: var(--radius-lg); position: relative; z-index: 1; }
.approach-step__num { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--color-accent); color: #fff; font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; margin-bottom: var(--space-5); box-shadow: 0 4px 16px rgba(238,125,0,0.25); }
.approach-step h3 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; color: var(--color-text); margin-bottom: var(--space-3); }
.approach-step p { font-size: var(--text-base); color: var(--color-text-muted); line-height: 1.6; max-width: 32ch; margin: 0 auto; }

/* ============ CAPABILITIES ============ */
.caps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); margin-top: var(--space-10); }
.cap { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease); }
.cap:hover { border-color: var(--color-accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(7,26,68,0.08); }
.cap__icon { font-size: 1.75rem; display: block; margin-bottom: var(--space-3); }
.cap h3 { font-family: var(--font-display); font-size: var(--text-base); font-weight: 600; color: var(--color-text); margin-bottom: var(--space-2); }
.cap p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.5; margin: 0; }

/* ============ FAQ ============ */
.faq-list { display: flex; flex-direction: column; gap: var(--space-3); }
.faq-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color var(--ease); }
.faq-item[open] { border-color: var(--color-accent); }
.faq-item__q { padding: var(--space-5) var(--space-6); font-family: var(--font-display); font-size: var(--text-base); font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after { content: '+'; font-size: 1.4rem; color: var(--color-accent); font-weight: 300; flex-shrink: 0; transition: transform 0.2s var(--ease-out); }
.faq-item[open] .faq-item__q::after { content: '\2212'; transform: rotate(180deg); }
.faq-item__a { padding: 0 var(--space-6) var(--space-6); font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.65; }

/* ============ RESPONSIVE ============ */
@media(max-width:1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid > .card,
  .services-grid > .card:nth-child(4):nth-last-child(2),
  .services-grid > .card:nth-child(5):nth-last-child(1) { grid-column: auto; }
  .process-grid { grid-template-columns: repeat(2,1fr); gap: var(--space-8); }
  .pain-grid { grid-template-columns: repeat(2,1fr); }
  .caps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-split { grid-template-columns: 1fr; }
}
@media(max-width:768px) {
  .nav-desktop,.header-cta { display: none; }
  .mobile-toggle { display: flex; }
  .hero h1 { font-size: var(--text-2xl); }
  .hero__stats { gap: var(--space-6); flex-wrap: wrap; }
  .services-grid { grid-template-columns: 1fr; }
  .services-grid > .card,
  .services-grid > .card:nth-child(4):nth-last-child(2),
  .services-grid > .card:nth-child(5):nth-last-child(1) { grid-column: auto; }
  .process-grid { grid-template-columns: 1fr; }
  .pain-grid { grid-template-columns: 1fr 1fr; }
  .approach-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .approach-grid::before { display: none; }
  .caps-grid { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
  .cap { padding: var(--space-5); }
  .split { grid-template-columns: 1fr; gap: var(--space-8); }
  .split__img { order: -1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: var(--space-3); text-align: center; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .form__row { grid-template-columns: 1fr; }
}
