/* AYSA WORKS — Interior Architecture
 * Norm Architects (Shoreline Studio) referans alınmıştır.
 * Font: Adobe Source Sans 3 (open-source, OFL) — siteyle birlikte servis edilir.
 * Tipografi ölçekleri: Norm Architects normcph.com'dan birebir alınmıştır.
 */

/* ==================== FONTS ==================== */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/SourceSans3-Light.otf.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/SourceSans3-Regular.otf.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/SourceSans3-It.otf.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/SourceSans3-Medium.otf.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/SourceSans3-Semibold.otf.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/SourceSans3-Bold.otf.woff2') format('woff2');
}

/* ==================== TOKENS ==================== */
:root {
  --bg: #f5f1e5;
  --bg-alt: #f6f0de;
  --bg-soft: #e1dbd0;
  --ink: #383839;
  --ink-soft: #666666;
  --ink-mute: #9a978d;
  --line: #d8d2c2;

  --sans: 'Source Sans 3', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --w-max: 1440px;
  --w-text: 720px;
  --gutter: clamp(20px, 4vw, 64px);
  --header-h: 84px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.5px;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; transition: opacity .25s ease; }
a:hover { opacity: 0.55; }

img { display: block; max-width: 100%; height: auto; }

/* ==================== TYPOGRAPHY (Norm ölçekleri) ==================== */
h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink);
}

/* H1: project hero başlığı — Norm Shoreline'dan birebir
   30px / 400 / 15px LS / uppercase / 1 line-height */
h1 {
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 15px;
  line-height: 1;
  text-transform: uppercase;
}

/* H2: section title — Norm'un "Index" başlığı tarzı
   13px / 700 / 8px LS / uppercase */
h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 8px;
  line-height: 1;
  text-transform: uppercase;
}

/* H2 büyük varyant — Norm'da intro alanı için
   .intro içinde kullanılır */

h3 {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.3px;
}

h4 {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 1;
  text-transform: uppercase;
}

p { max-width: var(--w-text); }

/* ==================== HEADER ==================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--bg);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: var(--w-max);
  margin: 0 auto;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.brand img { height: 32px; width: auto; }
.brand__name { white-space: nowrap; }

/* ==================== NAV ==================== */
.nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  list-style: none;
  /* Norm: 11px / 400 / 2px LS / uppercase */
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1;
}
.nav > li { position: relative; padding: 32px 0; }
.nav > li > a {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav > li.has-sub > a::after {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  margin-left: 4px;
  transition: transform .25s ease;
}
.nav > li.has-sub:hover > a::after,
.nav > li.has-sub.open > a::after { transform: translateY(0) rotate(225deg); }

.submenu {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  list-style: none;
  padding: 14px 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: all .25s ease;
  text-align: left;
}
.nav > li.has-sub:hover .submenu,
.nav > li.has-sub.open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.submenu li a {
  display: block;
  padding: 10px 24px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
}
.submenu li a:hover { background: var(--bg-soft); opacity: 1; }

/* Sağ taraf */
.header-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  margin: 5px 0;
}

/* ==================== MAIN / HERO ==================== */
main { padding-top: var(--header-h); }

.hero {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - var(--header-h));
  position: relative;
}
.hero__media {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-h));
  overflow: hidden;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__caption {
  position: absolute;
  left: var(--gutter); bottom: 40px;
  color: #fff;
  /* Norm Caslon italic yerine: Source Sans Italic, geniş */
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 2.6vw, 36px);
  letter-spacing: 0.5px;
  max-width: 640px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
  line-height: 1.2;
}

/* ==================== INTRO BLOCK ==================== */
.intro {
  padding: clamp(80px, 12vw, 140px) var(--gutter);
  max-width: var(--w-max);
  margin: 0 auto;
}
.intro__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.intro h2 {
  /* Section title boyutu — Norm Index başlığı + biraz daha büyük */
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 6px;
  margin-bottom: 32px;
}
.intro p {
  margin: 0 auto;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: 0.3px;
  color: var(--ink-soft);
}

