/*
Theme Name: AGORA Rock Drill
Theme URI: https://www.agorarock.shop/
Author: AGORA Rock Drill
Description: AGORA Rock Drill product catalog theme converted from the static prototype. Includes dynamic product catalog, brand archives, SEO-friendly product URLs and 12-hour API synchronization.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: agora-rock-drill
*/
/* ==========================================================================
   AGORA Rock Drill — SEO-first static site
   Design tokens — kurumsal / endüstriyel revizyon
   ========================================================================== */
:root {
  --c-ink: #16202b;          /* koyu lacivert-antrasit */
  --c-navy: #1e2f42;         /* kurumsal lacivert */
  --c-navy-light: #2c4258;
  --c-steel: #55677a;
  --c-steel-light: #7b8998;
  --c-paper: #f7f8f9;
  --c-paper-dim: #eef1f3;
  --c-accent: #c8842e;       /* mat amber/bronz - kurumsal, çığırtkan değil */
  --c-accent-dark: #a86c22;
  --c-line: #dde2e6;
  --c-white: #ffffff;

  --font-display: "Montserrat", "Arial", sans-serif;
  --font-body: "Montserrat", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;

  --radius: 4px;
  --max-w: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--c-paper);
  color: var(--c-ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.45em;
  color: var(--c-navy);
}
h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.2; }
p { margin: 0 0 1em; color: var(--c-steel); }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--c-white);
  border-bottom: 3px solid var(--c-navy);
  position: sticky; top: 0; z-index: 60;
  box-shadow: 0 2px 10px -4px rgba(20,30,40,0.08);
}
.site-header-top {
  background: var(--c-navy); color: #cdd6de; font-size: 0.78rem;
}
.site-header-top .wrap {
  display: flex; justify-content: flex-end; align-items: center;
  padding-top: 7px; padding-bottom: 7px; gap: 22px; flex-wrap: wrap;
}
.site-header-top a { color: #dbe2e8; display: inline-flex; align-items: center; gap: 6px; }
.site-header-top a:hover { color: var(--c-accent); }
.site-header-top svg { width: 13px; height: 13px; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 13px; padding-bottom: 13px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img {
  height: 44px; width: auto; object-fit: contain;
}
.brand-fallback-mark {
  width: 44px; height: 44px; background: var(--c-navy);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-accent); font-family: var(--font-display);
  font-weight: 800; font-size: 1.2rem; border-radius: var(--radius);
}

.main-nav { display: flex; gap: 24px; flex-shrink: 0; }
.main-nav a {
  font-size: 0.86rem; font-weight: 600;
  color: var(--c-steel); padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--c-navy); border-bottom-color: var(--c-accent);
}

/* header search */
.header-search { position: relative; flex: 1; max-width: 320px; }
.header-search input {
  width: 100%; padding: 9px 14px 9px 36px; border: 1px solid var(--c-line);
  border-radius: 999px; font-family: var(--font-body); font-size: 0.85rem;
  background: var(--c-paper); transition: border-color .15s ease;
}
.header-search input:focus { border-color: var(--c-accent); outline: none; }
.header-search svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--c-steel-light); pointer-events: none;
}
.header-search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius);
  box-shadow: 0 16px 32px -12px rgba(20,30,40,0.22);
  max-height: 380px; overflow-y: auto; display: none; z-index: 80;
}
.header-search-results.is-open { display: block; }
.header-search-results a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-bottom: 1px solid var(--c-line); font-size: 0.85rem;
}
.header-search-results a:last-child { border-bottom: none; }
.header-search-results a:hover { background: var(--c-paper-dim); }
.hsr-thumb {
  width: 34px; height: 34px; border-radius: 3px; background: var(--c-paper-dim);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden;
  border: 1px solid var(--c-line);
}
.hsr-thumb img { width: 100%; height: 100%; object-fit: contain; }
.hsr-part { font-family: var(--font-mono); font-size: 0.72rem; color: var(--c-accent-dark); font-weight: 700; display: block; }
.hsr-name { color: var(--c-navy); }
.hsr-empty { padding: 16px; font-size: 0.83rem; color: var(--c-steel-light); text-align: center; }

