/* =========================================================
   اسكندرية اليوم — Coming Soon
   Editorial / broadsheet newsprint aesthetic
   ========================================================= */

:root{
  --ink:        #1a1712;
  --ink-soft:   #4a4436;
  --paper:      #f4ecd9;
  --paper-2:    #ece1c8;
  --paper-card: #fbf6ea;
  --navy:       #16305c;
  --navy-2:     #0e2142;
  --red:        #b5241c;
  --gold:       #c8922f;
  --rule:       #cabb98;
  --shadow:     rgba(22, 20, 12, 0.18);

  --font-display: "Rakkas", serif;
  --font-body:    "Tajawal", sans-serif;
  --font-num:     "Cairo", sans-serif;
}

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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  position: relative;
  overflow-x: hidden;
}

/* ---------- textures ---------- */
body::before{
  /* subtle ruled-paper lines, echoing the masthead artwork */
  content: "";
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(22,20,12,0.035) 0,
    rgba(22,20,12,0.035) 1px,
    transparent 1px,
    transparent 38px
  );
  pointer-events: none;
  z-index: 0;
}

.grain-overlay{
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- ticker ---------- */
.ticker{
  position: relative;
  z-index: 30;
  display: flex;
  align-items: stretch;
  background: var(--navy-2);
  color: #f4ecd9;
  border-bottom: 3px solid var(--red);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.ticker__badge{
  flex: 0 0 auto;
  background: var(--red);
  color: #fff;
  padding: 0.55rem 1.1rem;
  display: flex;
  align-items: center;
  font-weight: 800;
  position: relative;
  z-index: 2;
}
.ticker__badge::after{
  content: "";
  position: absolute;
  inset-inline-end: -14px;
  top: 0;
  bottom: 0;
  width: 14px;
  background: var(--red);
  clip-path: polygon(0 0, 0% 100%, 100% 50%);
}

.ticker__track{
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  display: flex;
  padding-inline-start: 1rem;
}

.ticker__group{
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding-inline-end: 3rem;
  animation: ticker-scroll 28s linear infinite;
}
.ticker__group .dot{ color: var(--gold); font-size: 0.5em; }

@keyframes ticker-scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce){
  .ticker__group{ animation: none; }
}

/* ---------- layout shell ---------- */
.page{
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1.1rem, 5vw, 2rem) 0;
}

/* ---------- masthead ---------- */
.masthead{
  text-align: center;
  animation: fade-down 0.9s ease both;
}

.masthead__eyebrow{
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--navy);
  text-transform: uppercase;
  margin: 0 0 1.1rem;
}
.masthead__eyebrow::before,
.masthead__eyebrow::after{
  content: "—";
  color: var(--gold);
  margin: 0 0.6em;
}

.masthead__clip{
  display: inline-block;
  background: var(--paper-card);
  padding: clamp(0.6rem, 2vw, 1.1rem) clamp(1rem, 4vw, 2.2rem);
  border: 1px solid var(--rule);
  box-shadow: 0 18px 40px -18px var(--shadow), 0 1px 0 #fff inset;
  transform: rotate(-0.6deg);
  max-width: 100%;
}

.masthead__img{
  display: block;
  width: min(560px, 78vw);
  height: auto;
  filter: contrast(1.03);
}

.masthead__dateline{
  margin-top: 1.2rem;
  font-family: var(--font-num);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  flex-wrap: wrap;
}
.masthead__sep{ color: var(--gold); }

/* ---------- hero ---------- */
.hero{
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3rem);
  position: relative;
}

.hero__rule{
  height: 3px;
  background: linear-gradient(to left, transparent, var(--navy) 15%, var(--navy) 85%, transparent);
  margin: 0 auto 2.4rem;
  max-width: 340px;
  position: relative;
}
.hero__rule::before,
.hero__rule::after{
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  transform: translateY(-50%);
}
.hero__rule::before{ inset-inline-start: -3px; }
.hero__rule::after{ inset-inline-end: -3px; }

.hero__kicker{
  font-family: var(--font-num);
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.06em;
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
}

.hero__headline{
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.6rem, 14vw, 8.5rem);
  line-height: 1;
  color: var(--navy);
  text-shadow: 3px 3px 0 rgba(197, 146, 47, 0.28);
  letter-spacing: 0.02em;
}

.hero__headline-line{
  display: inline-block;
  animation: press-in 1.1s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: 0.15s;
}

.hero__lede{
  max-width: 620px;
  margin: 1.6rem auto 0;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.9;
  color: var(--ink-soft);
  animation: fade-up 0.9s ease both;
  animation-delay: 0.35s;
}

.hero__lede strong{
  color: var(--navy);
  font-weight: 700;
}

