/* ==========================================================================
   SSFD — schankesync (domain pending)

   Hand-written for this site. No framework, no build step, no third-party
   stylesheet. The only outside resources are a webfont and an icon font.

   The file follows the page from top to bottom:
     tokens · base · icons · button · site head · hero · promise ·
     process · services · contact · site foot · narrow screens

   Brand values are measured off assets/brand/ssfd-logo-master.jpeg:
     ground  #000714   near-black with a blue cast
     blue    #0067fc   4.18:1 on the ground
     deep    #0050c3   the darker blue in the logo render
   ========================================================================== */

:root {
  --ground:    #000714;
  --blue:      #0067fc;
  --blue-lit:  #2f86ff;
  --deep:      #0050c3;
  --white:     #ffffff;
  --soft:      rgba(255, 255, 255, 0.82);
  --softer:    rgba(255, 255, 255, 0.78);
  --faint:     rgba(255, 255, 255, 0.5);
  --hairline:  rgba(255, 255, 255, 0.15);

  --wa-green:  #25d366;

  /* type */
  --track-body: 0.075em;   /* body copy is tracked out a little */
  --track-head: 0.225em;   /* headings are wide-tracked uppercase */
  --leading:    1.65;

  /* rhythm */
  --band-y:   6rem 0 4rem;
  --measure:  78rem;
  --head-h:   3rem;

  /* the logo's 36.7deg terminal cut: the only corner style on the site */
  --cut-x: 13px;
  --cut-y: 18px;
}

/* --- base ---------------------------------------------------------------- */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--white);
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: var(--leading);
  letter-spacing: var(--track-body);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--white); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--blue-lit); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

p { margin: 0 0 1.65rem; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  margin: 0 0 1em;
  color: var(--white);
  font-weight: 800;
  line-height: 1.75;
  letter-spacing: var(--track-head);
  text-transform: uppercase;
}
h2 { font-size: 1.35rem; }
h3 { font-size: 1.15rem; }

.container {
  width: 90%;
  max-width: var(--measure);
  margin: 0 auto;
}

/* --- icons ---------------------------------------------------------------
   fontawesome-all.min.css supplies the glyph codepoints (.fa-whatsapp and
   friends) but binds them to its own .fa/.fas/.fab classes. This site marks
   icons up as .icon / .icon.solid / .icon.brands, so the binding is declared
   here.
   -------------------------------------------------------------------------- */

.icon { position: relative; }
.icon > .label { display: none; }

.icon::before {
  display: inline-block;
  font-family: 'Font Awesome 5 Free';
  font-weight: 400;
  font-style: normal;
  font-variant: normal;
  text-transform: none;
  text-rendering: auto;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.icon.solid::before  { font-weight: 900; }
.icon.brands::before { font-family: 'Font Awesome 5 Brands'; font-weight: 400; }

/* --- the cut button ------------------------------------------------------ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  height: 2.25rem;
  padding: 0 1rem;
  background: var(--blue);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: var(--track-head);
  text-transform: uppercase;
  white-space: nowrap;
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut-x)) 0,
    100% var(--cut-y),
    100% 100%,
    var(--cut-x) 100%,
    0 calc(100% - var(--cut-y))
  );
  transition: background-color 0.2s ease;
}
.button:hover { background: var(--blue-lit); color: var(--white); }

/* --- site head ----------------------------------------------------------- */

.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--head-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: 1.25rem;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-head .wordmark img {
  height: 1.4rem;
  width: auto;
  /* the logo is still a photograph of a sign with its own ground baked in;
     screen blending drops the ground and keeps the mark */
  mix-blend-mode: screen;
}

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

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: calc(var(--head-h) + 3rem) 0 6rem;
  text-align: center;
  overflow: hidden;
  background-color: var(--ground);
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../../images/hero.jpg");
  background-size: cover;
  background-position: center;
}

.hero h1 {
  position: relative;
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.35em 1em;
  font-size: 1.75rem;
  line-height: 1.75;
}
/* the two rules that bracket the headline */
.hero h1::before,
.hero h1::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--white);
}
.hero h1::before { top: 0; }
.hero h1::after  { bottom: 0; }

