/* =========================================================
   TERRAFORM YAPI MALZEMELERİ ÜRETİM FABRİKASI
   Wilshire Website · Template T05 — Minimal Whitespace
   Palette derived from logo: black + sun yellow (#FFDE59)
   ========================================================= */
:root {
  /* Brand (from logo) */
  --primary-color: #141414;
  --primary-light: #3a3a3a;
  --secondary-color: #6d6a62;
  --secondary-light: #8f8c84;
  --accent-color: #FFDE59;
  --accent-dark: #E8C53A;

  --white: #ffffff;
  --text-color: #2b2b2b;
  --text-muted: #6f6f6f;
  --hairline: #e6e4de;
  --tint: #f6f5f0;          /* very pale warm tint of the palette */
  --footer-bg: #0d0d0d;

  /* Template tokens (T05) */
  --font-display: 'Jost', sans-serif;
  --font-body: 'Karla', sans-serif;
  --radius: 2px;
  --shadow: none;
  --section-pad: 130px;
  --container-max: 1140px;
  --grid-gap: 2.5rem;
  --h1-size: clamp(1.75rem, 3.6vw, 2.9rem);
  --h2-size: clamp(1.55rem, 3vw, 2.4rem);
  --body-size: 1rem;
  --body-lh: 1.9;
  --btn-radius: 0;
  --btn-pad: 13px 36px;
  --card-pad: 44px 36px 64px;
  --hero-h: 48vh;
  --page-hero-h: 240px;
  --ease-slow: .5s ease;
}

/* ---------- Base ---------- */
html, body { overflow-x: hidden; max-width: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--body-lh);
  color: var(--text-color);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary-color);
  font-weight: 400;
  letter-spacing: .02em;
}
p { color: var(--text-muted); }
a { color: var(--primary-color); text-decoration: none; transition: color .3s ease; }
a:hover { color: var(--secondary-color); }
img { max-width: 100%; }
.container { max-width: var(--container-max); }

.section-padding { padding: var(--section-pad) 0; }
.bg-light-soft { background-color: var(--tint); }

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--secondary-color);
  background: #efeee9;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 22px;
}
.section-title {
  font-size: var(--h2-size);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 26px;
}
.section-lead { max-width: 620px; margin: 0 auto; }

/* ---------- Buttons (sharp, hairline, transparent) ---------- */
.btn-brand,
.btn-brand-outline,
.btn-brand-secondary {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: var(--btn-radius);
  padding: var(--btn-pad);
  transition: all var(--ease-slow);
}
.btn-brand {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}
.btn-brand:hover { background: var(--primary-color); color: var(--white); border-color: var(--primary-color); }
.btn-brand-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}
.btn-brand-secondary:hover { background: var(--primary-color); color: var(--white); }
.btn-brand-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.7);
}
.btn-brand-outline:hover { background: var(--white); color: var(--primary-color); border-color: var(--white); }
.btn-lg { padding: 14px 40px; font-size: .8rem; }

/* ---------- Top bar (white + hairline, muted) ---------- */
.top-bar {
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
  font-size: .8rem;
  color: var(--text-muted);
  padding: 9px 0;
  letter-spacing: .02em;
}
.top-bar a { color: var(--text-muted); }
.top-bar a:hover { color: var(--primary-color); }
.top-bar i { color: var(--secondary-light); margin-right: 8px; }

/* ---------- Navbar ---------- */
.main-navbar {
  background: var(--white);
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
  transition: padding .4s ease, box-shadow .4s ease;
}
.main-navbar.scrolled { padding: 12px 0; box-shadow: 0 1px 0 var(--hairline); }
.main-navbar .navbar-brand { padding: 0; margin-right: 24px; }
.main-navbar .navbar-brand img { height: 32px; width: auto; display: block; }
.main-navbar .nav-link {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-color);
  padding: 6px 0 !important;
  margin: 0 16px;
  position: relative;
}
.main-navbar .nav-link:hover { color: var(--primary-color); }
.main-navbar .nav-link.active { color: var(--primary-color); }
.main-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--primary-color);
}
/* Navbar CTA — small solid pill, the only saturated element */
.main-navbar .btn-brand {
  background: var(--accent-color);
  border: 1px solid var(--accent-color);
  color: var(--primary-color);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: none;
  font-weight: 600;
}
.main-navbar .btn-brand:hover { background: var(--primary-color); border-color: var(--primary-color); color: var(--white); }
.main-navbar .navbar-toggler { border: 1px solid var(--hairline); border-radius: 0; padding: 6px 10px; }
.main-navbar .navbar-toggler:focus { box-shadow: none; }

