/* ===== Global Defaults ===== */

* {
    box-sizing: border-box;
}

body {
  background: #fefefe;
  color: #1d1d1d;
  font-family: Arial, sans-serif;
  margin: 0;
}

/* ===== Header ===== */
header {
  position: relative;
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 15px 8px;
}

.left-items {
  display: flex;
  padding: 5px;
  gap: 10px;
}


.left-items img {
  height: 22px;
}

.left-items a img {
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.left-items a:hover img {
  filter: grayscale(100%);
  opacity: 0.7;
}

/* Title */
.header-wrap h1 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 50px;
}

/* Menu Toggle */
#menu-checkbox {
  display: none;
}

.menu-toggle {
  cursor: pointer;
}

.menu-toggle img {
  height: 40px;
  transition: transform 0.3s ease;
}

/* Mobile Navigation */
.mobile-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: transparent;
  padding: 0 5px;
  position: absolute;
  top: 36px;
  right: 0;
  width: 200px;
}

#menu-checkbox:checked ~ .mobile-nav {
  max-height: 300px;
}

/* List styles */
.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
}

.mobile-nav li {
  margin: 20px;
}

.mobile-nav a {
  text-decoration: none;
  font-weight: bold;
  font-size: 20px;
  color: #1d1d1d;
  transition: color 0.3s ease;
}

/* ===== Background Hero ===== */
.background-hero {
  position: fixed;
  top: 36%;
  left: 50%;
  transform: translate(-50%, -50%); /* Center the image */
  width: 110vw;     
  aspect-ratio: 16 / 9;
  background-image: url('assets/kontxt-logo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;  /* show full image, keep proportions */
  opacity: 0.1;
  animation: pulseOpacity 6.3s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

/*content styling inside herosection*/
@keyframes pulseOpacity {
  0% { opacity: 0.13; }
  50% { opacity: 0.48; }
  100% { opacity: 0.13; }
}

/* ===== Content Grid ===== */
.content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  position: relative;
  z-index: 1;
  padding-top: 350px;
  margin: 150px 0 50px;
  font-family: Georgia, serif;
  letter-spacing: 0.4px;
  font-size: 14px;
}

.content h2 {
  grid-column: 1 / -1;   /* Span the full width of the grid */
  text-align: center;    /* ensures horizontal centering */
  font-family: Arial, sans-serif;
  padding-bottom: 20px; 
}

.grid-item img {
  width: 42px;
  height: auto;
}

.left-icon,
.right-icon,
.left-text-box,
.right-text-box {
  grid-column: span 1;
  text-align: center;
  padding: 20px;
}

.left-icon,
.right-icon {
  padding: 50px 50px 0;
}


.slideshow {
  width: 100vw;
  max-width: 100%;
  position: relative;
  margin: auto;
  overflow: hidden;
}

input[type="radio"] {
  display: none;
}

.slides {
  display: flex;
  width: calc(100vw * 3); /* 3 slides, each 100vw */
  transition: transform 0.5s ease;
  justify-content: flex-start;
  padding: 0;
}

.slide {
  width: 100vw;
  height: 350px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
}

.slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* keep aspect ratio without cropping */
  display: block;
  border-radius: 4px;
}

/* Slide positions */
#slide1:checked ~ .slides { transform: translateX(0vw); }
#slide2:checked ~ .slides { transform: translateX(-100vw); }
#slide3:checked ~ .slides { transform: translateX(-200vw); }

/* Slide navigation dots */
.nav {
  text-align: center;
  margin-top: 10px;
}

.nav label {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#slide1:checked ~ .nav label[for="slide1"],
#slide2:checked ~ .nav label[for="slide2"],
#slide3:checked ~ .nav label[for="slide3"] {
  background: #525252;
}

/* ===== Contact Form ===== */
.write-us-section {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    z-index: auto;
    position: relative;
    margin: 150px 0 25px;
}

h2 {
  font-size: 32px;
  margin: 0;
  padding: 20px;
  text-align: center;
}

fieldset {
  border: none;
  background: transperant;
  padding: 0;
  width: 70%;
}

input {
  width: 100%; 
  background: transparent;
  font-family: Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 0.5px;
  padding: 10px;
  margin: 10px 0;
  border: none;
  border-bottom: #adadad 1.5px solid;
  transition: border-bottom-color 0.4s ease;
}

input:focus {
  outline: none;
  border-bottom: 1.5px solid #525252;
}

::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: #adadad;
}
::-moz-placeholder { /* Firefox 19+ */
  color: #adadad;
}
:-ms-input-placeholder { /* IE 10+ */
  color: #adadad;
}
:-moz-placeholder { /* Firefox 18- */
  color: #adadad;
}