/* ==================== PROJECT GRID ==================== */
.projects {
  padding: 0 var(--gutter) clamp(60px, 10vw, 120px);
  max-width: var(--w-max);
  margin: 0 auto;
}

.section-eyebrow {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 18px;
}

.section-title {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: clamp(50px, 7vw, 90px);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(40px, 5vw, 80px) clamp(30px, 4vw, 60px);
}
.project-grid--3 { grid-template-columns: repeat(3, 1fr); }

.project-card { display: block; }
.project-card__img {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--bg-soft);
}
.project-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.8,.2,1);
}
.project-card:hover .project-card__img img { transform: scale(1.04); }

.project-card__title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
  line-height: 1.3;
}
.project-card__meta {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ==================== PROJECT DETAIL ==================== */
.project-hero {
  padding: clamp(60px, 9vw, 110px) var(--gutter) clamp(40px, 6vw, 70px);
  max-width: var(--w-max);
  margin: 0 auto;
  text-align: center;
}
.project-hero h1 {
  margin-bottom: 36px;
  /* H1 zaten 30px/400/15px LS/uppercase */
}
.project-hero p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: 0.3px;
  color: var(--ink-soft);
}

.project-gallery {
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 5vw, 70px);
  padding: 0 var(--gutter) clamp(60px, 8vw, 110px);
  max-width: var(--w-max);
  margin: 0 auto;
}
.project-gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.project-gallery .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
}

.project-meta {
  text-align: center;
  padding: clamp(40px, 6vw, 80px) var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-soft);
  max-width: var(--w-max);
  margin: 0 auto;
}
.project-meta a { color: var(--ink); border-bottom: 1px solid currentColor; padding-bottom: 1px; }

/* Index thumbnails — Norm'un "Index" bölümü */
.project-index {
  padding: clamp(60px, 9vw, 110px) var(--gutter);
  max-width: var(--w-max);
  margin: 0 auto;
}
.project-index h2 {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 70px);
  /* h2 zaten 13px/700/8px LS/uppercase */
}
.project-index__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 24px;
}
.project-index__item {
  text-align: center;
}
.project-index__item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 8px;
}
.project-index__item p {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--ink-mute);
}

/* ==================== ABOUT PAGE ==================== */
.about-section {
  padding: clamp(80px, 12vw, 140px) var(--gutter);
  max-width: var(--w-max);
  margin: 0 auto;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.about-grid img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.about-text h1 {
  margin-bottom: 28px;
}
.about-text p {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: 0.3px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

/* ==================== CONTACT PAGE ==================== */
.contact-section {
  padding: clamp(100px, 14vw, 160px) var(--gutter);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.contact-section h1 { margin-bottom: 36px; }
.contact-section p {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.3px;
  color: var(--ink-soft);
  margin: 0 auto 14px;
}
.contact-list {
  list-style: none;
  margin-top: 50px;
  font-size: 13px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.3px;
}
.contact-list strong {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-top: 18px;
  color: var(--ink);
}

/* ==================== FOOTER ==================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 50px var(--gutter);
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.site-footer p { margin: 0 auto; }

/* ==================== UTIL ==================== */
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ==================== MOBILE ==================== */
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: block; }
  .nav, .header-right { display: none; }
  .site-header__inner { grid-template-columns: 1fr auto; }
  .brand img { height: 26px; }
  .brand__name { font-size: 12px; letter-spacing: 2px; }

  h1 { font-size: 22px; letter-spacing: 8px; }

  .nav.is-open {
    display: flex;
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    padding: 30px var(--gutter);
    border-top: 1px solid var(--line);
    height: calc(100vh - var(--header-h));
  }
  .nav.is-open > li { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav.is-open .submenu {
    position: static;
    transform: none;
    border: 0;
    padding: 6px 0 0;
    background: transparent;
    opacity: 1;
    visibility: visible;
    min-width: 0;
  }
  .nav.is-open .submenu li a { padding: 6px 0; }

  .project-grid, .project-grid--3 { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .project-gallery .row-2 { grid-template-columns: 1fr; }
}
