/* ==========================================================================
   Strong2gether: styles
   Mobile-first. Breakpoints: 640px (tablet), 900px (desktop nav / 3-col grids), 1100px.
   ========================================================================== */

:root {
  /* Brand (from the logo) */
  --blue: #1e90e6;
  --blue-600: #1175c4;      /* text-safe blue on white (>= 4.5:1) */
  --orange: #f5a21b;
  --red: #e3141c;

  /* Neutrals */
  --navy-900: #071327;
  --navy-800: #0b1b33;
  --navy-700: #13294b;
  --ink: #0f1f3a;
  --muted: #51607a;
  --line: #e3e9f2;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;

  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1180px;
  --gutter: 1.25rem;
  --header-h: 68px;
  --radius: 20px;
  --shadow-sm: 0 1px 2px rgba(11, 27, 51, .06), 0 4px 14px rgba(11, 27, 51, .05);
  --shadow-md: 0 2px 4px rgba(11, 27, 51, .05), 0 18px 40px -12px rgba(11, 27, 51, .18);
  --hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy-800); color: #fff; padding: .6rem 1rem; border-radius: 10px;
  transition: top .15s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Type helpers ---------- */

.eyebrow {
  font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: .9rem;
}
.lead { font-size: clamp(1.05rem, .5vw + .95rem, 1.2rem); color: var(--muted); max-width: 60ch; }