.submit-button {
  color: #525252;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: #fefefe; 
  appearance: none;
  font-family: Arial, sans-serif;
  font-weight: bold;
  border: 2px solid #525252;
  border-radius: 25px;
  margin-top: 12px;
  padding: 14px 24px;
  font-size: 18px;
  line-height: 20px;
  transition: all 0.4s ease;
}

.submit-button:hover {
  color: #fefefe;
  background: linear-gradient(135deg, #525252, #1d1d1d);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.submit-button:active {
  background: linear-gradient(135deg, #525252, #1d1d1d);
  color: #fefefe;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
}

/* ===== Footer ===== */
.site-footer {
  background-image: url('assets/kontxt2.png');
  background-size: cover;
  background-position: center;
  padding: 25px;
  font-family: 'Times New Roman', Times, serif;
  color: #fefefe; 
  text-align: center;
  font-size: 14px;
}

/* ===== Media Queries ===== */
/* Tablet */
@media (min-width: 600px) {
  .left-items {
    padding: 10px;
    gap: 15px;
  }
  
  .left-items img {
    height: 30px;
  }

  .menu-toggle {
    padding: 0 15px;
  }

  .mobile-nav li {
    padding-top: 8px;
  }

  .mobile-nav a {
    font-size: 25px;
  }

  .background-hero {
    width: 80vw; 
    top: 40%; 
  }
  
  .content {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(4, auto);
    margin: 0;
    padding-top: 500px;
  }

  .left-icon {
    grid-column: 1 / span 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: none;
  }

  .right-text-box {
    grid-column: 3 / span 3;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .right-icon {
    grid-column: 4 / span 2;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: none;
  }

  .left-text-box {
    grid-column: 1 / span 3;
    grid-row: 3;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  #last-box {
    grid-row: 5;
  }

  .slideshow {
    padding-top: 150px;
  }
}

/* Landscape */
@media (orientation: landscape) {
  .content {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, auto);
    margin: 0;
    padding-top: 500px;
    gap: 10px;
  }
  
  .left-icon {
    grid-column: 1;
  }
  
  .right-text-box {
    grid-column: 2 / span 2;
    text-align: justify;
  }
  
  .right-icon {
    grid-column: 6;
  }
  
  .left-text-box {
    grid-column: 4 / span 2;
    grid-row: 2;
    text-align: justify;
    display: flex;
    }
 
  #last-box {
    grid-row: 3;
  }
  
  .left-text-box h3 {
    text-align: right;
  }

  .write-us-section {
    width: 65%; 
  }
}

/* Desktop */
@media (min-width: 1024px) {
  body {
    line-height: 1.6;
  }

  .header-wrap h1 {
    font-size: 68px;
  }

  h2 { font-size: 40px; }
  h3 { font-size: 24px; }
  p, li { font-size: 16px; }
  
  .left-items {
    padding: 15px;
    gap: 15px;
  }
  .left-items img {
    height: 30px;
  }

  .menu-toggle img {
    height: 52px;
  }

  .menu-toggle {
    padding: 0 20px;
  }

    .mobile-nav {
    position: absolute;
    top: 70px;
    right: 0;
    width: 300px;
    border: none;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
    z-index: 1;
  }
  
  #menu-checkbox:checked ~ .mobile-nav {
    max-height: 500px; /* big enough to fit links */
  }
  
  .mobile-nav a {
    font-size: 32px;
    display: block;
    padding: 8px 0;
  }

  /* no works?!?!*/
  .mobile-nav a:hover {
  color: #525252;
  background: #fefefe; /* light background on hover */
}

  .background-hero {
    width: 70vw;
    top: 50%;
  }

  .content {
    gap: auto;
  }

  .left-icon img,
  .right-icon img {
    width: 48px; 
    height: auto;
  }

  .left-icon,
  .right-icon {
    display: flex;
    justify-content: center; /* center horizontally in their grid cell */
    align-items: center;     /* center vertically with the text */
    padding: 0;              /* remove excess padding from tablet layout */
  }

  .right-text-box,
  .left-text-box {
    display: flex;
    flex-direction: column; 
  }

  .slide {
    margin: 50px 0;
  }

  .slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* keeps aspect ratio without cropping */
  }

  .write-us-section {
    margin: 150px auto 100px;
  }

  input { 
    font-size: 20px;
    padding: 12px;
  }

  .submit-button {
    font-size: 22px; 
    padding: 18px 32px;
    border-radius: 32px;
    margin-top: 40px;
  }

  .site-footer {
    padding: 30px;
  }
}