/* Alliance Software and IT Solutions — one-page site
   Hand-written CSS, no build step. Mobile-first. */

:root {
  --navy:       #12324d;
  --navy-deep:  #0d2438;
  --amber:      #c8801d;
  --amber-lt:   #e8a33d;

  --bg:         #ffffff;
  --bg-alt:     #f5f2ec;
  --card:       #ffffff;
  --ink:        #1b2733;
  --ink-soft:   #4d5b68;
  --ink-faint:  #6f7c88;
  --rule:       #dcd7cd;
  --shadow:     0 1px 2px rgba(20, 35, 50, .06), 0 6px 20px rgba(20, 35, 50, .06);

  --hero-bg:    var(--navy);
  --hero-ink:   #ffffff;
  --hero-soft:  #b9cbdb;

  --measure:    68ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #131a21;
    --bg-alt:    #171f27;
    --card:      #1b242d;
    --ink:       #e7edf3;
    --ink-soft:  #b3c0cc;
    --ink-faint: #8b98a5;
    --rule:      #2c3742;
    --shadow:    0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    --amber:     var(--amber-lt);
    --hero-bg:   var(--navy-deep);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--amber); }
a:hover { color: var(--ink); }

p { margin: 0 0 1em; max-width: var(--measure); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.wrap-narrow { max-width: 760px; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px; top: 12px;
  z-index: 10;
  background: #fff; color: var(--navy);
  padding: 10px 16px; border-radius: 6px;
}

:focus-visible {
  outline: 3px solid var(--amber-lt);
  outline-offset: 3px;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--hero-bg);
  color: var(--hero-ink);
  padding: 48px 0 52px;
  background-image:
    radial-gradient(1100px 380px at 15% -10%, rgba(255, 255, 255, .09), transparent 70%);
}

.brand {
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber-lt);
  font-weight: 700;
  margin: 0 0 22px;
  max-width: none;
}

.hero h1 {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -.01em;
  max-width: 22ch;
  margin-bottom: .6em;
}

.area {
  color: var(--hero-soft);
  font-size: 1.02rem;
  max-width: 46ch;
  margin-bottom: 1.6em;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 16px;
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .12s ease, background-color .12s ease, color .12s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--amber-lt);
  color: #22160a;
}
.btn-primary:hover { background: #f2b558; color: #22160a; }

.btn-ghost {
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.cta-note {
  color: var(--hero-soft);
  font-size: .93rem;
  margin: 0;
  max-width: 42ch;
}

/* Buttons repeated in the About section sit on a light background. */
.section .btn-ghost {
  border-color: var(--rule);
  color: var(--ink);
}
.section .btn-ghost:hover { background: var(--bg-alt); color: var(--ink); }
.section .btn-primary { background: var(--navy); color: #fff; }
.section .btn-primary:hover { background: var(--navy-deep); color: #fff; }
@media (prefers-color-scheme: dark) {
  .section .btn-primary { background: var(--amber-lt); color: #22160a; }
  .section .btn-primary:hover { background: #f2b558; color: #22160a; }
}

/* ---------- Sections ---------- */

.section { padding: 52px 0; }
.section-alt { background: var(--bg-alt); }

.section h2 {
  font-size: 1.5rem;
  letter-spacing: -.01em;
}
.section h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  background: var(--amber);
  border-radius: 2px;
  margin: 14px 0 26px;
}

.lede {
  color: var(--ink-soft);
  margin-top: -12px;
  margin-bottom: 28px;
}

/* ---------- Cards ---------- */

.grid { display: grid; gap: 20px; }

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.12rem;
  color: var(--navy);
}
@media (prefers-color-scheme: dark) {
  .card h3 { color: var(--ink); }
}

.card p { color: var(--ink-soft); font-size: .97rem; }
.card p:last-child { margin-bottom: 0; }

/* ---------- Case studies ---------- */

.case {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.case h3 {
  font-size: 1.22rem;
  color: var(--navy);
}
@media (prefers-color-scheme: dark) {
  .case h3 { color: var(--ink); }
}

.case p { color: var(--ink-soft); font-size: .97rem; }

.case-kicker {
  font-style: italic;
  color: var(--ink-faint) !important;
  margin-top: -.4em;
}

.point {
  border-left: 3px solid var(--amber);
  padding-left: 14px;
  color: var(--ink) !important;
}
.point strong { color: var(--navy); }
@media (prefers-color-scheme: dark) {
  .point strong { color: var(--amber-lt); }
}

.tech {
  font-size: .8rem !important;
  color: var(--ink-faint) !important;
  margin-bottom: 0 !important;
}

.link-out { font-weight: 700; text-decoration: none; }
.link-out:hover { text-decoration: underline; }

.shots {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: center;
}

.phone {
  background: #0d1116;
  padding: 7px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  /* Shrink to fit rather than wrapping — the two frames must stay
     side by side even inside the card's padding on a narrow phone. */
  flex: 1 1 0;
  min-width: 0;
  max-width: 190px;
}
.phone img { border-radius: 12px; width: 100%; }

.cases { margin-top: 20px; }
.case-sm h3 { font-size: 1.08rem; }

/* ---------- Also built ---------- */

.also {
  margin-top: 32px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.also h3 {
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.also ul {
  margin: 0;
  padding-left: 1.1em;
  max-width: var(--measure);
}
.also li {
  color: var(--ink-soft);
  font-size: .95rem;
  margin-bottom: .5em;
}

/* ---------- About ---------- */

#about p { font-size: 1.04rem; }
#about .cta { margin-top: 28px; }

/* ---------- Footer ---------- */

.footer {
  background: var(--navy-deep);
  color: #b9cbdb;
  padding: 40px 0;
  font-size: .95rem;
}
.footer p { margin: 0 0 .4em; max-width: none; }
.footer a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.footer a:hover { color: var(--amber-lt); border-color: var(--amber-lt); }

.foot-name { color: #fff; font-weight: 700; font-size: 1.02rem; }
.foot-contact { margin-top: .8em; }
.sep { padding: 0 .5em; color: rgba(255,255,255,.4); }
.copy { margin-top: 1.4em; color: #7f95a8; font-size: .85rem; }

/* ---------- Larger screens ---------- */

@media (min-width: 640px) {
  body { font-size: 18px; }
  .hero { padding: 76px 0 84px; }
  .hero h1 { font-size: 2.4rem; }
  .section { padding: 72px 0; }
  .section h2 { font-size: 1.9rem; }
  .card, .case { padding: 30px; }
  .foot-contact { margin-top: 1em; }
}

@media (min-width: 900px) {
  .hero h1 { font-size: 2.9rem; max-width: 25ch; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .case { display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center; }
  .shots { margin-top: 0; flex-wrap: nowrap; }
  .case-body p:last-child { margin-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