.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--c-accent); color: var(--c-white); font-weight: 700;
  padding: 11px 20px; border-radius: var(--radius); font-size: 0.85rem;
  flex-shrink: 0; box-shadow: 0 4px 10px -4px rgba(200,132,46,0.55);
}
.header-cta:hover { background: var(--c-accent-dark); }

/* ---------- Hero (homepage) ---------- */
.hero {
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-light) 55%, #37536b 100%);
  color: var(--c-white); position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(200,132,46,0.055) 0px, rgba(200,132,46,0.055) 2px, transparent 2px, transparent 42px);
  pointer-events: none;
}
.hero .wrap { padding: 76px 24px 68px; position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: 0.76rem;
  color: var(--c-accent); letter-spacing: 0.08em;
  border: 1px solid rgba(200,132,46,0.5); padding: 5px 12px; border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 { color: var(--c-white); max-width: 18ch; font-weight: 700; }
.hero .lead { color: #c3ccd4; font-size: 1.08rem; max-width: 54ch; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius); font-weight: 700;
  font-size: 0.92rem; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--c-accent); color: var(--c-white); box-shadow: 0 6px 16px -6px rgba(200,132,46,0.6); }
.btn-primary:hover { background: var(--c-accent-dark); }
.btn-ghost { border-color: rgba(255,255,255,0.35); color: var(--c-white); }
.btn-ghost:hover { border-color: var(--c-accent); color: var(--c-accent); }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats div strong {
  display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  color: var(--c-accent); line-height: 1;
}
.hero-stats div span { font-size: 0.78rem; color: #9fabb6; }

/* ---------- Brand category cards ---------- */
.section { padding: 64px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; gap: 20px; flex-wrap: wrap; }
.section-head p { margin: 0; max-width: 60ch; }
.kicker {
  font-family: var(--font-mono); font-size: 0.74rem; color: var(--c-accent-dark);
  letter-spacing: 0.09em; display: block; margin-bottom: 8px; font-weight: 700;
}

.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.brand-card {
  background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color .15s ease;
  display: flex; flex-direction: column;
}
.brand-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -16px rgba(20,30,40,0.22); border-color: var(--c-accent); }
.brand-card-media {
  aspect-ratio: 16/10; background: var(--c-paper-dim); display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--c-line); position: relative;
}
.brand-card-media svg { width: 56%; height: 56%; }
.brand-card-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.brand-card-body h3 { font-size: 1.25rem; margin-bottom: 6px; }
.brand-card-body p { font-size: 0.9rem; flex: 1; }
.brand-card-count {
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--c-accent-dark);
  font-weight: 700; margin-bottom: 10px;
}
.brand-card-link {
  font-size: 0.82rem; font-weight: 700;
  color: var(--c-navy); display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
}
.brand-card:hover .brand-card-link { color: var(--c-accent-dark); }

