/* =========================================================
   IRON GAMING — stylesheet
   Recreates https://www.irongaming.com/
   ========================================================= */

/* ---------- Custom properties ---------- */
:root {
  --header-bg: #0b0b0b;
  --heading-color: #2f2f2f;
  --body-color: #5e5e5e;
  --white-section: #ffffff;
  --about-blue: #c5ecfa;
  --about-warm: #faf2ee;
  --contact-top: #9a9a9a;
  --contact-bottom: #545454;
  --footer-bg: #343638;
  --button-bg: #989382;
  --button-bg-hover: #83806f;
  --white: #ffffff;
  --border-light: rgba(255, 255, 255, 0.35);

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Open Sans', Arial, Helvetica, sans-serif;

  --container-width: 1140px;
  --header-height: 78px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--body-color);
  line-height: 1.7;
  background: var(--white-section);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

/* ===================== HEADER ===================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.site-header__logo-img {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.25));
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-nav__link {
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: #f2f2f2;
  padding: 6px 2px;
  position: relative;
  transition: color 0.25s ease;
}

.site-nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--white);
}

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after,
.site-nav__link.is-active::after {
  transform: scaleX(1);
}

.site-nav__link.is-active {
  color: var(--white);
}

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  margin-top: var(--header-height);
  height: calc(100vh - var(--header-height));
  min-height: 480px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  background: #0a0e1c url('../assets/images/hero-fallback.jpg') center center / cover no-repeat;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero__video.is-hidden {
  display: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  margin-top: 12%;
  text-align: center;
  padding: 0 20px;
}

.hero__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(38px, 5.5vw, 60px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

.hero__subtitle {
  margin: 14px 0 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(16px, 1.8vw, 21px);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

/* ===================== SECTION HEADINGS (shared) ===================== */
.section-heading {
  margin: 0 0 30px;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--heading-color);
}

.section-heading--light {
  color: var(--white);
  text-align: left;
}

.section-text {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: 16px;
  line-height: 1.9;
  color: var(--body-color);
}

/* ===================== OUR SERVICES ===================== */
.services {
  background: var(--white-section);
  padding: 110px 0;
}

/* ===================== ABOUT US ===================== */
.about {
  padding: 110px 0;
  background: linear-gradient(180deg, var(--about-blue) 0%, var(--about-blue) 35%, var(--about-warm) 100%);
}

/* ===================== CONTACT / LOCATION ===================== */
.contact {
  position: relative;
  padding: 100px 0 90px;
  background: linear-gradient(180deg, var(--contact-top) 0%, var(--contact-bottom) 100%);
}

.contact__grid {
  display: grid;
  grid-template-columns: 62% 1fr;
  gap: 60px;
}

.contact__intro {
  margin: 0 0 34px;
  font-size: 16px;
  line-height: 1.9;
  color: #f0f0f0;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.form-field {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-field label {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f2f2f2;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0 16px;
  height: 48px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  color: #333;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.form-field textarea {
  height: 140px;
  padding: 14px 16px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #8c8c8c;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.form-field input:invalid.touched,
.form-field textarea:invalid.touched {
  border-color: #c0392b;
}

.btn-send {
  align-self: flex-start;
  margin-top: 6px;
  padding: 14px 38px;
  border: none;
  border-radius: 2px;
  background: var(--button-bg);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.15s ease;
}

.btn-send:hover {
  background: var(--button-bg-hover);
}

.btn-send:active {
  transform: translateY(1px);
}

.form-message {
  margin: 16px 0 0;
  font-size: 14px;
  min-height: 20px;
  color: #eaffea;
}

.form-message.is-error {
  color: #ffd4d0;
}

.contact__location-col {
  display: flex;
  flex-direction: column;
}

.map-embed {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 3px solid rgba(255, 255, 255, 0.5);
  overflow: hidden;
  background: #dfe4e8;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.address-box {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--border-light);
  display: flex;
  gap: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: #f2f2f2;
}

.address-box__label {
  flex-shrink: 0;
  font-weight: 700;
}

/* ===================== BACK TO TOP ===================== */
/* Single control, fixed to the viewport; JS reveals it only once the user
   has scrolled past the hero section (see initBackToTop in script.js). */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
  z-index: 500;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(0, 0, 0, 0.7);
}

.back-to-top img {
  width: 16px;
  height: 16px;
}

/* ===================== FOOTER ===================== */
.site-footer {
  position: relative;
  background: var(--footer-bg);
  padding: 36px 20px 30px;
  text-align: center;
}

.site-footer__address {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.8;
  color: #b7b8ba;
}

.site-footer__copyright {
  margin: 0;
  font-size: 13px;
  color: #9a9b9d;
}

.site-footer__copyright a {
  color: #cfd0d2;
}

.site-footer__copyright a:hover {
  color: var(--white);
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */

/* ----- ≤1200px : tighten container ----- */
@media (max-width: 1200px) {
  :root {
    --container-width: 960px;
  }
}

/* ----- ≤992px : stack contact columns, adjust hero ----- */
@media (max-width: 992px) {
  :root {
    --container-width: 720px;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .section-heading--light {
    text-align: center;
  }

  .services,
  .about {
    padding: 80px 0;
  }

  .hero {
    height: calc(100vh - var(--header-height));
    min-height: 460px;
  }
}

/* ----- ≤768px : hamburger menu, stacked nav ----- */
@media (max-width: 768px) {
  :root {
    --container-width: 100%;
    --header-height: 64px;
  }

  .container {
    padding: 0 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header__logo-img {
    height: 46px;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--header-bg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav.is-open {
    max-height: 300px;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 20px 20px;
  }

  .site-nav__list li {
    width: 100%;
  }

  .site-nav__link {
    display: block;
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero {
    height: calc(100vh - var(--header-height));
    min-height: 380px;
  }

  .hero__content {
    margin-top: 20%;
  }

  .services,
  .about {
    padding: 60px 0;
  }

  .section-heading {
    font-size: 27px;
    margin-bottom: 22px;
  }

  .contact {
    padding: 60px 0;
  }

  .map-embed {
    aspect-ratio: 16 / 10;
  }
}

/* ----- ≤480px : mobile refinements ----- */
@media (max-width: 480px) {
  .hero__title {
    font-size: 32px;
  }

  .hero__subtitle {
    font-size: 14px;
    letter-spacing: 0.25em;
  }

  .section-text {
    font-size: 15px;
  }

  .btn-send {
    width: 100%;
    text-align: center;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 36px;
    height: 36px;
  }

  .site-footer__address,
  .site-footer__copyright {
    font-size: 12px;
  }
}
