/* Southcore Technologies – site styles
   Brand colours: navy #0B1F3A, teal #00A8B5, slate #5B6B7F */
:root {
  --navy: #0B1F3A;
  --navy-2: #12294A;
  --navy-3: #081629;
  --line-dark: #3A4E6B;
  --teal: #00A8B5;
  --teal-text: #00757F;
  --teal-light: #1FBAC6;
  --slate: #5B6B7F;
  --cream: #F3F6F8;
  --white: #FFFFFF;
  --ink: #1F2933;
  --muted: #5B6B7F;
  --muted-light: #C9D1DC;
  --border: #DDE3EA;
  --radius: 20px;
  --font-body: "Ubuntu", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Ubuntu", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--cream); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); }
a:hover { color: var(--teal-text); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0; color: var(--navy); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 10px 16px; z-index: 10; border-radius: 8px; }

/* Header */
.site-header { background: var(--navy); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 30px; color: var(--white); letter-spacing: -0.02em; line-height: 1; }
.brand-name span, .accent { color: var(--teal); }
.brand-sub { font-family: var(--font-head); font-weight: 500; font-size: 10px; letter-spacing: 0.42em; color: #8FA0B3; margin-top: 5px; padding-left: 2px; }
.site-header { position: relative; z-index: 20; }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; }
.nav-links a { color: #DDE3EA; text-decoration: none; font-size: 15px; padding: 10px 0; display: inline-flex; align-items: center; gap: 6px; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--white); }
.nav-links a.btn { padding: 0 20px; }
.nav-links a[aria-current] { box-shadow: inset 0 -2px 0 var(--teal); }
.caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: 0.8; }
.nav-item { position: relative; }
.submenu { display: none; position: absolute; top: 100%; left: -18px; min-width: 250px; list-style: none; margin: 0; padding: 10px; background: var(--white); border-radius: 14px; box-shadow: 0 16px 40px rgba(11, 31, 58, 0.22); z-index: 30; }
.nav-item:hover > .submenu, .nav-item:focus-within > .submenu { display: block; }
.nav-links .submenu a { display: block; color: var(--ink); padding: 10px 12px; border-radius: 8px; font-size: 15px; box-shadow: none; }
.nav-links .submenu a:hover, .nav-links .submenu a:focus-visible { background: var(--cream); color: var(--navy); }
.nav-links .submenu li:first-child a { font-weight: 600; color: var(--navy); }
@media (max-width: 900px) { .nav-item:hover > .submenu, .nav-item:focus-within > .submenu { display: none; } .caret { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 12px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-accent, .nav-links a.btn-accent { background: var(--teal); color: var(--navy); }
.btn-accent:hover, .nav-links a.btn-accent:hover { background: var(--teal-light); color: var(--navy); }
.btn-ghost { color: var(--cream); border-color: var(--line-dark); }
.btn-ghost:hover { color: var(--white); border-color: var(--cream); }
.btn-navy { background: var(--navy); color: var(--cream); }
.btn-navy:hover { background: var(--navy-2); color: var(--white); }
.btn-outline { color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { background: var(--navy); color: var(--cream); padding: 64px 0 96px; }
.hero h1 { color: var(--cream); font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.02em; margin-bottom: 20px; max-width: 820px; }
.hero .lead { font-size: 19px; color: var(--muted-light); max-width: 620px; margin-bottom: 32px; }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-grid > :first-child { flex: 1 1 520px; min-width: 0; }
.hero-art { flex: 1 1 340px; display: flex; justify-content: center; }
.hero-art div { width: 100%; max-width: 420px; aspect-ratio: 1; border-radius: 32px; background: var(--navy-2); border: 1px solid #23395A; display: flex; align-items: center; justify-content: center; }
.hero-art svg { width: 60%; height: auto; }
.crumbs { font-size: 14px; color: var(--muted-light); margin-bottom: 20px; }
.crumbs a { color: var(--muted-light); }
.hero .icon-tile { background: var(--teal); margin-bottom: 20px; }
.hero .icon-tile svg { stroke: var(--navy); }

.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-text); margin-bottom: 12px; }
.hero .eyebrow, .on-dark .eyebrow { color: var(--teal); }

.hero.has-photo { background-image: linear-gradient(90deg, rgba(11,31,58,0.97) 0%, rgba(11,31,58,0.9) 50%, rgba(11,31,58,0.6) 100%), var(--hero-img); background-size: cover; background-position: center; }
@media (max-width: 800px) { .hero.has-photo { background-image: linear-gradient(rgba(11,31,58,0.9), rgba(11,31,58,0.9)), var(--hero-img); } }
.hero-photo { flex: 1 1 380px; min-width: 0; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; border: 1px solid #23395A; }
.split-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-top: 32px; }

/* Sections */
.section { padding: 96px 0; }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: var(--cream); }
.section-navy h2, .section-navy h3 { color: var(--cream); }
.section h2 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 16px; }
.section .intro { font-size: 18px; color: var(--muted); max-width: 680px; margin-bottom: 48px; }
.section-navy .intro { color: var(--muted-light); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.cards-4 .card { padding: 28px; }
.cards-4 .card h3 { font-size: 21px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.card h3 { font-size: 24px; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 600; font-size: 15px; color: var(--teal-text); text-decoration: none; padding: 8px 0; }
.card .more:hover { text-decoration: underline; }
.icon-tile { width: 56px; height: 56px; border-radius: 14px; background: var(--navy); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.icon-tile svg { width: 28px; height: 28px; fill: none; stroke: var(--cream); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.offer ul { margin: 0; padding-left: 20px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.offer strong { color: var(--navy); }
.offer .btn { margin-top: auto; align-self: flex-start; }

.feature { grid-column: 1 / -1; background: var(--navy); color: var(--cream); border-radius: var(--radius); padding: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.feature .icon-tile { background: var(--teal); width: 64px; height: 64px; }
.feature .icon-tile svg { stroke: var(--navy); }
.feature-body { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.feature h3 { color: var(--cream); font-size: 28px; }
.feature p { color: var(--muted-light); }
.feature .tag { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }

.items { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.item { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.item::before { content: ""; width: 24px; height: 24px; background: url("../img/check.svg") no-repeat center / contain; }
.item h3 { font-size: 20px; }
.item p { color: var(--muted); }

/* Why / benefits */
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > :first-child { flex: 1 1 360px; min-width: 0; }
.split > :last-child { flex: 2 1 560px; min-width: 0; }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.point { border-top: 3px solid var(--teal); padding-top: 20px; }
.point h3 { font-size: 20px; margin-bottom: 8px; }
.point p { color: var(--muted); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.steps li { display: flex; flex-direction: column; gap: 12px; }
.steps .num { font-family: var(--font-head); font-weight: 700; font-size: 40px; color: var(--teal-text); }
.steps h3 { font-size: 20px; }
.steps p { color: var(--muted); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chips a { padding: 12px 20px; border-radius: 999px; border: 1px solid #C9D2DC; background: var(--white); text-decoration: none; font-weight: 500; font-size: 15px; }
.chips a:hover { border-color: var(--teal-text); }

/* Forms */
.forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 32px; }
.form-card { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 24px; }
.form-card h3 { font-size: 26px; margin-bottom: 8px; }
.form-card .desc { font-size: 15px; color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 18px; }
.row > label { flex: 1 1 180px; }
.form-card label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink); }
.form-card input, .form-card select, .form-card textarea { min-height: 48px; border-radius: 10px; border: 1px solid #C9D2DC; background: var(--white); color: var(--ink); padding: 10px 14px; font-size: 16px; font-family: inherit; width: 100%; }
.form-card textarea { min-height: 96px; resize: vertical; }
.form-card button { min-height: 52px; }
.form-card.dark { background: var(--navy); border-color: var(--navy); }
.form-card.dark h3 { color: var(--cream); }
.form-card.dark .desc { color: var(--muted-light); }
.form-card.dark label { color: #DDE3EA; }
.form-card.dark input, .form-card.dark select, .form-card.dark textarea { background: var(--navy-2); border-color: var(--line-dark); color: var(--cream); }
.form-status { font-size: 15px; font-weight: 500; min-height: 1em; }
.form-status.error { color: #B42318; }
.form-card.dark .form-status.error { color: #FDA29B; }
.hp { position: absolute; left: -9999px; }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 48px; }
.contact > :first-child { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact > :last-child { flex: 1 1 440px; min-width: 0; }
.contact .details p { color: #DDE3EA; margin-bottom: 6px; }
.contact .details a { color: #DDE3EA; }
.section-navy .form-card { background: var(--navy-2); border-color: #23395A; }
.section-navy .form-card label { color: #DDE3EA; }
.section-navy .form-card input, .section-navy .form-card select, .section-navy .form-card textarea { background: var(--navy); border-color: var(--line-dark); color: var(--cream); }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band > div { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cta-band h2 { font-size: clamp(30px, 4vw, 42px); margin: 0; }
.cta-band p { font-size: 18px; color: var(--muted-light); }
.cta-band p a { color: var(--cream); font-weight: 600; }
.cta-band p a:hover { color: var(--teal); }

/* Footer */
.site-footer { background: var(--navy-3); color: var(--muted-light); padding: 56px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 32px; margin-bottom: 40px; }
.site-footer h3 { color: var(--cream); font-size: 16px; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--muted-light); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid #1B2F4D; padding-top: 24px; font-size: 14px; }

/* Simple page (thank you / 404) */
.simple { min-height: 60vh; display: flex; align-items: center; }
.simple h1 { color: var(--cream); font-size: clamp(36px, 5vw, 56px); margin-bottom: 16px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.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; }
address { font-style: normal; }

/* Industries tiles */
.industries { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.industry { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--cream); text-decoration: none; color: var(--ink); }
.industry:hover { border-color: var(--teal-text); color: var(--ink); }
.industry strong { display: block; font-family: var(--font-head); font-size: 19px; color: var(--navy); margin-bottom: 4px; }
.industry > span:last-child > span { color: var(--muted); font-size: 15px; }

/* Jobs */
.job { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.job-body { flex: 2 1 520px; min-width: 0; }
.job .form-card { flex: 1 1 340px; min-width: 0; position: sticky; top: 24px; }
.job-body h2 { font-size: 26px; margin: 36px 0 12px; }
.job-body > p { color: var(--muted); font-size: 17px; }
.job-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.job-meta li { background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: 15px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; background: url("../img/check.svg") no-repeat center / contain; }
.tag-line { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-text); }

/* Contact */
.contact-grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.contact-cards { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-grid .form-card { flex: 1.4 1 440px; min-width: 0; background: var(--white); }
.contact-card { display: flex; gap: 18px; align-items: flex-start; background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.contact-card h3 { font-size: 20px; margin-bottom: 8px; }
.contact-card p, .contact-card address { color: var(--muted); }
.map { display: block; width: 100%; height: 440px; border: 0; border-radius: var(--radius); background: var(--border); }
@media (max-width: 600px) { .map { height: 320px; } }
#assessments .form-card:not(.dark) { background: var(--white); }
