/* FA Sales Agency — brand system
   Palette: warm ivory paper base, honey-to-brass gold accents, deep warm-charcoal text
   Type: Bodoni Moda (display) + Jost (body)
   Motif: the browser frame — a live URL bar and signal pulse, tying the
   luxury palette to the online, always-connected nature of the work
*/

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,500;0,6..96,600;1,6..96,400&family=Jost:wght@300;400;500;600&display=swap');

:root{
  --paper: #F8F3E6;
  --panel: #FFFFFF;
  --panel-line: #E7DEC5;
  --gold-light: #EBD489;
  --gold-dark: #996E22;
  --gold-mid: #B07F22;
  --ink: #22190F;
  --ink-dim: #7A6E58;
  --gold-gradient: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  --gold-text-gradient: linear-gradient(135deg, #B98A2E, #7A5518);
  --shadow-soft: 0 24px 48px -28px rgba(34,25,15,0.18);
}

*{ box-sizing: border-box; margin: 0; padding: 0; }

html{ scroll-behavior: smooth; }

body{
  background: var(--paper);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 500px at 50% -10%, rgba(176,127,34,0.07), transparent 60%),
    radial-gradient(ellipse 700px 500px at 85% 30%, rgba(176,127,34,0.05), transparent 60%);
  z-index: 0;
  animation: driftGlow 22s ease-in-out infinite alternate;
}
@keyframes driftGlow{
  0%{ background-position: 0% 0%, 0% 0%; }
  100%{ background-position: 0% 6%, -4% 3%; }
}
@media (prefers-reduced-motion: reduce){
  body::before{ animation: none; }
}

/* faint paper-grain texture for warmth, tuned for a light surface */
body::after{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3{
  font-family: 'Bodoni Moda', serif;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--ink);
}

a{ color: inherit; text-decoration: none; }

.gold-text{
  background: var(--gold-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Layout shell ---------- */
.wrap{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* ---------- Nav ---------- */
header{
  border-bottom: 1px solid var(--panel-line);
  position: sticky;
  top: 0;
  background: rgba(248,243,230,0.85);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.brand{
  font-family: 'Bodoni Moda', serif;
  font-size: 20px;
  letter-spacing: 0.04em;
}

.brand span{ color: var(--gold-mid); }

.nav-links{
  display: flex;
  gap: 40px;
  font-size: 15px;
  color: var(--ink-dim);
}

.nav-links a{
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}
.nav-links a::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold-mid);
  transition: width 0.25s ease;
}
.nav-links a:hover, .nav-links a.active{ color: var(--gold-dark); }
.nav-links a:hover::after, .nav-links a.active::after{ width: 100%; }

.nav-toggle{ display: none; }

@media (max-width: 720px){
  .nav-links{
    position: fixed;
    top: 65px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--panel-line);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open{ max-height: 260px; }
  .nav-links a{ padding: 16px 32px; border-bottom: 1px solid var(--panel-line); }
  .nav-toggle{
    display: block;
    background: none; border: none;
    color: var(--ink); font-size: 26px; cursor: pointer;
    line-height: 1;
  }
}

/* ---------- The Frame — a browser window: the online-presence motif ---------- */
.frame{
  position: relative;
  border: 1px solid var(--panel-line);
  border-radius: 16px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.frame-bar{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--panel-line);
  background: linear-gradient(180deg, rgba(235,212,137,0.05), transparent);
}

.frame-bar .dot{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-mid);
  opacity: 0.35;
}
.frame-bar .dot:nth-child(2){ opacity: 0.6; }
.frame-bar .dot:nth-child(3){ opacity: 0.9; }

.frame-bar .url{
  margin-left: 12px;
  flex: 1;
  font-size: 13px;
  color: var(--ink-dim);
  overflow: hidden;
  white-space: nowrap;
  border-right: 1px solid var(--gold-mid);
  width: 0;
  animation: typeUrl 1.8s steps(22, end) 0.6s forwards;
}

@keyframes typeUrl{
  to{ width: 15ch; border-right-color: transparent; }
}

.frame-body{ padding: 56px 48px 48px; }

@media (max-width: 720px){
  .frame-body{ padding: 40px 24px 32px; }
}

/* live/online pulse — a small broadcasting signal */
.pulse{
  position: relative;
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-mid);
  margin-right: 10px;
}
.pulse::before, .pulse::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--gold-mid);
  animation: ping 2.4s cubic-bezier(0,0,0.2,1) infinite;
  opacity: 0;
}
.pulse::after{ animation-delay: 1.2s; }
@keyframes ping{
  0%{ transform: scale(1); opacity: 0.6; }
  100%{ transform: scale(4.5); opacity: 0; }
}

