/* ==========================================================================
   TIMFA MAKINA - Main Stylesheet
   Strictly modeled after CETA (ceta.com.tr / saveweb2zip-com-ceta-com-tr)
   Clean, sharp industrial layout - Zero emojis - Reduced blue - No rounded corners
   ========================================================================== */

/* --------------------------------------------------------------------------
   Wrapper & Intro Area (CETA Exact Style)
   -------------------------------------------------------------------------- */
.wrapper {
  position: relative;
  width: 100%;
  background: #ffffff;
}

/* Intro Area */
.intro-area {
  position: relative;
  background: var(--ceta-navy);
}

.intro-area .banner {
  width: 100%;
  overflow: hidden;
  height: 480px;
  max-height: 520px;
  background: #001838;
}

.intro-area .banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 768px) {
  .intro-area .banner {
    height: 300px;
  }
}

.intro-area .text {
  padding: 0;
  display: block;
  background: var(--ceta-navy);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.intro-area .text h2 {
  margin: 0;
  padding: 24px 0;
  font-family: var(--font-family);
  font-size: 22px;
  line-height: 30px;
  font-weight: bold;
  color: #ffffff;
}

.intro-area .text h2 span {
  color: var(--ceta-blue);
}

/* --------------------------------------------------------------------------
   CETA-Style Content Sections (.posts & .post)
   -------------------------------------------------------------------------- */
.posts {
  position: relative;
  width: 100%;
}

.posts .post {
  border-top: 3px solid var(--ceta-blue);
  padding: 40px 0;
  background: #ffffff;
}

.posts .post.color {
  background: var(--ceta-grey-bg);
}

.posts .post .heading {
  padding: 0 0 16px;
}

.posts .post .heading h1,
.posts .post .heading h2 {
  font-family: var(--font-family);
  font-size: 20px;
  font-weight: bold;
  color: var(--ceta-navy);
  margin-bottom: 8px;
}

.posts .post .holder {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.posts .post.color .holder {
  flex-direction: row-reverse;
}

.posts .post .visual {
  flex: 0 0 380px;
  max-width: 380px;
}

.posts .post .visual img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border: 1px solid var(--ceta-border);
  background: #ffffff;
}

.posts .post .list {
  flex: 1;
}

.posts .post .list h2,
.posts .post .list h3 {
  font-size: 17px;
  font-weight: bold;
  color: var(--ceta-navy);
  margin-bottom: 12px;
  line-height: 1.4;
}

.posts .post .list p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ceta-text);
  margin-bottom: 14px;
}

.posts .post .list ul {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.posts .post .list ul li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ceta-text);
}

.posts .post .list ul li::before {
  content: "▪";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ceta-blue);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Projects Grid & Filtering (Sharp Industrial Style)
   -------------------------------------------------------------------------- */
.projects-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 24px 0 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ceta-border);
}

.filter-btn {
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 0;
  background: #ffffff;
  color: var(--ceta-text);
  border: 1px solid var(--ceta-border);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  background: #f0f0f0;
  border-color: #bbbbbb;
}

.filter-btn.active {
  background: var(--ceta-blue);
  color: #ffffff;
  border-color: var(--ceta-blue);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: #ffffff;
  border: 1px solid var(--ceta-border);
  border-top: 3px solid var(--ceta-blue);
  border-radius: 0;
  display: flex;
  flex-direction: column;
}

.project-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #eef2f5;
  border-bottom: 1px solid var(--ceta-border);
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--ceta-navy);
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 0;
}

.project-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card-category {
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--ceta-blue);
  margin-bottom: 6px;
}

.project-card-title {
  font-size: 15px;
  font-weight: bold;
  color: var(--ceta-navy);
  line-height: 1.35;
  margin-bottom: 10px;
}

.project-card-meta {
  font-size: 12px;
  color: var(--ceta-text-light);
  margin-bottom: 10px;
  line-height: 1.5;
}

.project-card-meta strong {
  color: var(--ceta-text);
}