/* printing press progress */
.press{
  max-width: 340px;
  margin: 2.6rem auto 0;
  animation: fade-up 0.9s ease both;
  animation-delay: 0.5s;
}
.press__bar{
  height: 8px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  overflow: hidden;
  position: relative;
}
.press__fill{
  position: absolute;
  inset: 0;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--navy), var(--red));
  animation: press-loop 2.6s ease-in-out infinite;
}
.press__label{
  margin: 0.7rem 0 0;
  font-size: 0.8rem;
  font-family: var(--font-num);
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

@keyframes press-loop{
  0%{   left: -40%; }
  50%{  left: 60%; }
  100%{ left: 100%; }
}

/* ---------- notify form ---------- */
.notify{
  max-width: 420px;
  margin: 2.6rem auto 0;
  animation: fade-up 0.9s ease both;
  animation-delay: 0.65s;
}
.notify__label{
  display: block;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.notify__row{
  display: flex;
  gap: 0.5rem;
  background: var(--paper-card);
  border: 1.5px solid var(--navy);
  border-radius: 3px;
  padding: 0.35rem;
  box-shadow: 3px 3px 0 var(--gold);
}
.notify__row input{
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.65rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  text-align: right;
}
.notify__row input::placeholder{ color: #9c917a; }

.notify__btn{
  flex: 0 0 auto;
  border: 0;
  background: var(--navy);
  color: #f4ecd9;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.65rem 1.4rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.notify__btn:hover{ background: var(--red); transform: translateY(-1px); }
.notify__btn:active{ transform: translateY(0); }

.notify__msg{
  min-height: 1.4em;
  margin: 0.7rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
}
.notify__msg.is-success{ color: #2c6e3f; }

/* ---------- social ---------- */
.social{
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.4rem;
  animation: fade-up 0.9s ease both;
  animation-delay: 0.8s;
}
.social__link{
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  background: var(--paper-card);
  transition: all 0.22s ease;
}
.social__link svg{ width: 19px; height: 19px; }
.social__link:hover{
  background: var(--navy);
  color: var(--paper);
  transform: translateY(-3px) rotate(-6deg);
  border-color: var(--navy);
}

/* ---------- contact classified section ---------- */
.contact{
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: 2.4rem;
  border-top: 3px double var(--navy);
}

.contact__title{
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  color: var(--navy);
  margin: 0 0 2.2rem;
  position: relative;
}
.contact__title span{
  background: var(--paper);
  padding: 0 1.2rem;
  position: relative;
  z-index: 1;
}
.contact__title::before{
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 50%;
  height: 1px;
  background: var(--rule);
  z-index: 0;
}

.contact__grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.1rem;
}

.contact__card{
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--gold);
  padding: 1.5rem 1.3rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact__card:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -14px var(--shadow);
}
.contact__card:nth-child(even){ border-top-color: var(--red); }

.contact__icon{
  width: 46px;
  height: 46px;
  margin: 0 auto 0.9rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border-radius: 50%;
  border: 1px solid var(--rule);
}
.contact__icon svg{ width: 22px; height: 22px; }

.contact__card h3{
  margin: 0 0 0.6rem;
  font-family: var(--font-num);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}

.contact__list{
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.contact__list a{
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px dashed var(--rule);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.contact__list a:hover{
  color: var(--red);
  border-color: var(--red);
}

.map{
  margin-top: 1.6rem;
  border: 1px solid var(--rule);
  box-shadow: 0 14px 30px -18px var(--shadow);
  filter: grayscale(0.15) sepia(0.08);
}
.map iframe{
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

/* ---------- footer ---------- */
.footer{
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding: 2.2rem 1rem 2.6rem;
  text-align: center;
  border-top: 1px solid var(--rule);
}
.footer__logo{
  height: 46px;
  width: auto;
  margin: 0 auto 0.9rem;
  display: block;
  opacity: 0.92;
}
.footer__text{
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.footer__copy{
  margin: 0;
  font-family: var(--font-num);
  font-size: 0.76rem;
  color: #9c917a;
  letter-spacing: 0.03em;
}

/* ---------- animations ---------- */
@keyframes fade-down{
  from{ opacity: 0; transform: translateY(-16px); }
  to{   opacity: 1; transform: translateY(0); }
}
@keyframes fade-up{
  from{ opacity: 0; transform: translateY(18px); }
  to{   opacity: 1; transform: translateY(0); }
}
@keyframes press-in{
  from{ opacity: 0; transform: scale(0.92) translateY(10px); letter-spacing: 0.3em; }
  to{   opacity: 1; transform: scale(1) translateY(0); letter-spacing: 0.02em; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 560px){
  .notify__row{ flex-direction: column; box-shadow: 2px 2px 0 var(--gold); }
  .notify__row input{ text-align: center; padding: 0.7rem; }
  .notify__btn{ width: 100%; padding: 0.7rem; }
  .ticker__badge{ font-size: 0.78rem; padding: 0.5rem 0.8rem; }
}
