@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --text: #111111;
  --muted: #606266;
  --border: #e8e8ec;
  --surface: #f6f7f9;
  --chip: #1f2937;
  --chip-hover: #111827;
  --accent: #ffd400;
  --link: #0f172a;
}

* { box-sizing: border-box; }
html, body { height: 100%; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--text);
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  background: #ffffff;
  line-height: 1.45;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100dvh;
  gap: 0;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 0;
  height: 100%;
  border-right: none;
  background: rgba(242, 242, 242, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand { display: grid; gap: 28px; }
.brand__logo {
  width: 200px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 36px auto 0;
}
.brand__logo img { display: block; width: 200px; height: 34px; }
.brand__logo small { display: none; }

/* Sidebar Nav — large items with active indicator */
.nav { display: grid; gap: 12px; margin: 24px 0 0 40px; }
.nav a {
  position: relative;
  display: block;
  border: none;
  background: transparent;
  border-radius: 0;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 14px;
  color: #0f0f10;
  padding-left: 12px; /* small gap so marker looks adjacent */
  transition: color .2s ease, filter .2s ease;
}
.nav a:hover { background: transparent; text-decoration: none; filter: none; }
/* Animated indicator base (hidden by default) */
.nav a::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  transform-origin: center;
  width: 4px;
  height: 21px;
  background: var(--accent);
  opacity: 0;
  transition: transform .24s cubic-bezier(.22,.61,.36,1), opacity .2s ease;
}
.nav a[aria-current="page"], .nav a.active { border: none; background: transparent; }
.nav a[aria-current="page"]::before, .nav a.active::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%) scaleY(1);
  width: 4px;
  height: 21px;
  background: var(--accent);
  opacity: 1;
}

