/* ===========================================================
   Nocos Consulting — Stylesheet
   Theme: clean SaaS-consulting look (card grids, icon badges,
   pill labels) ported from the "Consulting Business Landing
   Page" design into a dependency-free static build.
   =========================================================== */

:root {
  /* Palette */
  --background: #ffffff;
  --surface: #f7f7f8;             /* muted/30 section backgrounds */
  --surface-2: #ececf0;           /* muted */
  --foreground: #14141a;
  --muted-foreground: #6b6b76;
  --primary: #0B1F4B;             /* brand navy */
  --primary-hover: #1A3570;       /* brand royal */
  --primary-foreground: #ffffff;
  --primary-tint: rgba(11, 31, 75, 0.07);
  --accent-bg: #e9ebef;
  --border: rgba(11, 31, 75, 0.1);
  --border-strong: rgba(11, 31, 75, 0.16);
  --good: #1c8a52;
  --gold: #C8A951;                /* brand gold */

  /* Type */
  --font-heading: "Abhaya Libre", Georgia, "Times New Roman", serif;
  --font-body: "Actor", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1180px;
  --header-h: 80px;               /* Figma "Website Navigation — Light" bar */
  --radius-sm: 0.5rem;
  --radius: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --shadow-card: 0 1px 3px rgba(11, 31, 75, 0.06);
  --shadow-lg: 0 24px 48px -20px rgba(11, 31, 75, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
ul { padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--foreground);
}
h1 span.accent { color: var(--primary); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--primary); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.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;
}

/* ---------- Badges / pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 500;
  color: var(--foreground); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 7px 16px;
}
.pill-new {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--primary); border-color: var(--primary); font-weight: 600;
  padding: 3px 10px;
}
.pill-todo {
  font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted-foreground); border: 1px dashed var(--border-strong);
  padding: 3px 10px; border-radius: 999px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 500; font-size: 1rem;
  padding: 14px 26px; border-radius: var(--radius); cursor: pointer;
  border: 1px solid transparent; transition: transform 0.15s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.btn-solid { background: var(--primary); color: var(--primary-foreground); }
.btn-solid:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; color: var(--foreground); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--surface); }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

/* Horizontal logo lockup (navy circle N + NOCOS / CONSULTING wordmark).
   The SVG carries its own outlined letterforms, so it needs no webfont and
   stays identical to the brand artwork at every size.

   The header uses the size from the "Website Navigation — Light" board:
   NocosLogo at scale 1.8, i.e. a 72px mark inside an 80px bar. The footer
   keeps the base scale. */
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 40px; width: auto; }
.site-header .brand-logo { height: 72px; }

.nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu li:not(.nav-actions) a { color: var(--muted-foreground); font-weight: 500; font-size: 0.94rem; padding: 10px 14px; border-radius: var(--radius-sm); }
.nav-menu li:not(.nav-actions) a:hover { color: var(--foreground); background: var(--surface); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 8px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--foreground); transition: 0.25s var(--ease); border-radius: 2px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 180px 0 100px; background: linear-gradient(160deg, var(--background) 40%, var(--surface) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); max-width: 16ch; }
.hero-lead { font-size: 1.15rem; color: var(--muted-foreground); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-checks { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.check-item { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--muted-foreground); }
.check-item svg { width: 18px; height: 18px; color: var(--good); flex-shrink: 0; }

/* Hero visual (CSS mockup, no stock photography) */
.hero-visual { position: relative; }
.mock-card {
  position: relative; z-index: 1; background: var(--primary); color: #fff;
  border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 18px;
}
.mock-card-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,0.55); }
.mock-list { display: flex; flex-direction: column; gap: 10px; }
.mock-list li {
  display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 14px 16px; font-size: 0.98rem;
}
.mock-list li svg { width: 20px; height: 20px; flex-shrink: 0; }
.hero-blob { position: absolute; inset: -10% -10% auto auto; width: 60%; height: 60%; background: var(--accent-bg); border-radius: 50%; filter: blur(10px); z-index: 0; opacity: 0.7; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--surface); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 56px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.section-head p { color: var(--muted-foreground); font-size: 1.08rem; }

/* ---------- Cards (shared) ---------- */
.card {
  background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px; transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.card-flat { border: 0; background: var(--surface); }
.icon-box {
  width: 48px; height: 48px; border-radius: var(--radius); background: var(--primary-tint);
  display: grid; place-items: center; margin-bottom: 18px;
}
.icon-box svg { width: 24px; height: 24px; color: var(--primary); }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.service-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.service-card-link { display: block; color: inherit; }
.service-card-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: var(--radius-sm); }
.service-card h3 { font-size: 1.3rem; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.service-card > .service-card-link > p { color: var(--muted-foreground); margin-bottom: 20px; }
.service-tags { display: flex; flex-direction: column; gap: 10px; }
.service-tags li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--muted-foreground); }
.service-tags li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.service-card-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border);
}
.service-cta {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 500;
  color: var(--primary); background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer;
}
.service-cta span { transition: transform 0.2s var(--ease); }
.service-cta:hover span { transform: translateX(4px); }
.service-cta-btn { color: var(--muted-foreground); }

