@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Manrope:wght@300;400;500;600;700;800&display=swap");

/* ============================================================
   PHOTO CONCERN — DESIGN SYSTEM  ("Printed Matter")
   Editorial print-catalogue aesthetic: warm paper, deep ink,
   a single sharp red accent, hairline rules and generous margins.
   Shared by every page. Page-specific CSS layers on top.
   ============================================================ */

/* ── Tokens ───────────────────────────────────────────────── */
:root {
  /* Surfaces */
  --paper:        #f6f2ed;   /* page canvas — warm bone */
  --paper-raised: #fffdfa;   /* cards / panels */
  --paper-sunk:   #ece6de;   /* wells, hovers */

  /* Ink */
  --ink:          #16110f;   /* headings */
  --ink-body:     #3d3330;   /* body copy */
  --ink-muted:    #7d716c;   /* meta, captions */
  --rule:         rgba(22, 17, 15, 0.13); /* hairlines */

  /* Brand */
  --red:          #e70000;
  --red-deep:     #b00000;
  --red-wash:     rgba(231, 0, 0, 0.07);

  /* Type */
  /* Sora for display (geometric, characterful), Manrope for body/UI (clean,
     highly legible). Micro-labels reuse Manrope, spaced out — two families
     only, which keeps the whole system tighter. */
  --font-display: "Sora", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-base:    var(--font-body);

  /* Rhythm */
  --gutter:    clamp(20px, 5vw, 88px);
  --shell:     1380px;
  --sp-section: clamp(64px, 9vw, 132px);

  /* Form */
  --radius:    4px;
  --radius-lg: 10px;
  --shadow:    0 1px 2px rgba(22,17,15,.05), 0 12px 34px -18px rgba(22,17,15,.32);
  --shadow-lg: 0 2px 4px rgba(22,17,15,.06), 0 30px 70px -30px rgba(22,17,15,.42);
  --ease:      cubic-bezier(.22,.61,.36,1);

  /* Legacy aliases kept so older rules keep resolving */
  --pc-page-gutter: var(--gutter);
  --pc-shell-max:   var(--shell);
}

body.theme-dark {
  --paper:        #100c0b;
  --paper-raised: #191312;
  --paper-sunk:   #221a18;
  --ink:          #f7f1ea;
  --ink-body:     #d7ccc4;
  --ink-muted:    #9a8b84;
  --rule:         rgba(247, 241, 234, 0.14);
  --red:          #ff3b23;
  --red-deep:     #e70000;
  --red-wash:     rgba(255, 59, 35, 0.10);
  --shadow:    0 1px 2px rgba(0,0,0,.5), 0 14px 36px -18px rgba(0,0,0,.8);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.55), 0 34px 80px -30px rgba(0,0,0,.9);
}

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Belt-and-braces with body: sub-pixel rounding at small widths can
     otherwise leave a 1–2px horizontal scroll on the root element. */
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .4s var(--ease), color .4s var(--ease);
  overflow-x: hidden;
}

/* Paper grain — gives the flat canvas a printed texture. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}
body.theme-dark::before { mix-blend-mode: screen; opacity: .35; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: var(--red); color: #fff; }

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

/* Keep content above the grain layer */
.navbar, .main-content, main, footer, .auth-container { position: relative; z-index: 1; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.028em; /* Sora sits a touch wide by default */
  line-height: 1.1;
  margin: 0 0 .5em;
}

/* Restrained scale — confident rather than shouty. */
h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.3rem); letter-spacing: -0.015em; }

p { margin: 0 0 1em; }

/* Micro-label: uppercase mono, the "print mark" of the system */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--red);
}

/* ── Shell ────────────────────────────────────────────────── */
.shell {
  width: calc(100% - (var(--gutter) * 2));
  max-width: var(--shell);
  margin-inline: auto;
}

/* ── Reveal on scroll ─────────────────────────────────────────
   Progressive enhancement: content is visible by default and is
   only hidden once JS confirms it can animate it back in (html
   gets .pc-reveal). If JS or IntersectionObserver fails, the page
   still renders — it just doesn't animate.
   ------------------------------------------------------------ */
html.pc-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
html.pc-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

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

