/* ============================================================================
   Örgülog — handmade dolls & bags
   All styling, palette & animations in one file.
   Fonts load from Google Fonts (see <link> in views/partials/head.ejs).
   To self-host fonts, add @font-face rules here and remove the Google <link>.
   ========================================================================== */

/* ---- palette & tokens --------------------------------------------------- */
:root {
  /* Palette: https://colorhunt.co/palette/fbf5a7ff97d0ff62bbb331f1
     lemon #FBF5A7 · soft pink #FF97D0 · bright pink #FF62BB · purple #B331F1 */
  --cream:     #FFFDF4;  /* page background (soft warm white) */
  --paper:     #FFFFFF;  /* cards, raised surfaces */
  --ink:       #3A1246;  /* primary text (deep purple) */
  --muted:     #8A5E90;  /* secondary text (mauve) */
  --clay:      #FF62BB;  /* primary accent (bright pink) */
  --clay-deep: #B331F1;  /* purple — hovers / active */
  --rose:      #FF97D0;  /* soft pink */
  --sage:      #B331F1;  /* purple — eyebrows / labels */
  --gold:      #E8DDB4;  /* lemon accent (focus rings) */
  --line:      #F6D8EC;  /* hairlines, borders (pale pink) */
  --tint:      #E8DDB4;  /* tinted section background (lemon) */

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-script:  'Caveat', 'Segoe Script', cursive;

  --wrap:   1140px;
  --gap:    clamp(1.25rem, 3vw, 2.25rem);
  --radius: 14px;
  --shadow: 0 18px 40px -24px rgba(120, 20, 90, 0.42);
  --ease:   cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 { margin: 0 0 0.4em; font-weight: 500; line-height: 1.1; }

p { margin: 0 0 1em; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--tint);
  padding: 0.1em 0.4em;
  border-radius: 6px;
  font-size: 0.9em;
}

/* ---- layout helpers ----------------------------------------------------- */
.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tint { background: var(--tint); }

.section__head { max-width: 40ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__more { margin-top: 2.5rem; }

/* ---- typography scale --------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  letter-spacing: -0.01em;
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
}

.h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  margin-bottom: 0.3em;
}

.script {
  font-family: var(--font-script);
  color: var(--clay);
  font-weight: 600;
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sage);
  margin: 0 0 1rem;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--muted);
  max-width: 52ch;
}

/* ---- buttons & links ---------------------------------------------------- */
.btn {
  --btn-bg: var(--clay);
  --btn-fg: #fff;
  display: inline-block;
  padding: 0.85em 1.6em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-bg);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { background: var(--clay-deep); border-color: var(--clay-deep); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--cream); border-color: var(--ink); }

.btn--sm { padding: 0.6em 1.15em; font-size: 0.85rem; }

.link-more, .link-quiet {
  text-decoration: none;
  font-weight: 600;
  color: var(--clay);
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.link-more:hover, .link-quiet:hover { border-color: var(--clay); }
.link-quiet { color: var(--muted); font-weight: 500; font-size: 0.9rem; }
.link-quiet:hover { color: var(--ink); border-color: var(--muted); }

.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--clay-deep);
  background: rgba(255, 98, 187, 0.14);
  padding: 0.4em 0.8em;
  border-radius: 999px;
}

/* ---- header / nav ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 244, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark { color: var(--clay); display: inline-flex; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  margin: 0;
  padding: 0;
}
.site-nav__link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.4em 0;
  position: relative;
}
.site-nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--clay);
  transition: right 0.28s var(--ease);
}
.site-nav__link:hover::after,
.site-nav__link.is-active::after { right: 0; }
.site-nav__link.is-active { color: var(--clay-deep); }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- hero --------------------------------------------------------------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__text .display { margin-bottom: 0.5em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }

.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.hero__note {
  position: absolute;
  bottom: -0.6rem; right: 1rem;
  background: var(--paper);
  padding: 0.3em 0.9em;
  border-radius: 999px;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
}

/* ---- page hero (inner pages) ------------------------------------------- */
.page-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-hero--tall { padding-block: clamp(4rem, 10vw, 8rem); }
.page-hero__inner { max-width: 46rem; }