@media (min-width: 992px) and (max-width: 1199.98px) {
  .main-navbar .navbar-brand img { height: 22px; }
  .main-navbar .nav-link { margin: 0 10px; }
  .main-navbar .btn-brand { padding: 7px 14px; }
}

/* ---------- Hero slider (48vh, centred, light type) ---------- */
.hero-slider { position: relative; }
.hero-slide {
  height: var(--hero-h);
  min-height: 380px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  text-align: center;
}
.hero-slide::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(10,10,10,.45);
}
.hero-slide .container { position: relative; z-index: 2; max-width: 820px; }
.hero-slide .hero-tag {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  margin-bottom: 18px;
}
.hero-slide h1 {
  font-size: var(--h1-size);
  font-weight: 300;
  letter-spacing: .03em;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 16px;
}
.hero-slide p {
  color: rgba(255,255,255,.78);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 30px;
}
/* A2 thin bars bottom-centre */
.hero-slider .carousel-indicators { margin-bottom: 26px; gap: 8px; }
.hero-slider .carousel-indicators button {
  width: 36px; height: 2px;
  border: 0; margin: 0;
  background: rgba(255,255,255,.45);
  opacity: 1;
  transition: background var(--ease-slow), width var(--ease-slow);
}
.hero-slider .carousel-indicators button.active { background: var(--white); width: 56px; }
/* B2 bare chevrons at the edges */
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next { width: 7%; opacity: .6; }
.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover { opacity: 1; }
.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon { width: 1.6rem; height: 1.6rem; }

/* ---------- Page hero (240px, 40% overlay, centred) ---------- */
.page-hero {
  height: var(--page-hero-h);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  text-align: center;
}
.page-hero::before { content: ''; position: absolute; inset: 0; background: rgba(10,10,10,.4); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  color: var(--white);
  font-weight: 300;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.page-hero .breadcrumb-custom {
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
.page-hero .breadcrumb-custom a { color: rgba(255,255,255,.75); }
.page-hero .breadcrumb-custom a:hover { color: var(--accent-color); }

/* ---------- About image (F1 plain 4:5, smaller than text) ---------- */
.about-img-wrap { position: relative; }
.about-img-wrap img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border-radius: 0;
  box-shadow: none;
}
.about-img-wrap .badge-float {
  position: absolute;
  right: -28px; bottom: 44px;
  background: var(--white);
  border: 1px solid var(--hairline);
  padding: 20px 26px;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
}
.about-img-wrap .badge-float .num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0;
  color: var(--primary-color);
  line-height: 1.1;
  margin-bottom: 4px;
  border-left: 2px solid var(--accent-color);
  padding-left: 10px;
}
.about-text p { margin-bottom: 20px; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-bottom: 1px solid var(--hairline);
  color: var(--text-color);
}
.check-list li:first-child { border-top: 1px solid var(--hairline); }
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 14px; height: 1px;
  background: var(--primary-color);
}

/* ---------- Why Choose Us — J2 + E3 (watermark icon) ---------- */
.wcu-row { --bs-gutter-x: var(--grid-gap); --bs-gutter-y: var(--grid-gap); }
.feature-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--card-pad);
  transition: opacity var(--ease-slow), border-color var(--ease-slow);
}
.feature-card:hover { opacity: .92; border-color: #cfccc4; }
.feature-card .icon-wrap {
  position: absolute;
  right: -10px; bottom: -22px;
  font-size: 6.4rem;
  line-height: 1;
  color: var(--primary-color);
  opacity: .06;
  pointer-events: none;
  transition: opacity var(--ease-slow);
}
.feature-card:hover .icon-wrap { opacity: .1; }
.feature-card h5 {
  position: relative;
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 14px;
  padding-top: 18px;
}
.feature-card h5::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 24px; height: 2px;
  background: var(--accent-color);
}
.feature-card p { position: relative; margin: 0; font-size: .95rem; }

