/* ==========================================================
   Fokhaly Limited — single page site
   ========================================================== */

:root {
  --red: #e30613;
  --red-deep: #8f0008;
  --ink: #0b0b0b;
  --ink-2: #1a1a1a;
  --paper: #f7f6f4;
  --white: #ffffff;
  --muted: #5f5f5f;
  --line: #e2e0dc;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 84px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Shared bits ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow.light { color: var(--white); }
.dash { width: 22px; height: 2px; background: var(--red); display: inline-block; }

.display {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.03em;
}
.display em, .hero-title em { font-style: normal; color: var(--red); }
.dot { color: var(--red); }

.section { padding: clamp(64px, 9vw, 120px) 0; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.section-head .eyebrow { margin-bottom: 0; }
.section-head.split { align-items: flex-end; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.split .eyebrow { margin-bottom: 18px; }
.section-intro { max-width: 380px; color: var(--muted); font-size: 15px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 26px;
  border-radius: 3px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
  white-space: nowrap;
}
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--red); }
.btn-red { background: var(--red); color: var(--white); border: 0; }
.btn-red:hover { background: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }

.text-link {
  display: inline-flex;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.text-link:hover { color: var(--red); }
.text-link.light { color: var(--white); }
.text-link.light:hover { color: var(--white); opacity: .75; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--white);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.site-header .btn-red:hover { background: var(--white); color: var(--ink); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand img { width: 200px; height: auto; }

.nav { display: flex; align-items: center; gap: clamp(48px, 7vw, 96px); }
.nav a:not(.btn) {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 6px 0;
  transition: color .2s;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform .25s;
}
.nav a:not(.btn):hover,
.nav a.active { color: var(--red); }
.nav a.active::after { transform: scaleX(1); }
.nav-cta { display: none; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--white);
  transition: transform .3s, top .3s;
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  display: flex;
  min-height: min(calc(100vh - var(--header-h)), 820px);
  min-height: min(calc(100svh - var(--header-h)), 820px);
  border-bottom: 1px solid var(--line);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 48px;
  padding-bottom: 72px;
}

.eyebrow-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.eyebrow-list span:not(:last-child)::after { content: "/"; margin: 0 16px; }

.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.hero-title .line { display: block; white-space: nowrap; }

/* Rotating phrase in the headline */
.rotator .w { display: inline-block; white-space: nowrap; }
.rotator .ch {
  display: inline-block;
  transition: transform .55s cubic-bezier(.2,.7,.2,1), opacity .45s ease;
  transition-delay: calc(var(--i) * 22ms);
}
.rotator.leaving .ch { opacity: 0; transform: translateY(-.4em); }
.rotator.entering .ch { opacity: 0; transform: translateY(.4em); transition: none; }

.hero-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.hero-lead {
  max-width: 600px;
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 19px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}
.play-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: color .2s;
}
.play-link .arrow { transition: transform .25s; }
.play-link:hover { color: var(--red); }
.play-link:hover .arrow { transform: translateX(4px); }

/* ---------- About ---------- */

.about-copy {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 4vw, 64px);
  padding-top: clamp(64px, 8vw, 104px);
  padding-bottom: clamp(64px, 8vw, 104px);
}
.about-body { padding-top: 34px; }
.about-body > p { color: var(--muted); font-size: 16px; max-width: 560px; }

.services {
  list-style: none;
  padding: 0;
  margin: 28px 0 32px;
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 18px 36px;
}
.services li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.25;
}
.services svg {
  width: 28px; height: 28px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

/* ---------- Marquee ---------- */

.marquee {
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding: 22px 0;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  font-weight: 600;
  font-style: italic;
  white-space: nowrap;
}
.marquee-track b { color: var(--red); font-size: .7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Contact ---------- */

.contact { background: var(--white); border-top: 1px solid var(--line); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
}
.contact-copy .section-intro { margin-top: 22px; max-width: 440px; }

.contact-list { list-style: none; padding: 0; margin: 36px 0 0; }
.contact-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}
.contact-list a:hover { color: var(--red); }
.contact-list .phones { display: flex; flex-direction: column; gap: 4px; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-self: start;
  padding: clamp(24px, 4vw, 44px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
}
.form-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--line);
  border-radius: 0;
  padding: 10px 0;
  outline: none;
  transition: border-color .25s;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--red); }
.field.invalid input,
.field.invalid textarea { border-color: var(--red); }
.contact-form .btn { align-self: flex-start; margin-top: 6px; }
.form-note { font-size: 14px; color: var(--muted); min-height: 1.4em; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--white); padding: 64px 0 28px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand img { width: 190px; }
.footer-brand .eyebrow-list { margin: 18px 0 0; color: rgba(255,255,255,.6); }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.footer-nav { display: flex; gap: 32px; }
.footer-nav a { font-size: 13px; color: rgba(255,255,255,.75); }
.footer-nav a:hover { color: var(--red); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  display: grid;
  place-items: center;
  transition: background .25s, border-color .25s;
}
.footer-social svg { width: 17px; height: 17px; }
.footer-social a:hover { background: var(--red); border-color: var(--red); }
.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  font-size: 12.5px;
  color: rgba(255,255,255,.5);
}

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 1180px) {
  .header-cta { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .brand img { width: 160px; }

  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px var(--gutter) 28px;
    background: var(--ink);
    border-bottom: 1px solid rgba(255,255,255,.1);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a:not(.btn) {
    width: 100%;
    padding: 14px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav a:not(.btn)::after { display: none; }
  .nav-cta { display: inline-flex; margin-top: 20px; }

  .hero { min-height: 0; }
  .hero-copy { padding-top: 40px; }
  .hero-title { font-size: clamp(2.4rem, 7.4vw, 4.4rem); }
  .hero-title .line { display: inline; white-space: normal; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }

  .about-copy { grid-template-columns: 1fr; gap: 8px; }
  .about-body { padding-top: 12px; }
  .services { grid-template-columns: repeat(2, max-content); gap: 18px 24px; }

  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 640px) {
  .section-head { flex-wrap: wrap; }
  .section-head.split { flex-direction: column; align-items: flex-start; }
  .eyebrow-list {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 10px 22px;
    letter-spacing: .18em;
  }
  .eyebrow-list span { display: flex; align-items: center; gap: 9px; }
  .eyebrow-list span::before { content: ""; width: 5px; height: 5px; background: var(--red); }
  .eyebrow-list span:not(:last-child)::after { content: none; }
  .services { grid-template-columns: max-content; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { align-items: flex-start; }
  .footer-base { flex-direction: column; align-items: flex-start; }
}
