/* =========================================================
   FelAya Brand Experience — site styles
   Edit the tokens below to adjust the whole site.
   ========================================================= */
:root {
  --white: #ffffff;
  --paper: #faf8f6;          /* warm off-white for alternating sections */
  --ink: #111111;            /* primary text */
  --ink-soft: #4a4a4a;       /* body copy */
  --line: #e6e2de;           /* hairlines */
  --red: #a3182c;            /* brand accent — replace with exact value from logo file */
  --red-dark: #82121f;
  --placeholder: #efebe7;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --max: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(80px, 12vw, 160px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 300 17px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.2em; color: var(--ink-soft); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
em { font-style: italic; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font: 500 .74rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase;
  color: var(--red); margin-bottom: 28px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.7; max-width: 38em; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bg);
  font: 500 .78rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  cursor: pointer; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { --bg: var(--red); }
.btn--red { --bg: var(--red); }
.btn--red:hover { --bg: var(--red-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--light:hover { background: var(--white); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 .76rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  border-bottom: 1px solid var(--ink); padding-bottom: 8px;
  transition: gap .35s var(--ease), color .35s, border-color .35s;
}
.link-arrow:hover { gap: 20px; color: var(--red); border-color: var(--red); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255,255,255,0); transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled, .site-header.is-solid { background: rgba(255,255,255,.96); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { display: flex; align-items: center; }
.logo img { height: 46px; width: auto; }
/* Text fallback until the supplied logo file is added */
.logo-text { font: 500 1.35rem/1 var(--serif); letter-spacing: .32em; }
.logo-text small { display: block; font: 400 .52rem/1 var(--sans); letter-spacing: .42em; margin-top: 6px; color: var(--red); }

.nav { display: flex; align-items: center; gap: 38px; }
.nav a:not(.btn) {
  position: relative; font: 400 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { min-height: 44px; padding: 0 22px; }

.menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--ink); transition: transform .35s var(--ease), opacity .2s; }
.menu-toggle span:nth-child(1) { top: 17px; } .menu-toggle span:nth-child(2) { top: 26px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 140px var(--gutter) 80px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
.hero-copy h1 em { color: var(--red); font-style: italic; }
.hero-media { position: relative; overflow: hidden; }
.hero-media .ph, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: slowzoom 18s var(--ease) both; }
@keyframes slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.page-hero { padding: 200px 0 var(--section); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 14em; }

/* ---------- Image placeholders (swap for real photos) ---------- */
.ph {
  background: var(--placeholder);
  display: flex; align-items: flex-end; justify-content: flex-start;
  color: #9b928a; font: 400 .72rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  padding: 18px; position: relative; overflow: hidden;
}
.ph::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 22px, rgba(0,0,0,.025) 22px 23px);
}
.ph span { position: relative; }

/* ---------- Statement ---------- */
.statement { text-align: center; }
.statement p {
  font: 400 clamp(1.9rem, 4.4vw, 3.6rem)/1.25 var(--serif); color: var(--ink); margin: 0;
}
.statement p em { color: var(--red); }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media { aspect-ratio: 4 / 5; }
.split-media > * { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 64px; }
.service-card { display: block; }
.service-card .media { aspect-ratio: 3 / 4; overflow: hidden; margin-bottom: 26px; }
.service-card .media > * { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.service-card:hover .media > * { transform: scale(1.05); }
.service-card .num { font: 400 .78rem/1 var(--sans); letter-spacing: .2em; color: var(--red); display: block; margin-bottom: 14px; }
.service-card h3 { font-size: 1.6rem; margin-bottom: 10px; }
.service-card p { font-size: .96rem; }

.service-detail { padding: clamp(64px, 9vw, 120px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 84px; }
.service-detail:last-of-type { border-bottom: 0; }
.service-detail .num { font: 400 clamp(3rem, 6vw, 5rem)/1 var(--serif); color: var(--red); display: block; margin-bottom: 18px; }
.tag-list { list-style: none; padding: 0; margin: 28px 0 36px; display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list li { border: 1px solid var(--line); padding: 8px 16px; font-size: .82rem; letter-spacing: .04em; color: var(--ink-soft); }

/* ---------- Section head ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 14em; }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 56px 0 48px; border-bottom: 1px solid var(--line); }
.filters button {
  background: none; border: 0; padding: 0 0 18px; cursor: pointer; position: relative;
  font: 400 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft);
}
.filters button[aria-pressed="true"] { color: var(--ink); }
.filters button[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 28px; }
.work-grid--home { margin-top: 64px; }
.work-item { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.work-item.is-hidden { display: none; }
.work-item .media { aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 20px; }
.work-item:nth-child(3n+2) .media { aspect-ratio: 4 / 4.4; }
.work-item .media > * { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.work-item:hover .media > * { transform: scale(1.04); }
.work-item .cat { font: 500 .7rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--red); }
.work-item h3 { font-size: 1.45rem; margin: 12px 0 8px; }
.work-item p { font-size: .94rem; margin: 0; }

/* ---------- Founder ---------- */
.founder-quote { font: italic 400 clamp(1.4rem, 2.2vw, 1.8rem)/1.45 var(--serif); color: var(--ink); border-left: 2px solid var(--red); padding-left: 24px; margin: 32px 0; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; }
.check-list li { padding: 14px 0; border-top: 1px solid var(--line); font-size: .98rem; color: var(--ink-soft); display: flex; gap: 14px; }
.check-list li::before { content: ""; width: 6px; height: 6px; background: var(--red); border-radius: 50%; margin-top: 11px; flex: none; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--white); text-align: center; padding: clamp(80px, 11vw, 140px) 0; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.72); max-width: 34em; margin: 0 auto; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(48px, 8vw, 120px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 40px 0 0; }
.contact-list li { padding: 22px 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list small { display: block; font: 500 .7rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.contact-list a, .contact-list span { font: 400 1.4rem/1.3 var(--serif); }
.contact-list a:hover { color: var(--red); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field--full { grid-column: 1 / -1; }
.field label { font: 500 .7rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.field label .opt { color: #9b928a; letter-spacing: .1em; text-transform: none; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid #cfc9c3; background: transparent; border-radius: 0;
  padding: 10px 0 12px; font: 300 1rem/1.5 var(--sans); color: var(--ink); transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23111' stroke-width='1.2'/%3E%3C/svg%3E") right 4px center no-repeat; padding-right: 24px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.form .btn-row { grid-column: 1 / -1; margin-top: 8px; }
.form-note { grid-column: 1 / -1; font-size: .85rem; margin: 0; }
.form-status { grid-column: 1 / -1; font-size: .95rem; color: var(--red); margin: 0; min-height: 1.5em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 80px 0 40px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer-tagline { font: italic 400 1.5rem/1.4 var(--serif); color: var(--ink); margin-top: 20px; }
.site-footer h4 { font: 500 .7rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--red); margin: 0 0 22px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; font-size: .95rem; }
.site-footer li a:hover { color: var(--red); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); font-size: .8rem; color: #8a837d; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--white);
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.18);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.wa-float:hover { background: #1f9e55; transform: translateY(-3px); }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .12s; } .reveal-d2 { transition-delay: .24s; } .reveal-d3 { transition-delay: .36s; }

@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: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 24px; }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; z-index: 60; }
  .nav {
    position: fixed; inset: 0; background: var(--white); flex-direction: column; justify-content: center; gap: 30px;
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav a:not(.btn) { font: 400 2rem/1 var(--serif); letter-spacing: 0; text-transform: none; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  /* backdrop-filter would trap the fixed menu inside the header — disable it while open */
  .menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--white); }
  .nav { height: 100vh; height: 100dvh; }
  .menu-open { overflow: hidden; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 130px var(--gutter) 56px; }
  .hero-media { aspect-ratio: 4 / 5; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
  .page-hero { padding-top: 150px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .header-inner { height: 72px; }
  .logo img { height: 38px; }
  .services-grid, .work-grid { grid-template-columns: 1fr; }
  .work-item:nth-child(3n+2) .media { aspect-ratio: 4 / 5; }
  .form { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
  .footer-top { grid-template-columns: 1fr; }
  .split-media { aspect-ratio: 4 / 4.6; }
}
