/* ==========================================================================
   Fabrica Textile — Clone stylesheet (PHP 8.2 vanilla)
   Kaynak: https://fabrica.ancorathemes.com/textile/
   Tokenlar: navy #181D4E + coral #FA4729, Outfit + DM Sans, 0px köşe.
   ========================================================================== */

:root {
  --navy:       #181D4E;
  --navy-soft:  #1C1E36;
  --navy-deep:  #0B0D26;
  --navy-black: #090A1A;
  --coral:      #FA4729;
  --coral-dark: #e23413;
  --body:       #5A5A67;
  --muted:      #9BA2AD;
  --offwhite:   #FCFCFC;
  --cream:      #F6F6F8;
  --white:      #FFFFFF;
  --line:       #ECEDF1;
  --font-head:  'Outfit', ui-sans-serif, system-ui, sans-serif;
  --font-body:  'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --container:  1230px;
  /* admin/site ortak alias */
  --brand-gold: #FA4729;
  --brand-dark: #1C1E36;
  --brand-body: #5A5A67;
  --brand-border: #ECEDF1;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .25s ease; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

/* specificity 0 → Tailwind/utility override edebilir */
:where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ── Layout ────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 110px; position: relative; }
.section--tight { padding-block: 80px; }
.section--dark { background: var(--navy-deep); color: rgba(255,255,255,.72); }
.section--dark :where(h1,h2,h3,h4) { color: #fff; }
.section--cream { background: var(--offwhite); }
.text-center { text-align: center; }

/* ── Typography helpers ────────────────────────────────── */
.eyebrow {
  font-family: var(--font-head);
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--navy);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--coral); display: inline-block; }
.section--dark .eyebrow, .eyebrow--light { color: var(--coral); }
.h-display { font-size: clamp(40px, 6vw, 75px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; color: var(--navy); }
.h-section { font-size: clamp(32px, 4.4vw, 50px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; color: var(--navy); }
.lead { font-size: 17px; line-height: 1.7; color: var(--body); }
.muted { color: var(--muted); }

/* ── Buttons (0px radius, coral) ───────────────────────── */
.btn-primary, .btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 15px; font-weight: 500;
  padding: 15px 38px; border-radius: 0; transition: all .25s ease; cursor: pointer;
  line-height: 1;
}
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--coral); color: var(--coral); }
.section--dark .btn-outline { color: #fff; border-color: rgba(255,255,255,.3); }
.section--dark .btn-outline:hover { border-color: var(--coral); color: var(--coral); }
.link-arrow { font-family: var(--font-head); font-weight: 500; color: var(--navy); display: inline-flex; align-items: center; gap: 8px; }
.section--dark .link-arrow { color: #fff; }
.link-arrow:hover { color: var(--coral); gap: 12px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  padding-block: 22px; transition: all .3s ease;
}
.site-header.scrolled { background: #fff; box-shadow: 0 6px 30px rgba(24,29,78,.08); padding-block: 12px; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-logo img { height: 46px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 30px; }
.nav-link {
  font-family: var(--font-head); font-size: 16px; font-weight: 500; color: var(--navy);
  display: inline-flex; align-items: center; gap: 5px; position: relative; padding-block: 6px;
}
.nav-link:hover, .nav-link.is-active { color: var(--coral); }
.nav-link.is-active::after { content: ""; position: absolute; left: 0; bottom: 0; width: 18px; height: 2px; background: var(--coral); }
.header-right { display: flex; align-items: center; gap: 26px; }
.header-phone { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 16px; }
.header-cta { background: var(--coral); color: #fff; font-family: var(--font-head); font-weight: 500; font-size: 15px; padding: 13px 32px; display: inline-flex; align-items: center; gap: 8px; transition: all .25s; }
.header-cta:hover { background: var(--coral-dark); color: #fff; }
.nav-toggle { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; color: var(--navy); }

/* dropdown */
.has-sub { position: relative; }
.submenu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
  min-width: 210px; background: #fff; box-shadow: 0 20px 50px rgba(24,29,78,.14);
  padding: 12px 0; opacity: 0; visibility: hidden; transition: all .25s ease; z-index: 95;
}
.has-sub:hover .submenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.submenu li a { display: block; padding: 9px 24px; font-family: var(--font-head); font-size: 15px; color: var(--navy); }
.submenu li a:hover { color: var(--coral); background: var(--offwhite); }

/* ── Mobile drawer ─────────────────────────────────────── */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(9,10,26,.55); z-index: 98; }
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); background: var(--navy-deep);
  z-index: 99; padding: 26px; overflow-y: auto; color: #fff;
}
.drawer-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.drawer-header strong { font-family: var(--font-head); font-size: 22px; color: #fff; }
.drawer-nav ul { display: flex; flex-direction: column; }
.drawer-link {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  font-family: var(--font-head); font-size: 18px; font-weight: 500; color: #fff;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); text-align: left;
}
.drawer-link:hover { color: var(--coral); }
.drawer-sub { padding-left: 14px; }
.drawer-sub li a { display: block; padding: 10px 0; font-size: 15px; color: rgba(255,255,255,.7); }
.drawer-sub li a:hover { color: var(--coral); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-top: 170px; padding-bottom: 0; position: relative; overflow: hidden; }
.hero-inner { position: relative; min-height: 420px; }
.hero-title { text-align: center; }
.hero-title h1 { margin-inline: auto; max-width: 980px; }
.hero-sub { text-align: center; max-width: 480px; margin: 22px auto 0; color: var(--muted); font-size: 16px; }
.hero-card { position: absolute; box-shadow: 0 30px 60px rgba(24,29,78,.10); }
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card--1 { width: 185px; height: 205px; top: 20px; left: 0; }
.hero-card--2 { width: 130px; height: 150px; top: 70px; right: 30px; }
.hero-card--3 { width: 170px; height: 165px; top: 235px; right: 70px; background:#f1f1f4; }
.hero-band { margin-top: 40px; }
.hero-band img { width: 100%; height: clamp(260px, 36vw, 460px); object-fit: cover; }

/* ==========================================================================
   About ("What we do")
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.about-cols { columns: 2; column-gap: 34px; font-size: 15px; line-height: 1.7; color: var(--body); }
.about-cols p { break-inside: avoid; margin-bottom: 14px; }
.dropcap::first-letter { font-family: 'Times New Roman', serif; font-size: 62px; font-weight: 700; color: var(--navy); float: left; line-height: .8; padding: 6px 12px 0 0; }
.person { display: flex; align-items: center; gap: 16px; margin-top: 30px; }
.person img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.person strong { font-family: var(--font-head); font-size: 18px; color: var(--navy); display: block; }
.person span { font-size: 14px; color: var(--muted); }

/* ── Craft (Professional approach) ─────────────────────── */
.craft-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.craft-imgs { position: relative; }
.craft-imgs img { width: 100%; object-fit: cover; }
.decor-line { position: absolute; opacity: .5; pointer-events: none; z-index: -1; }

/* ==========================================================================
   Counter band (dark)
   ========================================================================== */
.counter-band { background: var(--navy-deep); color: #fff; padding-block: 90px; position: relative; overflow: hidden; }
.counter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.counter-item .num { font-family: var(--font-head); font-size: clamp(48px, 6vw, 84px); font-weight: 400; color: #fff; line-height: 1; letter-spacing: -0.03em; }
.counter-item .lbl { font-family: var(--font-head); font-size: 15px; color: var(--coral); margin-bottom: 14px; }

/* ==========================================================================
   Portfolio (Creative works)
   ========================================================================== */
.portfolio-head { background: var(--navy-deep); padding-top: 90px; padding-bottom: 150px; color: #fff; }
.portfolio-head .container { display: grid; grid-template-columns: 1.1fr 1.4fr auto; gap: 40px; align-items: center; }
.portfolio-strip { margin-top: -90px; }
.portfolio-track { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.portfolio-track::-webkit-scrollbar { display: none; }
.portfolio-item { flex: 0 0 clamp(260px, 24vw, 340px); aspect-ratio: 1/1.05; overflow: hidden; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.portfolio-item:hover img { transform: scale(1.06); }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testi { text-align: center; position: relative; }
.testi-quote { color: var(--coral); display: flex; justify-content: center; margin-bottom: 22px; }
.testi-text { font-family: var(--font-head); font-size: clamp(20px, 2.3vw, 27px); font-weight: 400; line-height: 1.5; color: var(--navy); max-width: 760px; margin-inline: auto; }
.testi-name { font-family: var(--font-head); font-weight: 600; color: var(--navy); margin-top: 26px; }
.testi-role { font-size: 14px; color: var(--muted); }
.testi-avatars { display: flex; justify-content: center; gap: 14px; margin-top: 22px; }
.testi-avatars img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; opacity: .5; cursor: pointer; transition: opacity .25s, transform .25s; }
.testi-avatars img.active { opacity: 1; transform: scale(1.12); }
.testi-nav { display: flex; justify-content: space-between; position: absolute; top: 46%; width: 100%; left: 0; }
.testi-nav button { color: var(--navy); transition: color .2s; }
.testi-nav button:hover { color: var(--coral); }

/* ── Video band ────────────────────────────────────────── */
.video-band { position: relative; height: clamp(380px, 44vw, 560px); overflow: hidden; }
.video-band img { width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute; inset: 0; margin: auto; width: 86px; height: 86px; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center; color: var(--coral);
  transition: transform .3s; box-shadow: 0 10px 40px rgba(0,0,0,.2);
}
.video-play:hover { transform: scale(1.1); }

/* ==========================================================================
   Blog
   ========================================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.blog-card { background: #fff; }
.blog-media { position: relative; overflow: hidden; aspect-ratio: 1.3/1; }
.blog-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.blog-card:hover .blog-media img { transform: scale(1.06); }
.blog-date { position: absolute; right: 0; bottom: 0; background: var(--navy); color: #fff; font-family: var(--font-head); text-align: center; padding: 10px 14px; line-height: 1; }
.blog-date strong { font-size: 22px; display: block; }
.blog-date span { font-size: 12px; letter-spacing: .1em; }
.blog-body { padding: 22px 4px 0; }
.blog-meta { font-family: var(--font-head); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.blog-meta b { color: var(--coral); }
.blog-title { font-family: var(--font-head); font-size: 21px; font-weight: 500; color: var(--navy); line-height: 1.25; }
.blog-card:hover .blog-title { color: var(--coral); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-soft); color: rgba(255,255,255,.65); padding-block: 80px 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer-col h4 { font-family: var(--font-head); font-size: 19px; color: #fff; margin-bottom: 22px; font-weight: 500; }
.footer-col p, .footer-col li { font-size: 15px; line-height: 1.9; }
.footer-col a:hover { color: var(--coral); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; transition: all .25s; }
.footer-social a:hover { background: var(--coral); border-color: var(--coral); color: #fff; }
.footer-bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; color: rgba(255,255,255,.5); }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero { padding-top: 170px; padding-bottom: 70px; background: var(--offwhite); text-align: center; }
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); }
.breadcrumb { display: flex; justify-content: center; gap: 10px; margin-top: 16px; font-family: var(--font-head); font-size: 14px; color: var(--muted); }
.breadcrumb a:hover { color: var(--coral); }

/* ── Cards / generic grids (inner pages) ──────────────── */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.s-card { background: #fff; border: 1px solid var(--line); padding: 34px 30px; transition: all .3s; }
.s-card:hover { border-color: var(--coral); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(24,29,78,.08); }
.s-card .ico { width: 56px; height: 56px; background: var(--offwhite); color: var(--coral); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.s-card h3 { font-size: 21px; margin-bottom: 10px; }

/* ── Forms ─────────────────────────────────────────────── */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-family: var(--font-head); font-size: 14px; color: var(--navy); margin-bottom: 7px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); background: #fff;
  font-family: var(--font-body); font-size: 15px; color: var(--navy); border-radius: 0; transition: border-color .2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--coral); }
.flash { padding: 14px 18px; margin-bottom: 20px; font-family: var(--font-head); font-size: 15px; }
.flash--ok { background: #eafaf0; color: #1c7a44; border-left: 3px solid #1c7a44; }
.flash--err { background: #fdecea; color: #c0392b; border-left: 3px solid #c0392b; }

/* ==========================================================================
   Reveal animations
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-in-view { opacity: 1; transform: none; }
[data-counter] { display: inline-block; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .header-nav, .header-right { display: none; }
  .about-grid, .craft-grid { grid-template-columns: 1fr; gap: 34px; }
  .portfolio-head .container { grid-template-columns: 1fr; }
  .counter-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .blog-grid, .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .section { padding-block: 70px; }
  .hero { padding-top: 130px; }
  .hero-card { display: none; }
  .blog-grid, .card-grid, .footer-grid, .about-cols { grid-template-columns: 1fr; columns: 1; }
  .footer-grid { gap: 32px; }
}

/* legacy alias (template uyumu) */
.container-yarnex { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.on-dark :where(h1,h2,h3,h4,h5,h6) { color: #fff; }

/* ── Hero refinement (orijinal kompozisyona yaklaştırma) ── */
.hero { padding-top: 150px; }
.hero-inner { min-height: 360px; display: flex; align-items: center; }
.hero-title { width: 100%; }
.hero-card--1 { width: 190px; height: 210px; top: -30px; left: -10px; }
.hero-card--2 { width: 135px; height: 152px; top: -10px; right: -10px; }
.hero-card--3 { width: 165px; height: 158px; top: 175px; right: 60px; }
.hero-band { margin-top: 30px; }
@media (max-width: 640px){ .hero-inner{ min-height:auto; } }

/* counter num + suffix tek satır */
.counter-item .num { white-space: nowrap; display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.counter-item .num [data-counter] { min-width: 0 !important; }
