/* HEADER COMPONENT DNA */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--h-height); /* Uses our dynamic 64px/80px math */
  background-color: var(--color-secondary);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-secondary);
}

.header-inner{
  width: var(--inner-width);
  max-width: var(--inner-max);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}



/* HAMBURGER COMPONENT */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: var(--space-l);  /* 32px wide */
  height: var(--space-m); /* 24px tall */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  width: 100%;
  height: 3px; /* Thickness - change to 2px for a "sleek" look */
  background-color: var(--color-bg);
  border-radius: 2px;
}

/* DESKTOP HIDE: Only show on mobile */
@media (min-width: 769px) {
  .hamburger {
    display: none;
  }
}

/* Logo */

.logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  grid-column: 4 / 10;
}

.logo-link {
  height: 80%; 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-img {
  max-height: 100%;
  /* ---------------------------- */
  /* Must define the aspect ratio */
  /* ---------------------------- */
  aspect-ratio: 1810 / 434;
  max-width: 100%;
  width: auto;  
  display: block;
  object-fit: contain;
}


/* Navigation Buttons */

/* DESKTOP NAV CONTAINER */
.nav-desktop {
  display: none;
  height: 100%;
}

@media (min-width: 769px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* THE ANCHOR BUTTONS */
.nav-link {
  text-decoration: none;
  color: var(--color-bg);
  font-weight: 500;
  font-size: 0.95rem;
  padding: var(--space-xs) var(--space-s);
  position: relative;
  white-space: nowrap;
}

/* Focus state for accessibility (Lighthouse requirement) */
.nav-link:focus-visible {
  outline: 2px solid var(--color-tertiary);
  outline-offset: 4px;
  border-radius: 4px;
}



.mobile-drawer{
    height: calc(100dvh - var(--h-height));
    background-color: var(--color-secondary);
    width: 100%;
    padding-left: var(--space-l);
    padding-top: var(--space-l);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    will-change: transform;
    
}

.mobile-drawer.active{
    transform: translateX(0);
}

.drawer-nav{
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    color: var(--color-bg);
    height: 80%;
    gap: var(--space-xl);
    font-size: var(--text-h5);

}


/* FORM COMPONENT */
.form-card {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  padding: var(--space-l);
  background: var(--color-tertiary);
  border-radius: var(--btn-radius);
}

/* GROUP */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  width: 100%;
}

/* LABEL */
.form-group label {
  font-family: var(--font-secondary);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* INPUTS */
.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-xs) var(--space-s);
  border: 1px solid var(--color-primary);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: var(--text-p);
  transition: var(--btn-transition);
}

/* FOCUS STATE */
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
}

/* TEXTAREA RESIZE CONTROL */
textarea {
  resize: vertical;
}



/* Final CTA */

.final-cta-container{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
}

.final-cta-container .btn{
  color: var(--color-primary);
}


/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  color: var(--color-text-light);
  padding-top: var(--space-2xl);
}



/* GRID LAYOUT */
.footer-inner {
  display: grid;
  gap: var(--space-xl);
}

/* MOBILE (default) */
.footer-inner > * {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: var(--space-m);
}

.footer-inner > *:last-child {
  border-bottom: none;
}

/* TYPOGRAPHY */
.footer h4,
.footer h5 {
  margin-bottom: var(--space-xs);
}

.footer p {
  opacity: 0.8;
  max-width: 800px;
}

.footer ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.footer a {
  opacity: 0.85;
  transition: var(--btn-transition);
}

.footer a:hover {
  opacity: 1;
}

/* DESKTOP (729px breakpoint) */
/* DESKTOP (729px breakpoint) */
@media (min-width: 729px) {
  .footer-inner {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    justify-items: center;
  }

  .footer-inner > * {
    border: none;
    padding-bottom: 0;
  }

  /* Make brand span full width */
  .footer-brand {
    grid-column: 1 / -1;
    margin-top: var(--space-l);
    padding-top: var(--space-m);
    border-top: 1px solid rgba(255,255,255,0.1);
    justify-self: center;
    text-align: center;
  }

  .footer-nav{
    justify-self: left;
    text-align: center;
  }

  .footer-contact{
    justify-self: right;
    text-align: center;
  }

  .footer-services{
    text-align: center;
  }
}

/* ============================================================
   BOTTOM BAR
   ============================================================ */

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: var(--space-xl);
  padding: var(--space-m) 0;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

/* Desktop layout */
@media (min-width: 729px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
}

.footer-bottom p {
  font-size: var(--text-xs);
  opacity: 0.7;
  margin: 0;
}