/* ---------- Mission & Vision ---------- */
.mv-card {
  height: 100%;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 52px 44px;
  background: var(--white);
  transition: opacity var(--ease-slow);
}
.mv-card:hover { opacity: .92; }
.mv-card i { font-size: 1.6rem; color: var(--secondary-light); display: block; margin-bottom: 22px; }
.mv-card h4 { font-size: 1.5rem; font-weight: 400; margin-bottom: 16px; }
.mv-card p { margin-bottom: 14px; }
.mv-card p:last-child { margin-bottom: 0; }

/* Core values (class kept in inventory — not used for this client) */
.value-pill { border: 1px solid var(--hairline); padding: 32px; height: 100%; }
.value-pill i { font-size: 1.4rem; color: var(--secondary-light); }
.value-pill h6 { margin: 14px 0 8px; }
.value-pill p { margin: 0; font-size: .92rem; }

/* ---------- Products — 5:7 tall slim cards, 3-up, wide gaps ---------- */
.product-row { --bs-gutter-x: var(--grid-gap); --bs-gutter-y: 3.5rem; }
.category-card-link { display: block; color: inherit; }
.product-card,
.item-card {
  background: var(--white);
  border: 0;
  border-radius: 0;
  transition: opacity var(--ease-slow);
}
.product-card:hover,
.item-card:hover { opacity: .92; }
.product-card .product-img,
.item-card .item-img { overflow: hidden; border: 1px solid var(--hairline); }
.product-card .product-img img,
.item-card .item-img img {
  width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  display: block;
}
.product-card .product-body,
.item-card .item-body { padding: 20px 0 0; }
.product-card .product-body h5,
.item-card .item-body h5 {
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: .04em;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.product-card .product-body h5 .idx,
.item-card .item-body h5 .idx {
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--secondary-light);
}

/* ---------- CTA — H1 with warm gradient, large centred heading ---------- */
.cta-section {
  position: relative;
  background-size: cover;
  background-position: center;
  text-align: center;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(20,20,20,.82) 0%, rgba(58,44,14,.68) 60%, rgba(120,92,20,.55) 100%);
}
.cta-section .container { position: relative; z-index: 2; max-width: 780px; }
.cta-section h2 {
  color: var(--white);
  font-weight: 300;
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  line-height: 1.3;
  margin-bottom: 18px;
}
.cta-section p { color: rgba(255,255,255,.8); }
.cta-section .btn-brand { color: var(--white); border-color: rgba(255,255,255,.8); }
.cta-section .btn-brand:hover { background: var(--accent-color); border-color: var(--accent-color); color: var(--primary-color); }

/* ---------- Contact ---------- */
.contact-info-card {
  height: 100%;
  border: 1px solid var(--hairline);
  padding: 48px 38px;
  background: var(--tint);
}
.contact-info-card h4 { font-size: 1.4rem; font-weight: 400; margin-bottom: 34px; }
.contact-info-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}
.contact-info-item:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.contact-info-item .ci-icon {
  flex: 0 0 auto;
  font-size: 1.1rem;
  color: var(--primary-color);
  line-height: 1.6;
}
.contact-info-item .ci-text small {
  display: block;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--secondary-light);
  margin-bottom: 2px;
}
.contact-info-item .ci-text span,
.contact-info-item .ci-text a { color: var(--primary-color); word-break: break-word; }
.contact-info-item .ci-text a:hover { color: var(--secondary-color); }

.contact-form-wrap {
  height: 100%;
  border: 1px solid var(--hairline);
  padding: 48px 44px;
  background: var(--white);
}
.contact-form-wrap h4 { font-size: 1.4rem; font-weight: 400; }
.contact-form-wrap .form-label {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500 !important;
}
.contact-form-wrap .form-control {
  border: 0;
  border-bottom: 1px solid #d6d3cb;
  border-radius: 0;
  padding: 10px 2px;
  background: transparent;
  font-size: .98rem;
}
.contact-form-wrap .form-control:focus { box-shadow: none; border-bottom-color: var(--primary-color); }
.contact-form-wrap .btn-brand { background: var(--primary-color); color: var(--white); }
.contact-form-wrap .btn-brand:hover { background: var(--accent-color); border-color: var(--accent-color); color: var(--primary-color); }

