/* PocketSoft website styles
   To change the main colours, edit the values below. */
:root {
  --navy: #0f2340;        /* header, footer, dark sections */
  --navy-2: #173257;
  --blue: #1f7ae0;        /* buttons and links */
  --blue-dark: #155fb3;
  --sky: #e9f2fc;         /* light section background */
  --ink: #1b2430;         /* main text */
  --muted: #5b6878;
  --line: #d8e0ea;
  --white: #ffffff;
  --radius: 10px;
  --max: 1120px;
  --font: "Figtree", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid #7fb6f5; outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.alt { background: var(--sky); }
.section.dark { background: var(--navy); color: #dbe5f2; }
.section.dark h2, .section.dark h3 { color: var(--white); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.dark .lead { color: #b8c7da; }

/* Header */
.site-header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo img { height: 40px; width: auto; }
.logo-text { color: var(--white); font-weight: 800; font-size: 1.4rem; text-decoration: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 6px;
  color: #d5e0ee; text-decoration: none; font-weight: 600; font-size: .98rem;
}
.nav a:hover { color: var(--white); background: var(--navy-2); }
.nav a[aria-current="page"] { color: var(--white); background: var(--blue); }
.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,.3);
  color: var(--white); border-radius: 6px; padding: 8px 12px; font: inherit; cursor: pointer;
}

/* Page hero */
.hero { background: var(--navy); color: var(--white); padding: 80px 0 88px; }
.hero .tagline { font-size: 1.25rem; color: #9ec8f5; font-weight: 600; margin-top: .5em; }
.hero p.sub { color: #c3d1e3; max-width: 58ch; font-size: 1.15rem; }
.hero .btn { margin-top: 1.2em; }

/* Home: three phones */
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.phone { text-align: center; }
.phone img { max-height: 420px; margin: 0 auto 18px; }
.phone h3 { color: var(--white); font-size: 1.5rem; margin-bottom: .2em; }
.phone p { color: #b8c7da; margin: 0; }

/* Buttons */
.btn {
  display: inline-block; background: var(--blue); color: var(--white);
  padding: 13px 26px; border-radius: 8px; border: 0; font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--blue-dark); color: var(--white); }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature h3 { margin-bottom: .35em; }
.feature p { color: var(--muted); margin: 0; }
.dark .feature p { color: #b8c7da; }
.feature { border-top: 3px solid var(--blue); padding-top: 16px; }

.split { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; align-items: center; }
.split .col { display: grid; gap: 32px; }
.split img { max-height: 520px; margin: 0 auto; }

/* Content rows with image */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 40px 0; }
.row + .row { border-top: 1px solid var(--line); }
.row.flip .row-text { order: 2; }
.row img { border-radius: var(--radius); }
blockquote.note {
  margin: 0 0 1em; padding: 14px 18px; background: var(--sky);
  border-left: 4px solid var(--blue); border-radius: 0 8px 8px 0; font-weight: 600;
}

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.quote {
  background: var(--navy-2); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column;
}
.quote p { color: #dde6f2; font-size: 1rem; flex: 1; }
.quote footer { display: flex; gap: 14px; align-items: center; margin-top: 12px; }
.quote footer img { width: auto; height: auto; max-width: 64px; max-height: 60px; background: #fff; border-radius: 6px; padding: 4px; flex-shrink: 0; }
.quote cite { font-style: normal; font-size: .9rem; color: #b8c7da; }
.quote cite strong { display: block; color: var(--white); }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; list-style: none; padding: 0; margin: 32px 0 0; }
.shots a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }

/* Industries list */
.industries { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 48px; }

/* Careers */
.jobs details {
  border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; background: var(--white);
}
.jobs summary { cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 1.15rem; }
.jobs .job-body { padding: 0 22px 20px; }
.jobs h4 { margin: 1em 0 .3em; color: var(--blue-dark); }
.jobs ul { margin: 0; padding-left: 1.2em; }
.perks { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; }
.perks li { background: var(--white); border: 1px solid var(--line); border-radius: 30px; padding: 8px 18px; font-weight: 600; }

/* Forms */
.form-box {
  background: var(--white); color: var(--ink); border-radius: var(--radius);
  padding: 32px; max-width: 560px; box-shadow: 0 10px 30px rgba(15,35,64,.12);
}
.cta-band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 4px; }
input[type=text], input[type=email], textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #b9c6d6; border-radius: 7px;
  font: inherit; margin-bottom: 14px; background: #fff;
}
textarea { min-height: 110px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 10px 0 0; font-weight: 600; }
.form-msg.ok { color: #13804b; }
.form-msg.err { color: #b3261e; }

/* Contact */
.contact-details dt { font-weight: 700; margin-top: 14px; }
.contact-details dd { margin: 0; }
.fill-me { background: #fff3c4; padding: 0 4px; border-radius: 3px; }

/* Footer */
.site-footer { background: var(--navy); color: #b8c7da; padding: 56px 0 24px; font-size: .95rem; }
.site-footer h3 { color: var(--white); font-size: 1.05rem; }
.site-footer a { color: #d5e0ee; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 40px; }
.site-footer .form-box { box-shadow: none; padding: 20px; background: var(--navy-2); color: #dbe5f2; }
.site-footer input { background: #fff; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.tags span { font-size: .8rem; padding: 3px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; }
.copyright { margin-top: 20px; font-size: .85rem; color: #8ea2bb; }

/* Mobile */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--navy); padding: 10px 20px 20px; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; }
  .phones, .grid-3, .quotes, .footer-grid, .split, .row, .grid-2, .cta-band .wrap, .industries { grid-template-columns: 1fr; }
  .row.flip .row-text { order: 0; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .phone img { max-height: 340px; }
  .section { padding: 52px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Page header with picture */
.hero-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero-img { width: 100%; border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.hero-top h1:last-child, .hero-top p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .hero-top { grid-template-columns: 1fr; gap: 28px; } }