/* ---------- Category shortcut cards (homepage) ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-card {
  background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 22px 16px; text-align: center; transition: border-color .15s ease, transform .15s ease;
}
.cat-card:hover { border-color: var(--c-accent); transform: translateY(-2px); }
.cat-card-icon { width: 40px; height: 40px; margin: 0 auto 12px; }
.cat-card-icon svg { width: 100%; height: 100%; }
.cat-card-name { font-size: 0.85rem; font-weight: 700; color: var(--c-navy); margin-bottom: 4px; }
.cat-card-count { font-size: 0.76rem; color: var(--c-steel-light); }

/* ---------- Product grid ---------- */
.toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap; margin-bottom: 24px; padding: 13px 18px; background: var(--c-white);
  border: 1px solid var(--c-line); border-radius: var(--radius);
}
.result-count { font-size: 0.84rem; color: var(--c-steel-light); }
.result-count strong { color: var(--c-navy); }
.search-box { position: relative; flex: 1; max-width: 340px; }
.search-box input {
  width: 100%; padding: 10px 14px 10px 38px; border: 1px solid var(--c-line);
  border-radius: var(--radius); font-family: var(--font-body); font-size: 0.87rem;
  background: var(--c-paper);
}
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--c-steel-light); }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 36px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-line); border-radius: var(--radius); font-size: 0.85rem; font-weight: 600;
  color: var(--c-steel); padding: 0 10px;
}
.pagination a:hover { border-color: var(--c-accent); color: var(--c-accent-dark); }
.pagination .is-current { background: var(--c-navy); border-color: var(--c-navy); color: var(--c-white); }
.pagination .is-disabled { opacity: 0.35; pointer-events: none; }
.pagination .dots { border: none; color: var(--c-steel-light); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card {
  background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.15s ease, transform 0.15s ease, border-color .15s ease;
}
.product-card:hover { box-shadow: 0 14px 28px -18px rgba(20,30,40,0.28); transform: translateY(-2px); border-color: #c7ccd1; }
.product-media {
  aspect-ratio: 1/1; background: var(--c-white); position: relative;
  display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--c-line);
}
.product-media img, .product-media svg { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.product-brand-tag {
  position: absolute; top: 8px; left: 8px; background: var(--c-navy); color: var(--c-white);
  font-size: 0.64rem; padding: 3px 8px;
  border-radius: 999px; font-weight: 600;
}
.product-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.product-part-no {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--c-accent-dark);
  background: #f7ecdd; display: inline-block; padding: 2px 7px; border-radius: 3px;
  margin-bottom: 8px; align-self: flex-start; font-weight: 700; letter-spacing: 0.01em;
}
.product-title {
  font-size: 0.93rem; font-weight: 600; color: var(--c-navy); margin: 0 0 6px;
  line-height: 1.32; font-family: var(--font-body);
}
.product-meta { font-size: 0.78rem; color: var(--c-steel-light); margin-top: auto; }

/* ---------- Product detail page ---------- */
.breadcrumbs {
  font-size: 0.8rem; color: var(--c-steel-light); padding: 15px 0;
  border-bottom: 1px solid var(--c-line); background: var(--c-white);
}
.breadcrumbs a:hover { color: var(--c-accent-dark); }
.breadcrumbs span[aria-hidden] { margin: 0 6px; color: var(--c-line); }

.product-detail { display: grid; grid-template-columns: 1fr 1.1fr; gap: 52px; padding: 44px 0 56px; align-items: start; }
.pd-media {
  background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius);
  aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; padding: 32px;
  position: sticky; top: 90px;
}
.pd-media img, .pd-media svg { width: 100%; height: 100%; object-fit: contain; }
.pd-brand { font-family: var(--font-mono); font-size: 0.78rem; color: var(--c-accent-dark); letter-spacing: 0.05em; margin-bottom: 8px; display: block; font-weight: 700; }
.pd-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 14px; font-weight: 700; }
.pd-partno {
  font-family: var(--font-mono); font-size: 0.95rem; background: var(--c-paper-dim);
  border: 1px dashed var(--c-line); display: inline-block; padding: 8px 14px; border-radius: var(--radius);
  margin-bottom: 22px; color: var(--c-navy); font-weight: 600;
}
.pd-desc { font-size: 1rem; margin-bottom: 26px; max-width: 60ch; }

.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; font-size: 0.9rem; }
.spec-table tr { border-bottom: 1px solid var(--c-line); }
.spec-table th, .spec-table td { text-align: left; padding: 11px 4px; }
.spec-table th { color: var(--c-steel-light); font-weight: 600; width: 40%; font-size: 0.78rem; }
.spec-table td { color: var(--c-navy); font-weight: 500; }