/* ---------- Portfolio overlays ---------- */
.portfolio-modal {
  border: 0; border-radius: var(--radius-xl); padding: 0; max-width: 560px; width: calc(100% - 48px);
  box-shadow: var(--shadow-lg); background: var(--background);
  position: fixed; inset: 0; margin: auto;
}
.portfolio-modal::backdrop { background: rgba(11, 31, 75, 0.55); backdrop-filter: blur(2px); }
.portfolio-modal[open] { animation: modal-in 0.22s var(--ease); }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.modal-inner { position: relative; padding: 40px; }
.modal-close {
  position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--background); color: var(--foreground);
  font-size: 1.3rem; line-height: 1; display: grid; place-items: center; cursor: pointer;
}
.modal-close:hover { background: var(--surface); }
.modal-inner h3 { font-size: 1.6rem; margin: 14px 0 12px; }
.modal-inner > p, .portfolio-project-body p { color: var(--muted-foreground); margin-bottom: 22px; }
.portfolio-project { display: flex; gap: 22px; align-items: flex-start; }
.app-icon-badge {
  flex-shrink: 0; width: 72px; height: 72px; object-fit: contain;
}
.portfolio-project-body h3 { margin-top: 10px; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.process-step { border-top: 3px solid var(--primary); padding-top: 22px; }
.process-num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); color: #fff; font-family: var(--font-heading); font-weight: 800;
  font-size: 0.95rem; margin-bottom: 16px;
}
.process-step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.process-step p { color: var(--muted-foreground); font-size: 0.98rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-copy { display: flex; flex-direction: column; gap: 18px; }
.about-copy h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.about-copy .lead { font-size: 1.1rem; color: var(--foreground); }
.about-copy p.body { color: var(--muted-foreground); }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 8px; }
.about-stats div { text-align: left; }
.about-stats dd { font-family: var(--font-heading); font-size: 1.9rem; font-weight: 800; color: var(--primary); }
.about-stats dt { font-size: 0.86rem; color: var(--muted-foreground); margin-top: 4px; }

.quote-card {
  background: var(--primary); color: #fff; border-radius: var(--radius-xl); padding: 34px;
  font-family: var(--font-heading); font-size: 1.3rem; font-weight: 800; line-height: 1.35;
}
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.value-card { border-radius: var(--radius); padding: 18px; }
.value-card h4 { font-size: 1rem; margin-bottom: 6px; }
.value-card p { font-size: 0.9rem; color: var(--muted-foreground); }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial-card {
  border: 1px dashed var(--border-strong); background: var(--surface);
  display: flex; flex-direction: column; gap: 16px; position: relative;
}
.testimonial-card .pill-todo { position: absolute; top: 22px; right: 22px; }
.stars { display: flex; gap: 4px; }
.stars svg { width: 16px; height: 16px; color: var(--border-strong); }
.testimonial-card blockquote { color: var(--muted-foreground); font-style: italic; flex-grow: 1; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
/* Client logo beside the attribution. The PNG is masked to the badge's own
   outline with a transparent surround, so it needs no crop or border-radius. */
.testimonial-logo { height: 56px; width: auto; flex-shrink: 0; }
.testimonial-person strong { display: block; font-size: 0.94rem; }
.testimonial-person span { display: block; font-size: 0.8rem; color: var(--muted-foreground); }

.testimonial-feature {
  max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px;
  padding: 40px;
}
.testimonial-feature .stars svg { color: var(--gold); }
.testimonial-feature blockquote { font-size: 1.15rem; line-height: 1.6; color: var(--foreground); font-style: italic; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-copy h3 { font-size: 1.5rem; margin-bottom: 12px; }
.contact-copy > p { color: var(--muted-foreground); margin-bottom: 28px; }
.contact-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.contact-info-card { display: flex; gap: 14px; align-items: flex-start; padding: 20px; }
.contact-info-card .icon-box { margin-bottom: 0; width: 40px; height: 40px; flex-shrink: 0; }
.contact-info-card .icon-box svg { width: 20px; height: 20px; }
.contact-info-card h4 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-info-card .value { font-size: 0.92rem; margin-bottom: 2px; }
.contact-info-card .hint { font-size: 0.78rem; color: var(--muted-foreground); }

.contact-form-card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.contact-form-card > p { color: var(--muted-foreground); margin-bottom: 24px; font-size: 0.95rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.86rem; font-weight: 500; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius);
  font: inherit; font-size: 0.98rem; color: var(--foreground); background: var(--surface);
  transition: border-color 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); }
.field textarea { resize: vertical; }
.form-note { margin-top: 4px; font-size: 0.82rem; color: var(--muted-foreground); text-align: center; }
.form-note a { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 72px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.footer-brand p { color: var(--muted-foreground); max-width: 320px; font-size: 0.96rem; margin: 16px 0; }
.footer-micro { display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; color: var(--muted-foreground); }
.footer-col h4 { font-size: 0.95rem; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--muted-foreground); font-size: 0.94rem; }
.footer-col a:hover { color: var(--foreground); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 26px; font-size: 0.85rem; color: var(--muted-foreground); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; margin-inline: auto; margin-top: 40px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-toggle { display: flex; }
  .nav-menu {
    /* sits directly under the fixed header, including its 1px bottom border */
    position: fixed; top: calc(var(--header-h) + 1px); right: 0; left: 0; bottom: 0; z-index: 90;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--background); border-top: 1px solid var(--border); padding: 12px 24px 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: 0.25s var(--ease);
    overflow-y: auto;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-menu li:not(.nav-actions) { border-bottom: 1px solid var(--border); }
  .nav-menu li:not(.nav-actions) a { display: block; padding: 16px 4px; }
  .nav-actions { flex-direction: column; align-items: stretch; margin: 16px 0 0; }
  .nav-actions .btn { width: 100%; }

  .hero { padding: 140px 0 64px; }
  .section { padding: 64px 0; }
  .process-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .modal-inner { padding: 28px; }
  .portfolio-project { flex-direction: column; }
}

/* ---------- Motion / a11y ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* FAQ (kept from previous build, restyled to new tokens) */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--border-strong); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 40px 24px 0; font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 20px; font-size: 1.4rem; color: var(--primary); font-weight: 300; transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted-foreground); padding: 0 40px 26px 0; max-width: 68ch; }
