/*
Theme Name: Sariva — Site in Progress
Theme URI: https://sariva.com.ng
Author: Sariva Healthcare Specialties
Author URI: https://sariva.com.ng
Description: A quiet, editorial "site in progress" theme for Sariva. Renders a single coming-soon screen across the whole site with an email notify form. Built with Archivo + Newsreader and a toned-down plum/terracotta palette drawn from the Sariva mark. Subscribers are stored in WordPress and exportable from Tools → Sariva Subscribers.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sariva-coming-soon
*/

/* ============================================================
   Palette — two toned-down shades pulled from the Sariva mark.
   The full vermilion -> plum -> indigo gradient lives only in
   the logo. Everything else stays calm around it.
   ============================================================ */
:root{
  --paper:      #F7F3EF;  /* warm off-white ground            */
  --paper-tint: #F1E9EE;  /* faint plum wash for surfaces     */
  --ink:        #2A1E2E;  /* deep aubergine — headlines/text  */
  --plum:       #6B4A6E;  /* dusty plum — secondary, buttons  */
  --plum-deep:  #4A2E4D;  /* button base                      */
  --terra:      #C0683F;  /* toned-down terracotta accent     */
  --terra-soft: #D08A66;  /* lighter terracotta for the rule  */
  --line:       #E4DAE0;  /* pale plum hairline               */
  --muted:      #7C6B77;  /* captions / footnotes             */

  --maxw: 640px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);  /* long, soft deceleration */
}

*{ box-sizing: border-box; }

html{ -webkit-text-size-adjust: 100%; height: 100%; }
html, body{ overflow: hidden; }

body{
  margin: 0;
  height: 100vh;
  height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle plum vignette so the centred content sits in light */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% -10%, var(--paper-tint) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   Ambient — a faint CT-scan slice drifting behind the content.
   ============================================================ */
.scan{
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  display: grid;
  place-items: center;
}
.scan img{
  width: min(86vmin, 760px);
  height: auto;
  opacity: .085;
  will-change: transform;
  transform: translate(-14vw, -3vh) rotate(-5deg);
}
@media (prefers-reduced-motion: no-preference){
  .scan img{ animation: scanfloat 78s ease-in-out infinite alternate; }
}
@keyframes scanfloat{
  from{ transform: translate(-15vw, -4vh) rotate(-6deg); }
  to{   transform: translate(15vw,  4vh) rotate(6deg); }
}

.wrap{
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
}

.stage{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(20px, 5vh, 56px) 24px clamp(16px, 3vh, 32px);
  max-width: min(900px, 94vw);
  margin: 0 auto;
  width: 100%;
  min-height: 0;
}

/* ---- Eyebrow ---- */
.eyebrow{
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--plum);
  display: inline-flex;
  align-items: center;
  gap: .65em;
  margin: 0 0 clamp(18px, 4.5vh, 40px);
}
.eyebrow::before,
.eyebrow::after{
  content: "";
  width: 26px;
  height: 1px;
  background: var(--line);
}
.eyebrow::before{ transform-origin: right center; }
.eyebrow::after{ transform-origin: left center; }

/* ---- Logo ---- */
.brand{
  margin: 0 0 clamp(20px, 5vh, 44px);
}
.brand img{
  display: block;
  width: 248px;
  max-width: 70vw;
  height: auto;
}

/* ---- Headline ---- */
.headline{
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(36px, min(10vw, 9.2vh), 92px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 clamp(14px, 2.6vh, 24px);
  max-width: min(860px, 100%);
  text-wrap: balance;
}
.headline .accent{
  position: relative;
  color: var(--terra);
  font-style: italic;
  white-space: nowrap;
}
.headline .accent::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.06em;
  height: 2px;
  border-radius: 2px;
  /* the only place we let two tones meet, very quietly */
  background: linear-gradient(90deg, var(--terra) 0%, var(--plum) 100%);
  opacity: .5;
  transform-origin: left center;
}

.lede{
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 clamp(18px, 4vh, 40px);
  max-width: 460px;
}

