/* Automated CAD Concepts — clean corporate theme */
@import url('https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,400..700;1,400..700&display=swap');

:root {
  --brand: #14472f;        /* logo green */
  --brand-dark: #0e3422;
  --brand-tint: #eaf2ec;
  --accent: #d6dd3f;       /* logo chartreuse, used sparingly */
  --ink: #17231d;
  --text: #43504a;
  --muted: #66736c;
  --line: #e2e6e3;
  --grey: #f5f7f6;
  --white: #fff;

  --display: 'Public Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font: 'Public Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 10px;
  --shadow: 0 1px 2px rgba(23, 35, 29, .05), 0 8px 24px -12px rgba(23, 35, 29, .16);
  --shadow-lg: 0 2px 4px rgba(23, 35, 29, .05), 0 24px 48px -20px rgba(23, 35, 29, .24);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 164px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font: 400 17px/1.7 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--ink); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.4vw, 64px); letter-spacing: -.03em; }
h2 { font-size: clamp(30px, 3.6vw, 42px); }
h3 { font-size: 20px; letter-spacing: -.01em; line-height: 1.3; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; z-index: 100; top: -60px; left: 16px; background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 6px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.section { padding-block: clamp(72px, 9vw, 112px); }
.section.grey { background: var(--grey); }
.center { text-align: center; }
.intro-block { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 56px); text-align: center; }
.intro-block p { margin-top: 16px; font-size: 19px; color: var(--muted); }
.kicker { display: block; margin-bottom: 12px; font-size: 15px; font-weight: 600; color: var(--brand); }

