/* 
Theme Name: STeam OnePage 
Description: STeam Single-page theme. 
Author: STeam
Version: 1.0 
License: STeam
License URI:
Text Domain: steam-onepage 
*/

/* === Font Face === */
@font-face {
  font-family: 'Montserrat';
  src: url('assets/fonts/Montserrat-Bold.woff2') format('woff2'),
       url('assets/fonts/Montserrat-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Montserrat';
  src: url('assets/fonts/Montserrat-Regular.woff2') format('woff2'),
       url('assets/fonts/Montserrat-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

/* === Base === */
/* Global Box Sizing Fix */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin: 0 0 0.5em;
}
p {
  margin: 0 0 1em;
}

/* === Section === */
.section {
  width: 100%;
  padding: 60px 20px;
}
.section h1, .section h2 {
  margin-bottom: 0.5em;
}
.section-light {
  background-color: #FFFFFF;
  color: #333333;
}
.section-dark {
  background-color: #0A1F44;
  color: #FFFFFF;
}

/* === Hero Section === */
.section.hero {
  min-height: 80vh; /* Makes it take up 80% of the viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background-size: cover;
  background-position: center;
}
.hero-title {
  font-size: 2.5rem;
  margin-bottom: 0.3em;
}
.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 1em;
  font-weight: 400;
}
.hero-cta {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 15px 30px;
  background-color: #FFC107;
  color: #000;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
}
.hero-cta:hover {
  background-color: #e0a806;
  text-decoration: none;
}

.inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* === Posts Section === */
.section.posts {
  padding-top: 60px;
  padding-bottom: 60px;
}

.section.posts .inner {
  max-width: 900px;
  margin: 0 auto;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.posts-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.post-item {
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  background-color: #f5f5f5;
  transition: transform 0.2s ease;
}

.post-item:hover {
  transform: translateY(-4px);
}

.post-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
}

.post-excerpt {
  font-size: 1rem;
  line-height: 1.7;
}

/* === Footer Section === */
.section.footer-section {
  text-align: center;
  font-size: 0.9rem;
}
.footer-section p {
  margin: 0.2em 0;
}

/* === Responsive === */
@media (max-width: 992px) {
  .section {
    padding: 50px 20px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 40px 15px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-cta {
    padding: 12px 24px;
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .post-title {
    font-size: 1.1rem;
  }
  .post-excerpt {
    font-size: 0.9rem;
  }
}

/* === Improved Contact Form === */
.section.contact {
  background: linear-gradient(to bottom, #f7f9fc, #f1f3f7);

}

.section.contact h2 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #222;
}

.section.contact .inner {
  max-width: 600px;
  background: #ffffff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
  transition: transform 0.3s ease;
}

.section.contact .inner:hover {
  transform: translateY(-2px);
}

.section.contact form input,
.section.contact form textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 1.2rem;
  border: 1px solid #d3d3d3;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background-color: #fdfdfd;
  transition: border-color 0.2s ease;
}

.section.contact form input:focus,
.section.contact form textarea:focus {
  border-color: #0073aa;
  outline: none;
}

.section.contact form textarea {
  resize: vertical;
  min-height: 140px;
}

.section.contact form button {
  background-color: #0073aa;
  color: #fff;
  border: none;
  padding: 14px 26px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.section.contact form button:hover {
  background-color: #005177;
  transform: translateY(-1px);
}

#steam-contact-result {
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 1rem;
  transition: color 0.3s ease;
}

/* === Responsive Tweak === */
@media (max-width: 600px) {
  .section.contact .inner {
    padding: 1.5rem;
  }

  .section.contact h2 {
    font-size: 1.5rem;
  }

  .section.contact form button {
    width: 100%;
    padding: 14px;
  }
}

#contact-scroll-btn {
  position: fixed;
  right: 20px;
  top: 70%; /* moved lower than 50% */
  transform: translateY(-50%);
  z-index: 999;
  font-size: 22px;
  background: #0073aa;
  color: white;
  padding: 12px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition: all 0.3s ease;
}

#contact-scroll-btn:hover {
  background: #005177;
  transform: translateY(-50%) scale(1.1);
}

/* === Responsive adjustments === */
@media (max-width: 768px) {
  #contact-scroll-btn {
    top: 70%; /* a bit lower on tablets/phones */
    font-size: 18px;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  #contact-scroll-btn {
    right: 15px;
    top: 75%;
    font-size: 16px;
    padding: 8px;
  }
}