/* Nav submenu */
.nav__group { display: grid; gap: 0; }
/* Apply spacing between BLOG and submenu only when open */
.nav__group.is-open { gap: 8px; }
/* Make submenu transitionable instead of display: none */
.nav-sub {
  display: grid;
  margin: 0 0 0 18px;
  gap: 8px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height .28s cubic-bezier(.22,.61,.36,1), opacity .2s ease, transform .28s cubic-bezier(.22,.61,.36,1);
}
.nav-sub a { font-size: 12px; font-weight: 400;  text-transform: uppercase; color: #111; padding-left: 10px; position: relative; }
/* Remove yellow bar for submenu items */
.nav-sub a[aria-current="page"]::before, .nav-sub a.active::before { display: none; }
/* Active submenu state */
.nav-sub a[aria-current="page"], .nav-sub a.active { font-weight: 600; }
/* Open state with smooth slide */
.nav__group.is-open > .nav-sub {
  display: grid;
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 4px;
}

.sidebar__bottom { display: grid; margin-left: 40px; margin-bottom: 38px;
  display: grid;
  gap: 34px;
  font-size: 12px;
}

/* Hidden by default; shown on mobile */
.menu-toggle { display: none; }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #f2f2f2;
  z-index: 999;
  display: none;
  overflow-y: auto;
}
.mobile-menu.is-open { display: block; }
.mobile-menu__top { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 16px; }
.mobile-menu__logo img { width: 200px; height: 34px; display: block; }
.menu-close { width: 28px; height: 28px; background: transparent; border: 0; position: relative; }
.menu-close::before, .menu-close::after { content: ''; position: absolute; top: 50%; left: 2px; right: 2px; height: 2px; background: #000; }
.menu-close::before { transform: translateY(-50%) rotate(45deg); }
.menu-close::after  { transform: translateY(-50%) rotate(-45deg); }
.mobile-nav { display: grid; gap: 15px; padding: 48px 16px 24px 16px; justify-items: center; }
.mobile-nav a { position: relative; font-weight: 800; font-size: 20px; text-transform: uppercase; color: #000; text-decoration: none; }
.mobile-nav a[aria-current="page"]::before, .mobile-nav a.active::before { content: ''; position: absolute; left: -10px; top: 50%; transform: translateY(-50%); width: 4px; height: 21px; background: var(--accent); }
.mobile-nav__group { display: grid; gap: 12px; justify-items: center; }
.mobile-sub { display: grid; gap: 10px; max-height: 0; overflow: hidden; opacity: 0; transform: translateY(-4px); transition: max-height .28s cubic-bezier(.22,.61,.36,1), opacity .2s ease, transform .28s cubic-bezier(.22,.61,.36,1); }
.mobile-nav__group.is-open > .mobile-sub { max-height: 500px; opacity: 1; transform: translateY(0); }
.mobile-sub a { font-size: 14px; font-weight: 600; text-transform: uppercase; position: relative; color: rgba(0,0,0,.65); }
.mobile-sub a[aria-current="page"], .mobile-sub a.active { color: var(--text); font-weight: 800; }
.mobile-sub a[aria-current="page"]::before, .mobile-sub a.active::before { content: ''; position: absolute; left: -14px; top: 50%; transform: translateY(-50%); width: 4px; height: 18px; background: var(--text); }
.mobile-social { display: grid; gap: 12px; padding: 32px 16px; justify-items: center; font-size: 16px; }
.mobile-social a { color: #000; text-decoration: none; }
.mobile-copy { text-align: center; font-size: 12px; color: #000; padding: 16px 0 24px; }
.social a { color: #0f0f10; text-decoration: none; opacity: .95; display: flex; flex-direction: column; align-items: left; justify-content: left; text-align: left; font-size: 14px;}
.social a:hover { text-decoration: underline; }

.copyright { font-size: 8px; color: rgba(0, 0, 0, 1); }
.copyright strong { font-weight: 700; }

/* Main */
main { padding: 40px 0px 0px 40px; max-width: 1080px; }

.hero {
  display: grid;
  grid-template-columns: 1fr 268px;
  align-items: center;
  gap: 92px;
  width: 418px;
}
.hero h1 {
  font-weight: bold;
  margin: 0; /* spacing handled on the paragraph */
  width: 418px;
  height: 98px;
  color: rgba(0, 0, 0, 1);
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 0px;
  text-align: left;
  text-transform: none;
}
.hero p { color: rgba(0, 0, 0, 1); width: 415px; height: 86px; margin: 20px 0 0 0; font-size: 14px;}

/* center hero text on very small widths */
@media (max-width: 480px) {
  .hero-text { text-align: center; }
}

.portrait {
  position: relative;
  width: 268px;
  height: 268px;
  border-radius: 50%;
  overflow: hidden;
  justify-self: end;
  background: #eee;
}
.portrait img {
  width: 100%;
  height: 100%;
}

/* Highlight (Seçkin Projeler) */
.highlight {
  width: 740px;
  height: 178px;
  margin: 40px 0 24px 0;
  background: rgba(242, 242, 242, 1);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 36px 24px 40px 24px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0; /* use explicit margins between items */
}
.highlight h3 {
  margin: 0; /* keep heading snug; spacing handled on paragraph */
  font-size: 16px;
}
.highlight p {
  margin: 2px auto 16px auto; /* 2px below title, 16px above button */
 
color: rgba(0, 0, 0, 1);
  width: 584px;
  height: 35px;
  line-height: 17.5px;
  text-align: center;
font-family: Montserrat;
font-size: 14px;
font-weight: 400;
letter-spacing: 0px;
text-align: center;
}
/* Exact specs for highlight button */
.highlight .btn {
  width: 95px;
  height: 30px;
  padding: 0;
  border-radius: 0; /* no round corners */
  border: none;
  background: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.highlight .btn__label {
  width: 56px;
  height: 18px;
  color: rgba(255, 255, 255, 1);
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  font-size: 14px;
  font-weight: 600;
  line-height: 18px; /* vertical center to avoid clipping */
  letter-spacing: 0px;
  text-align: center;
  text-transform: uppercase;
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  width: fit-content;
}
.btn:hover { filter: brightness(0.9); text-decoration: none; }

/* Stock section — match screenshot */
.stock { margin-top: 36px; margin-left: 46px; text-align: center; width: 649px; }
.stock p { color: rgba(0, 0, 0, 1); width: 414px; margin: 0 auto 10px auto; font-size: 14px; line-height: 17.5px; letter-spacing: 0px; }
.stock-row { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  justify-items: stretch; 
  gap: 10px; 
}
.stock-row--wide { width: 649px; margin-left: auto; margin-right: auto; }
.stock-row--narrow { width: 434px; margin-left: auto; margin-right: auto; grid-template-columns: 82px 93px 91px 138px; } 
.stock-row + .stock-row { margin-top: 10px; }

.chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 30px;
  padding: 0;
  border-radius: 0;
  background: #000000;
  color: rgba(255, 255, 255, 1);
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
}
.chip:hover { background: #111111; text-decoration: none; }

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 220px 1fr; }
}
@media (max-width: 840px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 7;
    height: 56px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    background: #fff;
    padding: 8px 16px;
    overflow: hidden;
  }
  /* Top bar: logo left, hamburger right */
  .brand {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0;
  }
  .brand__logo { margin: 0; justify-content: start; }
  .nav { display: none; margin: 0; }
  .menu-toggle { width: 28px; height: 24px; background: transparent; border: 0; padding: 0; position: absolute; top: 12px; right: 16px; display: block; }
  .menu-toggle::before, .menu-toggle::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: #000; }
  .menu-toggle::before { top: 6px; box-shadow: 0 6px 0 #000; }
  .menu-toggle::after { top: 18px; }
  .sidebar__bottom { display: none; }
  main { padding: 72px 16px 16px 16px; width: 100%; max-width: none; margin: 0; }
  .hero { grid-template-columns: 1fr; gap: 16px; width: auto; }
  .hero h1 { font-size: 28px; height: auto; width: 100%; text-align: center; }
  .hero p { width: 100%; height: auto; text-align: center; }
  .portrait { justify-self: center; width: 180px; height: 180px; order: -1; }
  .highlight { width: 100%; height: auto; padding: 20px 16px; }
  .highlight p { width: 100%; height: auto; }
  .blog-header h2 { text-align: center; }
} 
@media (max-width: 700px) {
  .stock { width: 100%; margin-left: 0; }
  .stock-row--wide, .stock-row--narrow { width: 100%; }
  .stock-row { grid-template-columns: 1fr; gap: 12px; }
  .chip { height: 44px; font-size: 14px; width: 78%; max-width: 320px; margin: 0 auto; box-sizing: border-box; }
  .stock p { width: 100%; }
} 

/* Page switching */
.page { display: none; }
.page.is-active { display: block; animation: fadeIn .24s cubic-bezier(.22,.61,.36,1); }

/* Blog page styles */
.blog-header { display: grid; grid-template-columns: 1fr; align-items: start; gap: 8px; margin-bottom: 16px; }
.blog-header h2 { font-size: 32px; margin: 0; font-weight: 800; letter-spacing: .5px; }
.blog-search input { width: 739px; height: 44px; border-radius: 6px; border: 1px solid var(--border); padding: 0 12px 0 40px; background-color: #f2f2f2; background-image: url('../img/search.svg'); background-repeat: no-repeat; background-position: 12px center; background-size: 16px 16px; }
.blog-search input::placeholder { color: rgba(0, 0, 0, 1); opacity: 1; }
.search-suggest { position: absolute; width: 739px; background: #fff; border: 1px solid var(--border); border-radius: 6px; margin-top: 6px; box-shadow: 0 6px 16px rgba(0,0,0,.06); display: none; }
.search-suggest.is-open { display: block; }
.search-item { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 8px; align-items: center; text-decoration: none; color: inherit; }
.search-item:hover { background: #f6f7f9; }
.search-thumb { width: 56px; height: 40px; background: #eee; overflow: hidden; border-radius: 4px; }
.search-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.search-meta { font-size: 10px; color: #666; text-transform: uppercase; }
.search-title { margin: 0; font-size: 13px; font-weight: 700; }
.posts-grid { display: grid; grid-template-columns: repeat(2, 352px); gap: 24px; padding-bottom: 32px; }
.post-card { display: grid; gap: 8px; width: 352px; }
.post-thumb { width: 352px; height: 198px; background: #000; display: grid; place-items: center; color: #fff; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-meta { display: flex; justify-content: space-between; font-size: 8px; color:rgba(0, 0, 0, 1); }
.post-title { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.3; }
/* Blog more button - full width */
.blog-more {
  display: block;
  width: 740px;
  margin: 18px 0 48px 0;
  background: var(--accent);
  color: #111;
  font-weight: 700;
  text-align: center;
  height: 32px;
  line-height: 32px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
}

/* Blog list — mobile */
@media (max-width: 840px) {
  .blog-header { gap: 10px; margin-top: 0; margin-bottom: 14px; }
  .blog-header h2 { font-size: 24px; text-align: left; }
  .blog-search input { width: 100%; height: 40px; }
  .search-suggest { width: 100%; }
  .posts-grid { grid-template-columns: 1fr; gap: 16px; }
  .post-card { width: 100%; }
  .post-thumb { width: 100%; height: 198px; }
  .blog-more { width: 100%; }
  /* Stick blog header under mobile top bar (closer to top) */
  .blog-header { position: sticky; top: 0px; background: #fff; z-index: 6; padding-top: 0; }
}

/* Contact page */
.contact__title { margin: 95px 0 0 0; font-size: 42px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; text-align: center; width: 740px; }
.contact__subtitle { margin-left: 150px; margin-top: -5px; margin-bottom: 36px; max-width: 415px; text-align: center; color: rgba(0, 0, 0, 1); font-size: 14px; font-weight: 400; letter-spacing: 0px; text-align: center; }
.contact__card { background: #f2f2f2; border: 1px solid var(--border); padding: 24px; width: 740px; height: 451px; margin: 0; }
.contact__form { display: grid; gap: 0; }
.contact__form .form-field { margin-bottom: 10px; }
.contact__form .form-field:last-of-type { margin-bottom: 0; }
.form-field { position: relative; display: block; width: 660px; }
.form-label { position: absolute; top: 8px; left: 12px; font-size: 10px; font-weight: 800; text-transform: uppercase; color: rgba(0,0,0,1); pointer-events: none;  }
.form-input { width: 660px; height: 47px; border: 1px solid var(--border); background: #fff; padding: 22px 12px 10px 12px; font-family: 'Montserrat'; }
.form-input::placeholder, .form-textarea::placeholder { color: rgba(0, 0, 0, 1); opacity: 1; }
.form-textarea { width: 660px; height: 217px; border: 1px solid var(--border); background: #fff; padding: 28px 12px 12px 12px; resize: vertical; font-family: 'Montserrat'; }
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: -8px; }
.contact-btn { background: #000; color: #fff; height: 30px; width: 129px; padding: 0 14px; border: none; border-radius: 2px;font-size: 14px; font-weight: 600; cursor: pointer; }
.form-error { color: var(--muted); font-size: 12px; }

/* Contact – mobile layout */
@media (max-width: 840px) {
  .contact__title { width: 100%; margin: 24px 0 0 0; font-size: 28px; }
  .contact__subtitle { margin: 8px auto 24px auto; max-width: 360px; }
  .contact__card { width: 100%; height: auto; padding: 16px; border: none; background: #f2f2f2; }
  .form-field { width: 100%; }
  .form-input { width: 100%; height: 44px; padding: 22px 12px 10px 12px; }
  .form-textarea { width: 100%; height: 220px; padding: 28px 12px 12px 12px; }
  .form-actions { justify-content: center; margin-top: 12px; }
  .contact-btn { width: 170px; height: 36px; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .nav a::before,
  .nav-sub,
  .page.is-active {
    transition: none !important;
    animation: none !important;
  }
}

/* Blog detail (article) */
.article { max-width: 740px; }
.article-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; margin-bottom: 50px; }
/* Back button styled as solid black with white arrow */
.back-link { display: inline-flex; align-items: center; gap: 10px; height: 27px; width: 109px; padding: 0 16px; border-radius: 0; background: #000; color: #fff; font-size: 10px; font-weight: 600; text-transform: uppercase; text-decoration: none; }
.back-link:hover { text-decoration: none; filter: brightness(.92); }
.back-link::before { content: ''; width: 8px; height: 8px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; margin-left: 3px; transform: rotate(45deg); display: inline-block; }
/* Hide the slash separator to match design */
.article-breadcrumb .sep { display: none; }
.article-breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 10px; color: #000; text-transform: uppercase; font-weight: 800; }
.article-cat { color: #000; text-decoration: none; }
.article-date { font-size: 10px; color: #000; }

.article-hero { width: 740px; height: 418px; background: #000; color: #fff; display: grid; place-items: center; margin: 0 0 16px 0; overflow: hidden; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-weight: 800; letter-spacing: 1px; }
.media-placeholder--wide { width: 740px; height: 178px; background: #000; color: #fff; display: grid; place-items: center; }

.article-title { width: 740px; margin: 0 0 12px 0; font-size: 28px; font-weight: 800; line-height: 1.2; }
.article-content { width: 740px; font-size: 12px; }
.article-content img,
.article-content video,
.article-content iframe {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}
.article-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.article-content h4 { margin: 18px 0 6px 0; font-size: 12px; text-transform: none; }
.article-content ul { margin: 0 0 12px 18px; padding: 0; font-size: 12px; }
.article-content p { margin: 0 0 8px 0; }

.article-media { margin: 18px 0 12px 0; }

.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px;  padding-bottom: 30px;}
.tag { display: inline-block; background: #ffd400; color: #111; border-radius: 2px; padding: 6px 18px; font-size: 10px; font-weight: 700; text-transform: lowercase; text-decoration: none;}

@media (max-width: 840px) {
  /* Mobile adjustments for article page */
  .blog-header { position: sticky; top: 56px; background: #fff; z-index: 6; padding: 8px 0 10px; }
  .article, .article-hero, .article-title, .article-content, .media-placeholder--wide { width: 90%; max-width: 100vw; margin-left: auto; margin-right: auto; }
  .article-hero { height: 198px; border-radius: 8px; overflow: hidden; }
  .article-title { font-size: 22px; }
  .article-topbar { margin-bottom: 12px; }
  .back-link { width: 120px; height: 32px; font-size: 12px; }
  /* Prevent horizontal overflow from long words/URLs */
  .article-content { overflow-wrap: anywhere; word-break: break-word; }
  .article-content p { line-height: 1.6; }
  .article-breadcrumb { font-size: 11px; }
  /* Side padding for comfortable reading on phones */
  .article,
  .article-topbar,
  .article-title,
  .article-hero,
  .article-content,
  .article-media,
  .article-tags { padding-left: 5px; padding-right: 5px; }
  /* Center remaining blocks (excluding .article-topbar) */
  .article-media,
  .article-tags { margin-left: auto; margin-right: auto; width: 90%; }
}

/* Make post card links look like plain content */
.post-card .post-title a { color: inherit; text-decoration: none; }
.post-card .post-title a:hover { text-decoration: none; }

/* Blog detail: fixed sidebar on desktop */
@media (min-width: 841px) {
  body.is-blog .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    overflow: auto;
    z-index: 10;
  }
  body.is-blog .layout { grid-template-columns: 280px 1fr; }
  body.is-blog main { grid-column: 2; }
}