/*
Theme Name: Atölye Heritage
Theme URI: https://example.com/atolye-heritage
Author: Atölye Heritage
Description: Deri, çanta, ayakkabı ve benzeri tamir atölyeleri için yeniden markalanabilir, premium WordPress teması.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: atolye-heritage
*/

:root {
  --ah-primary: #3e2723;
  --ah-primary-dark: #271310;
  --ah-secondary: #a1887f;
  --ah-gold: #b8860b;
  --ah-cream: #fff9f0;
  --ah-surface: #fcf9f8;
  --ah-card: #f5f5f5;
  --ah-white: #fff;
  --ah-text: #212121;
  --ah-muted: #6f625f;
  --ah-line: rgba(161, 136, 127, .25);
  --ah-radius: 16px;
  --ah-shadow: 0 18px 45px rgba(62, 39, 35, .07);
  --ah-container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ah-surface);
  color: var(--ah-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ah-primary); text-decoration: none; }
a:hover { color: var(--ah-gold); }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4, h5, h6, .brand-name {
  color: var(--ah-primary-dark);
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.18;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.35rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3vw, 2.65rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
p { margin: 0 0 1.25rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container { width: min(100% - 32px, var(--ah-container)); margin-inline: auto; }
.narrow { max-width: 800px; margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 7.5rem) 0; }
.section-soft { background: var(--ah-card); }
.eyebrow { color: var(--ah-gold); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.lead { color: var(--ah-muted); font-size: clamp(1.05rem, 2vw, 1.2rem); max-width: 690px; }
.section-heading { max-width: 740px; margin-bottom: 3rem; }
.section-heading.center { text-align: center; margin-inline: auto; }
.section-heading.center .lead { margin-inline: auto; }
.btn, .wp-element-button, button.urm-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  font-size: .86rem;
  font-weight: 700;
  gap: .55rem;
  justify-content: center;
  letter-spacing: .045em;
  min-height: 48px;
  padding: .78rem 1.4rem;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover, .wp-element-button:hover, button.urm-button:hover { transform: translateY(-2px); }
.btn-primary, .wp-element-button, button.urm-button { background: var(--ah-primary); color: #fff; box-shadow: 0 8px 24px rgba(62,39,35,.15); }
.btn-primary:hover, .wp-element-button:hover, button.urm-button:hover { background: var(--ah-primary-dark); color: #fff; }
.btn-outline { border-color: var(--ah-primary); color: var(--ah-primary); background: transparent; }
.btn-outline:hover { background: rgba(62,39,35,.06); color: var(--ah-primary); }
.text-link { font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* Header */
.site-header { background: rgba(255,249,240,.94); border-bottom: 1px solid var(--ah-line); position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(14px); }
.header-inner { align-items: center; display: flex; gap: 2rem; min-height: 88px; }
.site-brand { align-items: center; display: flex; gap: .8rem; margin-right: auto; }
.custom-logo { max-height: 54px; width: auto; }
.brand-name { display: block; font-size: 1.65rem; font-weight: 700; line-height: 1; }
.brand-year { color: var(--ah-gold); display: block; font-size: .67rem; font-weight: 700; letter-spacing: .18em; margin-top: .35rem; text-transform: uppercase; }
.primary-menu { align-items: center; display: flex; gap: clamp(1rem, 2.3vw, 2rem); list-style: none; margin: 0; padding: 0; }
.primary-menu a { color: var(--ah-primary); font-size: .78rem; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.primary-menu .current-menu-item > a, .primary-menu a:hover { color: var(--ah-gold); }
.header-actions { display: flex; gap: .65rem; }
.header-actions .btn { min-height: 42px; padding: .6rem 1rem; }
.menu-toggle { background: transparent; border: 0; color: var(--ah-primary); display: none; font-size: 1.8rem; padding: .4rem; }

/* Home */
.hero { overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0; position: relative; }
.hero::before { background: radial-gradient(circle, rgba(184,134,11,.09), transparent 68%); content: ""; height: 520px; position: absolute; right: -180px; top: -120px; width: 520px; }
.hero-grid { align-items: center; display: grid; gap: clamp(2.5rem, 6vw, 6rem); grid-template-columns: 1.02fr .98fr; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 { margin: 1rem 0 1.5rem; }
.hero-copy .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-visual { min-height: 580px; position: relative; }
.hero-visual::before { border: 1px solid rgba(184,134,11,.45); border-radius: var(--ah-radius); content: ""; inset: 28px -20px -20px 28px; position: absolute; }
.hero-visual img { border-radius: var(--ah-radius); height: 580px; object-fit: cover; position: relative; width: 100%; }
.heritage-seal { background: var(--ah-primary); border: 6px solid var(--ah-cream); border-radius: 50%; bottom: 32px; color: #fff; display: grid; height: 130px; place-content: center; position: absolute; right: -28px; text-align: center; width: 130px; z-index: 2; }
.heritage-seal strong { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 1.65rem; }
.heritage-seal span { color: #ead190; font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.process-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(4, 1fr); }
.process-card { background: var(--ah-white); border-radius: var(--ah-radius); min-height: 220px; padding: 2rem; position: relative; box-shadow: var(--ah-shadow); }
.process-number { color: rgba(184,134,11,.25); font-family: "Playfair Display", Georgia, serif; font-size: 3.5rem; font-weight: 700; line-height: 1; }
.process-card h3 { font-size: 1.35rem; margin-top: .8rem; }
.split { align-items: center; display: grid; gap: clamp(2.5rem, 6vw, 6rem); grid-template-columns: 1fr 1fr; }
.split-image { border-radius: var(--ah-radius); min-height: 520px; object-fit: cover; width: 100%; }
.check-list { list-style: none; margin: 1.75rem 0 2rem; padding: 0; }
.check-list li { border-bottom: 1px solid var(--ah-line); padding: .8rem 0 .8rem 2rem; position: relative; }
.check-list li::before { color: var(--ah-gold); content: "✓"; font-weight: 800; left: 0; position: absolute; }
.service-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
.service-card { background: #fff; border-radius: var(--ah-radius); overflow: hidden; box-shadow: var(--ah-shadow); transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { box-shadow: 0 24px 55px rgba(62,39,35,.12); transform: translateY(-5px); }
.service-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.service-card-content { padding: 1.75rem; }
.service-card-content h3 { font-size: 1.45rem; }
.quote-band { background: var(--ah-primary); color: rgba(255,255,255,.8); overflow: hidden; position: relative; }
.quote-band::after { background: url("assets/images/home-3.jpg") center/cover; content: ""; inset: 0; opacity: .11; position: absolute; }
.quote-band .container { padding-block: clamp(4rem, 8vw, 7rem); position: relative; text-align: center; z-index: 1; }
.quote-band h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.5rem); margin-inline: auto; max-width: 840px; }
.quote-band p { margin-inline: auto; max-width: 640px; }
.cta-card { align-items: center; background: #fff; border: 1px solid var(--ah-line); border-radius: 24px; display: flex; gap: 2rem; justify-content: space-between; padding: clamp(2rem, 5vw, 4rem); box-shadow: var(--ah-shadow); }

/* Generic/editor pages */
.page-hero { background: linear-gradient(135deg, #f5eee7 0%, var(--ah-cream) 100%); border-bottom: 1px solid var(--ah-line); padding: clamp(3.5rem, 8vw, 7rem) 0; text-align: center; }
.page-hero .lead { margin-inline: auto; }
.page-content { padding: clamp(3rem, 7vw, 6rem) 0; }
.page-content > .container > :first-child { margin-top: 0; }
.artisan-intro { margin: 0 auto 4rem; max-width: 790px; text-align: center; }
.artisan-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); margin: 3rem 0; }
.artisan-card { background: #fff; border-radius: var(--ah-radius); overflow: hidden; box-shadow: var(--ah-shadow); }
.artisan-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.artisan-card-body { padding: 2rem; }
.artisan-card.wide { grid-column: span 2; }
.artisan-card.wide { align-items: center; display: grid; grid-template-columns: 1fr 1fr; }
.artisan-card.wide img { aspect-ratio: auto; height: 100%; min-height: 360px; }
.story-block { align-items: center; display: grid; gap: 4rem; grid-template-columns: 1fr 1fr; margin: 1rem 0 5rem; }
.story-block.reverse .story-copy { order: -1; }
.story-block img { border-radius: var(--ah-radius); height: 520px; object-fit: cover; width: 100%; }
.steps { counter-reset: step; display: grid; gap: 1.5rem; grid-template-columns: repeat(4,1fr); margin: 3rem 0; }
.step { background: #fff; border-radius: var(--ah-radius); padding: 2rem; box-shadow: var(--ah-shadow); }
.step::before { color: var(--ah-gold); content: counter(step, decimal-leading-zero); counter-increment: step; display: block; font-family: "Playfair Display", Georgia, serif; font-size: 2rem; margin-bottom: 1rem; }
.content-callout { background: var(--ah-primary); border-radius: 24px; color: rgba(255,255,255,.82); margin: 4rem 0 0; padding: clamp(2rem, 6vw, 4.5rem); text-align: center; }
.content-callout h2 { color: #fff; }
.contact-layout { display: grid; gap: 2rem; grid-template-columns: .85fr 1.15fr; }
.contact-panel { background: #fff; border-radius: var(--ah-radius); padding: 2rem; box-shadow: var(--ah-shadow); }
.contact-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.contact-list li { border-bottom: 1px solid var(--ah-line); padding: 1rem 0; }
.contact-list small { color: var(--ah-muted); display: block; font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.map-frame { border: 0; border-radius: var(--ah-radius); height: 380px; margin-top: 2rem; width: 100%; }

/* Blog */
.post-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(3,1fr); }
.post-card { background: #fff; border-radius: var(--ah-radius); overflow: hidden; box-shadow: var(--ah-shadow); }
.post-card-image { aspect-ratio: 16/10; background: #e8e0db; object-fit: cover; width: 100%; }
.post-card-body { padding: 1.6rem; }
.post-meta { color: var(--ah-gold); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.post-card h2, .post-card h3 { font-size: 1.45rem; margin-top: .6rem; }
.single-article { max-width: 820px; }
.single-article .featured-image { border-radius: var(--ah-radius); margin: 0 0 2.5rem; width: 100%; }
.single-article .entry-content { font-size: 1.08rem; }
.single-article .entry-content h2 { margin-top: 2.5rem; }
.pagination { margin-top: 3rem; text-align: center; }

/* Forms shared with plugin */
.ah-form label { color: var(--ah-primary); display: block; font-size: .82rem; font-weight: 700; margin: 0 0 .45rem; }
.ah-form input:not([type="checkbox"]):not([type="radio"]), .ah-form select, .ah-form textarea,
.urm-app input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .urm-app select, .urm-app textarea {
  background: #fff;
  border: 1px solid rgba(161,136,127,.4);
  border-radius: 12px;
  color: var(--ah-text);
  min-height: 48px;
  padding: .75rem 1rem;
  width: 100%;
}
.ah-form textarea, .urm-app textarea { min-height: 130px; resize: vertical; }
.ah-form input:focus, .ah-form select:focus, .ah-form textarea:focus,
.urm-app input:focus, .urm-app select:focus, .urm-app textarea:focus { border-color: var(--ah-primary); box-shadow: 0 0 0 3px rgba(62,39,35,.08); outline: 0; }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.form-field { margin-bottom: 1.25rem; }

/* Footer */
.site-footer { background: var(--ah-primary-dark); color: rgba(255,255,255,.74); padding: 4.5rem 0 1.5rem; }
.footer-grid { display: grid; gap: 3rem; grid-template-columns: 2fr 1fr 1.25fr; }
.site-footer .brand-name, .site-footer h3 { color: #fff; }
.site-footer h3 { font-family: Inter, sans-serif; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .65rem; }
.site-footer a { color: rgba(255,255,255,.74); }
.site-footer a:hover { color: #ead190; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: .75rem; margin-top: 3rem; padding-top: 1.5rem; }
.whatsapp-float { align-items: center; background: #1f9d55; border-radius: 999px; bottom: 22px; box-shadow: 0 10px 28px rgba(0,0,0,.18); color: #fff; display: flex; font-size: .8rem; font-weight: 700; gap: .5rem; padding: .8rem 1.1rem; position: fixed; right: 22px; z-index: 999; }
.whatsapp-float:hover { background: #188447; color: #fff; }

@media (max-width: 1050px) {
  .menu-toggle { display: block; }
  .site-nav { background: var(--ah-cream); border-bottom: 1px solid var(--ah-line); display: none; left: 0; padding: 1rem; position: absolute; right: 0; top: 88px; }
  .site-nav.is-open { display: block; }
  .primary-menu { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-menu a { display: block; padding: .8rem; }
  .header-actions .btn-outline { display: none; }
  .hero-grid, .split, .story-block, .contact-layout { grid-template-columns: 1fr; }
  .hero-visual { min-height: 440px; }
  .hero-visual img { height: 440px; }
  .process-grid, .steps { grid-template-columns: repeat(2,1fr); }
  .service-grid, .post-grid { grid-template-columns: repeat(2,1fr); }
  .story-block.reverse .story-copy { order: initial; }
}
@media (max-width: 680px) {
  body.admin-bar .site-header { top: 46px; }
  .header-inner { min-height: 76px; }
  .site-nav { top: 76px; }
  .brand-name { font-size: 1.3rem; }
  .brand-year { display: none; }
  .header-actions .btn { font-size: 0; min-width: 44px; padding: .55rem; }
  .header-actions .btn::after { content: "+"; font-size: 1.3rem; }
  .hero { padding-top: 2.5rem; }
  .hero-visual, .hero-visual img { min-height: 350px; height: 350px; }
  .heritage-seal { bottom: -20px; height: 105px; right: 5px; width: 105px; }
  .process-grid, .service-grid, .post-grid, .artisan-grid, .steps, .form-row { grid-template-columns: 1fr; }
  .artisan-card.wide { display: block; grid-column: span 1; }
  .artisan-card.wide img { min-height: 260px; }
  .cta-card { align-items: stretch; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .whatsapp-float span { display: none; }
}