.project-card-desc {
  font-size: 12px;
  color: var(--ceta-text);
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
}

.project-card-footer {
  padding-top: 10px;
  border-top: 1px solid #eeeeee;
}

.project-card-btn {
  font-size: 12px;
  font-weight: bold;
  color: var(--ceta-blue);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-transform: uppercase;
}

.project-card-btn:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   References Section (CETA Solution Partners Style)
   -------------------------------------------------------------------------- */
.references-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.reference-card {
  background: #ffffff;
  border: 1px solid var(--ceta-border);
  border-top: 3px solid var(--ceta-blue);
  padding: 24px 20px;
  text-align: center;
  border-radius: 0;
}

.reference-logo-holder {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.reference-logo-holder img {
  max-height: 60px;
  max-width: 200px;
  object-fit: contain;
}

.reference-name {
  font-size: 14px;
  font-weight: bold;
  color: var(--ceta-navy);
  margin-bottom: 6px;
}

.reference-sector {
  font-size: 11px;
  font-weight: bold;
  color: var(--ceta-blue);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.reference-highlight {
  font-size: 12px;
  color: var(--ceta-text);
  line-height: 1.5;
}

/* Reference Partners Styling */

/* --------------------------------------------------------------------------
   Catalog Page Viewer
   -------------------------------------------------------------------------- */
.catalog-container {
  padding: 30px 0 60px;
}

.catalog-toolbar {
  background: #f4f5f7;
  border: 1px solid var(--ceta-border);
  border-top: 3px solid var(--ceta-blue);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.catalog-toolbar-left, .catalog-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog-btn {
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: bold;
  padding: 7px 14px;
  background: #ffffff;
  color: var(--ceta-text);
  border: 1px solid var(--ceta-border);
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
}

.catalog-btn:hover {
  background: var(--ceta-blue);
  color: #ffffff;
  border-color: var(--ceta-blue);
}

.catalog-btn-primary {
  background: var(--ceta-navy);
  color: #ffffff;
  border-color: var(--ceta-navy);
}

.catalog-btn-primary:hover {
  background: var(--ceta-blue);
  border-color: var(--ceta-blue);
  color: #ffffff;
}

.catalog-page-counter {
  font-weight: bold;
  font-size: 13px;
  color: var(--ceta-navy);
  min-width: 80px;
  text-align: center;
}

.catalog-stage {
  position: relative;
  background: #333333;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 650px;
  border: 1px solid var(--ceta-border);
}

.catalog-stage img {
  max-height: 80vh;
  max-width: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.catalog-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(0, 38, 85, 0.85);
  color: #ffffff;
  border: none;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalog-arrow:hover {
  background: var(--ceta-blue);
}

.catalog-arrow.prev { left: 10px; }
.catalog-arrow.next { right: 10px; }

.catalog-thumbs {
  margin-top: 20px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
}

.catalog-thumb {
  width: 70px;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
}

.catalog-thumb:hover, .catalog-thumb.active {
  opacity: 1;
  border-color: var(--ceta-blue);
}

.catalog-thumb img {
  width: 100%;
  height: 95px;
  object-fit: cover;
}

.catalog-thumb span {
  display: block;
  text-align: center;
  font-size: 10px;
  font-weight: bold;
  background: #eeeeee;
  color: #333333;
  padding: 2px 0;
}

/* --------------------------------------------------------------------------
   Contact Page (No Quote Form, Direct Details & Map)
   -------------------------------------------------------------------------- */
.contact-container {
  padding: 40px 0 60px;
}

.contact-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.contact-card {
  background: var(--ceta-grey-bg);
  border: 1px solid var(--ceta-border);
  border-top: 3px solid var(--ceta-blue);
  padding: 24px;
  border-radius: 0;
}

.contact-card h4 {
  font-size: 15px;
  font-weight: bold;
  color: var(--ceta-navy);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.contact-card p, .contact-card a {
  font-size: 13px;
  color: var(--ceta-text);
  line-height: 1.6;
  margin: 0 0 6px;
}

.contact-card a:hover {
  color: var(--ceta-blue);
  text-decoration: underline;
}

.contact-map {
  width: 100%;
  height: 440px;
  border: 1px solid var(--ceta-border);
  border-top: 3px solid var(--ceta-blue);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* --------------------------------------------------------------------------
   Modal Lightbox (Sharp, Clean, No Emojis)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border-top: 4px solid var(--ceta-blue);
  border-radius: 0;
  max-width: 980px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  display: flex;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: #eeeeee;
  border: 1px solid #cccccc;
  font-size: 16px;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.modal-close:hover {
  background: #d32f2f;
  color: #ffffff;
  border-color: #d32f2f;
}

.modal-media-wrapper {
  flex: 0 0 520px;
  background: #001838;
  display: flex;
  flex-direction: column;
}

.modal-gallery-main {
  position: relative;
  width: 100%;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #00142e;
  overflow: hidden;
}

.modal-gallery-main img {
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(0, 38, 85, 0.85);
  color: #ffffff;
  border: 1px solid var(--ceta-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  transition: all 0.2s;
  z-index: 5;
  user-select: none;
}

.gallery-nav-btn:hover {
  background: var(--ceta-blue);
  color: #002655;
}

.gallery-nav-btn.prev {
  left: 10px;
}

.gallery-nav-btn.next {
  right: 10px;
}

.modal-gallery-counter {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: #002655;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
  scrollbar-width: thin;
}

.modal-thumb-btn {
  flex: 0 0 68px;
  height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  padding: 0;
  background: #000000;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s;
}

.modal-thumb-btn:hover,
.modal-thumb-btn.active {
  border-color: var(--ceta-blue);
}

.modal-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-body {
  padding: 32px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.modal-cat-badge {
  font-size: 11px;
  font-weight: bold;
  color: var(--ceta-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.modal-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--ceta-navy);
  line-height: 1.35;
  margin-bottom: 20px;
}

.modal-info-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eeeeee;
}

.modal-info-row {
  display: flex;
  font-size: 12px;
  line-height: 1.5;
}

.info-label {
  font-weight: bold;
  color: var(--ceta-navy);
  width: 130px;
  flex-shrink: 0;
}

.info-value {
  color: var(--ceta-text);
}

.modal-desc-heading {
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--ceta-blue);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.modal-text {
  font-size: 13px;
  color: var(--ceta-text);
  line-height: 1.7;
}

@media (max-width: 860px) {
  .modal-box {
    flex-direction: column;
    max-height: 94vh;
  }
  .modal-media-wrapper {
    flex: 0 0 auto;
  }
  .modal-gallery-main {
    height: 280px;
  }
  .modal-gallery-main img {
    max-height: 280px;
  }
}

/* --------------------------------------------------------------------------
   CETA-Style Footer
   -------------------------------------------------------------------------- */
#footer {
  background: var(--ceta-navy);
  color: #ffffff;
  padding: 30px 0;
  border-top: 5px solid var(--ceta-blue);
}

#footer .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

#footer ul.footer-info {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
}

#footer ul.footer-info li {
  color: #dcdcdc;
}

#footer ul.footer-info li a {
  color: #ffffff;
}

#footer ul.footer-info li a:hover {
  color: var(--ceta-blue);
  text-decoration: underline;
}

#footer .copyright {
  font-size: 11px;
  color: #999999;
}

/* --------------------------------------------------------------------------
   Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .posts .post .holder,
  .posts .post.color .holder {
    flex-direction: column;
    gap: 20px;
  }

  .posts .post .visual {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .projects-grid, .references-grid, .contact-blocks {
    grid-template-columns: 1fr;
  }

  .modal-box {
    flex-direction: column;
  }

  .modal-media {
    flex: none;
  }

  #footer .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  #footer ul.footer-info {
    flex-direction: column;
    gap: 8px;
  }
}
