/* Kuzey Ege Zeytin Atölyesi - tema stilleri. Dış bağımlılık yok; sistem yazı tipleri. */
:root {
  --olive-900: #2f3a1a;
  --olive-700: #4d5f26;
  --olive-500: #7a8f3a;
  --olive-300: #b7c47a;
  --cream: #faf5e8;
  --sand: #efe6cf;
  --blue-900: #0d2f4f;
  --blue-700: #1b5a8a;
  --blue-100: #dbe7ee;
  --gold: #c9962b;
  --terra: #b5532a;
  --ink: #2a2a22;
  --muted: #5b5a4d;
  --line: #ddd2b4;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(47, 58, 26, .12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--cream); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--blue-900); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--olive-900); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

:focus-visible { outline: 3px solid var(--blue-700); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--olive-900); color: var(--cream); padding: .6rem 1rem; z-index: 200; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--sand { background: var(--sand); }
.section--blue { background: var(--blue-900); color: var(--cream); }
.section--blue h2, .section--blue h3 { color: var(--cream); }
.section-head { max-width: 680px; margin: 0 auto 2.4rem; text-align: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--olive-700); margin-bottom: .6rem; }
.section--blue .eyebrow { color: var(--olive-300); }
.lead { font-size: 1.2rem; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent; font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn--primary { background: var(--olive-700); color: var(--cream); }
.btn--primary:hover { background: var(--olive-900); color: var(--cream); transform: translateY(-2px); }
.btn--ghost { border-color: var(--olive-700); color: var(--olive-900); background: transparent; }
.btn--ghost:hover { background: var(--olive-700); color: var(--cream); }
.btn--light { background: var(--cream); color: var(--blue-900); }
.btn--light:hover { background: var(--white); color: var(--blue-900); transform: translateY(-2px); }

/* Header */
.topbar { background: var(--olive-900); color: var(--cream); font-size: .9rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; justify-content: space-between; padding: .45rem 0; }
.topbar a { color: var(--cream); }
.topbar ul { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; margin: 0; padding: 0; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(250, 245, 232, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-header.is-scrolled { box-shadow: var(--shadow); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand img { width: 220px; height: auto; }
.nav { display: flex; align-items: center; gap: .4rem; }
.nav ul { list-style: none; display: flex; gap: .2rem; margin: 0; padding: 0; }
.nav li { position: relative; }
.nav a.nav-link { display: block; padding: .6rem .9rem; border-radius: 999px; color: var(--olive-900); font-weight: 600; text-decoration: none; }
.nav a.nav-link:hover, .nav a.nav-link[aria-current="page"] { background: var(--sand); color: var(--olive-900); }
.nav .sub { position: absolute; left: 0; top: 100%; min-width: 220px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .5rem; display: none; flex-direction: column; }
.nav li:hover > .sub, .nav li:focus-within > .sub { display: flex; }
.nav .sub a { display: block; padding: .5rem .8rem; border-radius: 8px; color: var(--ink); text-decoration: none; }
.nav .sub a:hover { background: var(--sand); }
.search-form { display: flex; }
.search-form input { width: 150px; padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 999px 0 0 999px; background: var(--white); font: inherit; font-size: .95rem; }
.search-form button { padding: .55rem .9rem; border: 1px solid var(--olive-700); background: var(--olive-700); color: var(--cream); border-radius: 0 999px 999px 0; cursor: pointer; font: 600 .95rem var(--font); }
.nav-toggle { display: none; background: transparent; border: 2px solid var(--olive-700); border-radius: 10px; padding: .5rem .7rem; cursor: pointer; color: var(--olive-900); font: 700 .95rem var(--font); }

/* Hero slider */
.hero { position: relative; overflow: hidden; background: var(--blue-900); color: var(--cream); }
.hero-track { display: grid; }
.hero-slide { grid-area: 1 / 1; position: relative; min-height: clamp(460px, 68vh, 680px); display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.hero-slide.is-active, .hero-slide:first-child { opacity: 1; visibility: visible; }
.js .hero-slide:first-child:not(.is-active) { opacity: 0; visibility: hidden; }
.hero-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 47, 79, .82) 0%, rgba(13, 47, 79, .45) 55%, rgba(13, 47, 79, .1) 100%); }
.hero-copy { position: relative; z-index: 2; max-width: 600px; padding: 2.5rem 0; }
.hero-copy h1, .hero-copy h2 { color: var(--cream); font-size: clamp(2.1rem, 5vw, 3.6rem); }
.hero-copy p { font-size: 1.2rem; color: #f0ead6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.hero-ctrl { position: absolute; z-index: 3; bottom: 20px; left: 0; right: 0; }
.hero-ctrl .wrap { display: flex; align-items: center; gap: .6rem; }
.hero-dot, .hero-pause { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--cream); background: transparent; padding: 0; cursor: pointer; }
.hero-dot[aria-current="true"] { background: var(--cream); }
.hero-pause { width: auto; height: auto; border-radius: 999px; padding: .2rem .7rem; color: var(--cream); font: 600 .8rem var(--font); margin-left: .6rem; }

/* Value strip */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.value { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.value-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--olive-700); color: var(--cream); display: grid; place-items: center; font: 700 1.3rem var(--serif); margin-bottom: .8rem; }
.value h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.value p { margin: 0; color: var(--muted); font-size: .98rem; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* Cards */
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.card:hover, .card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 4 / 3; background: var(--sand); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.1rem 1.2rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.2rem; }
.card-body h3 a { color: var(--olive-900); text-decoration: none; }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card-body p { margin: 0; color: var(--muted); font-size: .98rem; }
.card-more { margin-top: auto; padding-top: .5rem; font-weight: 700; color: var(--blue-700); }
.meta { font-size: .85rem; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.tags a { display: inline-block; padding: .2rem .7rem; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; text-decoration: none; background: var(--white); }

/* Testimonials */
.quotes { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.quote { background: rgba(255, 255, 255, .07); border: 1px solid rgba(250, 245, 232, .22); border-radius: var(--radius); padding: 1.6rem; margin: 0; }
.quote blockquote { margin: 0 0 1.2rem; font-family: var(--serif); font-size: 1.15rem; line-height: 1.6; }
.quote figcaption { display: flex; align-items: center; gap: .8rem; font-size: .95rem; }
.quote img { width: 48px; height: 48px; border-radius: 50%; }
.quote strong { display: block; }

/* CTA */
.cta { background: var(--olive-700) url("../img/pattern-olive.svg"); background-size: 140px; color: var(--cream); border-radius: 22px; padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.cta h2 { color: var(--cream); margin: 0 0 .3rem; }
.cta p { margin: 0; color: #eee7cf; }

/* Page banner & content */
.page-banner { background: var(--blue-900) url("../img/pattern-olive.svg"); background-size: 160px; color: var(--cream); padding: clamp(36px, 6vw, 72px) 0; }
.page-banner h1 { color: var(--cream); margin-bottom: .4rem; }
.page-banner p { color: #d7e3ea; margin: 0; max-width: 680px; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem .6rem; padding: 0; margin: 0 0 1rem; font-size: .9rem; }
.crumbs li + li::before { content: "/"; margin-right: .6rem; opacity: .6; }
.crumbs a { color: #cfe0ea; }
.content { padding: clamp(32px, 6vw, 72px) 0; }
.prose { max-width: 760px; }
.prose img { border-radius: var(--radius); }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .6rem .4rem; text-align: left; }

/* Product detail */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.product-img { background: var(--sand); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.spec { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.6rem; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.spec th, .spec td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
.spec th { width: 40%; background: var(--sand); color: var(--olive-900); font-weight: 700; }
.price { font: 700 1.8rem var(--serif); color: var(--olive-900); }
.post-hero { border-radius: var(--radius); margin-bottom: 2rem; width: 100%; }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; list-style: none; padding: 0; margin: 2.5rem 0 0; }
.pagination a { display: block; min-width: 42px; padding: .5rem .8rem; text-align: center; border: 1px solid var(--line); border-radius: 10px; background: var(--white); text-decoration: none; color: var(--olive-900); font-weight: 600; }
.pagination .active a, .pagination a:hover { background: var(--olive-700); border-color: var(--olive-700); color: var(--cream); }

/* Contact */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 56px); }
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-weight: 600; margin-bottom: .3rem; color: var(--olive-900); }
.form-row input, .form-row textarea { width: 100%; padding: .8rem 1rem; border: 1.5px solid #bdb394; border-radius: 10px; background: var(--white); font: inherit; color: var(--ink); }
.form-row input:focus, .form-row textarea:focus { border-color: var(--blue-700); outline: 3px solid rgba(27, 90, 138, .25); }
.form-row .err { display: none; color: #a0291b; font-size: .9rem; margin-top: .3rem; }
.form-row.has-error .err { display: block; }
.form-row.has-error input, .form-row.has-error textarea { border-color: #a0291b; }
.form-note { font-size: .88rem; color: var(--muted); }
.alert { padding: 1rem 1.2rem; border-radius: 10px; background: var(--blue-100); border: 1px solid var(--blue-700); margin-bottom: 1.4rem; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.info-card dl { margin: 0; }
.info-card dt { font-weight: 700; color: var(--olive-900); margin-top: 1rem; }
.info-card dd { margin: 0; }
.map-ph { margin-top: 1.4rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }

/* 404 */
.notfound { text-align: center; max-width: 560px; margin: 0 auto; }
.notfound img { margin: 0 auto 1.5rem; border-radius: 24px; }

/* Footer */
.site-footer { background: var(--olive-900); color: #e8e2c8; padding: clamp(40px, 6vw, 72px) 0 0; }
.site-footer a { color: #f1ecd6; }
.site-footer h3 { color: var(--cream); font-size: 1.1rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .45rem; }
.footer-brand img { width: 230px; margin-bottom: 1rem; }
.copyright { margin-top: 2.4rem; padding: 1.2rem 0; border-top: 1px solid rgba(250, 245, 232, .2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .9rem; }

/* Scroll reveal (class added by JS only) */
.will-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.will-reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .about, .product, .contact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 1rem 16px 1.4rem; display: none; box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; }
  .nav .sub { position: static; display: flex; box-shadow: none; border: 0; padding: 0 0 0 1rem; background: transparent; }
  .search-form input { width: 100%; }
  .search-form { margin-top: .6rem; }
  .brand img { width: 180px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-slide::after { background: rgba(13, 47, 79, .68); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .will-reveal { opacity: 1; transform: none; }
}
@media print { .topbar, .site-header, .site-footer, .hero-ctrl { display: none; } }

.pagination a.active { background: var(--olive-700); border-color: var(--olive-700); color: var(--cream); }
.center-block { text-align: center; margin-top: 2rem; }
.section--flush { padding-top: 0; }
