:root {
  --primary: #e63946; /* brighter red */
  --dark-blue: #003366;
  --light-gray: #f5f5f5;
  --text-dark: #333333;
  --bg-white: #ffffff;
}

* {
  box-sizing: border-box;
}

/* Ensure html and body fill viewport correctly */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--light-gray);
  color: var(--text-dark);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

/* Typography & links */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover, a:focus {
  color: #b8323b;
  text-decoration: underline;
}

/* Navbar */
.navbar {
  background-color: var(--dark-blue);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  user-select: none;
}
.navbar-brand {
  font-size: 1.3rem;
}
.navbar-links a {
  margin-left: 20px;
  font-weight: 500;
  white-space: nowrap;
}

/* Page header */
header {
  background: var(--bg-white);
  padding: 3rem 1rem 2rem;
  text-align: center;
  border-bottom: 1px solid #ddd;
}
header img {
  max-width: 200px;
  height: auto;
}

/* Make all page header titles the dark blue brand color */
header h1 {
  color: var(--dark-blue);
}


/* -------------------------------------------------------------------
   MAIN CONTAINERS
------------------------------------------------------------------- */

/* — Homepage (index.html):
     add class="home" to <body> so this rule applies only there */
body.home main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  background: var(--bg-white);
}

/* — All other pages:
     the “classic” centered card style */
body:not(.home) main {
  max-width: 900px;
  margin: 2rem auto 4rem;
  background: var(--bg-white);
  padding: 2rem 2rem 3rem;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

/* -------------------------------------------------------------------
   HERO (ONLY ON HOMEPAGE)
------------------------------------------------------------------- */
.hero-large {
  box-sizing: border-box;
  min-height: 100vh;
  width: 100vw;
  padding: 6rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--bg-white);
  border-radius: 0;
  box-shadow: none;
  overflow-y: auto;
}
.hero-large img {
  max-width: 500px;
  width: 80vw;
  height: auto;
  margin-bottom: 2.5rem;
}
.hero-large h1 {
  font-size: 4rem;
  font-weight: 800;
  color: var(--dark-blue);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.hero-large p {
  font-size: 1.5rem;
  margin-bottom: 3rem;
  color: var(--text-dark);
  max-width: 750px;
  margin: 0 auto;
}

/* Primary button */
.btn-primary {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 0.8rem 2rem;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(230, 57, 70, 0.4);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: #b8323b;
  box-shadow: 0 6px 15px rgba(184, 50, 59, 0.6);
}
.btn-primary {
  margin-top: 1.5rem; /* or try 2rem if you want a bit more space */
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 2rem;
}

.gallery-card {
  background-color: var(--bg-white);
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
  padding: 1rem;
  text-align: center;
}

.gallery-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
}

.gallery-card .caption {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-style: italic;
}

/* Installations block (if used elsewhere) */
.installations {
  background-color: var(--light-gray);
  padding: 1.5rem 1.8rem;
  border-radius: 8px;
  font-style: italic;
  line-height: 1.4;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem 1rem;
  background-color: var(--bg-white);
  border-top: 1px solid #ccc;
  color: #555;
  font-size: 0.9rem;
}
footer a {
  color: var(--dark-blue);
  font-weight: 600;
}

/* Fixed “old site” link */
.fixed-link {
  position: fixed;
  bottom: 10px;
  right: 10px;
  font-size: 0.85rem;
  background-color: rgba(255,255,255,0.9);
  padding: 6px 12px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  user-select: none;
}
.fixed-link a {
  color: var(--dark-blue);
  font-weight: 600;
}

/* -------------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------------- */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
    font-size: 1rem;
    padding: 1rem 1.2rem;
  }
  .navbar-links a {
    margin-left: 0;
    margin-right: 15px;
  }
  header img {
    max-width: 150px;
  }
}

@media (max-width: 600px) {
  .hero-large img {
    max-width: 250px;
  }
  .hero-large h1 {
    font-size: 2.5rem;
  }
  .hero-large p {
    font-size: 1.2rem;
  }
}



.news-articles {
  margin: 4rem auto;
  max-width: 900px;
  text-align: center;
}

.news-articles h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--dark-blue);
  font-weight: 700;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.article-card {
  background-color: var(--bg-white);
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
  padding: 1rem;
}

.article-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.caption {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-top: 1rem;
  font-style: italic;
}




body:not(.home) {
  font-size: 1.15rem;
}

body:not(.home) main {
  padding: 2.5rem 2.5rem 3.5rem;
}

body:not(.home) h1 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

body:not(.home) p,
body:not(.home) li {
  font-size: 1.15rem;
  line-height: 1.7;
}