h1, h2, h3 { font-weight: 750; letter-spacing: -.02em; line-height: 1.12; color: var(--navy-800); text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 2.6vw + .9rem, 2.75rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; letter-spacing: -.01em; line-height: 1.25; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 650; font-size: 1rem; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 10px 24px -10px rgba(17, 117, 196, .7); }
.btn-primary:hover { background: #0e68b0; box-shadow: 0 14px 28px -10px rgba(17, 117, 196, .8); }
.btn-ghost { border-color: var(--line); color: var(--navy-800); background: #fff; }
.btn-ghost:hover { border-color: var(--navy-800); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled, .site-header.menu-open { border-bottom-color: var(--line); box-shadow: 0 6px 24px -14px rgba(11, 27, 51, .25); }
.site-header.menu-open { background: #fff; }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand-mark { flex: none; width: 31px; height: 44px; }
.brand-name { font-size: 1.15rem; font-weight: 800; letter-spacing: -.03em; color: var(--navy-800); }
@media (min-width: 400px) { .brand-name { font-size: 1.3rem; } }
.brand-two { color: var(--blue-600); }

.header-actions { display: flex; align-items: center; gap: .5rem; flex: none; }
@media (min-width: 400px) { .header-actions { gap: .75rem; } }

/* Language switch (segmented pill) */
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); }
.lang-switch a {
  padding: .3rem .7rem; border-radius: 999px; font-size: .8125rem; font-weight: 700; line-height: 1.6; letter-spacing: .04em; color: var(--muted);
  transition: background-color .15s, color .15s;
}
.lang-switch a:hover { color: var(--navy-800); }
.lang-switch a[aria-current="page"] { background: var(--navy-800); color: #fff; }

/* Mobile menu button */
.nav-toggle {
  position: relative; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--navy-800);
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Very small phones: tighten the header so brand + language toggle + menu button fit */
@media (max-width: 374px) {
  :root { --gutter: 1rem; }
  .header-inner { gap: .5rem; }
  .brand { gap: .45rem; }
  .brand-mark { width: 28px; height: 40px; }
  .brand-name { font-size: .95rem; }
  .header-actions { gap: .4rem; }
  .lang-switch a { padding: .3rem .5rem; }
}

/* Nav: dropdown panel on mobile */
.nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(11, 27, 51, .3);
  padding: .5rem var(--gutter) 1.25rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav.is-open { opacity: 1; visibility: visible; transform: none; }
.nav-list a { display: block; padding: .95rem .25rem; font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.nav-list li:last-child a { border-bottom: 0; }
.nav-list .nav-cta {
  margin-top: .75rem; text-align: center; border-radius: 999px; background: var(--blue-600); color: #fff; border-bottom: 0;
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav {
    position: static; background: none; border: 0; box-shadow: none; padding: 0;
    opacity: 1; visibility: visible; transform: none; margin-left: auto;
  }
  .nav-list { display: flex; align-items: center; gap: .25rem; }
  .nav-list a { padding: .55rem .9rem; border: 0; border-radius: 999px; font-size: .95rem; white-space: nowrap; color: var(--ink); transition: background-color .15s, color .15s; }
  .nav-list a:hover { background: var(--bg-soft); color: var(--blue-600); }
  .nav-list .nav-cta { margin: 0 0 0 .5rem; padding: .55rem 1.15rem; }
  .nav-list .nav-cta:hover { background: #0e68b0; color: #fff; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative; overflow: hidden;
  padding: 2.5rem 0 3.5rem;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(30, 144, 230, .14), transparent 60%),
    radial-gradient(40rem 28rem at -10% 100%, rgba(245, 162, 27, .13), transparent 60%),
    linear-gradient(#fff, var(--bg-soft));
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }

.hero h1 { font-size: clamp(2.3rem, 5.6vw + .4rem, 3.5rem); letter-spacing: -.035em; line-height: 1.06; margin-bottom: 1.25rem; }
.hero h1 .accent {
  display: block; color: var(--blue-600);
  background: linear-gradient(95deg, #0f62a8 0%, #1e90e6 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .lead { margin-bottom: 2rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2rem; }
.hero-actions .btn { flex: 1 1 auto; }

.hero-areas { display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-areas a {
  display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .95rem .45rem .75rem;
  border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line);
  font-size: .875rem; font-weight: 600; color: var(--navy-800);
  transition: border-color .15s, background-color .15s;
}
.hero-areas a:hover { border-color: var(--navy-800); background: #fff; }
.pill-hex { flex: none; width: 12px; height: 14px; clip-path: var(--hex); }
.pill-hex.blue { background: var(--blue); }
.pill-hex.orange { background: var(--orange); }

.hero-visual { display: flex; justify-content: center; }
.hero-art { width: min(100%, 290px); height: auto; overflow: visible; }

.art-hex, .art-dot { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .art-hex.h1 { animation: float 7s ease-in-out infinite; }
  .art-hex.h2 { animation: float 7s ease-in-out -2.3s infinite; }
  .art-hex.h3 { animation: float 7s ease-in-out -4.6s infinite; }
  .art-hex.h4 { animation: float 7s ease-in-out -1.2s infinite; }
  .art-dot.d1 { animation: float 5s ease-in-out -1s infinite; }
  .art-dot.d2 { animation: float 6s ease-in-out -3s infinite; }
  .art-dot.d3 { animation: float 8s ease-in-out -2s infinite; }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

@media (min-width: 640px) {
  .hero { padding: 3.5rem 0 4.5rem; }
  .hero-actions .btn { flex: 0 0 auto; }
}
@media (min-width: 900px) {
  .hero { padding: 5rem 0 6rem; }
  .hero-grid { grid-template-columns: 1.2fr .8fr; gap: 3rem; }
  .hero-art { width: min(100%, 390px); }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: 4.5rem 0; }
.section-tight { padding-top: 0; padding-bottom: 3.5rem; }
.section-head { margin-bottom: 2.75rem; max-width: 46rem; }
.section-head h2 { margin-bottom: .9rem; }

@media (min-width: 900px) { .section { padding: 6.5rem 0; } .section-tight { padding-top: 0; padding-bottom: 5rem; } }

/* Scroll reveal (only when JS is on; content is visible without JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .values .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3), .values .reveal:nth-child(3) { transition-delay: .16s; }
.values .reveal:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Hexagon badge (icon) */
.hex-badge {
  flex: none; width: 64px; height: 72px; display: grid; place-items: center; color: #fff;
  clip-path: var(--hex);
}
.hex-badge.blue, .hex-num.blue, .contact-icon.blue { background: linear-gradient(145deg, #3da9f5, #1272c2); }
.hex-badge.orange, .hex-num.orange, .contact-icon.orange { background: linear-gradient(145deg, #ffbe55, #f08a00); }
.hex-badge.red, .hex-num.red { background: linear-gradient(145deg, #f5444a, #c30e16); }

/* ---------- Cards (software development + project management) ---------- */

.cards { display: grid; gap: 1.25rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 1.25rem;
}
.card h3 { margin-bottom: .6rem; font-size: 1.3rem; }
.card p { color: var(--muted); }

.tag {
  display: inline-block; margin-bottom: .8rem; padding: .22rem .7rem; border-radius: 999px;
  background: rgba(30, 144, 230, .12); color: var(--blue-600);
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}

.ticks { display: grid; gap: .55rem; align-content: start; }
.ticks li { position: relative; padding-left: 1.6rem; font-size: .95rem; font-weight: 500; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 16px;
  background: var(--blue); clip-path: var(--hex);
}
.cards .card:nth-child(2) .ticks li::before { background: var(--orange); }
.cards .card:nth-child(3) .ticks li::before { background: var(--red); }

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .card { padding: 2rem; }
  .card-feature { grid-column: 1 / -1; }
  .card-feature .ticks { grid-template-columns: 1fr 1fr; gap: .7rem 1.5rem; }
}
@media (min-width: 900px) {
  .card { transition: transform .25s ease, box-shadow .25s ease; }
  .card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
  .card-feature {
    display: grid; grid-template-columns: auto 1.15fr 1fr; gap: 1.5rem 2.5rem; align-items: start; padding: 2.5rem;
  }
  .card-feature .ticks { grid-template-columns: 1fr; gap: .8rem; padding-top: .35rem; }
  .card-feature .refs { grid-column: 1 / -1; }
}

/* ---------- Project management (dark) ---------- */

.section-dark { background: var(--navy-800); color: #dbe5f5; position: relative; overflow: hidden; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: #7cc0f5; }
.section-dark .lead { color: #b8c7de; }
.section-dark :focus-visible { outline-color: #7cc0f5; }

.projects { background: radial-gradient(50rem 30rem at 100% 0, rgba(30, 144, 230, .18), transparent 60%), var(--navy-800); }
.proj-wrap { position: relative; }

.radar { position: absolute; width: 520px; height: 520px; right: -200px; top: -150px; opacity: .5; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .radar-sweep { transform-origin: 300px 300px; animation: sweep 9s linear infinite; }
}
@keyframes sweep { to { transform: rotate(360deg); } }
@media (min-width: 900px) { .radar { width: 680px; height: 680px; right: -180px; top: -200px; opacity: .9; } }

.proj-cards .card {
  background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); box-shadow: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.proj-cards .card p { color: #b8c7de; }
.proj-cards .tag { background: rgba(124, 192, 245, .16); color: #9ad0f8; }
.proj-cards .ticks li { color: #e3ebf8; }
@media (min-width: 900px) { .proj-cards .card:hover { box-shadow: 0 26px 44px -22px rgba(0, 0, 0, .65); } }

/* Client references: kept deliberately low-key */
.refs {
  display: flex; flex-wrap: wrap; gap: .2rem .5rem; align-items: baseline;
  padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem;
}
.proj-cards .card .refs { color: #8fa3c2; }
.refs > span:not(.ref) { font-weight: 600; }
@media (min-width: 640px) { .refs .ref + .ref::before { content: "\00b7"; margin-right: .5rem; } }

/* Delivery method */
.method { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.method .method-title { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: #7cc0f5; font-weight: 700; margin-bottom: 1.5rem; }

.steps { display: grid; gap: 1.25rem; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; }
.steps h4 { margin: 0 0 .15rem; font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; color: #fff; }
.steps p { color: #b8c7de; font-size: .95rem; }
.step-num {
  flex: none; width: 40px; height: 44px; display: grid; place-items: center;
  clip-path: var(--hex); background: var(--blue); color: var(--navy-800); font-weight: 800;
}
.steps li:nth-child(2) .step-num { background: var(--orange); }
.steps li:nth-child(3) .step-num { background: #ff5b60; }
.steps li:nth-child(4) .step-num { background: var(--blue); }

@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 2rem; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Why ---------- */

.values { display: grid; gap: 2rem; }
.value h3 { margin: 1.1rem 0 .5rem; }
.value p { color: var(--muted); }
.hex-num {
  width: 46px; height: 52px; display: grid; place-items: center;
  clip-path: var(--hex); color: #fff; font-weight: 800; font-size: 1.15rem;
}
@media (min-width: 640px) { .values { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; } }
@media (min-width: 1100px) { .values { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Contact ---------- */

.contact-panel {
  position: relative; overflow: hidden;
  display: grid; gap: 2rem; align-items: center;
  padding: 2rem 1.5rem; border-radius: 28px; color: #fff;
  background: linear-gradient(135deg, #0a4d93 0%, #1274c4 100%);
}
.contact-panel::before, .contact-panel::after {
  content: ""; position: absolute; clip-path: var(--hex); pointer-events: none;
}
.contact-panel::before { width: 220px; height: 250px; right: -60px; top: -80px; background: rgba(255, 255, 255, .08); }
.contact-panel::after { width: 150px; height: 170px; right: 90px; bottom: -90px; background: rgba(255, 255, 255, .06); }
.contact-panel > * { position: relative; z-index: 1; }

.contact-panel h2 { color: #fff; }
.contact-panel .eyebrow { color: #cfe8ff; }
.contact-panel .lead { color: #e2f0ff; }
.contact-panel :focus-visible { outline-color: #fff; }

.contact-cards { display: grid; gap: 1rem; }
.contact-card {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; color: var(--navy-800); padding: 1.1rem 1.25rem; border-radius: 18px;
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .5);
  transition: transform .18s ease, box-shadow .18s ease;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: 0 22px 36px -18px rgba(0, 0, 0, .55); }
.contact-icon { flex: none; width: 44px; height: 50px; display: grid; place-items: center; color: #fff; clip-path: var(--hex); }
.contact-text { display: grid; min-width: 0; }
.contact-label { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-value { font-size: clamp(.92rem, 4.2vw, 1.1rem); font-weight: 700; overflow-wrap: anywhere; }

@media (max-width: 639px) {
  .contact-panel { padding: 2rem 1.25rem; }
  .contact-card { padding: 1rem; gap: .85rem; }
}
@media (min-width: 640px) { .contact-panel { padding: 3rem 2.5rem; } .contact-value { font-size: 1.1rem; } }
@media (min-width: 900px) {
  .contact-panel { grid-template-columns: 1fr 1fr; gap: 3rem; padding: 4rem 4rem; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--navy-900); color: #9fb2cf; padding: 3.5rem 0 2rem; }
.site-footer .brand { gap: .85rem; }
.site-footer .brand-mark { width: 36px; height: 52px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-two { color: #5db4f5; }
.site-footer :focus-visible { outline-color: #7cc0f5; }

.footer-inner { display: grid; gap: 2rem; }
.footer-brand p { margin-top: 1rem; max-width: 32ch; }
.footer-links { display: grid; gap: .5rem; }
.footer-links a { color: #dbe5f5; transition: color .15s; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.footer-meta { display: grid; gap: 1.25rem; justify-items: start; }
.copyright { font-size: .875rem; }

.lang-switch-dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.lang-switch-dark a { color: #b8c7de; }
.lang-switch-dark a:hover { color: #fff; }
.lang-switch-dark a[aria-current="page"] { background: #fff; color: var(--navy-800); }

@media (min-width: 900px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
  .footer-meta { justify-items: end; text-align: right; }
}
