/*
Theme Name: Topdag Clean
Theme URI: https://topdagkutu.com/
Author: Web Cozumleri
Description: Lightweight staging rebuild theme for Topdag Kutu, replacing the old Ocoee/KingComposer/Slider stack.
Version: 2026.07.13
Text Domain: topdag-clean
*/

:root {
  --td-ink: #182522;
  --td-muted: #697370;
  --td-accent: #4a91a0;
  --td-rust: #ad3d37;
  --td-soft: #f6f8f7;
  --td-line: #d9e2df;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--td-ink);
  font-family: "Avenir Next", "Trebuchet MS", Arial, sans-serif;
  background: #fff;
  line-height: 1.65;
}

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

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

.td-container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.td-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(24, 37, 34, 0.08);
  backdrop-filter: blur(12px);
}

.td-header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.td-logo img {
  width: 174px;
  max-height: 56px;
  object-fit: contain;
}

.td-main-nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.td-main-nav a {
  color: #1f2d2a;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.td-main-nav a:hover {
  color: var(--td-accent);
}

.td-call-link {
  padding: 12px 18px;
  color: #fff;
  background: var(--td-rust);
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.td-hero {
  min-height: 660px;
  display: flex;
  align-items: flex-end;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6)),
    url("https://yeni.topdagkutu.com/wp-content/uploads/2021/03/interior-warehouse-logistic-center-have-agv-robot-arm.jpg");
  background-position: center;
  background-size: cover;
}

.td-service-strip {
  transform: translateY(46px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.td-service-card {
  min-height: 186px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px 18px;
  text-align: center;
  background: #fff;
  border-bottom: 4px solid var(--td-accent);
  box-shadow: 0 22px 45px rgba(13, 37, 33, 0.16);
}

.td-service-icon {
  font-size: 52px;
  line-height: 1;
}

.td-service-card h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.td-section {
  padding: 118px 0 72px;
}

.td-eyebrow {
  margin: 0 0 14px;
  color: var(--td-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.td-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start;
}

.td-split h1,
.td-split h2,
.td-feature h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.td-split h3 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.36;
}

.td-copy {
  color: var(--td-muted);
  font-size: 17px;
}

.td-tick {
  width: 18px;
  height: 44px;
  margin-top: 36px;
  border-left: 3px solid var(--td-rust);
  border-right: 3px solid var(--td-rust);
}

.td-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.td-stat strong {
  display: block;
  font-size: 46px;
  line-height: 1;
}

.td-stat span {
  color: var(--td-muted);
}

.td-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--td-soft);
}

.td-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 520px;
  padding: 70px min(6vw, 95px);
}

.td-feature-copy em {
  color: var(--td-rust);
  font-style: normal;
  font-weight: 800;
}

.td-feature-copy strong {
  color: var(--td-accent);
}

.td-feature-image {
  min-height: 520px;
  background: url("https://yeni.topdagkutu.com/wp-content/uploads/2021/03/team-urban-architects-working-new-project-1024x683.jpg") center/cover no-repeat;
}

.td-button {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 34px;
  padding: 16px 34px;
  color: #fff;
  background: var(--td-accent);
  border-radius: 4px;
  font-weight: 700;
}

.td-work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  padding: 92px 0;
}

.td-work-card {
  text-align: center;
}

.td-work-card img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  margin-bottom: 36px;
}

.td-work-card h3 {
  margin: 0;
  font-size: 30px;
}

.td-red-line {
  width: 18px;
  height: 3px;
  margin: 20px auto;
  background: var(--td-rust);
}

.td-categories {
  padding: 86px 0;
  background: #fff;
}

.td-categories h2 {
  margin: 0 0 32px;
  font-size: clamp(32px, 4vw, 50px);
  text-align: center;
}

.td-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.td-category-card {
  min-height: 160px;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(24, 37, 34, 0.18), rgba(24, 37, 34, 0.82)),
    var(--td-accent);
  border-radius: 18px;
  overflow: hidden;
}

.td-category-card h3 {
  margin: 0;
  font-size: 21px;
}

.td-site-footer {
  padding: 72px 0;
  color: #fff;
  background: #18211f;
}

.td-footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 54px;
}

.td-site-footer h2,
.td-site-footer h3 {
  margin-top: 0;
}

.td-site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.td-site-footer li + li {
  margin-top: 10px;
}

.woocommerce .td-container {
  padding-top: 56px;
  padding-bottom: 72px;
}

/* Mobile Menu Toggle Button & Drawer */
.td-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 40;
  position: relative;
}

.td-toggle-line {
  width: 100%;
  height: 2px;
  background-color: var(--td-ink);
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
  border-radius: 2px;
}

.td-mobile-toggle.is-active .td-toggle-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.td-mobile-toggle.is-active .td-toggle-line:nth-child(2) {
  opacity: 0;
}

.td-mobile-toggle.is-active .td-toggle-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .td-mobile-toggle {
    display: flex;
  }

  .td-header-inner {
    min-height: 72px;
    padding: 12px 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .td-main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 35;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .td-main-nav.is-active {
    opacity: 1;
    visibility: visible;
  }

  .td-main-nav ul {
    flex-direction: column;
    gap: 28px;
    align-items: center;
    text-align: center;
  }

  .td-main-nav a {
    font-size: 20px;
    font-weight: 700;
  }

  .td-header-actions {
    margin-left: auto;
    margin-right: 18px;
  }

  .td-call-link {
    padding: 8px 16px;
    font-size: 13px;
  }

  .td-hero {
    min-height: 560px;
  }

  .td-service-strip,
  .td-category-grid,
  .td-stats,
  .td-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .td-split,
  .td-feature,
  .td-work-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
}

@media (max-width: 560px) {
  .td-container {
    width: min(100% - 28px, 1140px);
  }

  .td-service-strip,
  .td-category-grid,
  .td-stats,
  .td-footer-grid {
    grid-template-columns: 1fr;
  }

  .td-section {
    padding-top: 88px;
  }

  .td-feature-copy {
    min-height: auto;
    padding: 48px 24px;
  }

  .td-feature-image {
    min-height: 330px;
  }
}


/* WooCommerce Staging Styling */
.woocommerce ul.products li.product {
    text-align: center;
    background: #fff;
    border: 1px solid var(--td-line);
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.woocommerce ul.products li.product img {
    margin: 0 auto 20px;
    border-radius: 4px;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 18px;
    color: var(--td-ink);
    margin-bottom: 10px;
}
.woocommerce div.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 40px;
}
.woocommerce div.product div.images img {
    border-radius: 8px;
    border: 1px solid var(--td-line);
    width: 100%;
}
.woocommerce div.product .product_title {
    font-size: 36px;
    margin-top: 0;
    color: var(--td-ink);
}
.woocommerce div.product .woocommerce-product-details__short-description {
    color: var(--td-muted);
    font-size: 16px;
    line-height: 1.8;
}
@media(max-width: 768px) {
    .woocommerce div.product { grid-template-columns: 1fr; }
}

/* Fix related products layout */
.single-product .woocommerce-tabs, .single-product .related.products, .single-product .upsells.products { width: 100%; margin-top: 50px; clear: both; }

/* Fix Shop Title Gap */
.woocommerce-products-header, h1.woocommerce-products-header__title.page-title { margin-top: 0 !important; padding-top: 0 !important; }
.woocommerce-products-header { margin-bottom: 30px; }

/* Extra WooCommerce Shop Title Reset */
.td-section .woocommerce-products-header {
    margin: 0 !important;
    padding: 0 !important;
}
.td-section .woocommerce-products-header__title.page-title {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 30px !important;
    font-size: 32px !important;
}

