/* =========================================================
   IMPORT GOOGLE FONT
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500;600;700&display=swap');

/* =========================================================
   GLOBAL VARIABLES (COLORS, SPACING, TYPOGRAPHY)
   ========================================================= */
:root {
  --forest-dark: #1b1e18;
  --taupe: #d2c5b0;
  --text-light: #e7e7e1;
  --pale-sage: #97a48d;
  --dark-olive: #20271d;
  --deep-sage: #5c6657;
  --deep-moss-green: #435445;
  --taupe-green: #757265;
  --dusty-olive: #767c64;
  --deep-forest-green: #50543c;

  --max-width: 1100px;
  --narrow-width: 700px;

  --sp-1: 10px;
  --sp-2: 20px;
  --sp-3: 40px;
  --sp-4: 60px;
  --sp-5: 100px;

  --transition: 0.3s ease;
}

/* =========================================================
   RESET
   ========================================================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto Mono', monospace;
  font-weight: 400;
  background: var(--forest-dark);
  color: var(--text-light);
  line-height: 1.7;
}

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

a {
  color: var(--taupe);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--pale-sage);
}

/* =========================================================
   ACCESSIBILITY – SKIP LINK
   ========================================================= */
.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--pale-sage);
  color: var(--forest-dark);
  padding: 8px 12px;
  font-weight: bold;
}

.skip-link:focus {
  left: 10px;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1 { font-weight: 700; font-size: 2rem; }
h2 { font-weight: 600; font-size: 1.8rem; }
h3 { font-weight: 500; font-size: 1.4rem; }
h4 { font-weight: 500; font-size: 1.2rem; }
p, li, span, a { font-weight: 400; }

/* =========================================================
   CONTAINERS & SECTIONS
   ========================================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-2);
}

.container.narrow {
  max-width: var(--narrow-width);
}

.section {
  padding: var(--sp-2) 0;
}

.section.center {
  text-align: center;
  padding: var(--sp-1) 0;
}

.lead {
  font-size: 1.2rem;
  margin-top: var(--sp-2);
  color: var(--taupe);
}

.hero-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 60vh;
  padding: var(--sp-2) var(--sp-3);
}

.hero-center p {
  margin-bottom: var(--sp-2);
}

/* =========================================================
   HEADER + HERO BANNER
   ========================================================= */
.site-header {
  position: relative;
  width: 100%;
  aspect-ratio: 6 / 1;
  overflow: hidden;
  z-index: 1000;
}

.banner-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.banner-wrapper img.banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.primary-nav {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(20,20,20,0.5);
  backdrop-filter: blur(4px);
}

.primary-nav ul {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-1) 0;
}

.primary-nav a {
  font-size: 1rem;
  font-weight: 600;
}

.primary-nav a.active,
.primary-nav a[aria-current="page"] {
  color: var(--pale-sage);
  text-decoration: underline;
}

.nav-toggle {
  position: absolute;
  right: 20px;
  top: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 999;
  display: none;
}

.hamburger,
.hamburger::after,
.hamburger::before {
  width: 28px;
  height: 3px;
  background: var(--text-light);
  display: block;
  transition: var(--transition);
}

.hamburger::after,
.hamburger::before {
  content: "";
  position: relative;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 5px; }

.primary-nav.open { transform: translateX(0); }

@media (max-width: 840px) {
  .primary-nav ul { flex-direction: column; gap: var(--sp-2); padding: var(--sp-2); }
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 60%;
    height: 50vh;
    padding-top: 60px;
    background: var(--forest-dark);
    transform: translateX(100%);
    transition: var(--transition);
  }
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  padding: 12px 26px;
  border-radius: 30px;
  background: var(--pale-sage);
  color: var(--forest-dark);
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.btn:hover { background: var(--deep-sage); }

/* =========================================================
   FORMS
   ========================================================= */
.contact-form { display: flex; flex-direction: column; gap: var(--sp-2); }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label { font-weight: 600; }

input, textarea {
  padding: 12px;
  border: 1px solid var(--taupe);
  background: var(--deep-moss-green);
  color: var(--text-light);
  border-radius: 8px;
  transition: var(--transition);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--pale-sage);
  background: var(--deep-olive);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  padding: var(--sp-4) 0;
  background: var(--deep-olive);
  margin-top: var(--sp-5);
  text-align: center;
}

.site-footer p { margin-bottom: var(--sp-1); }

/* =========================================================
   PROJECT / PHOTO GRID
   ========================================================= */
.project-subtitle {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 50px;
  margin-bottom: 15px;
  color: var(--taupe);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 50px;
}

.photo-grid a { display: block; overflow: hidden; border-radius: 6px; }

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photo-grid img:hover { transform: scale(1.05); }

.projects-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.project-card { position: relative; display: block; overflow: hidden; border-radius: 10px; }

.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }

.project-card:hover img { transform: scale(1.06); }

.project-overlay-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  color: var(--text-light);
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  z-index: 2;
  pointer-events: none;
}

/* =========================================================
   RESPONSIVE TYPOGRAPHY & LAYOUT
   ========================================================= */
@media (max-width: 1024px) {
  .projects-overview-grid { grid-template-columns: repeat(3, 1fr); }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  body { font-size: 0.9rem; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size:1.2rem; }
  .lead { font-size: 1rem; }
  p { font-size: 0.95rem; }
  .btn { padding: 10px 20px; font-size: 0.9rem; }
  .primary-nav a { font-size: 1rem; }

  .projects-overview-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .project-overlay-title { font-size: 1.2rem; padding: 10px; }
}

@media (max-width: 480px) {
  .projects-overview-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .project-overlay-title { font-size: 1rem; line-height: 1.1; }
}
