/* Trabuco Technology Partners — navy sampled from the brand mark (assets/trabuco-logo.png) */
:root {
  --navy: #283354;
  --navy-2: #1F2843;
  --navy-soft: #3B4A75;
  --sky: #9DB8E8;
  --ink: #1E2433;
  --muted: #5A6377;
  --paper: #F5F7FB;
  --line: #E1E6F0;
  --white: #FFFFFF;
  --radius: 12px;
  --font: "Comfortaa", "Nunito", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Work Sans", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-soft); }
h1, h2, h3 { font-family: var(--font); color: var(--navy); line-height: 1.2; letter-spacing: -0.01em; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 10; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand img { height: 40px; width: auto; }
nav { display: flex; gap: 24px; align-items: center; }
nav a { color: #E8ECF6; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
nav a:hover, nav a[aria-current="page"] { color: var(--white); text-decoration: underline; text-underline-offset: 6px; }

/* Hero */
.hero { background: var(--navy); color: var(--white); text-align: center; padding: 64px 0 96px; position: relative; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; background: var(--white); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 6vw, 3.6rem); }
.hero p { color: #D7DEEF; font-size: clamp(1.1rem, 2.5vw, 1.35rem); margin-top: 12px; }
.page-hero { padding: 48px 0 80px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 2.8rem); }

/* Intro */
.intro { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding-top: 24px; padding-bottom: 72px; }
.intro img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.intro h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: 14px; }
.intro p { color: var(--muted); font-size: 1.08rem; }

.btn { display: inline-block; margin-top: 22px; padding: 12px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; background: var(--navy); color: var(--white); border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.btn:hover { background: var(--navy-soft); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: #E8ECF6; }

/* We deliver / where we apply it */
.deliver { background: var(--navy); color: var(--white); padding: 72px 0; }
.deliver-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: center; text-align: center; }
.deliver h2 { color: var(--white); font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin-bottom: 16px; }
.deliver ul { list-style: none; display: grid; gap: 8px; color: #D7DEEF; font-size: 1.08rem; }
.deliver .arrow { font-size: 2.4rem; color: var(--sky); }

/* Clients */
.clients { padding: 72px 0; text-align: center; }
.clients h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin-bottom: 32px; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px 32px; align-items: center; }
.logo-grid img { max-height: 64px; width: auto; margin: 0 auto; object-fit: contain; filter: grayscale(100%); opacity: 0.8; transition: filter .2s, opacity .2s; }
.logo-grid img:hover { filter: none; opacity: 1; }

/* CTA bands */
.cta { background: var(--paper); padding: 64px 0; text-align: center; border-top: 1px solid var(--line); }
.cta h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); }
.cta p { color: var(--muted); margin-top: 8px; }
.bar { padding: 48px 0; text-align: center; }
.bar p { color: var(--muted); }
.bar a { font-family: var(--font); font-weight: 700; font-size: 1.4rem; color: var(--navy); text-decoration: none; letter-spacing: 0.04em; }
.bar a:hover { text-decoration: underline; }

/* Blog */
.post-list { display: grid; gap: 28px; padding-top: 8px; padding-bottom: 72px; }
.post-card { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.post-card:hover { border-color: var(--navy-soft); }
.post-card img { border-radius: 8px; aspect-ratio: 1; object-fit: cover; }
.post-card h2 { font-size: 1.5rem; margin-bottom: 6px; }
.meta { color: var(--muted); font-size: 0.92rem; }
.article { padding-top: 8px; padding-bottom: 72px; }
.article .meta { margin-bottom: 28px; }
.article h2 { font-size: 1.45rem; margin: 36px 0 12px; }
.article p { margin-bottom: 16px; font-size: 1.07rem; color: #2E3547; }
.article .back { display: inline-block; margin-top: 24px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; padding-top: 8px; padding-bottom: 72px; align-items: start; }
.contact-side { display: grid; gap: 24px; }
.contact-photo { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.details { display: grid; gap: 14px; font-size: 1.05rem; }
.details dt { font-weight: 700; color: var(--navy); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.details dd { margin-bottom: 10px; }
.form { display: grid; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.form input, .form textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #CCD3E2; border-radius: 8px; background: var(--white); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--sky); border-color: var(--navy-soft); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; }
.form-status.ok { color: #2F6B3A; }
.form-status.err { color: #A33A2A; }

/* Design credits */
.credits { padding-top: 8px; padding-bottom: 72px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
.credits h2 { font-size: 1.4rem; margin: 24px 0 10px; }
.credits p, .credits li { color: #2E3547; margin-bottom: 10px; }
.credits ul { padding-left: 20px; }
.credits .links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

/* Footer */
.site-footer { background: var(--navy-2); color: #C9D1E6; padding: 40px 0; font-size: 0.95rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-inner a { color: #E8ECF6; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-inner img { height: 30px; width: auto; }

.notfound { min-height: 50vh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }

@media (max-width: 780px) {
  nav { gap: 14px; }
  nav a.hide-sm { display: none; }
  .brand img { height: 32px; }
  .intro, .contact, .credits { grid-template-columns: 1fr; gap: 28px; }
  .deliver-grid { grid-template-columns: 1fr; }
  .deliver .arrow { transform: none; }
  .post-card { grid-template-columns: 1fr; }
}
@media (min-width: 781px) { .deliver .arrow { transform: rotate(-90deg); } }
