/* ═══════════════════════════════════════════
   AKNC MİMARLIK — style.css
   ═══════════════════════════════════════════ */

/* ─── RESET & BASE ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --clr-dark:    #111110;
  --clr-mid:     #2a2a28;
  --clr-gold:    #b89d72;
  --clr-gold-lt: #d4bb92;
  --clr-light:   #f5f3ef;
  --clr-white:   #ffffff;
  --clr-border:  #e2ddd6;

  --ff-serif:  'Cormorant Garamond', Georgia, serif;
  --ff-sans:   'Inter', system-ui, sans-serif;

  --max-w: 1200px;
  --nav-h: 72px;

  --ease: cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--clr-dark);
  background: var(--clr-white);
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

a { color: inherit; text-decoration: none; }

/* ─── TYPOGRAPHY ─────────────────────────── */
h1, h2, h3 {
  font-family: var(--ff-serif);
  font-weight: 400;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

em { font-style: italic; color: var(--clr-gold); }

.section-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 1rem;
}
.section-tag.light { color: var(--clr-gold-lt); }

/* ─── LAYOUT ─────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 100px 0; }

.bg-dark  { background: var(--clr-dark); color: var(--clr-white); }
.bg-light { background: var(--clr-light); }
.light    { color: var(--clr-white); }

/* ─── BUTTONS ─────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2.2rem;
  background: var(--clr-dark);
  color: var(--clr-white);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 2px solid var(--clr-dark);
  transition: background .25s var(--ease), color .25s var(--ease);
  cursor: pointer;
}
.btn-primary:hover { background: var(--clr-gold); border-color: var(--clr-gold); }
.btn-primary.full  { width: 100%; justify-content: center; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: .8rem 2rem;
  border: 1.5px solid var(--clr-dark);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.btn-outline:hover { background: var(--clr-dark); color: var(--clr-white); }

/* ─── NAVBAR ─────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
#navbar.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--clr-border);
}

/* Şeffaf PNG — hero'da invert(1) ile beyaz logo, scrolled'da orijinal siyah */
.logo-img {
  width: 340px;
  height: 48px;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: invert(1);
  opacity: 0.88;
  transition: filter .35s var(--ease), opacity .35s var(--ease);
}
#navbar.scrolled .logo-img {
  filter: none;
  opacity: 0.88;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  position: relative;
  transition: color .25s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--clr-gold);
  transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--clr-white); }
.nav-links a:hover::after { width: 100%; }

#navbar.scrolled .nav-links a        { color: var(--clr-mid); }
#navbar.scrolled .nav-links a:hover  { color: var(--clr-dark); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--clr-white);
  transition: all .3s var(--ease);
}
#navbar.scrolled .hamburger span { background: var(--clr-dark); }

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── HERO ───────────────────────────────── */
#hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--clr-mid);
}
.hero-bg img {
  position: absolute;
  inset: 0;
  opacity: .55;
  transition: opacity 1s;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17,17,16,.7) 30%, rgba(17,17,16,.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 2.5rem;
  max-width: 780px;
  margin-top: var(--nav-h);
}
.hero-tag {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 1.5rem;
}
.hero-content h1 {
  color: var(--clr-white);
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 24px rgba(0,0,0,.3);
}

/* ─── HERO RIGHT BRAND ───────────────────── */
.hero-brand-right {
  position: absolute;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  margin-top: calc(var(--nav-h) / 2);
  pointer-events: none;
  user-select: none;
}

.hero-ghost-logo {
  width: clamp(320px, 42vw, 680px);
  height: auto;
  display: block;
  filter: invert(1);
  opacity: 0.1;
}

.footer-logo-img {
  width: 110px;
  height: auto;
  display: block;
  filter: invert(1);
  opacity: 0.5;
}

/* ─── HERO SCROLL ─────────────────────────── */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  cursor: pointer;
  opacity: .7;
  transition: opacity .25s;
}
.hero-scroll:hover { opacity: 1; }
.hero-scroll span {
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clr-white);
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: var(--clr-white);
  animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─── ABOUT ──────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}
.split-left h2 { margin-top: .5rem; }
.split-right p  { color: #555; margin-bottom: 1.2rem; }
.split-right .btn-outline { margin-top: 1rem; }

.stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 5rem;
  border-top: 1px solid var(--clr-border);
  padding-top: 3.5rem;
}
.stat {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.stat-num {
  font-family: var(--ff-serif);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--clr-dark);
}
.stat-num sup { font-size: 1.5rem; }
.stat-label {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #888;
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--clr-border);
  flex-shrink: 0;
}

/* ─── PROJECTS ────────────────────────────── */
.section-header { margin-bottom: 4rem; }
.section-header h2 { margin-top: .4rem; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
}
.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: #1a1a18;
}
.project-img {
  width: 100%; height: 100%;
  transition: transform .6s var(--ease), opacity .6s;
}
.project-img img {
  transition: transform .6s var(--ease);
}
.project-card:hover .project-img img { transform: scale(1.06); }

.project-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(transparent, rgba(17,17,16,.85));
  transform: translateY(8px);
  transition: transform .35s var(--ease);
}
.project-card:hover .project-info { transform: translateY(0); }

.project-cat {
  display: inline-block;
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: .4rem;
}
.project-info h3 {
  color: var(--clr-white);
  font-size: 1.1rem;
}

