:root {
  --primary: #f07f15;    /* logo-inspired orange */
  --secondary: #fff;
  --bg: #f5f5f5;
  --dark: #1a1a1a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: var(--dark);
  background: var(--bg);
  line-height: 1.6;
}

/* NAV */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #fff; /* fully opaque so image doesn't show through */
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.logo-img {
  height: 100px;  /* larger logo */
  width: auto;
  background: transparent; /* no background */
}

/* Mobile hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 25;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  margin: 4px 0;
  transition: 0.3s;
}

/* Mobile nav slide-in */
.nav-links {
  list-style: none;
  position: fixed;
  top: 0;
  right: -100%;
  height: 100vh;
  width: 70%;
  background: var(--secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: right 0.5s ease;
}
.nav-links li { margin: 1.5rem 0; }
.nav-links a {
  text-decoration: none;
  font-size: 1.2rem;
  color: var(--dark);
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--primary); }
.nav-active { right: 0; }

/* Hamburger → X */
.hamburger.toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.toggle span:nth-child(2) { opacity: 0; }
.hamburger.toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* HERO */
header {
  padding-top: 120px; /* account for nav height */
  position: relative;
  height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: url('inner-harbor-bw.jpg') center 120px/cover no-repeat;
  /* background-position: center 120px; */
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 5;
  background: rgba(0,0,0,0.4);
  padding: 2rem;
  border-radius: 8px;
  animation: fadeIn 1s ease-out;
}
.hero-content h1 {
  font-size: 2rem;
  margin-bottom: .5rem;
  color: var(--secondary);
}
.hero-content p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}
.btn {
  background: var(--dark);
  color: var(--secondary);
  padding: .7rem 1.5rem;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1rem;
  transition: background .3s, color .3s;
}
.btn:hover {
  background: var(--primary);
  color: var(--secondary);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* SECTION HEADINGS ACCENT */
section h2 {
  display: inline-block;
  padding-bottom: .3rem;
  border-bottom: 4px solid var(--primary);
}

/* SECTIONS */
section {
  padding: 4rem 1.5rem;
  text-align: center;
}
section p {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--dark);
}

/* SERVICES */
.service-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.card {
  background: var(--secondary);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: all .6s ease-out, border .3s;
  border: 2px solid transparent;   /* This line prevents the hover jump */
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}
.card:hover {
  border: 2px solid var(--primary);
}
.card .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  background: var(--primary);
  color: var(--secondary);
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* CONTACT */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}
.contact-form input,
.contact-form textarea {
  padding: .8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}
.contact-form button:hover {
  background: var(--primary);
}

/* FOOTER */
footer {
  padding: 2rem 1rem;
  text-align: center;
  background: #fff;
  color: #777;
  font-size: .9rem;
}

/* DESKTOP STYLING */
@media (min-width: 768px) {
  .hamburger { display: none; }

  .nav-links {
    position: static;
    height: auto;
    width: auto;
    flex-direction: row;
    background: none;
    right: 0;
  }
  .nav-links li { margin: 0 1.5rem; }
  .nav-links a { font-size: 1rem; }

  .service-cards {
    flex-direction: row;
    justify-content: center;
  }
  .card { width: 30%; }

  header {
    align-items: flex-start;
    padding-top: 140px;
    height: calc(100vh - 140px);
  }
  .hero-content h1 { font-size: 3rem; }
  .hero-content p  { font-size: 1.2rem; }
}
