/* ==========================================================================
   STEDCAD INVESTMENTS LIMITED — public website stylesheet
   Used by the marketing home page (home.php) and the sign-in page (login.php).
   Completely separate from assets/css/app.css so the POS UI is untouched.

   The palette comes from the company logo: a teal-to-blue gradient mark on a
   #0B2A4A navy field. That navy is sampled from stedcad_logo_dark.png so the
   dark logo sits on the footer and the login panel with no visible edge.
   ========================================================================== */

:root {
  --navy:      #0B2A4A;
  --navy-2:    #071D34;
  --ink:       #10243B;
  --muted:     #5B7186;

  --teal:      #18A5A0;
  --teal-2:    #2CC9BE;
  --blue:      #1E6FB5;

  --mint-50:   #F3FBF9;
  --mint-100:  #E4F7F2;
  --mint-200:  #CDF0E8;
  --mint-300:  #AFE6DA;

  --accent:    #F5901F;
  --accent-2:  #DD7B0B;

  --line:      #E3EDF1;
  --line-soft: #EFF6F8;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --pill: 999px;

  --shadow-sm: 0 2px 10px rgba(11,42,74,.06);
  --shadow:    0 10px 30px rgba(11,42,74,.09);
  --shadow-lg: 0 26px 60px rgba(11,42,74,.16);

  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(1.85rem, 4vw, 2.7rem); text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.12rem; }
p  { margin: 0 0 1em; }

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 999; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r-sm) var(--r-sm); }

/* ------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border: 2px solid transparent; border-radius: var(--pill);
  font: inherit; font-size: .95rem; font-weight: 650; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s, transform .08s, box-shadow .18s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(245,144,31,.32); }
.btn-accent:hover { background: var(--accent-2); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-ghost-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: .86rem; }
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* --------------------------------------------------------------- chrome -- */

.utility { background: var(--navy); color: rgba(255,255,255,.88); font-size: .82rem; }
.utility .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; padding-top: 9px; padding-bottom: 9px; }
.utility a { color: rgba(255,255,255,.88); display: inline-flex; align-items: center; gap: 7px; }
.utility a:hover { color: #fff; }
.utility .u-spacer { flex: 1; }
.utility svg { flex: none; opacity: .75; }
.utility .u-login { font-weight: 650; color: var(--teal-2); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; padding-top: 12px; padding-bottom: 12px; }
.brand { flex: none; }
.brand img { height: 46px; width: auto; }
.nav { display: none; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); font-size: .93rem; font-weight: 550; }
.nav a:hover { color: var(--teal); text-decoration: none; }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav + .header-cta { margin-left: 0; }

.burger {
  margin-left: auto; display: grid; place-items: center;
  width: 44px; height: 44px; border: 1px solid var(--line); background: #fff;
  border-radius: var(--r-sm); color: var(--ink); cursor: pointer;
}
.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block; padding: 14px 20px; color: var(--ink);
  font-weight: 550; border-bottom: 1px solid var(--line-soft);
}
.mobile-nav a:hover { background: var(--mint-50); text-decoration: none; }

/* ----------------------------------------------------------------- hero -- */

.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--mint-50) 0%, #fff 100%); }
.hero .wrap { display: grid; gap: 30px; padding-top: 44px; padding-bottom: 44px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--mint-200); color: #0E6E68; font-size: .8rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 15px; border-radius: var(--pill); margin-bottom: 18px;
}
.hero h1 { margin-bottom: 16px; }
.hero h1 .accent {
  background: linear-gradient(90deg, var(--teal) 0%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lede { font-size: 1.06rem; color: var(--muted); max-width: 33em; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hero-points li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--ink); }
.hero-points svg { flex: none; color: var(--teal); }

.hero-media { position: relative; }
.hero-media::before {
  content: ""; position: absolute; inset: -8% -6% -12% 6%;
  background: radial-gradient(circle at 60% 45%, var(--mint-300) 0%, var(--mint-200) 45%, transparent 70%);
  border-radius: 50%; z-index: 0;
}
.hero-media img {
  position: relative; z-index: 1; width: 100%; height: 320px; object-fit: cover;
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
}
.hero-badge {
  position: relative; z-index: 2; margin: -34px 16px 0 auto; width: max-content;
  background: #fff; border-radius: var(--r); box-shadow: var(--shadow);
  padding: 13px 18px; display: flex; align-items: center; gap: 12px;
}
.hero-badge strong { display: block; font-size: 1.15rem; line-height: 1.1; }
.hero-badge span { font-size: .78rem; color: var(--muted); }
.hero-badge .hb-icon {
  width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal) 0%, var(--blue) 100%); color: #fff;
}

/* -------------------------------------------------------------- section -- */

