/* ==========================================================================
   BLUEKLIMA - Modern Responsive Stylesheet
   Preserving exact brand color palette:
   - Primary Steel Blue: #49678D
   - Accent Deep Blue: #005B9E / #007BFF
   - Menu Hover Gold / Highlight: #FFD700 / #FFFF00 / #FF0000
   - Divider Dark Grey: #4F4F4F
   - Text / Background: #000000 / #FFFFFF
   ========================================================================== */

:root {
  --brand-primary: #49678D;
  --brand-accent: #005B9E;
  --brand-hover-blue: #007BFF;
  --brand-gold: #FFD700;
  --brand-yellow: #FFFF00;
  --brand-red: #FF0000;
  --border-grey: #4F4F4F;
  --card-border: #D9E1EA;
  --card-bg-hover: #F5F8FB;
  --text-dark: #000000;
  --text-light: #FFFFFF;
  --max-width: 1100px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  background-color: #FFFFFF;
  color: #000000;
  font-family: 'PT Sans', Arial, Helvetica, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* ==========================================================================
   Header & Product Quick-Thumbnails
   ========================================================================== */
.site-header {
  background-color: #FFFFFF;
  border-bottom: 1px solid #EAEAEA;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

.site-logo {
  flex-shrink: 0;
}

.site-logo img {
  width: 280px;
  max-width: 100%;
  height: auto;
}

.header-products {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
}

.header-product-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-product-thumb:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.header-product-thumb img {
  max-height: 86px;
  width: auto;
  object-fit: contain;
}

/* ==========================================================================
   Navigation Bar (#49678D)
   ========================================================================== */
.main-nav-bar {
  background-color: var(--brand-primary);
  width: 100%;
  position: relative;
  z-index: 1000;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  width: 100%;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item:not(:last-child)::after {
  content: "|";
  color: #FFFFFF;
  font-family: Arial, sans-serif;
  font-size: 16px;
  margin: 0 28px;
  opacity: 0.85;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #FFFFFF;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: normal;
  padding: 16px 12px;
  letter-spacing: 0.3px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-gold);
}

.nav-arrow {
  font-size: 11px;
  transition: transform 0.2s ease;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background-color: var(--brand-primary);
  list-style: none;
  margin: 0;
  padding: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1100;
}

.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.dropdown-menu li:first-child {
  border-top: none;
}

.dropdown-menu a {
  display: block;
  padding: 14px 18px;
  color: #FFFFFF;
  font-family: Arial, sans-serif;
  font-size: 15px;
  white-space: nowrap;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  background-color: var(--brand-yellow);
  color: var(--brand-red);
}

/* Mobile Hamburger Toggle */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #FFFFFF;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: bold;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  align-items: center;
  gap: 8px;
}

.mobile-menu-toggle:hover {
  color: var(--brand-gold);
  border-color: var(--brand-gold);
}

/* ==========================================================================
   Hero Slideshow Banner
   ========================================================================== */
.hero-banner {
  width: 100%;
  background-image: url('../images/bk-anasayfa2ac.jpg');
  background-repeat: repeat;
  background-position: center top;
  background-size: cover;
  overflow: hidden;
  margin-top: 6px;
}

.hero-slider {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  aspect-ratio: 1100 / 400;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  bottom: 12px;
  right: 16px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid #FFFFFF;
  background-color: rgba(73, 103, 141, 0.65);
  cursor: pointer;
  padding: 0;
}

.hero-dot.active {
  background-color: var(--brand-gold);
  border-color: var(--brand-gold);
}

/* ==========================================================================
   Page Headings & Section Bars
   ========================================================================== */
.page-main {
  padding: 34px 0 60px;
}

.section-heading {
  margin: 0 0 10px 0;
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: bold;
  color: #000000;
  text-transform: uppercase;
}

.section-heading a {
  color: #000000;
}

.section-heading a:hover {
  color: var(--brand-primary);
}

.section-divider {
  border: 0;
  border-bottom: 6px solid var(--border-grey);
  margin: 0 0 28px 0;
}

.section-banner-bar {
  background-color: var(--brand-primary);
  color: #FFFFFF;
  padding: 13px 18px;
  margin-bottom: 28px;
}

.section-banner-bar h2,
.section-banner-bar span {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 23px;
  font-weight: normal;
  color: #FFFFFF;
  text-transform: uppercase;
}

/* ==========================================================================
   Home Page Product Cards Grid (4 Core Products)
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 54px;
}

.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--card-border);
  background-color: #FFFFFF;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(73, 103, 141, 0.16);
  background-color: var(--card-bg-hover);
}

.product-card-header {
  background-color: var(--brand-primary);
  color: #FFFFFF;
  text-align: center;
  padding: 16px 12px;
  font-family: Arial, sans-serif;
  font-size: 19px;
  font-weight: normal;
  letter-spacing: 0.4px;
  transition: background-color 0.25s ease;
}

.product-card:hover .product-card-header {
  background-color: var(--brand-accent);
}

.product-card-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  height: 260px;
  background-color: #FFFFFF;
  transition: background-color 0.25s ease;
}

.product-card:hover .product-card-body {
  background-color: #F4F7FA;
}

.product-card-body img {
  max-height: 215px;
  max-width: 85%;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.product-card:hover .product-card-body img {
  transform: scale(1.04);
}

/* Home Quick Links (Contact & About Us) */
.home-cta-list {
  display: flex;
  flex-direction: column;
  gap: 34px;
  margin-top: 20px;
}

.home-cta-item {
  border-bottom: 6px solid var(--border-grey);
  padding-bottom: 12px;
}

.home-cta-item a {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.home-cta-item h2 {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 27px;
  font-weight: bold;
  color: #000000;
}

.home-cta-item span {
  font-family: 'PT Sans', Arial, sans-serif;
  font-size: 21px;
  color: #000000;
}

.home-cta-item a:hover h2,
.home-cta-item a:hover span {
  color: var(--brand-primary);
}

/* ==========================================================================
   Content Typography & Product Layouts
   ========================================================================== */
.content-text {
  font-family: 'PT Sans', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #000000;
}

.content-text p {
  margin: 0 0 16px 0;
}

.content-text h3,
.sub-heading {
  font-family: Arial, sans-serif;
  font-size: 21px;
  font-weight: bold;
  color: #000000;
  margin: 26px 0 12px 0;
  text-transform: uppercase;
}

.content-lead {
  font-family: 'PT Sans', Arial, sans-serif;
  font-size: 20px;
  line-height: 1.6;
  color: #000000;
}

.two-col-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 36px;
  align-items: start;
}

.two-col-equal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  align-items: start;
}

