/* Socially Create — website mockup
   Palette pulled from the package PDFs and Emma's brand shoot */
:root {
  --gallery: #EFEEEC;   /* page background, the PDF grey */
  --paper: #F8F7F5;     /* lifted panels */
  --linen: #E3DDD5;     /* placeholders, quiet blocks */
  --espresso: #3A2A22;  /* text + primary, from the brown knit */
  --stone: #857A70;     /* secondary text */
  --rule: #CFC8BF;      /* hairlines */
  --display: "Italiana", "Didot", serif;
  --script: "Mrs Saint Delafield", cursive;
  --body: "Jost", "Futura", system-ui, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--gallery);
  color: var(--espresso);
  font: 400 1.0625rem/1.65 var(--body);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--espresso); outline-offset: 3px; }
.wrap { width: min(var(--wrap), 100% - 3rem); margin-inline: auto; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--gallery); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 78px; }
.brand img { width: 210px; }
.nav { display: flex; gap: 2.2rem; align-items: center; font-size: .95rem; }
.nav > a, .nav .drop > button { text-decoration: none; background: none; border: 0; font: inherit; color: inherit; cursor: pointer; padding: .4rem 0; }
.nav > a:hover, .nav .drop > button:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.drop { position: relative; }
.drop > button::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: .5rem; border-right: 1px solid; border-bottom: 1px solid; transform: translateY(-3px) rotate(45deg); }
.drop-menu {
  position: absolute; top: calc(100% + .6rem); left: -1.2rem; min-width: 290px;
  background: var(--paper); border: 1px solid var(--rule); padding: .8rem 0;
  display: none;
}
.drop-menu a { display: block; padding: .45rem 1.2rem; text-decoration: none; }
.drop-menu a:hover, .drop-menu a:focus-visible { background: var(--linen); }
.drop:hover .drop-menu, .drop:focus-within .drop-menu { display: block; }
.nav .btn { padding: .65rem 1.3rem; }
.menu-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font: 500 .95rem/1 var(--body);
  letter-spacing: .02em; padding: 1rem 1.8rem; border: 1px solid var(--espresso);
  background: var(--espresso); color: var(--paper); cursor: pointer;
}
.btn:hover { background: transparent; color: var(--espresso); }
.btn.ghost { background: transparent; color: var(--espresso); }
.btn.ghost:hover { background: var(--espresso); color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* ---------- the signature: display word + script overlap ---------- */
.title { margin: 0; font: 400 clamp(3rem, 7.5vw, 6.4rem)/.95 var(--display); letter-spacing: -.01em; }
.title .scr {
  display: block; font: 400 clamp(2.6rem, 6vw, 5.2rem)/1 var(--script);
  margin: -.05em 0 0 1.4em; color: var(--espresso);
}
h2 { font: 400 clamp(2rem, 3.6vw, 3rem)/1.1 var(--display); margin: 0 0 1.2rem; }
h3 { font: 500 1.05rem/1.3 var(--body); margin: 0 0 .4rem; }
p { margin: 0 0 1rem; max-width: 62ch; }
.lede { font-size: 1.2rem; line-height: 1.6; max-width: 46ch; }
.muted { color: var(--stone); }

/* ---------- hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.hero-img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.hero .lede { margin-top: 2.2rem; }

/* ---------- sections ---------- */
section.band { padding: clamp(3.5rem, 7vw, 6rem) 0; border-top: 1px solid var(--rule); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }

.for-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.for-list li { border: 1px solid var(--rule); padding: .35rem .9rem; font-size: .95rem; background: var(--paper); }

.capture { list-style: none; padding: 0; margin: 0; }
.capture li { padding: 1.05rem 0; border-top: 1px solid var(--rule); }
.capture li:last-child { border-bottom: 1px solid var(--rule); }

.feature { background: var(--espresso); color: var(--paper); padding: clamp(2.5rem, 5vw, 4rem); }
.feature p { font: 400 clamp(1.5rem, 2.6vw, 2.1rem)/1.3 var(--display); max-width: 34ch; margin: 0; }
.feature strong { display: block; font: 500 1rem/1.4 var(--body); margin-bottom: 1rem; color: var(--linen); }

/* industries index on home + landing */
.industries { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--espresso); }
.industries a {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 2rem; align-items: baseline;
  padding: 1.5rem 0; border-bottom: 1px solid var(--rule); text-decoration: none;
}
.industries .name { font: 400 clamp(1.6rem, 3vw, 2.4rem)/1.1 var(--display); }
.industries .tag { color: var(--stone); }
.industries .go { font-size: .95rem; white-space: nowrap; }
.industries a:hover .name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }

/* ---------- packages: PDF-style columns split by hairlines ---------- */
.pkgs { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); border-top: 1px solid var(--espresso); border-bottom: 1px solid var(--rule); margin-top: 2.5rem; }
.pkg { padding: 2.2rem 2rem 2.4rem; display: flex; flex-direction: column; }
.pkg + .pkg { border-left: 1px solid var(--rule); }
.pkg-name { font: 500 .95rem/1 var(--body); font-variant: small-caps; letter-spacing: .14em; text-transform: lowercase; margin: 0 0 1.3rem; }
.pkg-price { font: 400 2.6rem/1 var(--display); margin: 0; }
.pkg-price small { font: 400 .9rem var(--body); color: var(--stone); margin-left: .3rem; }
.pkg-time { color: var(--stone); margin: .5rem 0 1.4rem; font-size: .95rem; }
.pkg-desc { font-style: italic; margin-bottom: 1.2rem; }
.pkg ul { margin: 0 0 1.8rem; padding-left: 1.1rem; }
.pkg li { margin-bottom: .45rem; }
.pkg .btn { margin-top: auto; align-self: flex-start; }
.pkg.lux { background: var(--espresso); color: var(--paper); }
.pkg.lux .pkg-time { color: var(--linen); }
.pkg.lux .btn { background: var(--paper); color: var(--espresso); border-color: var(--paper); }
.pkg.lux .btn:hover { background: transparent; color: var(--paper); }
.fine { margin-top: 1.2rem; font-size: .9rem; color: var(--stone); max-width: none; }

/* ---------- gallery placeholders ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; margin-top: 2rem; }
.ph { background: var(--linen); display: flex; align-items: flex-end; padding: 1rem; color: var(--stone); font-size: .88rem; min-height: 220px; }
.ph:nth-child(1) { grid-column: span 5; min-height: 460px; }
.ph:nth-child(2) { grid-column: span 4; }
.ph:nth-child(3) { grid-column: span 3; }
.ph:nth-child(4) { grid-column: span 7; }
.ph:nth-child(5) { grid-column: span 5; }
.gallery img { grid-column: span 5; grid-row: span 2; width: 100%; height: 100%; object-fit: cover; }

/* steps (a real sequence, so numbered) */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.steps li { counter-increment: s; border-top: 1px solid var(--espresso); padding-top: 1rem; }
.steps li::before { content: counter(s); display: block; font: 400 2.4rem/1 var(--display); margin-bottom: .8rem; }
.steps.three { grid-template-columns: repeat(3, 1fr); }

/* ---------- closing CTA ---------- */
.cta { text-align: left; }
.cta .title { font-size: clamp(2.6rem, 6vw, 5rem); }

/* ---------- form ---------- */
form.enquiry { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.5rem; }
form.enquiry .full { grid-column: 1 / -1; }
label { display: block; font-size: .92rem; margin-bottom: .35rem; }
input, select, textarea {
  width: 100%; font: inherit; color: inherit; background: var(--paper);
  border: 1px solid var(--rule); padding: .85rem 1rem; border-radius: 0;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--espresso); outline-offset: 0; border-color: var(--espresso); }
textarea { min-height: 150px; resize: vertical; }
.sent { display: none; border: 1px solid var(--espresso); padding: 1.5rem; background: var(--paper); }
.sent.show { display: block; }

/* ---------- footer ---------- */
.site-footer { background: var(--espresso); color: var(--linen); padding: 4rem 0 2.5rem; margin-top: 0; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer img { width: 200px; filter: invert(1) brightness(1.6); }
.site-footer h3 { color: var(--paper); margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.mock-note { grid-column: 1 / -1; border-top: 1px solid #5a4a42; padding-top: 1.5rem; font-size: .85rem; color: #b9ada3; }

/* ---------- page-load moment: the script word writes itself in ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero .title .scr { clip-path: inset(0 100% 0 0); animation: write 1.3s .35s cubic-bezier(.6,0,.2,1) forwards; }
  @keyframes write { to { clip-path: inset(0 0 0 0); } }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero-img { aspect-ratio: 4 / 3; }
  .pkgs { grid-template-columns: 1fr; }
  .pkg + .pkg { border-left: 0; border-top: 1px solid var(--rule); }
  .steps { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .industries a { grid-template-columns: 1fr auto; }
  .industries .tag { display: none; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; background: none; border: 1px solid var(--espresso); font: inherit; padding: .5rem .9rem; color: inherit; }
  .nav { display: none; position: absolute; top: 78px; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 1.5rem 1.5rem; border-bottom: 1px solid var(--rule); }
  .nav.open { display: flex; }
  .nav > a, .nav .drop > button { padding: .8rem 0; text-align: left; width: 100%; border-bottom: 1px solid var(--rule); }
  .drop-menu { position: static; display: block; border: 0; background: none; padding: 0 0 .5rem; min-width: 0; }
  .drop-menu a { padding: .4rem 1rem; }
  .nav .btn { margin-top: 1rem; text-align: center; }
  .brand img { width: 170px; }
}
@media (max-width: 620px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery > * { grid-column: span 1 !important; min-height: 180px !important; }
  .gallery > *:first-child { grid-column: span 2 !important; }
  form.enquiry { grid-template-columns: 1fr; }
  .steps, .steps.three { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