/* ─── SERVICES ────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.service-card {
  padding: 2.8rem 2.2rem;
  border: 1px solid var(--clr-border);
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.service-card:hover {
  border-color: var(--clr-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.07);
}
.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: var(--clr-gold);
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { margin-bottom: .75rem; font-size: 1.15rem; }
.service-card p  { font-size: .88rem; color: #666; line-height: 1.7; }

/* ─── CONTACT ─────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-block { display: flex; flex-direction: column; gap: .25rem; }
.contact-label {
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #999;
}
.contact-block p,
.contact-block a {
  font-size: 1rem;
  color: var(--clr-dark);
  font-weight: 400;
}
.contact-block a:hover { color: var(--clr-gold); }

.contact-actions { display: flex; flex-direction: column; gap: .75rem; margin-top: .5rem; }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .9rem 1.5rem;
  background: #25D366;
  color: #fff;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .06em;
  border-radius: 3px;
  transition: background .25s;
}
.btn-whatsapp svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-whatsapp:hover { background: #1ebe57; }

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .9rem 1.5rem;
  border: 1.5px solid var(--clr-dark);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .06em;
  border-radius: 3px;
  transition: background .25s, color .25s;
}
.btn-call svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-call:hover { background: var(--clr-dark); color: #fff; }

/* ─── FORM ─────────────────────────────── */
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #777;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .9rem 1rem;
  border: 1px solid var(--clr-border);
  background: var(--clr-white);
  font-family: var(--ff-sans);
  font-size: .9rem;
  color: var(--clr-dark);
  outline: none;
  transition: border-color .25s;
  border-radius: 2px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--clr-dark); }

.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select    { cursor: pointer; }

.form-success {
  display: none;
  color: #2a8a4a;
  font-size: .85rem;
  text-align: center;
  padding: .75rem;
  background: #e8f5ee;
  border-radius: 2px;
}
.form-success.show { display: block; }

/* ─── FOOTER ──────────────────────────────── */
footer {
  background: var(--clr-dark);
  color: rgba(255,255,255,.5);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.footer-brand .logo-main { color: var(--clr-white); font-size: 1.3rem; }
.footer-brand .logo-sub  { color: var(--clr-gold); font-size: .55rem; }

.footer-copy { font-size: .75rem; letter-spacing: .05em; }

.footer-social { display: flex; gap: 1rem; }
.footer-social a {
  color: rgba(255,255,255,.5);
  transition: color .25s;
}
.footer-social a:hover { color: var(--clr-gold); }
.footer-social svg { width: 20px; height: 20px; }

/* ─── FLOATING BUTTONS ────────────────────── */
.fab-group {
  position: fixed;
  bottom: 1.8rem;
  right: 1.5rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.fab {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.fab:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(0,0,0,.3); }
.fab svg { width: 24px; height: 24px; }

.fab-wa  { background: #25D366; color: #fff; }
.fab-tel { background: var(--clr-dark); color: #fff; }

/* ─── SCROLL REVEAL ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── PLACEHOLDER IMAGES ─────────────────── */
/* Fotoğraf yokken kartlar koyu gradient gösterir */
.project-card .project-img {
  background: linear-gradient(135deg, #1c1c1a 0%, #2e2e2b 50%, #1a1a18 100%);
}
.project-card:nth-child(2) .project-img {
  background: linear-gradient(135deg, #1e1e1c 0%, #26261f 50%, #1c1c1a 100%);
}
.project-card:nth-child(3) .project-img {
  background: linear-gradient(135deg, #20201e 0%, #2c2c26 50%, #1e1e1c 100%);
}
.project-card:nth-child(4) .project-img {
  background: linear-gradient(135deg, #1a1e1c 0%, #262e2a 50%, #1a1c1a 100%);
}
.project-card:nth-child(5) .project-img {
  background: linear-gradient(135deg, #1e1c1a 0%, #2e2a26 50%, #1c1a18 100%);
}
.project-card:nth-child(6) .project-img {
  background: linear-gradient(135deg, #1c1e20 0%, #26282e 50%, #1a1c1e 100%);
}

/* Hero fallback */
.hero-bg { background: #1a1c1e; }

/* ─── RESPONSIVE ──────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .projects-grid  { grid-template-columns: repeat(2, 1fr); }
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .split          { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid   { grid-template-columns: 1fr; gap: 3rem; }
}

/* Mobile */
@media (max-width: 720px) {
  :root { --nav-h: 62px; }

  section { padding: 70px 0; }

  #navbar {
    padding: 0 1.25rem;
    justify-content: center;
    position: relative;
  }

  .hamburger {
    display: flex;
    position: absolute;
    right: 1.25rem;
  }

  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: min(300px, 85vw);
    height: 100svh;
    background: var(--clr-dark);
    flex-direction: column;
    gap: 0;
    padding-top: calc(var(--nav-h) + 1rem);
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    z-index: 999;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li   { border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav-links a    {
    display: block;
    padding: 1.1rem 1.75rem;
    color: rgba(255,255,255,.8);
    font-size: .85rem;
  }
  .nav-links a::after { display: none; }

  .hero-content { padding: 0 1.25rem; }
  .hero-brand-right { display: none; }

  .projects-grid  { grid-template-columns: 1fr; gap: 1px; }
  .services-grid  { grid-template-columns: 1fr; }
  .service-card   { padding: 2rem 1.5rem; }

  .form-row { grid-template-columns: 1fr; }

  .stats { flex-direction: column; gap: 2rem; }
  .stat-divider { width: 40px; height: 1px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-social { justify-content: center; }

  .container { padding: 0 1.25rem; }
}

@media (max-width: 420px) {
  .contact-actions { flex-direction: column; }
  .btn-whatsapp, .btn-call { justify-content: center; }
}
