/* =========================================================
   Raymed Sağlık Ürünleri — Kurumsal mavi / bej tema
   ========================================================= */

:root {
  --navy: #1f4e79;
  --navy-dark: #163a5c;
  --blue: #3a7bbf;
  --blue-soft: #dbe8f5;
  --sky: #eef4fa;
  --beige: #f5efe6;
  --beige-deep: #e9dfd0;
  --sand: #c9b79c;
  --ink: #1d2b3a;
  --muted: #5d6b7a;
  --white: #ffffff;
  --wa: #25d366;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(31, 78, 121, .06);
  --shadow: 0 12px 40px rgba(31, 78, 121, .10);
  --shadow-lg: 0 24px 60px rgba(31, 78, 121, .16);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--beige);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.2; color: var(--navy-dark); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .97rem;
  border: 2px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  cursor: pointer;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn--primary { background: var(--navy); color: var(--white); box-shadow: 0 8px 24px rgba(31,78,121,.25); }
.btn--primary:hover { background: var(--navy-dark); transform: translateY(-2px); }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--sm { padding: 9px 20px; font-size: .9rem; }
.btn--insta { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn--insta:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy-dark); color: #cfdcea; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { width: 15px; height: 15px; fill: currentColor; }
.topbar a:hover { color: var(--white); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 239, 230, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s, background .25s;
}
.header.is-scrolled { background: rgba(255,255,255,.94); box-shadow: var(--shadow-sm); border-color: var(--beige-deep); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.logo__mark svg { width: 42px; height: 42px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__text strong { font-size: 1.3rem; letter-spacing: .16em; font-weight: 700; color: var(--navy); }
.logo__text small { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.logo--light, .logo--light .logo__text strong { color: var(--white); }
.logo--light .logo__text small { color: #b9cbe0; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { font-weight: 500; font-size: .96rem; color: var(--ink); position: relative; padding: 6px 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--blue); border-radius: 2px; transition: width .25s;
}
.nav a:not(.btn):hover::after, .nav a.is-active::after { width: 100%; }
.nav a.is-active { color: var(--navy); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; margin: 5px 0; transition: transform .3s, opacity .3s; }
.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 {
  position: relative;
  padding: 80px 0 110px;
  background:
    radial-gradient(1000px 500px at 90% 10%, var(--blue-soft) 0%, transparent 60%),
    radial-gradient(700px 400px at 0% 100%, var(--beige-deep) 0%, transparent 70%),
    var(--beige);
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero h1 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -.01em; }
.hero h1 em { font-style: italic; color: var(--blue); }
.hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }
.hero__badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 26px; color: var(--ink); font-weight: 500; font-size: .94rem; }
.hero__badges span {
  display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px;
  border-radius: 50%; background: var(--blue-soft); color: var(--navy); font-size: .75rem; font-weight: 700;
}

.hero__visual { position: relative; min-height: 420px; display: grid; place-items: center; }
.hero__blob {
  position: absolute; inset: 8% 6%;
  background: linear-gradient(145deg, var(--navy) 0%, var(--blue) 100%);
  border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  opacity: .95; z-index: 0;
  animation: blob 14s ease-in-out infinite alternate;
}
@keyframes blob {
  to { border-radius: 58% 42% 45% 55% / 42% 58% 42% 58%; transform: rotate(6deg); }
}
.hero__card {
  position: relative; z-index: 1;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.hero__card--main { padding: 34px 30px; max-width: 300px; text-align: center; }
.hero__card--main p { color: var(--muted); margin: 0; font-size: .95rem; }
.hero__icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 20px; background: var(--sky); color: var(--navy); display: grid; place-items: center; }
.hero__icon svg { width: 44px; height: 44px; }
.hero__card--float { position: absolute; padding: 14px 20px; display: flex; flex-direction: column; animation: float 6s ease-in-out infinite; }
.hero__card--float strong { color: var(--navy); font-size: .98rem; }
.hero__card--float small { color: var(--muted); font-size: .8rem; }
.hero__card--a { top: 6%; left: -2%; border-left: 4px solid var(--sand); }
.hero__card--b { bottom: 6%; right: -2%; border-left: 4px solid var(--blue); animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Bölümler ---------- */
.section { padding: 100px 0; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section__head h2, .about h2 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.section__head p { color: var(--muted); }
.section__head--light h2 { color: var(--white); }
.section__head--light .eyebrow { color: #a9c6e6; }

/* Hakkımızda */
.about { background: var(--white); }
.about__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.about__frame {
  position: relative; aspect-ratio: 4 / 4.4; border-radius: 28px; overflow: hidden;
  background: linear-gradient(160deg, var(--sky) 0%, var(--beige) 100%);
  box-shadow: var(--shadow);
}
.about__pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at center, rgba(31,78,121,.12) 2px, transparent 2.5px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 90%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 90%);
}
.about__frame::before {
  content: ""; position: absolute; width: 58%; aspect-ratio: 1; top: 18%; left: 21%;
  background:
    linear-gradient(var(--navy), var(--navy)) center / 30% 100% no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 100% 30% no-repeat;
  border-radius: 14px; opacity: .9; z-index: 1;
  filter: drop-shadow(0 20px 30px rgba(31,78,121,.25));
}
.about__stat {
  position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 2;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  border-radius: var(--radius-sm); padding: 18px 22px; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 18px;
}
.about__stat strong { font-family: var(--font-serif); font-size: 1.9rem; color: var(--navy); }
.about__stat span { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.about__content p { color: var(--muted); }
.about__values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.about__values div { background: var(--beige); border-radius: var(--radius-sm); padding: 18px; border-top: 3px solid var(--sand); }
.about__values strong { display: block; color: var(--navy); margin-bottom: 4px; }
.about__values span { font-size: .88rem; color: var(--muted); }

/* Ürünler */
.products { background: var(--sky); }
.grid { display: grid; gap: 24px; }
.grid--products { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(31,78,121,.06);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  background: var(--beige); color: var(--navy); margin-bottom: 20px; transition: background .25s, color .25s;
}
.card:hover .card__icon { background: var(--navy); color: var(--white); }
.card__icon svg { width: 34px; height: 34px; }
.card h3 { font-size: 1.08rem; }
.card p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Neden biz */
.why { background: linear-gradient(150deg, var(--navy-dark) 0%, var(--navy) 60%, #2a6197 100%); color: #d6e3f0; position: relative; overflow: hidden; }
.why::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px;
  border-radius: 50%; border: 80px solid rgba(255,255,255,.04);
}
.grid--why { grid-template-columns: repeat(4, 1fr); position: relative; z-index: 1; }
.why__item {
  padding: 30px 26px; border-radius: var(--radius);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10);
  transition: background .25s;
}
.why__item:hover { background: rgba(255,255,255,.11); }
.why__num { font-family: var(--font-serif); font-size: 2rem; color: var(--sand); display: block; margin-bottom: 10px; }
.why__item h3 { color: var(--white); font-size: 1.1rem; }
.why__item p { margin: 0; font-size: .93rem; }

/* Instagram */
.insta { padding: 70px 0; background: var(--beige); }
.insta__inner {
  display: flex; align-items: center; gap: 30px;
  background: linear-gradient(120deg, var(--beige-deep), var(--blue-soft));
  border-radius: 28px; padding: 40px 46px;
}
.insta__icon {
  flex: none; width: 74px; height: 74px; border-radius: 22px; display: grid; place-items: center;
  background: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7); color: var(--white);
}
.insta__icon svg { width: 36px; height: 36px; fill: currentColor; }
.insta__text { flex: 1; }
.insta__text h2 { font-family: var(--font-serif); font-size: 1.6rem; margin-bottom: 6px; }
.insta__text p { margin: 0; color: var(--muted); }

/* İletişim */
.contact { background: var(--white); }
.contact__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 30px; align-items: stretch; }
.contact__info { display: grid; gap: 14px; align-content: start; }
.contact__item {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--beige); border-radius: var(--radius); padding: 20px 22px;
  transition: transform .2s, box-shadow .2s;
}
.contact__item:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.contact__item strong { display: block; color: var(--navy); margin-bottom: 2px; }
.contact__item > span:last-child { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.contact__ic {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--navy); color: var(--white);
}
.contact__ic svg { width: 22px; height: 22px; fill: currentColor; }
.contact__ic--wa { background: var(--wa); }
.contact__ic--ig { background: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7); }
.contact__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 420px; background: var(--sky); }
.contact__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* Footer */
.footer { background: var(--navy-dark); color: #b9cbe0; padding-top: 64px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 46px; }
.footer__brand p { margin-top: 16px; max-width: 320px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; font-size: .94rem; }
.footer__links h4 { color: var(--white); font-size: 1rem; margin-bottom: 8px; }
.footer__links a:hover { color: var(--white); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: .85rem; color: #8ea6c0; }

/* WhatsApp sabit buton */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: var(--white); box-shadow: 0 10px 30px rgba(37,211,102,.4);
  transition: transform .2s;
}
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa);
  animation: pulse 2.4s ease-out infinite; z-index: -1;
}
@keyframes pulse { to { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: currentColor; }

/* Görünme animasyonu */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--products { grid-template-columns: repeat(2, 1fr); }
  .grid--why { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { gap: 40px; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .topbar span { display: none; }
  .topbar__inner { justify-content: center; }

  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 10px 20px 24px;
    box-shadow: var(--shadow); border-top: 1px solid var(--beige-deep);
    transform: translateY(-10px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--beige); }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 16px; justify-content: center; }

  .hero { padding: 50px 0 80px; }
  .hero__inner, .about__inner, .contact__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 360px; order: -1; max-width: 440px; width: 100%; margin: 0 auto; }
  .about__inner { gap: 44px; }
  .about__media { max-width: 440px; width: 100%; margin: 0 auto; }
  .section { padding: 76px 0; }
  .insta__inner { flex-direction: column; text-align: center; padding: 36px 26px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .grid--products, .grid--why { grid-template-columns: 1fr; }
  .about__values { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__card--a { left: 0; }
  .hero__card--b { right: 0; }
  .logo__mark svg { width: 38px; height: 38px; }
  .logo__text strong { font-size: 1.15rem; }
  .footer__inner { grid-template-columns: 1fr; }
  .contact__map, .contact__map iframe { min-height: 320px; }
}
