/* ========================================
   Doğaca Zeytin — Design System
   ======================================== */

:root {
  --bg: #FAF8F5;
  --bg-alt: #F3EFE8;
  --text: #333333;
  --text-muted: #5C5C5C;
  --accent: #556B2F;
  --accent-hover: #445626;
  --accent-soft: #6B8E23;
  --cream: #F7F3EC;
  --white: #FFFFFF;
  --placeholder: #E4E0D8;
  --footer-bg: #3D4F22;
  --header-bg: rgba(250, 248, 245, 0.86);
  --shadow-soft: 0 8px 28px rgba(51, 51, 51, 0.06);
  --shadow-hover: 0 14px 36px rgba(51, 51, 51, 0.1);
  --radius: 4px;
  --container: 1120px;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --transition: 0.35s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* ========================================
   Header
   ======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.site-header.is-scrolled {
  background: rgba(250, 248, 245, 0.94);
  border-bottom-color: rgba(85, 107, 47, 0.08);
  box-shadow: 0 4px 20px rgba(51, 51, 51, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  transition: opacity var(--transition);
}

.logo:hover {
  opacity: 0.8;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.main-nav a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  transition: color var(--transition);
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.main-nav a:hover {
  color: var(--accent);
}

.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ========================================
   Hero
   ======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background-color: #2a2a24;
  background-image:
    linear-gradient(90deg, rgba(42, 42, 36, 0.15) 0%, rgba(42, 42, 36, 0.28) 45%, rgba(42, 42, 36, 0.42) 100%),
    url('../assets/images/watermarked_img_14580831371952067804.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: var(--cream);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 40%,
    rgba(30, 32, 24, 0.35) 70%,
    rgba(30, 32, 24, 0.5) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding-block: 6rem 5rem;
  max-width: 36rem;
  margin-right: max(1.25rem, calc((100% - var(--container)) / 2));
  margin-left: auto;
  animation: heroFadeIn 1.1s ease both;
}

.hero h1 {
  font-size: clamp(2.75rem, 5.5vw, 4.75rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.125rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: rgba(247, 243, 236, 0.92);
  margin-bottom: 2.25rem;
  max-width: 26rem;
  line-height: 1.65;
}

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary {
  padding: 0.95rem 2rem;
  background-color: var(--accent);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(85, 107, 47, 0.25);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(85, 107, 47, 0.35);
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   Story
   ======================================== */

.story {
  padding: clamp(5.5rem, 12vw, 8.5rem) 0;
  background: var(--bg);
}

.story-inner {
  max-width: 640px;
  text-align: center;
}

.story h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1.75rem;
  position: relative;
  display: inline-block;
}

.story h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 1.25rem auto 0;
}

.story p {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.9;
}

.story p + p {
  margin-top: 1.25rem;
}

.product-card .product-excerpt {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 1rem;
  padding-inline: 0.25rem;
}

/* ========================================
   Products
   ======================================== */

.products {
  padding: clamp(5rem, 10vw, 7.5rem) 0;
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.75rem, 6vw, 4rem);
}

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 0.85rem;
}

.section-header p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.product-card {
  background: var(--white);
  padding: 1.5rem 1.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.product-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  overflow: hidden;
  background: var(--placeholder);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-card h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.product-link {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition: color var(--transition), opacity var(--transition);
}

.product-link:hover {
  color: var(--accent-hover);
  opacity: 0.85;
}

/* ========================================
   Features
   ======================================== */

.features {
  padding: clamp(5rem, 10vw, 7.5rem) 0;
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.feature-item {
  text-align: center;
  padding: 0.5rem 1rem;
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  color: var(--accent);
  transition: transform var(--transition), color var(--transition);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-item:hover .feature-icon {
  color: var(--accent-soft);
  transform: translateY(-4px);
}

.feature-item h3 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.feature-item p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 240px;
  margin-inline: auto;
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
  background: var(--footer-bg);
  color: var(--cream);
  padding: 3rem 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

.footer-center {
  text-align: center;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.footer-copy {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(247, 243, 236, 0.7);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--cream);
  opacity: 0.85;
  transition: opacity var(--transition), transform var(--transition);
}

.social-link:first-child {
  justify-self: start;
}

.social-link:last-child {
  justify-self: end;
}

.social-link svg {
  width: 22px;
  height: 22px;
}

.social-link:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 900px) {
  .products-grid,
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }

  .features-grid {
    gap: 2.75rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    z-index: 110;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    background: rgba(250, 248, 245, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .main-nav a {
    font-size: 1rem;
  }

  .nav-toggle[aria-expanded='true'] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded='true'] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded='true'] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .hero {
    align-items: flex-end;
    background-position: 35% center;
  }

  .hero-content {
    align-items: flex-end;
    text-align: right;
    max-width: 100%;
    margin-right: 1.25rem;
    margin-left: 1.25rem;
    width: auto;
    padding-block: 5rem 4.5rem;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 10vw, 3.25rem);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.25rem;
  }

  .social-link:first-child,
  .social-link:last-child {
    justify-self: center;
  }

  .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-inner .social-link:first-child {
    order: 2;
  }

  .footer-center {
    order: 1;
  }

  .footer-inner .social-link:last-child {
    order: 3;
  }

  .site-footer .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
  }

  .footer-center {
    flex: 1 0 100%;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.75rem, var(--container));
  }

  .header-inner {
    min-height: 64px;
  }

  .logo {
    font-size: 1.4rem;
  }

  .hero-content {
    margin-right: 0.875rem;
    margin-left: 0.875rem;
  }

  .btn-primary {
    padding: 0.85rem 1.5rem;
    font-size: 0.8rem;
  }

  .product-card {
    padding: 1.25rem 1.25rem 1.75rem;
  }
}

/* ========================================
   Product detail pages
   ======================================== */

.product-page {
  padding: clamp(4.5rem, 9vw, 6.5rem) 0 clamp(4rem, 8vw, 6rem);
  background: var(--bg);
}

.breadcrumb {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.breadcrumb a {
  color: var(--accent);
  transition: opacity var(--transition);
}

.breadcrumb a:hover {
  opacity: 0.75;
}

.breadcrumb span[aria-hidden='true'] {
  margin: 0 0.5rem;
  opacity: 0.45;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.product-detail-media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--placeholder);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 96px;
}

.product-detail-media img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.product-detail-content h1 {
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  margin-bottom: 1rem;
}

.product-detail-lead {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.product-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  margin-bottom: 2.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(85, 107, 47, 0.12);
  border-bottom: 1px solid rgba(85, 107, 47, 0.12);
}

.product-specs dt {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.product-specs dd {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.product-detail-body h2 {
  font-size: 1.45rem;
  margin: 2rem 0 0.85rem;
}

.product-detail-body p {
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.product-detail-body ul {
  margin: 0 0 1.25rem 1.1rem;
  list-style: disc;
}

.product-detail-body li {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0.4rem;
  padding-left: 0.25rem;
}

.product-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 2.25rem;
}

.btn-secondary {
  padding: 0.95rem 1.75rem;
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(85, 107, 47, 0.35);
}

.btn-secondary:hover {
  background: rgba(85, 107, 47, 0.06);
  transform: translateY(-2px);
}

.related-products {
  padding: clamp(3.5rem, 7vw, 5rem) 0;
  background: var(--bg-alt);
}

.related-products .products-grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
  margin-inline: auto;
}

@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-detail-media {
    position: static;
    max-width: 420px;
    margin-inline: auto;
  }

  .product-specs {
    grid-template-columns: 1fr;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
