/* ==========================================================================
   Ink It! Lipa - styles (minimalist)
   Three colors only: black, white and the Ink It! yellow, plus two light
   grays for backgrounds and hairlines. Change them in :root and the whole
   site follows. Mobile first: base styles are for phones, @media blocks add
   the tablet and desktop layouts.
   ========================================================================== */

:root {
  /* The palette */
  --ink: #111111;      /* text, dark footer, outlines */
  --paper: #ffffff;    /* main background */
  --accent: #FFE500;   /* the one brand color: buttons, highlight, icons */
  --mist: #F6F6F3;     /* alternate section background */
  --line: #E3E3DE;     /* hairline borders */
  --muted: #66665F;    /* secondary text */

  --radius: 16px;
  --radius-sm: 12px;

  /* Font (loaded from Google Fonts in index.html) */
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
[hidden] { display: none !important; }

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: .6em 1em; background: var(--ink); color: #fff; border-radius: 8px;
}
.skip:focus { top: 12px; }

.icon {
  flex: none; width: 1.2em; height: 1.2em;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.5em;
  border: 1px solid var(--ink); border-radius: 999px;
  font: 600 .95rem/1.1 var(--font);
  text-decoration: none; text-align: center;
  color: var(--ink); background: transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--accent); border-color: var(--accent); }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #fff; font-size: .8rem; }
.topbar__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 24px; padding-block: 7px; }
.topbar__group { display: flex; flex-wrap: wrap; gap: 2px 20px; }
.topbar a { display: inline-flex; align-items: center; gap: .45em; text-decoration: none; }
.topbar a:hover { color: var(--accent); }
.topbar .icon { color: var(--accent); width: 1em; height: 1em; }
.topbar__extra { display: none; }

/* ---------- Header and nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand__text strong { display: block; font-size: 1.05rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
.brand__text small { display: none; margin-top: 3px; font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.nav a:not(.btn) { padding: .5em .8em; font-size: .92rem; font-weight: 500; color: var(--muted); text-decoration: none; border-radius: 999px; transition: color .15s ease; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav__cta { margin-left: 8px; padding: .65em 1.2em; font-size: .9rem; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer; color: var(--ink);
}
.nav-toggle .icon { width: 1.5rem; height: 1.5rem; }

/* Phone, tablet and small laptop: collapsible menu (only when JavaScript is on).
   The full menu needs about 1000 px of room, so it only shows from 1100 px up. */
@media (max-width: 1099px) {
  html.js .nav-toggle { display: inline-flex; }
  html.js .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px var(--gutter) 20px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px rgba(0, 0, 0, .06);
  }
  html.js .nav.is-open { display: flex; }
  html.js .nav a:not(.btn) { padding: .8em .4em; font-size: 1.02rem; color: var(--ink); border-bottom: 1px solid var(--line); border-radius: 0; }
  html.js .nav__cta { margin: 14px 0 0; }
}

@media (min-width: 640px) {
  .topbar__extra { display: flex; }
  .brand__text small { display: block; }
}

/* ---------- Section scaffolding ---------- */
.section { padding-block: clamp(64px, 10vw, 120px); }
.section--white { background: var(--paper); }
.section--mist { background: var(--mist); }

.eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--ink); }

.section__head { max-width: 40rem; margin: 0 0 clamp(32px, 5vw, 56px); }
.section__head h2, .about__copy h2, .contact__info h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
.section__head p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }

.lead { max-width: 34em; font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); }

/* ---------- Hero ---------- */
.hero { background: var(--paper); }
.hero__grid { display: grid; gap: 44px; align-items: center; padding-block: clamp(40px, 7vw, 96px) clamp(8px, 2vw, 24px); }
.hero h1 { margin-bottom: 22px; font-size: clamp(2.7rem, 8vw, 4.8rem); letter-spacing: -0.035em; line-height: 1.02; }
.hl {
  padding-inline: .06em;
  background: linear-gradient(transparent 64%, var(--accent) 64% 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__call { display: flex; align-items: center; gap: .55em; margin-top: 22px; font-size: .92rem; color: var(--muted); }
.hero__call a { font-weight: 600; color: var(--ink); }

.hero__art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; background: var(--mist); }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 64px; }
}

/* ---------- Services ---------- */
.svc-grid { display: grid; gap: 24px; }
.svc {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s ease;
}
.svc:hover { border-color: var(--ink); }
.svc__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.svc__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc__body { display: flex; flex: 1; flex-direction: column; gap: 14px; padding: 24px; }
.svc__title { font-size: 1.4rem; }
.svc__title .script { font: inherit; }
.svc__body p { color: var(--muted); }

.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 20px; font-size: .95rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--ink); border-radius: 50%; }

.link {
  display: inline-flex; align-items: center; gap: .4em; margin-top: auto; padding-bottom: 3px; align-self: flex-start;
  font-weight: 600; font-size: .95rem; text-decoration: none; border-bottom: 2px solid var(--accent);
  transition: border-color .15s ease;
}
.link:hover { border-bottom-color: var(--ink); }

