/* ==========================================================================
   Gökalp Kırtasiye — styles
   Palette: paper cream + navy + warm amber
   ========================================================================== */

:root {
  --cream: #FAF6EF;
  --cream-2: #F3ECDF;
  --navy: #1E2A4A;
  --navy-2: #2E3F6E;
  --ink: #2B2B33;
  --muted: #6B6B76;
  --amber: #E8A33D;
  --amber-dark: #C9871F;
  --white: #FFFFFF;
  --line: rgba(30, 42, 74, 0.12);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 14px rgba(30, 42, 74, 0.08);
  --shadow-lg: 0 20px 50px rgba(30, 42, 74, 0.16);

  --container: 1140px;
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-family: var(--font-display); color: var(--navy); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 88px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: var(--amber-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--navy); border-color: rgba(30,42,74,0.35); }
.btn-ghost:hover { background: var(--navy); color: var(--white); border-color: var(--navy); transform: translateY(-2px); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { flex-shrink: 0; }
.brand-name { font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; color: var(--navy); letter-spacing: -0.02em; }
.brand-name em { font-style: normal; color: var(--amber-dark); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 6px; }
.nav-link {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--navy); }
.nav-link.active { color: var(--navy); background: var(--cream-2); }
.nav-cta { padding: 10px 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle-bar { display: block; height: 2.5px; width: 100%; background: var(--navy); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Section heads ---------- */
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--amber-dark);
  margin-bottom: 10px;
}
.section-title { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 14px; }
.section-lead { color: var(--muted); font-size: 1.05rem; max-width: 620px; }
.section-head { margin-bottom: 44px; }
.section-head .section-lead { margin-top: 4px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 100%); padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero-eyebrow { font-weight: 700; letter-spacing: 0.08em; color: var(--amber-dark); margin-bottom: 16px; }

.hero-title {
  position: relative;
  display: inline-block;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--navy);
  white-space: nowrap;
  --pen-distance: 0px;
}
.hero-title-ghost, .hero-title-ink { display: block; }
.hero-title-ghost { color: rgba(30, 42, 74, 0.18); }
.hero-title-ink {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--navy);
  clip-path: inset(0 100% 0 0);
  /* pen-ink keyframe animasyonu js/main.js aşağıdaki .animating sınıfı ile tetiklenir */
}
.hero-title.animating .hero-title-ink { animation: ink-reveal 2.4s var(--ease) forwards; }
.hero-title.animating .hero-pen { animation: pen-move 2.4s var(--ease) forwards; }

.hero-pen {
  position: absolute;
  top: 56%;
  left: 0;
  z-index: 3;
  width: clamp(2.4rem, 5vw, 3.6rem);
  pointer-events: none;
  transform: translateX(0) rotate(158deg);
  transform-origin: center;
  filter: drop-shadow(0 4px 6px rgba(30, 42, 74, 0.28));
}

@keyframes ink-reveal {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes pen-move {
  from { transform: translateX(0) rotate(158deg); }
  to   { transform: translateX(var(--pen-distance)) rotate(158deg); }
}

.hero-tagline { margin: 22px 0 28px; font-size: 1.15rem; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 30px; }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.92rem; color: var(--navy); }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }

.hero-visual { position: relative; }
.hero-img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}

/* ---------- About ---------- */
.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.about-img { width: 100%; border-radius: 22px; box-shadow: var(--shadow-sm); }
.about-content .section-title { margin-bottom: 18px; }
.about-content p { color: var(--muted); margin: 0 0 14px; }
.about-points { margin: 20px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.about-points li { position: relative; padding-left: 26px; font-weight: 600; color: var(--navy); }
.about-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: inset 0 0 0 4px var(--cream);
}

/* ---------- Products ---------- */
.products { background: var(--white); }
.products .container { max-width: 1360px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.product-card {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
/* accent bar revealed on hover */
.product-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 4px;
  background: var(--amber);
  transition: width 0.4s var(--ease);
}
.product-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  background: var(--white);
}
.product-card:hover::before { width: 100%; }
.product-icon {
  width: 68px; height: 68px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: var(--navy);
  color: var(--amber);
  margin-bottom: 18px;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s;
}
.product-card:hover .product-icon {
  transform: translateY(-6px) scale(1.08) rotate(-6deg);
  background: var(--amber);
  color: var(--navy);
  box-shadow: 0 10px 22px rgba(232, 163, 61, 0.4);
}
.product-card h3 { font-size: 1.3rem; margin-bottom: 8px; transition: color 0.3s; }
.product-card:hover h3 { color: var(--amber-dark); }
.product-card p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* ---------- Contact ---------- */
.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 32px; align-items: start; }

.contact-cards { display: grid; gap: 16px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--amber); }
.contact-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--cream-2);
  color: var(--amber-dark);
}
.contact-body { display: flex; flex-direction: column; gap: 2px; }
.contact-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
.contact-value { font-weight: 700; color: var(--navy); font-size: 1.02rem; word-break: break-word; }

.contact-side { display: grid; gap: 24px; }
.hours-card, .map-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.hours-title { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin-bottom: 16px; color: var(--navy); }
.hours-list { display: grid; gap: 12px; }
.hours-list li { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.hours-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.hours-list span { color: var(--muted); font-weight: 500; }
.hours-list strong { color: var(--navy); }
.hours-list .muted { color: var(--muted); font-weight: 500; }
.map-card { padding: 10px; }
.map-card iframe { display: block; border-radius: var(--radius-sm); }

/* ---------- Contact form ---------- */
.form-section { background: var(--white); }
.form-wrap { max-width: 760px; }
.contact-form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-weight: 700; font-size: 0.92rem; color: var(--navy); }
.form-field .req { color: var(--amber-dark); }
.form-field input, .form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--amber);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(232, 163, 61, 0.18);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input.is-invalid, .form-field textarea.is-invalid { border-color: #D9534F; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 0; font-weight: 600; min-height: 1.2em; }
.form-status.error { color: #C0392B; }
.form-status.success { color: #2E7D32; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.82); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { max-width: 340px; margin: 16px 0 0; font-size: 0.95rem; }
.brand-light .brand-name { color: var(--cream); }
.brand-light .brand-name em { color: var(--amber); }
.footer-col h4 { color: var(--cream); font-size: 1.05rem; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.78); font-size: 0.95rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 0; }
.footer-bottom p { margin: 0; text-align: center; font-size: 0.9rem; opacity: 0.8; }

/* ---------- Floating call (mobile) ---------- */
.floating-call {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 60;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--navy);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s var(--ease);
}
.floating-call:hover { transform: scale(1.08); }

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; max-width: 520px; margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    transition: transform 0.3s var(--ease);
    z-index: 49;
  }
  .site-nav.open { transform: translateY(0); }
  .nav-list { flex-direction: column; gap: 4px; }
  .nav-link { display: block; padding: 12px 14px; font-size: 1.05rem; }
  .nav-cta { justify-content: center; }
  .floating-call { display: flex; }
  .section { padding-block: 64px; }
}

@media (max-width: 520px) {
  .product-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-points { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-title-ink { clip-path: inset(0 0 0 0); }
  .hero-pen { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}
