/* main.css - Biocln landing page */

:root {
  --color-bg: #f5f7f9;
  --color-bg-alt: #ffffff;
  --color-primary: #97cf43;
  --color-primary-dark: #73b902;
  --color-accent: #5b4692;
  --color-text: #1f2933;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --radius-lg: 1.25rem;
  --radius-md: 0.75rem;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.1);
  --container-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

/* ACCESSIBILITY */

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: #111827;
  color: #ffffff;
  border-radius: 999px;
  z-index: 9999;
}

/* LAYOUT */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  padding: 4rem 0;
  background-color: var(--color-bg-alt);
}

.section-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section-header {
  max-width: 680px;
}

.section-header h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 2vw + 1rem, 2rem);
}

.section-header p {
  margin: 0;
  color: var(--color-muted);
}

/* HEADER & NAV */

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.logo img {
  display: block;
  height: 44px;
  width: auto;
}

/* Nav toggle (mobile) */

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #ffffff;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
  margin: 0 auto;
}

/* Nav list */

.site-nav {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  background: #ffffff;
  transform-origin: top;
  transform: scaleY(0);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.16s ease-out, opacity 0.16s ease-out,
    visibility 0.16s;
}

.site-nav.open {
  transform: scaleY(1);
  opacity: 1;
  visibility: visible;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.75rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.4rem 0;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-primary-dark);
}

/* Desktop nav */

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
  }

  .site-nav ul {
    flex-direction: row;
    gap: 1.5rem;
    padding: 0;
  }

  .site-nav a {
    padding: 0.25rem 0;
  }
}

/* HERO */

.hero {
  padding: 4rem 0 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
}

.hero-text h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 3vw + 1rem, 2.6rem);
}

.hero-subtitle {
  margin: 0 0 1rem;
  color: var(--color-muted);
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.hero-bullets li::before {
  content: "•";
  margin-right: 0.4rem;
  color: var(--color-primary);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

/* Desktop hero layout */

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: radial-gradient(circle at top left,
    var(--color-primary) 0,
    var(--color-primary-dark) 60%,
    #3f6212 100%);
  color: #ffffff;
  box-shadow: 0 12px 25px rgba(55, 118, 19, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  filter: brightness(1.06);
}

.btn-outline {
  background: #ffffff;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--color-primary);
  color: #111827;
}

.btn-link {
  padding: 0;
  border: none;
  background: none;
  color: var(--color-accent);
  font-weight: 600;
}

.btn-link:hover,
.btn-link:focus-visible {
  text-decoration: underline;
}

/* CARDS & GRIDS */

.about-grid,
.products-grid,
.benefits-grid,
.gallery-grid,
.media-grid {
  display: grid;
  gap: 1.5rem;
}

.about-card,
.product-card,
.benefit-item,
.document-item,
.certificate,
.media-item {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.24);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.04);
}

.about-card h3,
.benefit-item h3,
.product-card h3,
.document-item h3,
.certificate h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.about-card p,
.benefit-item p,
.product-card p,
.document-item p,
.certificate p {
  margin: 0;
  color: var(--color-muted);
}

/* Responsive grids */

@media (min-width: 640px) {
  .about-grid,
  .benefits-grid,
  .gallery-grid,
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.image-row {
  display: flex;            /* Resimleri yan yana getirir */
  gap: 10px;                /* Aralarındaki boşluk */
  flex-wrap: wrap;          /* Küçük ekranlarda alt satıra geçer */
  justify-content: center;  /* Ortalar */
  margin-bottom: 15px;      /* Satırlar arası boşluk */
}

.image-row img,
.image-row video {
  width: calc(50% - 5px);  /* İki öğe yan yana */
  height: auto;
  max-width: 100%;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Mobilde tek sütun olacak şekilde */
@media (max-width: 768px) {
  .image-row img,
  .image-row video {
    width: 100%;
  }
}

<style>
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}
.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.2s;
}
.gallery-grid img:hover {
  transform: scale(1.05);
}
.media-item {
  display: flex;
  flex-direction: column;
}
.media-item video {
    width: 100%;         /* Container genişliğini kaplasın */
    max-width: 450px;    /* Maksimum genişlik */
    height: auto;        /* Oran bozulmasın */
    border-radius: 5px;
    display: block;
    margin: 10px auto;   /* Ortalamak ve biraz boşluk bırakmak için */
}
</style>
/* PRODUCT CARDS */

.product-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.product-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.product-logo-secondary {
  filter: hue-rotate(-10deg) saturate(1.1);
}

.product-tagline {
  margin: 0.25rem 0 0;
  color: var(--color-muted);
}

.product-body ul {
  margin: 0 0 1rem 1.1rem;
  padding: 0;
  color: var(--color-muted);
}

.product-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding-top: 0.75rem;
}

/* GALLERY */

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  object-fit: cover;
}

/* DOCUMENTS & CERTIFICATE */

.document-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.certificate-media img {
  display: block;
  max-width: 260px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* MEDIA (VIDEOS) */

.media-item video {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #000;
}

.media-item figcaption {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* CONTACT */

.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.95rem;
}

.contact-list strong {
  display: inline-block;
  min-width: 80px;
  color: #111827;
}

.contact-form-wrapper {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.5rem 1.35rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 500;
}

.form-field input,
.form-field textarea {
  border-radius: 0.6rem;
  border: 1px solid var(--color-border);
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
  font-family: inherit;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

/* Desktop contact grid */

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: flex-start;
  }
}

/* FOOTER */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1.5rem 0 2rem;
  background: #ffffff;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
}

/* UTILS */

.footer-note {
  font-size: 0.8rem;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
}