/* ---------- Footer (black, generous, 3-column) ---------- */
.site-footer { background: var(--footer-bg); color: rgba(255,255,255,.6); }
.site-footer .footer-top { padding: 110px 0 90px; }
.site-footer .footer-logo { height: 30px; width: auto; max-width: 100%; margin-bottom: 26px; display: block; }
.site-footer p { color: rgba(255,255,255,.55); font-size: .93rem; max-width: 420px; }
.site-footer h5 {
  color: var(--white);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 12px; font-size: .93rem; }
.site-footer ul li i { color: var(--accent-color); }
.site-footer ul li a { color: rgba(255,255,255,.6); }
.site-footer ul li a:hover { color: var(--accent-color); }
/* I1 — accent-filled copyright bar */
.footer-bottom {
  background: var(--accent-color);
  color: var(--primary-color);
  font-size: .8rem;
  letter-spacing: .06em;
  padding: 16px 0;
}
.footer-bottom a { color: var(--primary-color); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  opacity: 0; visibility: hidden;
  transition: all var(--ease-slow);
  z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent-color); border-color: var(--accent-color); color: var(--primary-color); }

/* ---------- Products dropdown (16 categories, two columns on desktop) ---------- */
.main-navbar .dropdown-menu {
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--accent-color);
  border-radius: 0;
  padding: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.06);
}
.main-navbar .dropdown-item {
  font-size: .86rem;
  letter-spacing: .02em;
  color: var(--text-color);
  padding: 8px 14px;
  white-space: normal;
}
.main-navbar .dropdown-item:hover,
.main-navbar .dropdown-item:focus { background: var(--tint); color: var(--primary-color); }
.nav-products-row { display: flex; align-items: center; }
.mobile-cat-toggle { background: none; border: 0; color: var(--primary-color); padding: 6px 8px; line-height: 1; transition: transform .25s ease; }
@media (min-width: 992px) {
  .main-navbar .dropdown-menu {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 14px;
    width: 540px;
    grid-template-columns: 1fr 1fr;
    column-gap: 6px;
  }
  .main-navbar .dropdown-menu.show { display: grid; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1199.98px) {
  :root { --section-pad: 110px; }
}
@media (max-width: 991.98px) {
  :root { --section-pad: 90px; --grid-gap: 1.75rem; }
  .top-bar { display: none; }
  .main-navbar { padding: 14px 0; }
  .main-navbar .navbar-brand { max-width: calc(100% - 70px); margin-right: 0; }
  .main-navbar .navbar-brand img { height: 22px; max-width: 100%; object-fit: contain; }
  .main-navbar .navbar-collapse { flex-basis: 100%; width: 100%; }
  .main-navbar .navbar-collapse.show,
  .main-navbar .navbar-collapse.collapsing {
    padding: 12px 0 16px;
    border-top: 1px solid var(--hairline);
    margin-top: 12px;
  }
  .main-navbar .navbar-nav { flex-direction: column; align-items: flex-start !important; }
  .main-navbar .navbar-nav .nav-item { width: 100%; }
  .main-navbar .navbar-nav .nav-link { margin: 0; padding: 11px 0 !important; }
  .main-navbar .nav-link.active::after { right: auto; width: 24px; bottom: 6px; }
  .nav-products-row { justify-content: space-between; width: 100%; }
  .mobile-cat-toggle.open { transform: rotate(180deg); }
  .main-navbar .navbar-nav .dropdown-menu { position: static !important; border: 0; box-shadow: none; padding: 0 0 6px 12px; display: none; }
  .main-navbar .navbar-nav .dropdown-menu.show { display: block; }
  .about-img-wrap { max-width: 460px; }
  .about-img-wrap .badge-float { right: 12px; }
  .site-footer .footer-top { padding: 80px 0 60px; }
}
@media (max-width: 767.98px) {
  :root { --section-pad: 72px; --card-pad: 36px 28px 56px; }
  .hero-slide { min-height: 420px; }
  .hero-slide .btn { margin-bottom: 10px; }
  .hero-slide .container { padding: 0 42px; }
  .hero-slider .carousel-control-prev,
  .hero-slider .carousel-control-next { width: 36px; }
  .page-hero { height: 200px; }
  .contact-info-card, .contact-form-wrap, .mv-card { padding: 36px 26px; }
  .about-img-wrap .badge-float { right: 0; bottom: 20px; padding: 14px 18px; }
  .product-row { --bs-gutter-y: 2.5rem; }
}
@media (max-width: 400px) {
  .main-navbar .navbar-brand img { height: 18px; }
}