/* ---- grids & cards ------------------------------------------------------ */
.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 1 / 1; overflow: hidden; background: var(--tint); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card__name { font-family: var(--font-display); font-size: 1.5rem; margin: 0; }
.card__desc { color: var(--muted); font-size: 0.97rem; margin: 0; flex: 1; }
.card__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}
.card__inquire { margin: 0.7rem 0 0; font-size: 0.85rem; color: var(--muted); }
.card__inquire a { color: var(--clay); text-decoration: none; font-weight: 600; border-bottom: 1.5px solid transparent; }
.card__inquire a:hover { border-color: var(--clay); }

.empty { text-align: center; color: var(--muted); font-size: 1.2rem; padding: 3rem 0; }

/* ---- home photo gallery ------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
.gallery__item { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; box-shadow: var(--shadow); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }

/* ---- strip (promises) --------------------------------------------------- */
.strip { background: var(--ink); color: var(--cream); padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.strip__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.strip__inner--center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 1.2rem;
}
.strip__item p { margin: 0; color: rgba(255, 253, 244, 0.9); }
.strip__num { font-family: var(--font-display); font-size: 1.6rem; color: var(--rose); display: block; margin-bottom: 0.3rem; }
.strip__cta { font-size: 1.7rem; margin: 0; color: var(--rose); }

/* ---- pull-quote / teaser ------------------------------------------------ */
.teaser { text-align: center; max-width: 46rem; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.pull {
  font-family: var(--font-script);
  color: var(--clay);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.25;
  margin: 0;
  border: 0;
  max-width: 22ch;
}

/* ---- story page --------------------------------------------------------- */
.story-lead {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.story-lead__portrait { position: relative; }
.story-lead__portrait img {
  width: 100%;
  height: auto;               /* show the whole portrait, no crop */
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.caption {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 1.25rem;
  color: var(--muted);
}
.story-lead__text p { font-size: 1.12rem; }

.process { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.process__step {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.process__step:nth-child(even) .process__media { order: 2; }
/* "Bir ürün nasıl yapılır" images: transparent PNGs that melt into the section
   — no box, shown whole (contain), soft shape shadow that follows the subject. */
.process__media { background: transparent; display: flex; justify-content: center; }
.process__media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(120, 20, 90, 0.20));
}
/* the one real photo (finished piece): fade its rectangular edges into the page */
.process__media--photo img {
  -webkit-mask-image: radial-gradient(ellipse 78% 82% at 50% 46%, #000 56%, transparent 100%);
          mask-image: radial-gradient(ellipse 78% 82% at 50% 46%, #000 56%, transparent 100%);
  filter: none;
}
.process__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: var(--clay);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

/* ---- contact ------------------------------------------------------------ */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gap); }
.contact__card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  text-align: center;
}
.contact__card p { color: var(--muted); }

.insta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.insta-grid__item { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 1 / 1; }
.insta-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.insta-grid__item:hover img { transform: scale(1.08); }

/* ---- footer ------------------------------------------------------------- */
.site-footer { background: var(--tint); border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; text-align: center; }
.site-footer__brand { font-family: var(--font-display); font-size: 1.9rem; margin: 0; }
.site-footer__tag { font-size: 1.4rem; margin: 0.2rem 0 1.5rem; }
.site-footer__links { list-style: none; display: flex; justify-content: center; gap: 1.8rem; padding: 0; margin: 0 0 1.5rem; }
.site-footer__links a { text-decoration: none; font-weight: 600; color: var(--ink); }
.site-footer__links a:hover { color: var(--clay); }
.site-footer__fine { color: var(--muted); font-size: 0.85rem; margin: 0; }

/* ---- scroll reveal animation ------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 26rem; }
  .story-lead { grid-template-columns: 1fr; }
  .process__step,
  .process__step:nth-child(even) .process__media { grid-template-columns: 1fr; order: 0; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: 70px 0 auto 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.5rem;
    transform: translateY(-120%);
    transition: transform 0.32s var(--ease);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { transform: translateY(0); }
  .site-nav ul { flex-direction: column; gap: 0.2rem; }
  .site-nav__link { display: block; padding: 0.7em 0; border-bottom: 1px solid var(--line); }
  .site-nav__link::after { display: none; }

  .grid--3 { grid-template-columns: 1fr; }
  .strip__inner { grid-template-columns: 1fr; text-align: center; }
  .contact { grid-template-columns: 1fr; }
  .insta-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

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