/* frame entrance — a single orchestrated reveal, not repeated per element */
.frame-open{
  animation: frameIn 0.85s cubic-bezier(.16,1,.3,1) both;
}
@keyframes frameIn{
  0%{ opacity: 0; transform: translateY(10px) scale(0.98); }
  100%{ opacity: 1; transform: translateY(0) scale(1); }
}

/* staggered content reveal inside a frame, after it opens */
.stagger > *{
  opacity: 0;
  transform: translateY(14px);
  animation: riseIn 0.7s ease-out both;
}
.stagger > *:nth-child(1){ animation-delay: 0.5s; }
.stagger > *:nth-child(2){ animation-delay: 0.63s; }
.stagger > *:nth-child(3){ animation-delay: 0.76s; }
.stagger > *:nth-child(4){ animation-delay: 0.89s; }
@keyframes riseIn{
  to{ opacity: 1; transform: translateY(0); }
}

/* scroll-triggered reveal, applied selectively — headers and frames only */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view{ opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  .frame-open, .stagger > *, .frame-bar .url{ animation: none !important; opacity: 1 !important; transform: none !important; width: 15ch !important; }
  .reveal{ opacity: 1 !important; transform: none !important; }
  .pulse::before, .pulse::after{ animation: none !important; }
}

/* ---------- Hero ---------- */
.hero{
  padding: 96px 0 80px;
  text-align: left;
}

.eyebrow{
  font-size: 14px;
  color: var(--gold-mid);
  margin-bottom: 20px;
  font-weight: 400;
}

.hero h1{
  font-size: clamp(38px, 6vw, 64px);
  max-width: 14ch;
}

.hero p.lede{
  margin-top: 24px;
  max-width: 46ch;
  font-size: 19px;
  color: var(--ink-dim);
}

.cta-row{
  margin-top: 40px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn{
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 15px;
  transition: all 0.2s ease;
}

.btn-primary{
  background: var(--gold-gradient);
  color: #16130F;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.45) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}
.btn-primary:hover::after{ transform: translateX(120%); }
.btn-primary:hover{ filter: brightness(1.05); }

.btn-ghost{
  border: 1px solid var(--panel-line);
  color: var(--ink);
}
.btn-ghost:hover{ border-color: var(--gold-mid); color: var(--gold-dark); }

/* ---------- Marquee strip ---------- */
.marquee{
  border-top: 1px solid var(--panel-line);
  border-bottom: 1px solid var(--panel-line);
  overflow: hidden;
  padding: 22px 0;
  white-space: nowrap;
}
.marquee-track{
  display: inline-flex;
  gap: 48px;
  animation: scrollMarquee 28s linear infinite;
}
.marquee-track span{
  font-family: 'Bodoni Moda', serif;
  font-style: italic;
  font-size: 20px;
  color: transparent;
  background: var(--gold-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0.9;
}
@keyframes scrollMarquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .marquee-track{ animation: none; }
}

/* ---------- Stats ---------- */
.stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--panel-line);
  border: 1px solid var(--panel-line);
}
.stat{
  background: var(--paper);
  padding: 40px 32px;
  text-align: left;
}
.stat .num{
  font-family: 'Bodoni Moda', serif;
  font-size: 44px;
}
.stat .cap{
  margin-top: 8px;
  color: var(--ink-dim);
  font-size: 15px;
}
@media (max-width: 720px){
  .stats{ grid-template-columns: 1fr; }
}

/* ---------- Process ---------- */
.process{
  display: grid;
  gap: 36px;
}
.step{
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  align-items: start;
}
.step .step-num{
  font-family: 'Bodoni Moda', serif;
  font-size: 30px;
  color: var(--gold-mid);
}
.step h3{ font-size: 21px; margin-bottom: 8px; }
.step p{ color: var(--ink-dim); max-width: 52ch; }
.step-line{
  grid-column: 1;
  width: 1px;
  height: 100%;
  background: var(--panel-line);
  justify-self: center;
}