/* Buttons & links */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 8px; border: 1.5px solid var(--brand); background: var(--brand); color: #fff; font-weight: 600; font-size: 16px; line-height: 1.2; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s; }
.button:hover { background: var(--brand-dark); border-color: var(--brand-dark); box-shadow: 0 6px 16px -8px rgba(14, 52, 34, .6); }
.button.secondary { background: #fff; color: var(--brand); border-color: #c9d3cd; }
.button.secondary:hover { border-color: var(--brand); background: var(--brand-tint); box-shadow: none; }
.button.white { background: #fff; color: var(--brand); border-color: #fff; }
.button.white:hover { background: var(--brand-tint); border-color: var(--brand-tint); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand); }
.link span { transition: transform .2s; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.link:hover span { transform: translateX(3px); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.header.scrolled { box-shadow: 0 4px 20px -10px rgba(23, 35, 29, .25); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 148px; }
/* Large logo on the left, all links on the right */
.brand { flex: none; }
.brand img { height: 128px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-left, .nav-right { display: flex; align-items: center; gap: 4px; }
.nav a { white-space: nowrap; padding: 8px 14px; font-size: 16px; font-weight: 500; color: var(--ink); border-radius: 6px; transition: color .2s, background-color .2s; }
.nav a:hover { background: var(--grey); color: var(--brand); }
.nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav a.button[aria-current="page"] { color: #fff; background: var(--brand-dark); }
.nav .button { margin-left: 10px; padding: 11px 20px; color: #fff; }
.nav .button:hover { background: var(--brand-dark); color: #fff; }
.menu { display: none; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--ink); cursor: pointer; }
.menu-icon { position: relative; width: 18px; height: 12px; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, top .2s; }
.menu-icon::before { top: 1px; }
.menu-icon::after { top: 9px; }
.menu[aria-expanded="true"] .menu-icon::before { top: 5px; transform: rotate(45deg); }
.menu[aria-expanded="true"] .menu-icon::after { top: 5px; transform: rotate(-45deg); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--grey) 0%, #fff 100%); padding-block: clamp(72px, 10vw, 128px) clamp(64px, 8vw, 96px); text-align: center; position: relative; isolation: isolate; }
/* Washed-out circuit board fixed behind the whole home page. It stays still in the
   window while the content scrolls over it; sections are see-through so it shows everywhere. */
.has-board::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url("assets/pcb-photo.jpg") center 40% / cover no-repeat; opacity: .2; filter: grayscale(.35) contrast(1.1); }
.has-board .hero { background: transparent; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 55% at 50% 40%, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .4) 70%, rgba(255, 255, 255, 0) 100%); }
.has-board .intro-block, .has-board .about-copy, .has-board .approach-foot, .has-board .trust { text-shadow: 0 0 2px #fff, 0 0 10px #fff, 0 0 18px #fff; }
.has-board .intro-block p, .has-board .about-copy p { color: var(--text); }
.has-board .section.grey { background: rgba(245, 247, 246, .72); }
.has-board .platforms { background: rgba(245, 247, 246, .92); }
.hero h1 { max-width: 15ch; margin-inline: auto; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lede { max-width: 620px; margin: 24px auto 0; font-size: clamp(18px, 1.8vw, 21px); color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.trust { margin-top: clamp(56px, 7vw, 80px); padding-top: 32px; border-top: 1px solid var(--line); }
.trust p { font-size: 15px; color: var(--muted); }
.trust ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; margin-top: 14px; }
.trust li { font-size: 18px; font-weight: 600; color: var(--ink); }

/* Service cards */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service { display: flex; flex-direction: column; padding: 36px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: box-shadow .25s, transform .25s, border-color .25s; }
.service:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: #d3dad5; }
.icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); }
.icon svg { width: 26px; height: 26px; }
.service h3 { margin-bottom: 10px; }
.service > p { color: var(--muted); }
.checks { display: grid; gap: 8px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.checks li { position: relative; padding-left: 28px; font-size: 15.5px; color: var(--text); }
.checks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314472f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }

.platforms { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; margin-top: 40px; padding: 28px 36px; background: var(--grey); border-radius: var(--radius); }
.platforms > p { font-weight: 600; color: var(--ink); }
.platforms ul { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.platforms li { font-size: 19px; font-weight: 700; color: var(--ink); }
.platforms li span { font-weight: 400; color: var(--muted); font-size: 16px; margin-left: 6px; }

/* Approach */
.approach-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.approach-item { padding: 32px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.approach-item .step { display: inline-block; margin-bottom: 18px; padding: 4px 12px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 600; }
.approach-item h3 { margin-bottom: 10px; }
.approach-item p { color: var(--muted); }
.approach-foot { margin-top: 40px; text-align: center; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.about-photo { position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow-lg); }
.about-badge { position: absolute; left: 24px; bottom: -28px; display: flex; align-items: center; gap: 14px; padding: 16px 22px; background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); }
.about-badge strong { font-size: 30px; line-height: 1; color: var(--brand); letter-spacing: -.02em; }
.about-badge span { font-size: 14px; line-height: 1.35; color: var(--muted); }
.about-copy h2 { margin-bottom: 20px; }
.about-copy .large { font-size: 20px; color: var(--ink); margin-bottom: 16px; }
.about-copy p + p { margin-top: 14px; }
.values { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 32px; }
.values li { padding: 8px 16px; border-radius: 999px; background: var(--brand-tint); color: var(--brand); font-weight: 600; font-size: 15px; }

/* CTA band */
.cta { background: var(--brand); color: #dfe9e2; text-align: center; padding-block: clamp(64px, 8vw, 96px); }
.cta h2 { color: #fff; }
.cta p { max-width: 560px; margin: 16px auto 0; font-size: 19px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; margin-top: 32px; }
.cta-actions a:not(.button) { color: #fff; font-weight: 600; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.cta-actions a:not(.button):hover { color: var(--accent); }

/* Footer */
.footer { background: var(--grey); border-top: 1px solid var(--line); font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 64px 48px; }
.footer-brand img { height: 60px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 30ch; color: var(--muted); }
.footer h4 { margin-bottom: 14px; font-size: 15px; font-weight: 700; color: var(--ink); }
.footer li + li { margin-top: 8px; }
.footer a { color: var(--text); transition: color .2s; }
.footer a:hover { color: var(--brand); }
.footer address { font-style: normal; color: var(--text); line-height: 1.7; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* Inner page header */
.page-head { background: var(--grey); border-bottom: 1px solid var(--line); padding-block: clamp(56px, 7vw, 88px); text-align: center; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; margin-bottom: 18px; font-size: 14.5px; color: var(--muted); }
.breadcrumb a { color: var(--brand); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.page-head h1 { font-size: clamp(36px, 4.6vw, 54px); }
.page-head p { max-width: 640px; margin: 18px auto 0; font-size: 19px; color: var(--muted); }

/* Tools */
.tools-note { display: flex; gap: 20px; align-items: flex-start; max-width: 880px; margin: 0 auto 48px; padding: 24px 28px; background: var(--brand-tint); border-radius: var(--radius); }
.tools-note .icon { margin: 0; flex: none; background: #fff; }
.tools-note h2 { font-size: 19px; margin-bottom: 6px; }
.tools-note p { font-size: 16px; }
.tool-table { max-width: 880px; margin-inline: auto; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.tool-row { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 24px; padding: 28px 32px; }
.tool-row + .tool-row { border-top: 1px solid var(--line); }
.tool-row h2 { font-size: 19px; letter-spacing: -.01em; }
.tool-row h2 + p { margin-top: 4px; font-size: 15px; color: var(--muted); }
.tool-row ul { display: grid; gap: 10px; }
.tool-row li { color: var(--ink); font-weight: 500; }
.tool-row li span { display: block; font-weight: 400; font-size: 15px; color: var(--muted); }
.tool-ask { max-width: 880px; margin: 48px auto 0; text-align: center; }
.tool-ask h2 { font-size: clamp(26px, 3vw, 32px); margin-bottom: 12px; }
.tool-ask p { margin-bottom: 20px; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 56px); align-items: start; }
.contact-card { padding: 36px; background: var(--grey); border-radius: var(--radius); }
.contact-card h2 { font-size: 26px; margin-bottom: 24px; }
.contact-list { display: grid; gap: 22px; }
.contact-list > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
.contact-list .icon { width: 44px; height: 44px; margin: 0; background: #fff; border-radius: 10px; }
.contact-list .icon svg { width: 20px; height: 20px; }
.contact-list dt { font-size: 14px; font-weight: 600; color: var(--muted); }
.contact-list dd { font-size: 17.5px; color: var(--ink); font-weight: 500; }
.contact-list dd a:hover { color: var(--brand); text-decoration: underline; }
.contact-list address { font-style: normal; }
.tip { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.tip h3 { font-size: 17px; margin-bottom: 6px; }
.tip p { font-size: 15.5px; color: var(--muted); }

.form-card { padding: clamp(28px, 4vw, 44px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.form-card h2 { font-size: 28px; margin-bottom: 10px; }
.form-intro { color: var(--muted); margin-bottom: 28px; font-size: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.field label { font-weight: 600; font-size: 15px; color: var(--ink); }
.field label span { font-weight: 400; color: var(--muted); font-size: 14px; }
.field input, .field textarea { width: 100%; padding: 13px 15px; border: 1px solid #cfd6d2; border-radius: 8px; background: #fff; font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #8b958f; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(20, 71, 47, .12); }
.inquiry-status:empty { display: none; }
.inquiry-status:not(:empty) { margin-top: 18px; padding: 14px 16px; background: var(--brand-tint); border-radius: 8px; font-size: 15px; color: var(--brand); }
.form-fallback { margin-top: 18px; font-size: 15px; color: var(--muted); }
.form-fallback a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Responsive */
@media (max-width: 960px) {
  .header .wrap { height: 112px; }
  .brand img { height: 94px; }
  .menu { display: inline-flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 8px var(--gutter) 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(23, 35, 29, .3); }
  .nav.open { display: block; }
  .nav-left, .nav-right { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 15px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 17px; }
  .nav a:hover { background: none; }
  .nav .button { margin: 18px 0 0; padding: 15px; border-radius: 8px; border-bottom: 1.5px solid var(--brand); }
}
@media (max-width: 960px) {
  .approach-grid { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; }
  .about, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .about-photo { max-width: 640px; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .header .wrap { height: 92px; }
  .brand img { height: 72px; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .service { padding: 28px; }
  .platforms { padding: 24px; }
  .platforms ul { flex-direction: column; gap: 6px; }
  .tool-row { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 24px; }
  .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .contact-card { padding: 28px; }
  .hero-actions .button { flex: 1 1 100%; }
  .about-badge { left: 16px; }
  .tools-note { flex-direction: column; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 440px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .trust ul { gap: 8px 24px; }
}

/* Bold display text: Public Sans italic */
h1, h2, h3, h4,
.kicker, .trust li, .platforms li, .platforms > p,
.about-badge strong, .values li, .approach-item .step, .footer-name {
  font-family: var(--display);
  font-style: italic;
}
h1, h2 { letter-spacing: -.025em; }
.hero h1 em { font-style: italic; }

@media (max-width: 960px) { html { scroll-padding-top: 128px; } }
@media (max-width: 700px) { html { scroll-padding-top: 108px; } }