/* ============================================================
   NAVBAR — slim, paper, hairline rule
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 var(--gutter);
  min-height: 68px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}

.nav-bar-left, .nav-bar-right { display: flex; align-items: center; gap: 14px; }

.photoconcern-nav { display: flex; align-items: center; }

.nav-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
  transition: opacity .3s var(--ease);
}
.nav-logo--dark { display: none; }
body.theme-dark .nav-logo--light { display: none; }
body.theme-dark .nav-logo--dark  { display: block; }

@media (min-width: 900px) { .nav-logo { height: 40px; } }

/* Messenger / chat pill */
.nav-contact-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--ink);
  transition: background .28s var(--ease), color .28s var(--ease), border-color .28s var(--ease);
}
.nav-contact-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.icons-svg-nav { width: 19px; height: 19px; }

/* Primary catalogue nav — hidden on small screens (dropdown covers it) */
.nav-links { display: none; gap: 30px; align-items: center; }
@media (min-width: 940px) { .nav-links { display: flex; } }

.nav-links a {
  position: relative;
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--ink-body);
  padding: 4px 0;
  transition: color .25s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--red);
  transition: width .32s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.is-active::after { width: 100%; }
.nav-links a.is-active { color: var(--ink); }

/* Nav links */
.nav-bar-right > a {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--ink);
  border-radius: 50%;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav-bar-right > a:hover { color: var(--red); background: var(--red-wash); }
.nav-bar-right > a.is-active { color: var(--red); }

.hamburger {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--ink);
  cursor: pointer;
  border-radius: 50%;
  transition: background .25s var(--ease);
}
.hamburger:hover { background: var(--red-wash); }

/* Dropdown menu */
.quickies {
  position: absolute;
  top: calc(100% + 10px);
  right: var(--gutter);
  min-width: 216px;
  padding: 8px;
  display: none;
  flex-direction: column;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.quickies.show { display: flex; animation: pc-drop .28s var(--ease) both; }
@keyframes pc-drop { from { opacity: 0; transform: translateY(-8px); } }

.quickies a,
.quickies .logout-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 13px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink-body);
  background: none;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.quickies a:hover,
.quickies .logout-btn:hover { background: var(--paper-sunk); color: var(--ink); }
.quickies .logout-btn:hover { color: var(--red); }
.menu-item-icon { width: 17px; height: 17px; flex: none; }
.theme-toggle .icon { display: inline-flex; }

/* Login button in nav */
.nav-login-btn {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 20px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 100px;
  transition: background .28s var(--ease), border-color .28s var(--ease), transform .28s var(--ease);
}
.nav-login-btn:hover { background: var(--red); border-color: var(--red); transform: translateY(-1px); }
body.theme-dark .nav-login-btn { background: var(--ink); color: var(--paper); }
body.theme-dark .nav-login-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform .3s var(--ease), background .3s var(--ease),
              color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--red); color: #fff; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { border-color: var(--red); color: var(--red); }

/* ============================================================
   FORMS — editorial underline fields
   ============================================================ */
