/* ---------------------------------------------------------------------------
   BabyNamer — website styles

   Palette and typography are taken straight from the app (src/constants/
   colors.ts and fonts.ts) so the site and the product read as one brand.
   The app is light-only (app.json: userInterfaceStyle "light"), so the site
   commits to a single warm palette rather than shipping a half-tested dark mode.
--------------------------------------------------------------------------- */

:root {
  --primary: #6e8f62;
  --primary-dark: #24452f;
  --primary-medium: #5f8058;
  --primary-light: #c8d8c5;
  --primary-soft: #edf5e9;

  --bg: #fbfaf6;
  --bg-soft: #f4f6ef;
  --surface: #ffffff;
  --surface-muted: #f7f8f3;

  --text: #203c2a;
  --text-secondary: #5f665f;
  --text-muted: #8a9089;

  --border: #e4e8df;
  --border-strong: #ccd8c8;
  --error: #c15b4e;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px rgba(35, 64, 44, 0.08);
  --maxw: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary-medium);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Görünür odak halkası: klavyeyle gezenler nerede olduklarını görmeli. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary-dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* ---------------------------------------------------------------- header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(251, 250, 246, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--primary-dark);
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 500;
}

.nav a {
  color: var(--text-secondary);
}

.nav a[aria-current="page"] {
  color: var(--primary-dark);
  font-weight: 600;
}

/* ------------------------------------------------------------------ hero */

.hero {
  padding: 72px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-medium);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.12;
  margin: 0 0 18px;
  color: var(--primary-dark);
  letter-spacing: -0.01em;
}

.lede {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0 0 28px;
  max-width: 52ch;
}

.hero-art {
  background: linear-gradient(160deg, var(--primary-soft), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.hero-art img {
  width: 148px;
  height: 148px;
  border-radius: 34px;
  box-shadow: 0 14px 34px rgba(35, 64, 44, 0.18);
}

/* --------------------------------------------------------- store buttons */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-dark);
  color: #fff;
  border-radius: 14px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.store-btn:hover {
  background: #1a3423;
  text-decoration: none;
  transform: translateY(-1px);
}

.store-btn--ghost {
  background: var(--surface);
  color: var(--primary-dark);
  border: 1px solid var(--border-strong);
}

.store-btn--ghost:hover {
  background: var(--surface-muted);
}

.store-btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* --------------------------------------------------------------- section */

section {
  padding: 56px 0;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 34px);
  color: var(--primary-dark);
  margin: 0 0 10px;
}

.section-sub {
  color: var(--text-secondary);
  margin: 0 0 34px;
  max-width: 62ch;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3 {
  font-family: var(--serif);
  font-size: 19px;
  margin: 0 0 8px;
  color: var(--primary-dark);
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: var(--primary-medium);
}

.card-icon svg {
  width: 21px;
  height: 21px;
}

/* ----------------------------------------------------------------- stats */

.stats {
  background: var(--surface-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 22px;
  text-align: center;
}

.stat-num {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.1;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ------------------------------------------------------------ legal/page */

.page-head {
  padding: 56px 0 8px;
}

.page-head h1 {
  margin-bottom: 8px;
}

.updated {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* .wrap'in İÇİNDE kullanılır. Kendisi .wrap OLMAMALI: `.wrap`in
   `margin: 0 auto`'su ile birleşince metin ortalanıyor ve sayfa başlığıyla
   hizası kayıyordu. */
.prose {
  max-width: 74ch;
  padding-bottom: 64px;
}

.prose h2 {
  font-family: var(--serif);
  font-size: 23px;
  color: var(--primary-dark);
  margin: 38px 0 10px;
}

.prose h3 {
  font-size: 17px;
  margin: 22px 0 6px;
  color: var(--text);
}

.prose p,
.prose li {
  color: var(--text-secondary);
}

.prose ul {
  padding-left: 20px;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--text);
}

.callout {
  background: var(--primary-soft);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 26px 0;
}

.callout p {
  margin: 0;
  color: var(--primary-dark);
}

/* ---------------------------------------------------------------- contact */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
  padding-bottom: 64px;
}

.info-block + .info-block {
  margin-top: 24px;
}

.info-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 4px;
}

.info-value {
  margin: 0;
  font-size: 16px;
  color: var(--text);
}

form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

input,
select,
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 12px 14px;
}

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

button[type="submit"] {
  width: 100%;
  border: 0;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  border-radius: 14px;
  padding: 14px 20px;
  transition: background 0.15s ease;
}

button[type="submit"]:hover {
  background: var(--primary-medium);
}

.form-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 12px 0 0;
  text-align: center;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
  padding: 34px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 820px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero-art {
    order: -1;
    padding: 28px;
  }

  .hero-art img {
    width: 112px;
    height: 112px;
  }

  .nav {
    gap: 16px;
    font-size: 14px;
  }

  .site-header .wrap {
    min-height: 60px;
  }
}

@media (max-width: 460px) {
  .brand span {
    display: none;
  }

  .stores {
    flex-direction: column;
  }

  .store-btn {
    justify-content: center;
  }
}