.section { padding: 56px 0; }
.section-mint { background: var(--mint-50); }
.section-head { max-width: 40em; margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.eyebrow {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 10px;
}

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

/* ---- three highlight cards ---- */

.pillars { grid-template-columns: 1fr; }
.pillar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--mint-300); }
.pillar-icon {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  background: var(--mint-100); color: var(--teal); margin-bottom: 18px;
}
.pillar h3 { margin-bottom: 8px; }
.pillar p { color: var(--muted); font-size: .93rem; margin-bottom: 16px; }
.pillar .more { font-weight: 650; font-size: .9rem; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }
.pillar .more:hover { gap: 10px; text-decoration: none; }

/* ------------------------------------------------------------- about ---- */

.about { display: grid; gap: 34px; align-items: center; }
.about-media { position: relative; }
.about-media img {
  width: 100%; height: 340px; object-fit: cover;
  border-radius: var(--r-lg); position: relative; z-index: 1;
}
.about-media::after {
  content: ""; position: absolute; right: -14px; bottom: -14px; width: 62%; height: 62%;
  background: var(--mint-200); border-radius: var(--r-lg); z-index: 0;
}
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.fact { display: flex; gap: 12px; align-items: flex-start; }
.fact-icon {
  width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--mint-100); color: var(--teal);
}
.fact strong { display: block; font-size: .96rem; line-height: 1.25; }
.fact span { font-size: .82rem; color: var(--muted); }

/* ---------------------------------------------------- product range ----- */

.range { grid-template-columns: 1fr; }
.range-card {
  border-radius: var(--r-lg); overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.range-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.range-thumb { position: relative; aspect-ratio: 16 / 10; background: var(--mint-100); overflow: hidden; }
.range-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.range-card:hover .range-thumb img { transform: scale(1.05); }
.range-tag {
  position: absolute; left: 14px; top: 14px;
  background: rgba(255,255,255,.94); color: var(--navy);
  font-size: .72rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--pill);
}
.range-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.range-body h3 { margin-bottom: 8px; }
.range-body p { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.range-items { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.range-items li {
  font-size: .76rem; background: var(--mint-100); color: #0E6E68;
  padding: 4px 10px; border-radius: var(--pill);
}
.range-foot {
  margin-top: auto; font-size: .86rem; font-weight: 650; color: var(--blue);
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  transition: gap .18s;
}
.range-foot:hover { gap: 10px; text-decoration: none; }

/* ------------------------------------------------------------- banner --- */

.banner { background: linear-gradient(120deg, var(--mint-100) 0%, var(--mint-200) 100%); overflow: hidden; }
.banner .wrap { display: grid; gap: 28px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.banner h2 { margin-bottom: 14px; }
.banner p { color: #22515C; max-width: 34em; }
.banner img { width: 100%; height: 280px; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow); }

/* ------------------------------------------------------------ why us ---- */

.why { grid-template-columns: 1fr; }
.why-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.why-num {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal) 0%, var(--blue) 100%);
  color: #fff; margin-bottom: 16px;
}
.why-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.why-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ----------------------------------------------------------- contact ---- */

.contact { display: grid; gap: 28px; align-items: start; }
.contact-list { display: grid; gap: 18px; }
.c-item { display: flex; gap: 14px; align-items: flex-start; }
.c-icon {
  width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center;
  background: var(--mint-100); color: var(--teal);
}
.c-item strong { display: block; font-size: .95rem; margin-bottom: 2px; }
.c-item a, .c-item span { color: var(--muted); font-size: .92rem; }
.c-item a:hover { color: var(--teal); }
.map-frame {
  border: 0; width: 100%; height: 330px; border-radius: var(--r-lg);
  box-shadow: var(--shadow); display: block; background: var(--mint-100);
}

/* -------------------------------------------------------------- CTA ----- */

.cta-strip { background: var(--navy); color: #fff; }
.cta-strip .wrap { padding-top: 46px; padding-bottom: 46px; display: grid; gap: 22px; align-items: center; }
.cta-strip h2 { color: #fff; margin-bottom: 8px; }
.cta-strip p { color: rgba(255,255,255,.75); margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------- footer --- */

.site-footer { background: var(--navy); color: rgba(255,255,255,.7); font-size: .9rem; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-top { display: grid; gap: 30px; padding: 46px 0 34px; }
.footer-logo img { height: 72px; width: auto; margin-bottom: 14px; }
.footer-col h4 {
  color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 14px; font-weight: 700;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
  font-size: .82rem; color: rgba(255,255,255,.55);
}

/* ==========================================================================
   Sign-in page
   ========================================================================== */

.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr; }

.auth-brand {
  background: var(--navy); color: #fff; padding: 40px 28px;
  position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.auth-brand::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -190px; top: -180px;
  background: radial-gradient(circle, rgba(44,201,190,.22) 0%, transparent 62%); border-radius: 50%;
}
.auth-brand::after {
  content: ""; position: absolute; width: 400px; height: 400px; left: -160px; bottom: -170px;
  background: radial-gradient(circle, rgba(30,111,181,.28) 0%, transparent 62%); border-radius: 50%;
}
.auth-brand > * { position: relative; z-index: 1; }
.auth-brand .ab-logo img { height: 74px; width: auto; }
.auth-brand h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 30px 0 12px; }
.auth-brand .ab-lede { color: rgba(255,255,255,.72); margin-bottom: 26px; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; color: rgba(255,255,255,.88); }
.auth-points .ap-tick {
  width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: rgba(44,201,190,.2); color: var(--teal-2);
}
.auth-brand .ab-foot { margin-top: auto; padding-top: 30px; font-size: .8rem; color: rgba(255,255,255,.45); }
.auth-brand .ab-foot a { color: var(--teal-2); }

.auth-main { display: grid; place-items: center; padding: 34px 20px 48px; background: var(--mint-50); }
.auth-card { width: 100%; max-width: 430px; }
.auth-card .ac-logo { height: 52px; width: auto; margin: 0 auto 24px; }
.auth-card h1 { font-size: 1.7rem; margin-bottom: 6px; }
.auth-card .ac-sub { color: var(--muted); margin-bottom: 26px; font-size: .95rem; }
.auth-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 26px; box-shadow: var(--shadow);
}

.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 650; margin-bottom: 7px; color: var(--ink); }
.field input {
  width: 100%; padding: 14px 15px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(24,165,160,.14); }
.field-pw { position: relative; }
.field-pw input { padding-right: 52px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--muted); cursor: pointer;
  padding: 10px; border-radius: var(--r-sm); display: grid; place-items: center;
}
.pw-toggle:hover { color: var(--teal); background: var(--mint-50); }

.alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 13px 15px; border-radius: var(--r-sm); font-size: .9rem;
  margin-bottom: 20px; border: 1px solid transparent;
}
.alert svg { flex: none; margin-top: 2px; }
.alert-danger  { background: #FDECEE; border-color: #F6C9CF; color: #8E1F2C; }
.alert-success { background: #E8F7F1; border-color: #BCE6D5; color: #12664A; }
.alert-info    { background: var(--mint-50); border-color: var(--mint-200); color: #22515C; }
.alert-warning { background: #FFF6E6; border-color: #F6DDAE; color: #8A5A08; }

.demo-creds {
  margin-top: 22px; padding: 15px 17px; border: 1px dashed var(--mint-300);
  background: var(--mint-50); border-radius: var(--r); font-size: .82rem; color: #22515C;
}
.demo-creds strong { display: block; margin-bottom: 8px; color: var(--ink); }
.demo-creds table { width: 100%; border-collapse: collapse; }
.demo-creds td { padding: 3px 0; }
.demo-creds td:last-child { text-align: right; color: var(--muted); }
.demo-creds code {
  background: #fff; border: 1px solid var(--line); border-radius: 5px;
  padding: 1px 6px; font-size: .78rem; font-family: Consolas, monospace;
}

/* ========================================================== responsive === */

@media (min-width: 620px) {
  .pillars, .range, .why { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-media img { height: 400px; }
}

@media (min-width: 900px) {
  .section { padding: 76px 0; }
  .nav { display: flex; }
  .burger { display: none; }
  .mobile-nav { display: none !important; }
  .hero .wrap { grid-template-columns: 1.02fr .98fr; gap: 46px; padding-top: 64px; padding-bottom: 54px; }
  .hero-media img { height: 440px; }
  .pillars, .range, .why { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .about { grid-template-columns: 1fr 1fr; gap: 54px; }
  .about-media img { height: 430px; }
  .banner .wrap { grid-template-columns: 1fr 1fr; gap: 46px; }
  .banner img { height: 320px; }
  .contact { grid-template-columns: 1fr 1.05fr; gap: 44px; }
  .map-frame { height: 400px; }
  .cta-strip .wrap { grid-template-columns: 1.4fr auto; }
  .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
  .auth { grid-template-columns: 1.05fr 1fr; }
  .auth-brand { padding: 54px 48px; }
  .auth-main { padding: 48px; }
  .auth-card .ac-logo { display: none; }
}

/* ------------------------------------------------- phone refinements --- */

@media (max-width: 899px) {
  /* "Staff login" already sits in the utility bar and inside the burger
     menu, so the header button is redundant and only crowds the logo. */
  .header-cta { display: none; }

  /* Get the sign-in form on screen straight away: the brand panel collapses
     to a compact banner and its selling points wait for the desktop layout. */
  .auth-brand { padding: 24px 22px 26px; }
  .auth-brand .ab-logo img { height: 56px; }
  .auth-brand h2 { display: none; }
  .auth-brand .ab-lede { margin-bottom: 0; font-size: .92rem; }
  .auth-points, .auth-brand .ab-foot { display: none; }
  .auth-card .ac-logo { display: none; }
  .auth-main { padding-top: 26px; }
}

@media (max-width: 460px) {
  /* Keep the utility bar to a single row on small handsets. */
  .utility .u-email { display: none; }
}

/* Shown only on phones, where the brand panel hides its own link. */
.ac-back { margin-top: 16px; text-align: center; font-size: .86rem; }
@media (min-width: 900px) { .ac-back { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

@media print {
  .utility, .site-header, .mobile-nav, .cta-strip, .hero-actions { display: none !important; }
}
