/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  padding-top: 145px; /* match header height */
}

/* Header / Navbar */
header {
  background: #fbfaf7;
  border-bottom: 1px solid #ddd;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 145px; /* fixed header height (logo + padding) */
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  padding-left: 20px;
}

header .logo img {
  height: 125px; /* logo height */
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin-right: 20px;
  align-items: center; /* vertical centering */
}

.nav-links a {
  color: #004466;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #00a0ff;
}

.nav-links a.active {
  border-bottom: 2px solid #00a0ff;
}

/* Hero */
.hero {
  position: relative;
  background: url('../images/hero.jpg') no-repeat center center/cover;
  color: #fff;
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  background: #00a0ff;
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
  display: inline-block;
}

.btn:hover {
  background: #0077cc;
}

/* Services */
.services {
  padding: 3rem 0;
}

.services h1 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 45px;
  font-weight: 750;
}

.service-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 30px;
}

.service {
  flex: 1;
  min-width: 250px;
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 5px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.service img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 5px 5px 0 0; /* rounded top corners */
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background: #004466;
  color: #fff;
  padding: 2rem 1rem 1rem;
}

.footer-container {
  display: flex;
  justify-content: space-evenly; /* even spacing between columns */
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 100%;
  margin: auto;
  gap: 3rem; /* spacing between columns */
  text-align: center;
}

.footer-column {
  flex: 0 0 30%; /* each column takes ~30% of row */
  min-width: 220px; /* ensures they don't shrink too small */
}

.footer-column h3 {
  margin-bottom: 1rem;
  color: #fff;
}

.footer-column p,
.footer-column a {
  font-size: 0.95rem;
  color: #eee;
  text-decoration: none;
}

.footer-column a:hover {
  color: #00a0ff;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #bbb;
}

/* Services Page */
/* Page Header (used instead of hero) */
.page-header {
  background: #004466;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;   /* smaller padding */
  border-bottom: 3px solid #00a0ff; /* subtle accent line */
}

.page-header h1 {
  font-size: 2rem;      /* smaller, modern size */
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;         /* slightly lighter look */
}

.services-page {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.service-item {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.service-item img {
  width: 50%;
  border-radius: 10px;
  object-fit: cover;
}

.service-text {
  width: 50%;
}

.service-text h2 {
  margin-bottom: 1rem;
  color: #004466;
}

.service-text p {
  line-height: 1.6;
}

.service-item.reverse {
  flex-direction: row-reverse;
}

/* Responsive Services Page */
@media (max-width: 768px) {
  .service-item,
  .service-item.reverse {
    flex-direction: column;
  }

  .service-item img,
  .service-text {
    width: 100%;
  }
}

/* =========================
   HOMEPAGE SERVICE CARDS (scoped to .service-grid)
   ========================= */

/* Card container: remove inner padding from the generic .service rule */
.service-grid .service {
  padding: 0 !important;                  /* beat earlier .service padding */
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0,0,0,0.10);
  transition: transform .2s ease, box-shadow .2s ease;
  text-align: center;
}

/* Make the whole card a column and fill the height */
.service-grid .service > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* Image: add blue border, remove inherited bottom margin, keep nice rounding */
.service-grid .service img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border: 3px solid #004466;             /* blue border */
  border-radius: 6px;                     /* slight rounding */
}

/* Text area: true vertical + horizontal centering */
.service-grid .service .service-text {
  flex: 1;                                /* take remaining space below image */
  display: flex;
  flex-direction: column;
  justify-content: center;                /* vertical center */
  align-items: center;                    /* horizontal center */
  padding: 26px 22px 32px;
  margin-left: 23%;
}

/* Larger, bolder typography to fill space nicely */
.service-grid .service h3 {
  margin: 6px 0 12px;
  font-size: 1.55rem;
  font-weight: 700;
  color: #222;
}

.service-grid .service p {
  font-size: 1.08rem;
  line-height: 1.55;
  color: #555;
  max-width: 30ch;
  margin: 0 auto;
}

/* Hover feel */
.service-grid .service:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Remove underline from service headings */
h2 a {
  text-decoration: none;
  color: inherit; /* keeps same color as surrounding text */
}

/* Optional hover style for consistency */
h2 a:hover {
  color: #00a0ff;  /* your accent blue */
  text-decoration: none; /* or 'none' if you want no hover underline */
}

/* Responsive tweak */
@media (max-width: 768px) {
  .service-grid .service img { height: 200px; }
}

/* =========================
   GALLERY PAGE
   ========================= */
.gallery-page {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.gallery-heading {
  font-size: 1.8rem;
  color: #004466;
  margin: 2rem 0 1rem;
  border-left: 4px solid #00a0ff;
  padding-left: 10px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 2.5rem;
}

.gallery-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 3px solid #004466; /* subtle brand accent */
}

.gallery-item figcaption {
  padding: 12px 14px;
  text-align: center;
  color: #444;
  font-size: 0.98rem;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

@media (max-width: 980px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item img { height: 200px; }
}

/* =========================
   CONTACT PAGE
   ========================= */
.contact-page {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.contact-wrapper {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.contact-form,
.contact-info {
  flex: 1;
  min-width: 320px;
}

.contact-form h2,
.contact-info h2 {
  color: #004466;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

/* Form Fields */
.contact-form label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-top: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #00a0ff;
  outline: none;
}

.contact-form button {
  margin-top: 1.5rem;
  border: none;
  cursor: pointer;
}

/* Contact Info */
.contact-info p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: #444;
}

.contact-info a {
  color: #00a0ff;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Map container */
.map-container {
  margin-top: 1.5rem;
  border-radius: 6px;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
  }
}