.three-col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.image-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.image-box {
  background: #FFFFFF;
  border: 1px solid #E5E9EF;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.image-box img {
  margin: 0 auto;
}

.image-caption {
  margin-top: 8px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: #000000;
  text-align: center;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
}

.spec-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
  font-family: 'PT Sans', Arial, sans-serif;
  font-size: 17px;
}

.spec-list li::before {
  content: "*";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--brand-primary);
  font-weight: bold;
}

/* Order Code Box (Air Damper) */
.order-code-box {
  background-color: #F7F9FC;
  border-left: 4px solid var(--brand-primary);
  padding: 18px 20px;
  margin: 20px 0 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
}

.order-code-sample {
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #0000FF;
  background: #FFFFFF;
  padding: 10px 14px;
  border: 1px solid #D9E1EA;
}

.order-code-legend {
  font-family: 'PT Sans', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

/* Mortuary Cards */
.mortuary-card {
  border: 1px solid var(--card-border);
  padding: 20px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mortuary-card h4 {
  font-family: 'PT Sans', Arial, sans-serif;
  font-size: 19px;
  font-weight: bold;
  margin: 0 0 16px 0;
  min-height: 48px;
}

.mortuary-card img {
  width: 216px;
  height: 216px;
  object-fit: contain;
  margin-bottom: 18px;
}

.mortuary-card-specs {
  width: 100%;
  text-align: left;
  font-family: 'PT Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  border-top: 1px solid #EAEAEA;
  padding-top: 14px;
}

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

.gallery-item {
  border: 1px solid #E5E9EF;
  padding: 10px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* ==========================================================================
   Contact Form & Info Layout
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-form {
  background-color: #F9FBFD;
  border: 1px solid #DCE3EC;
  padding: 28px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 6px;
  color: #000000;
}

.form-group label .required {
  color: #FF0000;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  font-family: 'PT Sans', Arial, sans-serif;
  font-size: 15px;
  border: 1px solid #CCCCCC;
  border-radius: 3px;
  background-color: #FFFFFF;
  color: #000000;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(73, 103, 141, 0.18);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.recaptcha-wrapper {
  margin: 18px 0;
  overflow-x: auto;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: #FFFFFF;
  border: 1px solid #2E6DA4;
  padding: 10px 26px;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: bold;
  border-radius: 3px;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--brand-accent);
}

.btn-secondary {
  background-color: #FFFFFF;
  color: #000000;
  border: 1px solid #CCCCCC;
  padding: 10px 22px;
  font-family: Arial, sans-serif;
  font-size: 15px;
  border-radius: 3px;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: #F0F0F0;
}

.alert-error {
  background-color: #FFF2F2;
  border: 1px solid #FF0000;
  color: #B30000;
  padding: 12px 16px;
  margin-bottom: 18px;
  border-radius: 3px;
  font-size: 14px;
}

.contact-info-box {
  background-color: #F9FBFD;
  border: 1px solid #DCE3EC;
  border-top: 4px solid var(--brand-primary);
  padding: 26px;
}

.contact-info-box h3 {
  margin: 0 0 14px 0;
  font-family: Arial, sans-serif;
  font-size: 20px;
  color: var(--brand-primary);
}

.contact-info-box p {
  margin: 0 0 14px 0;
  font-size: 16px;
  line-height: 1.6;
}

.contact-info-box a {
  color: var(--brand-accent);
  font-weight: bold;
}

.contact-info-box a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Footer (#49678D) & Scroll-to-Top Button (#005B9E)
   ========================================================================== */
.site-footer {
  background-color: var(--brand-primary);
  color: #FFFFFF;
  padding: 36px 0 42px;
  margin-top: 40px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}

.footer-col {
  font-family: Calibri, 'PT Sans', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: #FFFFFF;
}

.footer-col a {
  color: #FFFFFF;
}

.footer-col a:hover {
  color: var(--brand-gold);
  text-decoration: underline;
}

.footer-certs {
  margin-top: 18px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-list li {
  margin-bottom: 6px;
}

.back-to-top {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 48px;
  height: 48px;
  background-color: var(--brand-accent);
  color: #FFFFFF;
  opacity: 0.82;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 999;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.back-to-top:hover {
  opacity: 1;
  color: var(--brand-hover-blue);
  background-color: #FFFFFF;
  border: 1px solid var(--brand-accent);
}

/* ==========================================================================
   Responsive Breakpoints (Tablet & Mobile)
   ========================================================================== */
@media (max-width: 960px) {
  .header-products {
    gap: 16px;
  }
  .header-product-thumb img {
    max-height: 68px;
  }
  .nav-item:not(:last-child)::after {
    margin: 0 14px;
  }
  .two-col-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .three-col-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .order-code-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .header-products {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }
  .header-product-thumb img {
    max-height: 60px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    margin: 8px 0;
  }

  .nav-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding-bottom: 10px;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-item {
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .nav-item:not(:last-child)::after {
    display: none;
  }

  .nav-link {
    justify-content: space-between;
    padding: 13px 10px;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: rgba(0, 0, 0, 0.14);
    display: none;
    min-width: 100%;
  }

  .nav-item.has-dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    padding-left: 24px;
    white-space: normal;
  }

  .products-grid,
  .two-col-equal,
  .three-col-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    font-size: 24px;
  }

  .section-banner-bar h2,
  .section-banner-bar span {
    font-size: 19px;
  }

  .product-card-body {
    height: 220px;
  }
}