label {
  display: block;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="number"], select, textarea {
  width: 100%;
  padding: 12px 2px;
  font-family: var(--font-body);
  font-size: .96rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  outline: none;
  transition: border-color .3s var(--ease);
}
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--ink-muted) 65%, transparent); }
input:focus, select:focus, textarea:focus { border-bottom-color: var(--red); }
select { appearance: none; cursor: pointer; padding-right: 22px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 8px center, right 3px center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
select option { background: var(--paper-raised); color: var(--ink); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer, .footers {
  margin-top: var(--sp-section);
  padding: 64px 0 44px;
  background: var(--ink);
  color: #fff;
}
body.theme-dark .site-footer,
body.theme-dark .footers { background: #0a0706; }

/* Same shell formula as .main-content so the footer lines up with the
   page content rather than sitting wider than it. */
.footer-inner {
  width: calc(100% - (var(--gutter) * 2));
  max-width: var(--shell);
  margin-inline: auto;
  display: grid;
  gap: 46px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) minmax(150px, 1fr) minmax(130px, .8fr);
  gap: 42px;
  align-items: start;
}

/* ── Brand block ──────────────────────────────────────────── */
.footer-identity { display: grid; gap: 14px; justify-items: start; }

.footer-brand {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  justify-items: start;
  gap: 5px 20px;
  width: min(100%, 330px);
  color: #fff;
  transition: color .35s ease-in-out;
}

.footer-brand span {
  grid-column: 1 / -1;
  width: max-content;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.1;
  text-transform: uppercase;
  transition: color .22s ease-in-out;
}
.footer-brand:hover span,
.footer-brand:focus-visible span { color: var(--red); }

.footer-brand small {
  display: block;
  color: rgba(255, 255, 255, .68);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: color .35s ease-in-out;
}
.footer-brand:hover small { color: #fff; }

/* ── Link column ──────────────────────────────────────────── */
.footer-column { display: grid; gap: 8px; }

.footer-column a {
  width: fit-content;
  color: rgba(255, 255, 255, .84);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
  transition: color .2s ease;
}
.footer-column a:hover,
.footer-column a:focus-visible { color: var(--red); }

/* ── Back to top ──────────────────────────────────────────── */
.footer-top-link {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  justify-self: start;
  min-width: 112px;
  height: 54px;
  gap: 9px;
  padding: 0 18px 7px;
  overflow: hidden;
  border: 1px solid #fff;
  border-radius: 4px;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  font-family: inherit;
  transition: border-color .22s ease, color .22s ease;
}
.footer-top-link:hover,
.footer-top-link:focus-visible { color: var(--red); border-color: var(--red); }

.footer-top-link i { font-size: 1.2rem; }
.footer-top-link i,
.footer-top-link span {
  transform: translateY(0);
  transition: transform .46s cubic-bezier(.16, 1, .3, 1);
}
.footer-top-link:hover i,
.footer-top-link:hover span,
.footer-top-link:focus-visible i,
.footer-top-link:focus-visible span { transform: translateY(-11px); }

.footer-top-link.is-hidden { display: none; }

/* ── Divider + copy ───────────────────────────────────────── */
.footer-divider { height: 1px; background: rgba(255, 255, 255, .26); }

.footer-copy {
  margin: 0;
  color: #fff;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
}

.footer-copy a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .42em;
  color: inherit;
  font-family: inherit;
  font-weight: 800;
  transition: color .2s ease;
}
/* Arrow slides in on hover */
.footer-copy a::after {
  content: "\f061";
  display: inline-block;
  flex: 0 0 auto;
  color: var(--red);
  font-family: "Font Awesome 6 Free";
  font-size: .78em;
  font-weight: 900;
  opacity: 0;
  transform: translateX(-.35em);
  transition: opacity .22s ease, transform .3s var(--ease);
}
.footer-copy a:hover,
.footer-copy a:focus-visible { color: var(--red); }
.footer-copy a:hover::after,
.footer-copy a:focus-visible::after { opacity: 1; transform: translateX(0); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 760px) {
  .site-footer, .footers { padding: 42px 0 34px; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .footer-brand { width: min(100%, 310px); }
  .footer-column { justify-items: start; }
  .footer-top-link { justify-self: start; }
}

@media (max-width: 420px) {
  .site-footer, .footers { padding: 38px 0 32px; }
  .footer-top {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "top top"
      "brand links";
    justify-items: stretch;
    align-items: start;
    gap: 22px 24px;
    text-align: left;
  }
  .footer-identity { grid-area: brand; justify-self: start; }
  .footer-brand { justify-self: start; }
  .footer-column { grid-area: links; justify-items: end; text-align: right; }
  .footer-column a { justify-self: end; }
  .footer-top-link {
    grid-area: top;
    justify-self: end;
    min-width: 96px;
    height: 42px;
    padding: 0 12px 6px;
    font-size: .64rem;
  }
  .footer-brand span { grid-column: 1 / -1; font-size: .92rem; }
  .footer-brand small,
  .footer-column a { font-size: .64rem; }
}


/* ============================================================
   TOAST
   ============================================================ */
#toast-container {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 9999;
  display: grid;
  gap: 10px;
}
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px;
  min-width: 240px;
  font-size: .88rem; font-weight: 500;
  color: var(--ink);
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: pc-toast .35s var(--ease) both;
}
@keyframes pc-toast { from { opacity: 0; transform: translateX(16px); } }
.toast.success { border-left-color: #12a150; }
.toast.error   { border-left-color: var(--red); }
