/* ===========================
   GLOBAL BASE
=========================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===========================
   HEADER
=========================== */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  background: black;
  display: flex;
  flex-direction: column;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.header-banner {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* ===========================
   NAV BAR
=========================== */
.nav-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 1rem;
  background: #000;
  border-bottom: 2px solid #222;
}

.logo a {
  color: #FFD700;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
}

/* ===========================
   HAMBURGER
=========================== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background: #FFD700;
  border-radius: 2px;
}

/* ===========================
   CONTACT FORM (CLEAN VERSION)
=========================== */

/* The tile that holds the form */
.form-tile {
  grid-row: span 2;
  grid-column: 2;
  background: #f4f4f4;
  padding: 20px;
  border-radius: 8px;
  box-shadow: inset 0 0 12px rgba(0,0,0,0.25);

  display: flex;
  justify-content: center;   /* centers horizontally */
  align-items: flex-start;    /* keeps form top-aligned */
}

/* Wrapper that centers the form block */
.contact-form-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* The actual form box */
.contact-form {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 25px;

  background: #fff;
  border-radius: 12px;
  border: 3px solid #000;
  box-shadow: 0 0 18px rgba(0,0,0,0.25);
}

/* Title */
.contact-form h2 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 24px;
  font-weight: 900;
  color: #000;
  background: #ffcc00;
  padding: 10px;
  border-radius: 6px;
  border: 2px solid #000;
}

/* Labels */
.contact-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
  color: #000;
}

/* Inputs + textarea */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 2px solid #000;
  border-radius: 6px;
  font-size: 16px;
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #ffcc00;
  outline: none;
  box-shadow: 0 0 6px #ffcc00;
}

/* Button */
.contact-form button {
  width: 100%;
  padding: 14px;
  background: #ffcc00;
  border: 3px solid #000;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  color: #000;
}

.contact-form button:hover {
  background: #e6b800;
}

/* Honeypot field */
.hidden-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


@media (max-width: 768px) {
    .form-tile {
        padding: 10px;
    }
    .contact-form {
        padding: 0;
    }
}

@media (max-width: 768px) {
  .form-tile {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}


/* ===========================
   AVATAR TILE
=========================== */
.avatar-tile {
  grid-row: span 2;
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.avatar-frame {
  width: 100%;
  height: 600px;
  border: none;
}

.avatar-floor {
  width: 100%;
  height: 40px;
  background: #333;
  border-radius: 0 0 8px 8px;
  margin-top: 10px;
}

/* ===========================
   CLEAN 3×3 TILE GRID SYSTEM
=========================== */
.three-col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  margin: 40px auto;
}

/* Square tiles */
.tile.square {
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
}

/* Tile images */
.tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Construction plate */
.construction-tile a {
  display: block;
  width: 100%;
  height: 100%;
}

/* ===========================
   HOVER EFFECTS
=========================== */
.tile.square:hover,
.avatar-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
  filter: brightness(1.05);
}

.tile.square:hover img {
  transform: scale(1.05);
}

/* ===========================
   FOOTER
=========================== */
footer {
  text-align: center;
  padding: 1rem 0;
  background: #ffffff;
}

footer .footer-banner {
  width: 100%;
  height: auto;
  display: block;
}

footer .copyright {
  font-size: 0.85rem;
  color: #555;
}

/* ===========================
   MOBILE RULES
=========================== */
@media (max-width: 768px) {
  .three-col-grid {
    grid-template-columns: 1fr;
  }

  .tile.square {
    aspect-ratio: 1;
    height: auto;
  }

  .avatar-frame {
    height: auto;
    aspect-ratio: 3 / 4;
    max-height: 60vh;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: #000;
    flex-direction: column;
    width: 200px;
    display: none;
    padding: 1rem;
    border-radius: 0 0 0 8px;
    border: 1px solid #222;
    z-index: 20;
  }

  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}