/* ---- Notify form ---- */
.notify{
  width: 100%;
  max-width: 440px;
}
.notify-label{
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--plum);
  margin: 0 0 12px;
}
.field{
  display: flex;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field:focus-within{
  border-color: var(--plum);
  box-shadow: 0 0 0 4px rgba(107,74,110,.12);
}
.field input[type="email"]{
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  padding: 11px 14px;
}
.field input::placeholder{ color: #B4A6AF; }

.btn{
  flex: 0 0 auto;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: var(--plum-deep);
  border-radius: 10px;
  padding: 11px 20px;
  box-shadow: 0 1px 0 rgba(42,30,46,0);
  transition: background .25s var(--ease-out), transform .18s var(--ease-out), box-shadow .25s var(--ease-out);
}
.btn:hover{ background: var(--terra); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(192,104,63,.26); }
.btn:active{ transform: translateY(0); box-shadow: 0 2px 8px rgba(192,104,63,.20); }
.btn:disabled{ opacity: .55; cursor: default; transform: none; box-shadow: none; }

.note{
  min-height: 20px;
  font-size: 14px;
  margin: 14px 2px 0;
  color: var(--muted);
  transition: color .2s var(--ease);
}
.note.is-ok{ color: var(--plum); }
.note.is-err{ color: var(--terra); }

/* ---- Footer ---- */
.foot{
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 22px 24px 30px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .01em;
}
.foot .sep{ color: var(--line); margin: 0 .5em; }
.foot a{ color: var(--plum); text-decoration: none; }
.foot a:hover{ text-decoration: underline; }

/* ---- Entrance: one quiet, orchestrated load ---- */
@media (prefers-reduced-motion: no-preference){
  .reveal{ opacity: 0; animation: rise .95s var(--ease-out) both; }
  .eyebrow.reveal{ animation-delay: 0s; }
  .brand{ animation-delay: .12s; }
  .headline{ animation-delay: .26s; }
  .lede{ animation-delay: .42s; }
  .notify{ animation-delay: .54s; }
  .foot.reveal{ animation-delay: .72s; }

  /* hairlines and the accent rule draw themselves in */
  .eyebrow::before,
  .eyebrow::after{ transform: scaleX(0); animation: draw .6s var(--ease-out) .4s both; }
  .headline .accent::after{ transform: scaleX(0); animation: draw .75s var(--ease-out) 1.05s both; }

  /* the notify message settles in rather than snapping */
  .note.is-ok,
  .note.is-err{ animation: noteIn .45s var(--ease-out) both; }
}

@keyframes rise{
  from{ opacity: 0; transform: translateY(16px); filter: blur(8px); }
  to{ opacity: 1; transform: none; filter: blur(0); }
}
@keyframes draw{ to{ transform: scaleX(1); } }
@keyframes noteIn{
  from{ opacity: 0; transform: translateY(4px); }
  to{ opacity: 1; transform: none; }
}

/* ---- Focus visibility ---- */
:focus-visible{ outline: 2px solid var(--plum); outline-offset: 2px; }
.btn:focus-visible{ outline-offset: 3px; }

@media (max-width: 460px){
  .field{ flex-direction: column; }
  .btn{ width: 100%; }
  .eyebrow{ margin-bottom: 30px; }
}

/* Short viewports: shrink so the larger headline still fits without scrolling */
@media (max-height: 760px){
  .brand img{ width: 210px; }
}
@media (max-height: 680px){
  .headline{ font-size: clamp(30px, 7.6vh, 64px); }
  .brand img{ width: 184px; }
  .lede{ font-size: 15px; }
  .eyebrow{ margin-bottom: clamp(14px, 3vh, 26px); }
  .foot{ padding-block: 12px 14px; }
}
@media (max-height: 560px){
  .headline{ font-size: clamp(26px, 7vh, 46px); }
  .brand img{ width: 150px; }
  .eyebrow{ margin-bottom: clamp(8px, 2vh, 16px); }
  .lede{ margin-bottom: clamp(12px, 2.5vh, 20px); }
  .notify-label{ margin-bottom: 8px; }
}