/* ---------- Sections ---------- */
section{ padding: 88px 0; }

.section-head{
  margin-bottom: 48px;
  max-width: 60ch;
}

.section-head .eyebrow{ margin-bottom: 14px; }

.section-head h2{ font-size: clamp(28px, 4vw, 38px); }

.divider{
  height: 1px;
  background: var(--panel-line);
}

/* ---------- Services ---------- */
.services-list{
  display: grid;
  gap: 1px;
  background: var(--panel-line);
  border: 1px solid var(--panel-line);
}

.service-row{
  background: var(--paper);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 32px;
  align-items: start;
}

.service-row h3{ font-size: 24px; }
.service-row p{ color: var(--ink-dim); max-width: 52ch; }

@media (max-width: 720px){
  .service-row{ grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- Portfolio ---------- */
.portfolio-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 720px){
  .portfolio-grid{ grid-template-columns: 1fr; }
}

.portfolio-card{
  display: block;
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-card:hover{
  border-color: var(--gold-mid);
  transform: translateY(-4px);
  box-shadow: 0 30px 56px -26px rgba(34,25,15,0.24);
}

.portfolio-card .swatch{
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bodoni Moda', serif;
  font-style: italic;
  font-size: 16px;
  color: rgba(242,237,224,0.55);
  border-bottom: 1px solid var(--panel-line);
  background: radial-gradient(ellipse at 50% 120%, rgba(201,162,39,0.14), transparent 70%);
}

/* ---------- Mini style previews — actual visual mockups, not labels ---------- */
.mini{
  height: 170px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--panel-line);
  background: var(--paper);
}
.mini .bar{
  height: 3px;
  background: var(--gold-gradient);
  border-radius: 2px;
}

/* Legal / notarial: centered, symmetric, generous space */
.mini-legal{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.mini-legal .bar{ width: 90px; }
.mini-legal .bar.wide{ width: 130px; height: 6px; }
.mini-legal .line{ width: 60px; height: 1px; background: var(--panel-line); }

/* Craft / print: textured, left-aligned, heavier weight */
.mini-craft{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 0 28px;
  background-image: repeating-linear-gradient(135deg, rgba(201,162,39,0.05) 0 2px, transparent 2px 14px);
}
.mini-craft .bar{ width: 150px; height: 8px; }
.mini-craft .bar.narrow{ width: 90px; height: 3px; opacity: 0.6; }

/* Creative agency: asymmetric, overlapping shapes */
.mini-creative{
  display: flex;
  align-items: center;
  padding: 0 28px;
}
.mini-creative .shape{
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gold-mid);
  position: absolute;
  top: 20px; right: 32px;
  opacity: 0.5;
}
.mini-creative .shape.sq{
  border-radius: 4px;
  transform: rotate(18deg);
  top: 60px; right: 60px;
  width: 34px; height: 34px;
  opacity: 0.3;
}
.mini-creative .bar{ width: 120px; transform: rotate(-2deg); }
.mini-creative .bar.wide{ width: 90px; height: 7px; margin-top: 8px; transform: rotate(-2deg); }

.portfolio-card .body{ padding: 28px 24px; }
.portfolio-card h3{ font-size: 19px; margin-bottom: 8px; }
.portfolio-card p{ color: var(--ink-dim); font-size: 15px; }
.portfolio-card .tag{
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--gold-mid);
}

/* ---------- Contact ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 800px){
  .contact-grid{ grid-template-columns: 1fr; gap: 40px; }
}

.contact-list{ margin-top: 28px; }
.contact-list div{
  padding: 18px 0;
  border-bottom: 1px solid var(--panel-line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 16px;
}
.contact-list .label{ color: var(--ink-dim); }

form{ display: grid; gap: 18px; }

label{ font-size: 14px; color: var(--ink-dim); display: block; margin-bottom: 8px; }

input, textarea{
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 4px;
  padding: 14px 16px;
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-size: 15px;
}

input:focus, textarea:focus{
  outline: none;
  border-color: var(--gold-mid);
}

textarea{ min-height: 140px; resize: vertical; }

/* ---------- Footer ---------- */
footer{
  border-top: 1px solid var(--panel-line);
  padding: 40px 0;
  color: var(--ink-dim);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer a:hover{ color: var(--gold-dark); }

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto !important; transition: none !important; }
}