.pd-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.pd-actions .btn { padding: 15px 28px; font-size: 0.95rem; }
.btn-primary.btn-lg { box-shadow: 0 8px 20px -8px rgba(200,132,46,0.65); }
.btn-secondary {
  background: var(--c-navy); color: var(--c-white); border-color: var(--c-navy);
}
.btn-secondary:hover { background: #14212e; }

/* ---------- Info strip ---------- */
.trust-strip { background: var(--c-navy); color: var(--c-white); padding: 28px 0; }
.trust-strip .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.trust-item { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; color: #cdd6de; flex: 1; min-width: 220px; }
.trust-item svg { width: 26px; height: 26px; color: var(--c-accent); flex-shrink: 0; }

/* ---------- About page ---------- */
.about-hero { background: var(--c-navy); color: var(--c-white); padding: 56px 0; }
.about-hero .wrap { max-width: 900px; }
.about-hero .kicker { color: var(--c-accent); }
.about-hero h1 { color: var(--c-white); margin-bottom: 14px; }
.about-hero p { color: #c3ccd4; font-size: 1.05rem; max-width: 70ch; }

.about-quote {
  background: var(--c-paper-dim); border-left: 3px solid var(--c-accent); border-radius: var(--radius);
  padding: 24px 28px; font-size: 1.02rem; color: var(--c-navy); font-style: italic; margin: 28px 0;
}

.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.why-item {
  display: flex; align-items: flex-start; gap: 12px; background: var(--c-white);
  border: 1px solid var(--c-line); border-radius: var(--radius); padding: 16px 18px;
}
.why-item svg { width: 20px; height: 20px; color: var(--c-accent); flex-shrink: 0; margin-top: 2px; }
.why-item span { font-size: 0.92rem; font-weight: 600; color: var(--c-navy); }

.mv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.mv-card {
  background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 26px 24px; border-top: 3px solid var(--c-accent);
}
.mv-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.mv-card p { font-size: 0.9rem; margin: 0; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 24px; }
.team-card {
  background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 22px 18px; text-align: center;
}
.team-card img {
  width: 76px; height: 76px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px;
  border: 2px solid var(--c-paper-dim);
}
.team-card .team-name { font-weight: 700; color: var(--c-navy); font-size: 0.95rem; margin-bottom: 3px; }
.team-card .team-role { font-size: 0.78rem; color: var(--c-steel-light); margin-bottom: 10px; }
.team-card .team-contact { font-size: 0.78rem; display: flex; flex-direction: column; gap: 3px; }
.team-card .team-contact a { color: var(--c-steel); }
.team-card .team-contact a:hover { color: var(--c-accent-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-ink); color: #aab4bf; padding: 0; margin-top: 36px; }
.footer-top { border-bottom: 1px solid #26333e; padding: 52px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.9fr 0.9fr 1.3fr; gap: 44px; }
.footer-grid h4 {
  color: var(--c-white); font-size: 0.78rem; margin-bottom: 18px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; position: relative; padding-bottom: 10px;
}
.footer-grid h4::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--c-accent);
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-grid a { font-size: 0.87rem; }
.footer-grid a:hover { color: var(--c-accent); }
.footer-about img { height: 38px; margin-bottom: 16px; }
.footer-about p { color: #93a0ab; font-size: 0.87rem; max-width: 34ch; line-height: 1.6; }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; font-size: 0.87rem; color: #aab4bf; }
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--c-accent); }
.footer-bottom-bar { padding: 20px 0; }
.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.78rem; color: #6d7a87;
}
.footer-bottom .legal-note { max-width: 60ch; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 34px; height: 34px; border: 1px solid #2f3d48; border-radius: 4px;
  display: flex; align-items: center; justify-content: center; color: #aab4bf;
}
.social-row a:hover { border-color: var(--c-accent); color: var(--c-accent); background: rgba(200,132,46,0.08); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .header-search { max-width: none; order: 3; flex-basis: 100%; margin-top: 10px; }
  .site-header .wrap { flex-wrap: wrap; }
  .brand-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail { grid-template-columns: 1fr; }
  .pd-media { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .mv-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .pd-actions { flex-direction: column; }
  .pd-actions .btn { width: 100%; justify-content: center; }
  .team-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
