/* =========================================================
   Rouma Software Solutions — Portfolyo Sitesi
   Tema: Açık, krem zemin + siyah mürekkep + bordo vurgu
   ========================================================= */

:root{
  --bg:            #FAF7F0;
  --bg-raised:     #F3EEE3;
  --surface:       #FFFFFF;
  --surface-2:     #F6F1E7;
  --border:        #E3DBC8;
  --border-soft:   #EAE3D3;

  --text:          #1E1912;
  --text-dim:      #5B5344;
  --text-faint:    #8C8271;

  --accent:        #7A2432;   /* bordo / imparatorluk moru tonu */
  --accent-2:      #591A24;
  --accent-dim:    #E9D3D3;
  --accent-soft:   rgba(122,36,50,0.08);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Inter', sans-serif;

  --maxw: 1180px;
}

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

html{
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black, transparent 65%);
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black, transparent 65%);
  opacity: 0.6;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4{ font-family: var(--font-display); margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p{ margin: 0; }

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}
@media (max-width: 640px){ .wrap{ padding: 0 20px; } }

/* ---------- Column motif divider ---------- */
.col-divider{
  display: flex; align-items: center; gap: 10px;
  margin: 0 auto; width: fit-content;
  color: var(--accent);
}
.col-divider .line{ width: 64px; height: 1px; background: var(--border); }
.col-divider svg{ width: 20px; height: 20px; opacity: 0.9; }

