* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --teal: #245c66;
  --teal-dark: #1e4b53;
  --light-gray: #f4f4f4;
  --card-bg: #ffffff;
  --text-muted: #666;
  --white: #ffffff;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: #111;
  background: #fff;
}

h1,
h2,
h3,
h4,
.logo a {
  font-family: 'Comfortaa', cursive;
}

h1 {
  font-weight: 700;
  letter-spacing: 0.02em;
}

h2 {
  font-weight: 600;
}

h3 {
  font-weight: 500;
}

h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: 18px;
}

p {
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.6;
}

img {
  width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button:focus {
  outline: none;
}

.see-all {
  background: var(--teal) !important;
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.4rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
  display: inline-block;
  margin-top: 2.5rem;
  display: none; /* temporary hide */
}

/* NAV */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: transparent;
  transition: box-shadow 0.3s ease;
  z-index: 1000;
}

.site-header.scrolled {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.nav-container {
  position: relative;
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  padding: 2vh 1vw;
}

.logo a {
  font-weight: bold;
  font-size: 1rem;
}

.logo img {
  height: 75px;
  max-width: none !important;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-item {
  position: relative;
}

.nav-links a, .dropdown-toggle-button {
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  transition: 0.2s ease;
}

.nav-links a:hover, .dropdown-toggle-button:hover, .submenu-toggle:hover {
  color: var(--teal-dark);
  text-decoration: none !important;
}

.dropdown-toggle-button {
  position: relative;
  line-height: 1 !important;
}

.dropdown-toggle-button::after {
  content: '';
  width: 5px !important;
  height: 5px !important;
  position: absolute;
  top: 11px;
  right: 3px;
  transform: rotate(45deg);
  border-bottom: 2px solid var(--text-muted);
  border-right: 2px solid var(--text-muted);
  border-radius: 2px;
  line-height: 1.6 !important;
}

.primaryCTA {
  background-color: var(--teal) !important;
  color: var(--white) !important;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  transition: 0.3s ease;
  line-height: 1.6 !important;
}

.secondaryCTA {
  background-color: var(--white) !important;
  color: var(--teal) !important;
  padding: 0.3rem 1rem !important;
  border: 0.15rem solid var(--teal) !important;
  border-radius: 6px;
  transition: 0.3s ease;
  line-height: 1.6 !important;
  display: none; /* temporary hide */
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-muted);
  margin: 5px 0;
  border-radius: 15px;
}

.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  padding: 1rem 0;
  min-width: 260px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  display: none;
  flex-direction: column;
  z-index: 1500;
}

.has-dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-menu a {
  padding: 0.5rem 1.25rem;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: #f0f0f0;
}

.dropdown-subitem {
  position: relative;
}

.submenu-toggle {
  background: none;
  border: none;
  padding: 0.5rem 1.25rem;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  color: var(--text-muted);
}

.submenu-toggle:hover {
  background: #f0f0f0;
}

.submenu {
  position: absolute;
  top: 0;
  right: 100%;
  min-width: 220px;
  background: white;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
}

/* Reveal on hover */
.dropdown-subitem:hover > .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* Submenu links */
.submenu a {
  display: block;
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

/* Optional arrow indicator */
.dropdown-subitem > .submenu-toggle::after {
  content: "›";
  float: right;
}


.mobile-menu {
  display: none;
}

/* HERO */
.hero {
  padding: 6rem 1rem;
  background-image: url('/media/home/IMG_3199.jpeg');
  background-size: cover;
  height: 400px;
}

/* SECTIONS */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 4rem 1rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.about {
  padding: 1rem 1rem;
}

.about img {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 50%;
  margin: auto;
  display: block;
}

.about-text {
  padding: 30px;
}

.about h2 {
  margin-bottom: 1rem;
}

.about p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.about-image img {
  width: 50vw;
  height: 50vw;
  max-width: 500px;
  max-height: 500px;
  object-fit: cover;
  border-radius: 100%;
}

.projects {
  background: var(--light-gray);
  padding: 1rem 1rem;
  text-align: center;
}

.projects .section-header {
  display: block;
  text-align: center;
  margin-bottom: 2rem;
}

.projects h2 {
  margin-bottom: 0.5rem;
}

.projects p {
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--text-muted);
}

.project-card {
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  padding-bottom: 1.5rem;
  overflow: hidden;
  text-align: center;
  transition: 0.3s ease;
  cursor: pointer;
  height: 100%;
}

.project-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.project-card img {
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
  width: 100%;  
}

.project-card h3 {
  margin: 1rem 0 0.5rem;
  font-weight: 700;
  padding: 10px 30px;
}

.project-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0 32px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.testimonials {
  background-color: var(--teal);
  background-size: 24px 24px;
  padding: 1rem 1rem 4rem 1rem;
  position: relative;
}

.testimonials::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('./Star_Pattern.svg');
  background-size: 64px;
  opacity: 0.05;
}

.testimonials .container {
  max-width: 900px;
}

.testimonials h2 {
  color: var(--white);
  text-align: center;
  margin-bottom: 2rem;
}

.testimonial-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.testimonial-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.testimonial-card p {
  font-size: 0.95rem;
  color: #444;
}

.contact {
  padding: 1rem 1rem;
}

.contact p {
  color: var(--text-muted);
}

#hubspot-form-embed {
  position: relative;
}

#hubspot-form-embed::after {
  content: '';
  position: absolute;
  bottom: 0;
  top: calc(100% - 80px);
  left: 0;
  right: 0;
  background-color: white;
  z-index: 1000;
}

/* FOOTER */
.footer {
  background: var(--teal);
  color: var(--white);
  padding: 1rem 1rem 1.5rem 1rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
}

.footer a {
  color: var(--white);
}

.footer img {
  width: 20px;
  border-radius: 2px;
  transition: 0.3s ease;
}

/* RESPONSIVE */
@media (min-width: 900px) {
  .primaryCTA:hover, .see-all:hover {
    background-color: var(--teal-dark) !important;
  }
  .secondaryCTA:hover {
    background-color: var(--teal) !important;
    color: var(--white) !important;
  }
  .footer img:hover {
    opacity: 0.7;
  }
  .contact h2 {
    margin: 40px 0px 30px 0px;
  }
  .contact p {
    line-height: 1.8;
  }
}

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero {
    max-height: 33vh;
  }

  .container {
    padding: 2rem 1rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .hamburger {
    display: block;
    margin: 0 !important;
  }

  .nav-links {
    display: none !important;
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 2000;
    display: none;
    overflow: hidden;
  }

  .mobile-menu.active {
    display: block;
  }

  .mobile-menu-panel {
    position: absolute;
    inset: 0;
    padding: 2rem 1.5rem 12rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 60vh;
    justify-content: space-between;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: scroll;
  }

  .mobile-menu-panel.active {
    transform: translateX(0);
  }

  .mobile-menu a,
  .mobile-menu button {
    font-size: 1.25rem;
    background: none;
    border: none;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    color: #111;
    text-decoration: none !important;
  }

  .mobile-menu a:hover {
    text-decoration: none;
  }

  .close-menu {
    align-self: flex-end;
    font-size: 1.5rem;
  }

  .back-button {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .mobile-menu h3 {
    font-family: 'Comfortaa', cursive;
    font-size: 1.17em;
    text-align: left;
    margin-bottom: 1rem;
    font-weight: 700;
    border-bottom: 2px solid var(--text-muted);
    margin-top: none;
  }

  #mobileProjects {
    height: 100vh !important;
  }

  #mobileProjects a,
  #openADS,
  #openDOE {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    padding: 0.4rem 1rem;
  }
}