/* Reset and base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  color: #333;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

main > section,
main > div,
main > article {
  margin-bottom: 3rem;
}

/* Header and Navigation */
header {
  background-color: #222;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo img {
  height: 80px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

nav a:hover,
nav a.active {
  background-color: #444;
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, #005c97, #363795);
  color: #fff;
  padding: 3rem 1rem;
  text-align: center;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.btn {
  background-color: #ff9900;
  color: #000;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  display: inline-block;
  margin-top: 0.5rem;
}

.btn:hover {
  background-color: #e68a00;
}

/* Content Sections */
main section {
  padding: 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.why-us ul {
  list-style: none;
  padding: 0;
}

.why-us li {
  margin-bottom: 0.2rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.trident-cta {
  background-color: #eef1f4;
  border-left: 5px solid #005c97;
  padding: 2rem;
  margin-top: 2rem;
}

.btn-secondary {
  background-color: #333;
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
  border-radius: 4px;
}

.btn-secondary:hover {
  background-color: #000;
}

/* Products Page Cards */
.product-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.product-card {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 1rem;
  text-align: center;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.product-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.product-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.product-card p {
  font-size: 0.95rem;
  color: #666;
}

/* Footer */
.site-footer {
  background-color: #002f4b;
  flex-shrink: 0;
  color: #ccc;
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9rem;
  width: 100%;
  margin-top: auto; /* makes it push down in flex layout */
}

.site-footer a {
  color: #f7941d;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
}

/* Background Image Container */
.bg-img {
  background-image: url('../images/Locations/20210328_155532.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  min-height: 880px;
}

/* Form Container */
.container {
  position: absolute;
  right: 0;
  top: 101px;
  margin: 20px;
  max-width: 450px;
  padding: 16px;
  background-color: white;
  overflow: auto;
}

/* Input Fields */
input[type=text],
input[type=password],
textarea {
  width: 100%;
  padding: 10px;
  margin: 5px 0 22px 0;
  border: none;
  background: #f1f1f1;
}
input:focus,
textarea:focus {
  background-color: #ddd;
  outline: none;
}

/* Submit Button */
.btn {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  width: 100%;
  opacity: 0.9;
}
.btn:hover {
  opacity: 1;
}

/* Sidebar Navigation */
.sidebar {
  margin: 0;
  padding: 0;
  width: 120px;
  background-color: #f1f1f1;
  position: fixed;
  overflow: auto;
  font-family: Georgia, "Times New Roman", Times, serif;
}
.sidebar a {
  display: block;
  color: black;
  padding: 10px;
  text-decoration: none;
}
.sidebar a.active {
  background-color: #0279DD;
  color: white;
}
.sidebar a:hove

/* Paragraph spacing normalization */
main p, section p, .content p {
  margin: 0.5rem 0;
  line-height: 1.4;
}

.about-content p + h2 {
  margin-top: 2rem;
}

.about-content p {
  clear: both;
  margin-top: 1rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.gallery img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-item {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  max-width: 100%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  width: 100%;
  text-align: center;
  padding: 0.5rem;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
}