/* ---------- Nav ---------- */
.nav{
  position: sticky; top: 0; z-index: 40;
  background: rgba(250,247,240,0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner{
  max-width: var(--maxw); margin: 0 auto; padding: 0 32px;
  height: 76px; display: flex; align-items: center; justify-content: space-between;
}
@media (max-width: 640px){ .nav-inner{ padding: 0 20px; height: 64px; } }

.logo{ display: flex; align-items: center; gap: 10px; }
.logo-img{ height: 27px; width: auto; }
@media (max-width: 640px){ .logo-img{ height: 22px; } }

.nav-links{ display: flex; align-items: center; gap: 4px; }
.nav-links a{
  padding: 8px 16px; border-radius: 100px; font-size: 0.92rem;
  color: var(--text-dim); transition: color .15s ease, background .15s ease;
}
.nav-links a:hover{ color: var(--text); background: var(--surface-2); }
.nav-links a[aria-current="page"]{ color: var(--accent); background: var(--accent-soft); }

.nav-cta{
  padding: 9px 18px !important; border-radius: 100px;
  background: var(--accent) !important; color: #FBF3EC !important; font-weight: 600;
}
.nav-cta:hover{ background: var(--accent-2) !important; }

.nav-toggle{
  display: none; background: none; border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); width: 40px; height: 40px; align-items: center; justify-content: center;
}
@media (max-width: 860px){
  .nav-links{
    position: fixed; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 10px 20px 20px; gap: 2px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .nav-links.open{ transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a{ padding: 12px 14px; border-radius: var(--radius-sm); }
  .nav-toggle{ display: flex; }
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 100px;
  font-size: 0.95rem; font-weight: 600; font-family: var(--font-body);
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary{ background: var(--accent); color: #FBF3EC; }
.btn-primary:hover{ background: var(--accent-2); }
.btn-ghost{ background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover{ border-color: var(--accent); color: var(--accent); }

/* ---------- Hero (home) ---------- */
.hero{
  padding: 100px 0 92px; position: relative;
  text-align: center; display: flex; flex-direction: column; align-items: center;
}
.hero-mark{ height: 58px; width: auto; margin-bottom: 34px; }
@media (max-width: 640px){ .hero-mark{ height: 42px; margin-bottom: 24px; } }

.eyebrow{
  color: var(--accent); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; margin-bottom: 20px; display: inline-block;
}
.hero h1{ font-size: clamp(2.3rem, 5vw, 3.7rem); line-height: 1.14; max-width: 18ch; font-weight: 500; }
.hero .lede{ margin-top: 26px; max-width: 54ch; font-size: 1.13rem; color: var(--text-dim); }
.hero-actions{ margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.hero-stats{ margin-top: 76px; display: grid; grid-template-columns: repeat(3, auto); gap: 48px; }
.hero-stats .num{ font-family: var(--font-display); font-size: 2rem; color: var(--text); }
.hero-stats .label{ margin-top: 4px; color: var(--text-faint); font-size: 0.86rem; }

@media (max-width: 640px){
  .hero{ padding: 76px 0 60px; }
  .hero-stats{ grid-template-columns: repeat(2, 1fr); gap: 28px 40px; text-align: left; }
}

/* ---------- Section shell ---------- */
.section{ padding: 88px 0; }
.section-head{
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 48px; flex-wrap: wrap;
}
.section-head h2{ font-size: clamp(1.7rem, 3vw, 2.25rem); max-width: 20ch; font-weight: 500; }
.section-head p{ color: var(--text-dim); max-width: 42ch; }

/* ---------- Category grid (home) ---------- */
.cat-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px){ .cat-grid{ grid-template-columns: 1fr; } }

.cat-card{
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 32px;
  display: flex; flex-direction: column; gap: 22px; min-height: 260px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  overflow: hidden;
}
.cat-card::after{
  content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  opacity: 0; transition: opacity .2s ease;
}
.cat-card:hover{
  border-color: var(--accent); transform: translateY(-2px);
  box-shadow: 0 14px 30px -18px rgba(30,25,18,0.28);
}
.cat-card:hover::after{ opacity: 1; }

.cat-index{ font-family: var(--font-display); color: var(--text-faint); font-size: 0.85rem; }
.cat-icon{
  width: 46px; height: 46px; border-radius: var(--radius-sm);
  background: var(--accent-soft); display: flex; align-items: center; justify-content: center;
}
.cat-icon svg{ width: 24px; height: 24px; stroke: var(--accent); }

.cat-card h3{ font-size: 1.4rem; font-weight: 500; }
.cat-card .desc{ color: var(--text-dim); font-size: 0.97rem; max-width: 38ch; }
.cat-card .go{ margin-top: auto; display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 0.92rem; font-weight: 600; }
.cat-card .go svg{ width: 16px; height: 16px; transition: transform .18s ease; }
.cat-card:hover .go svg{ transform: translateX(4px); }

/* ---------- Category page hero ---------- */
.page-hero{ padding: 76px 0 64px; border-bottom: 1px solid var(--border-soft); }
.page-hero .eyebrow{ margin-bottom: 18px; }
.page-hero h1{ font-size: clamp(2.1rem, 4.4vw, 2.9rem); max-width: 18ch; font-weight: 500; }
.page-hero .lede{ margin-top: 22px; max-width: 56ch; font-size: 1.06rem; color: var(--text-dim); }

.crumb{ display: flex; align-items: center; gap: 8px; color: var(--text-faint); font-size: 0.86rem; margin-bottom: 24px; }
.crumb a{ color: var(--text-faint); }
.crumb a:hover{ color: var(--accent); }

/* ---------- Feature list ---------- */
.feature-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border-soft); border: 1px solid var(--border-soft);
  border-radius: var(--radius-md); overflow: hidden;
}
@media (max-width: 900px){ .feature-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .feature-grid{ grid-template-columns: 1fr; } }

.feature{ background: var(--surface); padding: 28px 26px; }
.feature .fnum{ color: var(--accent); font-family: var(--font-display); font-size: 0.85rem; }
.feature h4{ margin-top: 14px; font-size: 1.02rem; font-weight: 500; }
.feature p{ margin-top: 10px; color: var(--text-dim); font-size: 0.92rem; }

/* ---------- Project gallery ---------- */
.gallery{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 760px){ .gallery{ grid-template-columns: 1fr; } }

.proj{
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface);
}
.mock{ background: var(--bg-raised); border-bottom: 1px solid var(--border); }
.mock-bar{ display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border-soft); }
.mock-bar span{ width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.mock-body{ padding: 20px; min-height: 190px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.mock-fill{ height: 9px; border-radius: 4px; background: var(--border-soft); }
.mock-block{ border-radius: var(--radius-sm); background: var(--border-soft); }

/* PDKS mock: table-like grid */
.mock-table{ display: flex; flex-direction: column; gap: 6px; }
.mock-table .row{ display: grid; grid-template-columns: 1.3fr 0.8fr 0.7fr 0.7fr; gap: 8px; align-items: center; }
.mock-table .row.head div{ height: 8px; border-radius: 3px; background: var(--accent-dim); }
.mock-table .row:not(.head) div{ height: 8px; border-radius: 3px; background: var(--border-soft); }

/* B2B mock: product grid */
.mock-products{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-products .card{ display: flex; flex-direction: column; gap: 6px; }
.mock-products .thumb{ aspect-ratio: 1; border-radius: 8px; background: var(--border-soft); }
.mock-products .price{ height: 7px; width: 60%; border-radius: 3px; background: var(--accent-dim); }

/* Kurumsal mock: hero layout */
.mock-page{ display: flex; flex-direction: column; gap: 10px; }
.mock-page .banner{ height: 78px; border-radius: 8px; background: var(--border-soft); }
.mock-page .headline{ height: 11px; width: 70%; border-radius: 3px; background: var(--accent-dim); }
.mock-page .sub{ height: 7px; width: 90%; border-radius: 3px; background: var(--border-soft); }
.mock-page .sub2{ height: 7px; width: 60%; border-radius: 3px; background: var(--border-soft); }
.mock-page .pill{ margin-top: 6px; height: 20px; width: 96px; border-radius: 100px; background: var(--accent-dim); }

/* Menu mock: category rows */
.mock-menu-list{ display: flex; flex-direction: column; gap: 10px; }
.mock-menu-list .row{ display: flex; align-items: center; gap: 10px; }
.mock-menu-list .dot{ width: 26px; height: 26px; border-radius: 8px; background: var(--accent-dim); flex-shrink: 0; }
.mock-menu-list .lines{ flex: 1; display: flex; flex-direction: column; gap: 5px; }
.mock-menu-list .lines .a{ height: 8px; width: 55%; border-radius: 3px; background: var(--border-soft); }
.mock-menu-list .lines .b{ height: 6px; width: 30%; border-radius: 3px; background: var(--border-soft); }

.proj-info{ padding: 22px 24px 26px; }
.proj-info .tag-row{ display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.proj-info .tag{
  display: inline-block; font-size: 0.76rem; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); padding: 4px 10px; border-radius: 100px;
}
.proj-info .live{ display: inline-flex; align-items: center; gap: 5px; font-size: 0.76rem; font-weight: 600; color: var(--text-dim); }
.proj-info .live::before{ content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3F8F5F; }
.proj-info .live:hover{ color: var(--accent); }
.proj-info h4{ font-size: 1.08rem; font-weight: 500; }
.proj-info p{ margin-top: 8px; color: var(--text-dim); font-size: 0.92rem; }

/* ---------- CTA band ---------- */
.cta-band{
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--surface), var(--bg-raised));
  border-radius: var(--radius-lg); padding: 56px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h3{ font-size: 1.6rem; max-width: 18ch; font-weight: 500; }
.cta-band p{ margin-top: 10px; color: var(--text-dim); max-width: 40ch; }

/* ---------- Footer ---------- */
.footer{ border-top: 1px solid var(--border-soft); padding: 56px 0 40px; margin-top: 40px; }
.footer-top{ display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 36px; }
.footer-col .logo-img{ height: 22px; margin-bottom: 14px; }
.footer-col h5{ font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; color: var(--text-faint); margin-bottom: 14px; }
.footer-col a, .footer-col p{ display: block; color: var(--text-dim); font-size: 0.92rem; margin-bottom: 8px; }
.footer-col a:hover{ color: var(--accent); }
.footer-bottom{
  padding-top: 24px; border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; color: var(--text-faint); font-size: 0.84rem;
  flex-wrap: wrap; gap: 10px;
}

/* ---------- Reveal-on-load ---------- */
@media (prefers-reduced-motion: no-preference){
  .reveal{ opacity: 0; transform: translateY(14px); animation: reveal .7s cubic-bezier(.2,.7,.2,1) forwards; }
  @keyframes reveal{ to{ opacity: 1; transform: translateY(0); } }
}
