/* ==========================================================================
   Architecture Site Base Theme (Tech/Defense Style)
   ========================================================================== */

:root {
  --arch-bg: #ffffff;
  --arch-surface: #f8fafc;
  --arch-text: #0f172a;
  --arch-text-muted: #64748b;
  --arch-border: #e2e8f0;
  --arch-accent: #2563eb; /* Technical Electric Blue */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

body.architecture-site {
  background-color: var(--arch-bg);
  color: var(--arch-text);
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.arch-header {
  border-bottom: 1px solid var(--arch-border);
  background: var(--arch-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.arch-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.arch-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--arch-text);
  text-decoration: none;
  text-transform: uppercase;
}

.arch-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--arch-text-muted);
  text-decoration: none;
  margin-left: 2rem;
  transition: color 0.2s ease;
}

.arch-nav a:hover,
.arch-nav a.active {
  color: var(--arch-accent);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.arch-hero {
  max-width: 1400px;
  margin: 4rem auto;
  padding: 0 2rem;
  border-left: 4px solid var(--arch-accent);
}

.hero-content {
  padding-left: 1.5rem;
}

.arch-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--arch-text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.arch-hero h1 {
  font-size: 3.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1rem 0;
  color: var(--arch-text);
}

/* ==========================================================================
   Mobile Responsive Adjustments
   ========================================================================== */
@media screen and (max-width: 768px) {
  .arch-hero h1 {
    font-size: 2.25rem; /* Scales down from 3.5rem */
    line-height: 1.2;
  }
  
  .arch-header-container {
    padding: 1rem 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .arch-hero h1 {
    font-size: 1.85rem; /* Scales down even further for very small screens */
  }
}

.arch-subtitle {
  font-size: 1.125rem;
  color: var(--arch-text-muted);
  max-width: 750px;
  margin: 0;
}

/* ==========================================================================
   Gallery Grid & Masonry Overrides
   ========================================================================== */
.arch-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 4rem 2rem;
}

.arch-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  /* Required by masonry-grid.html JS */
  grid-auto-rows: 10px;
  row-gap: 10px;
  column-gap: 20px;
  align-items: start;
}

/* Photo Container */
.photo {
  position: relative;
  overflow: hidden;
  background: var(--arch-surface);
  border: 1px solid var(--arch-border);
  /* Sharp corners for a tech aesthetic */
  border-radius: 0; 
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.photo:hover {
  border-color: var(--arch-accent);
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.photo:hover img {
  transform: scale(1.03);
}

/* Button override for lightbox trigger */
.gallery-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  line-height: 0; 
}

/* ==========================================================================
   Event/Collection Card Overrides
   ========================================================================== */
.event-card-link {
  display: block;
  position: relative;
  text-decoration: none;
  color: #fff;
  height: 100%;
}

.event-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.event-card:hover .event-card-overlay {
  opacity: 1;
}

.event-card-kicker {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--arch-accent);
  margin-bottom: 0.25rem;
}

.event-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.event-card-action {
  font-size: 0.85rem;
  font-weight: 500;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.arch-footer {
  border-top: 1px solid var(--arch-border);
  padding: 2rem;
  margin-top: 4rem;
}

.arch-footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.arch-footer p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--arch-text-muted);
  margin: 0;
}

.status-open {
  color: #059669; /* Professional, high-contrast technical green */
  /* Optional: Adds a subtle terminal-like glow if you want to push the tech vibe */
  text-shadow: 0 0 12px rgba(5, 150, 104, 0.123); 
}