.hero-lead {
  margin: 0 auto;
  text-transform: uppercase;
  letter-spacing: var(--track-head);
}

.hero-action { margin: 0; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  letter-spacing: var(--track-head);
  text-transform: uppercase;
  color: var(--white);
}
.scroll-cue::after {
  content: '';
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
}

/* --- promise: the sentence that costs SSFD money ------------------------- */

.promise {
  padding: var(--band-y);
  background: var(--blue);
  color: var(--soft);
  text-align: center;
}
.promise h2 { margin-bottom: 1.35em; }
.promise p { margin: 0; color: var(--softer); }

/* --- process: problem, cause, fix ---------------------------------------- */

.process { background: var(--ground); }

.process-step {
  display: flex;
  align-items: center;
}
.process-image { width: 40%; }
.process-text {
  width: 60%;
  max-width: 48rem;
  padding: 2rem 4rem;
}
/* the middle step leads from the other side, so the three read as a sequence */
.process-step:nth-child(even) { flex-direction: row-reverse; }

/* --- services: what people actually arrive with -------------------------- */

.services {
  padding: var(--band-y);
  background: var(--deep);
  color: var(--soft);
  text-align: center;
}

.section-head { margin-bottom: 3.5rem; }
.section-head h2 { margin-bottom: 1.35em; }
.section-head p { margin: 0 auto; color: var(--softer); }

.service-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.service {
  position: relative;
  width: 50%;
  padding: 4rem 4rem 2rem 6rem;
  border-top: 1px solid var(--hairline);
}
.service:nth-child(odd) { border-right: 1px solid var(--hairline); }
.service::before {
  position: absolute;
  left: 2.6rem;
  top: 4.1rem;
  font-size: 1.5rem;
  color: var(--white);
}
.service h3 { margin-bottom: 1em; }
.service p { margin: 0; }

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

.contact {
  padding: var(--band-y);
  text-align: center;
}
.contact h2 { margin-bottom: 1.35em; }
.contact > .container > p { margin: 0 auto 2.5rem; max-width: 46rem; }

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
}

/* the WhatsApp mark IS the call to action: no button chrome */
.wa-cta {
  display: inline-block;
  line-height: 1;
  transition: transform 0.2s ease;
}
.wa-cta::before {
  font-size: 5rem;
  line-height: 1;
  color: var(--wa-green);
  transition: color 0.2s ease;
}
.wa-cta:hover { transform: scale(1.06); }
.wa-cta:hover::before { color: #3ff082; }

/* the number reads as a line, with the handset beside it */
.tel-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  white-space: nowrap;
}
.tel-cta::before { font-size: 1.35em; color: var(--blue); }
.tel-cta:hover, .tel-cta:hover::before { color: var(--blue-lit); }

@media (prefers-reduced-motion: reduce) {
  .wa-cta, .wa-cta::before, .button, a { transition: none; }
  .wa-cta:hover { transform: none; }
}

/* --- site foot ----------------------------------------------------------- */

.site-foot {
  padding: var(--band-y);
  background: var(--ground);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: var(--track-head);
  text-transform: uppercase;
  color: var(--faint);
}

/* --- narrow screens ------------------------------------------------------ */

@media screen and (max-width: 1024px) {
  .process-step,
  .process-step:nth-child(even) { flex-direction: column; }
  .process-image,
  .process-text { width: 100%; max-width: none; }
  .process-text { padding: 3rem 2rem; text-align: center; }
}

@media screen and (max-width: 736px) {
  :root { --band-y: 4rem 0 3rem; }

  html { font-size: 15px; }

  h2 { font-size: 1.15rem; }
  h3 { font-size: 1rem; }

  .hero h1 { font-size: 1.2rem; }
  .hero-lead { font-size: 0.9rem; }

  .service {
    width: 100%;
    padding: 3rem 1.5rem 1.5rem 4.5rem;
    border-right: 0;
  }
  .service::before { left: 1.5rem; top: 3.1rem; }

  .wa-cta::before { font-size: 4rem; }

  .site-head { padding-inline: 1rem; }
}
