/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-white);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--space-lg);
  max-width: var(--container-wide);
  margin: 0 auto;
}

.header-logo img {
  height: 50px;
  width: auto;
}

.header-phone {
  display: none;
}

.header-phone .btn {
  font-size: 14px;
  padding: 10px 20px 10px 40px;
  position: relative;
}

.header-phone .btn img {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Navigation */
.nav-bar {
  background: var(--color-off-white);
  border-top: 1px solid var(--color-divider);
}

.main-nav {
  display: none;
  flex-direction: column;
  max-width: var(--container-wide);
  margin: 0 auto;
}

.main-nav.is-open {
  display: flex;
}

.main-nav a {
  display: block;
  padding: 12px var(--space-lg);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-bottom: 1px solid var(--color-divider);
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--color-navy);
  text-decoration: none;
}

.main-nav a.is-active {
  color: rgba(20, 49, 79, 1);
}

/* Header spacer */
.header-spacer {
  height: var(--header-height);
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }

  .header-phone {
    display: block;
  }

  .main-nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .main-nav a {
    padding: 12px 14px;
    border-bottom: none;
    font-size: 13px;
  }
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px var(--space-lg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}

.hero h1 {
  position: relative;
  color: var(--color-text-light);
  max-width: 800px;
}

@supports (-webkit-touch-callout: none) {
  .hero {
    background-attachment: scroll;
  }
}

@media (max-width: 767px) {
  .hero {
    background-attachment: scroll;
    min-height: 300px;
    padding: 80px var(--space-lg);
  }
}

/* =============================================
   PHOTO CARDS (home page grid)
   ============================================= */
.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  aspect-ratio: 4 / 3;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photo-card:hover img {
  transform: scale(1.05);
}

.photo-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 41, 91, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-card:hover .photo-card__overlay {
  opacity: 1;
}

.photo-card__overlay h3 {
  color: var(--color-white);
  font-size: 20px;
  margin-bottom: 10px;
}

.photo-card__overlay p {
  color: var(--color-white);
  font-size: 14px;
  line-height: 1.5;
}

/* Card label always visible at bottom */
.photo-card__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 41, 91, 0.85);
  color: var(--color-white);
  padding: 12px 15px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  transition: opacity 0.3s ease;
}

.photo-card:hover .photo-card__label {
  opacity: 0;
}

/* =============================================
   PROJECT CARDS (with accordion)
   ============================================= */
.project-card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.project-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project-card__body {
  padding: var(--space-md);
}

.project-card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--color-text);
  margin-bottom: 0;
}

/* Accordion */
.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--color-text);
  cursor: pointer;
  background: none;
  border: none;
  border-top: 1px solid var(--color-divider);
}

.accordion-trigger::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--color-navy);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: var(--space-sm);
}

.accordion-trigger[aria-expanded="true"]::after {
  content: '\2212';
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-content__inner {
  padding: 0 var(--space-md) var(--space-md);
}

.accordion-content.is-open {
  max-height: 600px;
}

.project-detail {
  font-size: 16px;
  margin-bottom: 8px;
}

.project-detail strong {
  color: var(--color-navy);
}

/* Category section headers on past-projects */
.category-header {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.5vw, 30px);
  color: var(--color-navy);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-navy);
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta {
  background-image: url('../images/backgrounds/pattern.jpg');
  background-repeat: repeat;
  background-size: auto;
  position: relative;
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 41, 91, 0.92);
}

.cta__content {
  position: relative;
  z-index: 1;
}

.cta__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-sm);
  filter: brightness(0) invert(1);
}

.cta h2 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.cta__phone {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 34px);
  color: var(--color-white);
  margin-bottom: var(--space-md);
  text-decoration: none;
}

.cta__phone:hover {
  text-decoration: underline;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  background: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--color-navy-hover);
  text-decoration: none;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.footer-logo img {
  height: 50px;
  width: auto;
  margin-bottom: var(--space-md);
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: var(--space-sm);
}

.footer-col p,
.footer-col a {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
  .footer-columns {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.contact-info h3 {
  color: var(--color-navy);
}

.contact-map {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: var(--border-radius);
  margin-top: var(--space-lg);
}

@media (min-width: 768px) {
  .contact-info {
    grid-template-columns: 1fr 1fr;
  }
}

/* =============================================
   INTRO TEXT (centered, below hero)
   ============================================= */
.intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