@media (min-width: 900px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

/* Other services panel */
.other {
  display: grid; gap: 24px; margin-top: clamp(40px, 6vw, 72px); padding: clamp(24px, 4vw, 40px);
  background: var(--mist); border-radius: var(--radius);
}
.other__head h3 { margin-bottom: 8px; font-size: 1.4rem; }
.other__head p { color: var(--muted); }
.other__grid { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.other__item { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.other__item strong { display: block; line-height: 1.3; font-weight: 600; }
.other__item span:not(.other__icon) { font-size: .88rem; color: var(--muted); }
.other__icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; background: var(--accent); border-radius: 50%; }
.other__icon .icon { width: 1.3rem; height: 1.3rem; }

@media (min-width: 1000px) {
  .other { grid-template-columns: 230px 1fr; align-items: center; }
}

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 0 0 28px; padding: 0; border: 0; }
.chip {
  padding: .5em 1.15em; font: 500 .9rem/1.2 var(--font); color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Masonry: photos keep their own shape (portrait or landscape) and are never cropped */
.gallery { columns: 2; column-gap: 12px; margin: 0; padding: 0; list-style: none; }
.tile { position: relative; display: block; margin: 0 0 12px; overflow: hidden; break-inside: avoid; background: #ddd; border-radius: var(--radius-sm); }
.tile__btn { display: block; width: 100%; padding: 0; background: none; border: 0; cursor: zoom-in; }
.tile__btn img { width: 100%; height: auto; transition: transform .4s ease; }
.tile:hover .tile__btn img { transform: scale(1.03); }
.tile__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px;
  font-size: .8rem; font-weight: 500; line-height: 1.35; text-align: left; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .62));
}
.gallery__cta { margin-top: clamp(28px, 5vw, 44px); }

@media (min-width: 700px) {
  .gallery { columns: 3; column-gap: 16px; }
  .tile { margin-bottom: 16px; }
}
@media (min-width: 1000px) {
  .gallery { columns: 4; }
}

/* ---------- Clients ---------- */
.clients { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.client {
  flex: 0 1 calc(50% - 6px); min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 14px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s ease;
}
.client:hover { border-color: var(--ink); }
.client__logo { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
.client__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.client__name { font-size: .85rem; font-weight: 500; line-height: 1.35; text-align: center; overflow-wrap: anywhere; }
.clients__cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  margin-top: clamp(28px, 5vw, 44px); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em;
}

@media (min-width: 640px) {
  .clients { gap: 16px; }
  .client { flex-basis: calc(25% - 12px); }
}

/* ---------- Photo viewer ---------- */
.lightbox {
  position: relative; max-width: min(92vw, 1000px); padding: 0; overflow: hidden;
  background: var(--ink); color: #fff; border: 0; border-radius: var(--radius);
}
.lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.lightbox img { width: auto; max-width: 100%; max-height: 78vh; margin-inline: auto; }
.lightbox__cap { padding: 12px 18px; font-size: .9rem; font-weight: 500; }
.lightbox__close {
  position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  background: #fff; color: var(--ink); border: 0; border-radius: 50%; cursor: pointer;
}

/* ---------- How to order ---------- */
.steps { display: grid; gap: 28px 32px; margin: 0; padding: 0; list-style: none; }
.step { padding-top: 20px; border-top: 1px solid var(--ink); }
.step__no { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .14em; color: var(--muted); }
.step__no::before { content: "0"; }
.step h3 { margin: 12px 0 8px; font-size: 1.2rem; }
.step p { color: var(--muted); font-size: .95rem; }

@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- About ---------- */
.about { display: grid; gap: 40px; align-items: center; }
.about__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; background: var(--mist); }
.about__copy { display: grid; gap: 18px; justify-items: start; }
.about__copy .eyebrow { margin-bottom: 0; }
.about__copy > p { color: var(--muted); }

@media (min-width: 900px) { .about { grid-template-columns: .95fr 1.05fr; gap: 72px; } }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 40px; align-items: start; }
.contact__info h2 { margin-bottom: 14px; }
.cards { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.card__icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; background: var(--accent); border-radius: 50%; }
.card__icon .icon { width: 1.25rem; height: 1.25rem; }
.card h3 { margin-bottom: 4px; font-size: 1rem; }
.card a, .card p { display: block; overflow-wrap: anywhere; color: var(--muted); font-size: .95rem; }
.card a { font-weight: 500; color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 3px; }
.card a:hover { text-decoration-color: var(--ink); }
.card__hours { display: flex !important; align-items: center; gap: .4em; }
.card__hours .icon { width: 1em; height: 1em; }

.panel { padding: clamp(22px, 4vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.form { display: grid; gap: 18px; }
.form h3 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
.form__row { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 500; }
.form input, .form select, .form textarea {
  width: 100%; padding: .75em .9em; font: 400 1rem/1.4 var(--font); color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .15s ease;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: #bdbdb6; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.form__note { font-size: .85rem; color: var(--muted); }

@media (min-width: 560px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.05fr; gap: 64px; } }

/* ---------- Footer ---------- */
.site-footer { padding-top: 64px; background: var(--ink); color: #fff; }
.site-footer :focus-visible { outline-color: #fff; }
.footer__grid { display: grid; gap: 36px; }
.footer__brand { display: grid; gap: 14px; justify-items: start; max-width: 24rem; color: rgba(255, 255, 255, .72); font-size: .95rem; }
.footer__brand img { border-radius: 50%; }
.footer__col { display: grid; gap: 8px; align-content: start; font-size: .95rem; }
.footer__col h3 { margin-bottom: 6px; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.footer__col a { color: rgba(255, 255, 255, .8); text-decoration: none; overflow-wrap: anywhere; }
.footer__col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  margin-top: 44px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: .85rem; color: rgba(255, 255, 255, .6);
}

@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }

/* ---------- Mobile quick-action bar ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line);
}
.dock .btn { padding: .7em .4em; font-size: .88rem; }
@media (min-width: 768px) { .dock { display: none; } }
@media (max-width: 767px) { body { padding-bottom: 76px; } }

/* ---------- Accessibility: less motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .chip, .client, .svc, .link, .tile__btn img { transition: none; }
  .tile:hover .tile__btn img { transform: none; }
}
