/*
Theme Name: fäm Contracting Child Theme
Description: Child theme of Twenty Twenty-Five for fäm Contracting coming soon page
Template: twentytwentyfive
Version: 1.0.0
Author: fäm Contracting
*/

/* Import parent theme styles */
@import url("../twentytwentyfive/style.css");

/* Google Fonts are now loaded via functions.php for better performance and to avoid duplication */

/* Global CSS Variables */
:root {
  /* Brand Colors */
  --fam-bg-light: #F4F4F4;
  --fam-text-light: #F4F4F4;
  --fam-overlay: #D9D9D91A;
  
  /* Typography */
  --fam-font-heading: 'Aboreto', serif;
  --fam-font-body: 'Reddit Sans', sans-serif;
  
  /* Spacing */
  --fam-spacing-xs: 0.5rem;
  --fam-spacing-sm: 1rem;
  --fam-spacing-md: 1.5rem;
  --fam-spacing-lg: 2rem;
  --fam-spacing-xl: 3rem;
  --fam-spacing-xxl: 4rem;
  --fam-spacing-3xl: 6rem;

  /* Mobile edge padding */
  --fam-mobile-edge-padding: 24px;
  /* Mobile header vertical padding */
  --fam-mobile-header-padding-y: 24px;
  /* Global horizontal edge padding */
  --fam-container-padding: 5rem;
  /* Page max-width for ultra-wide screens */
  --fam-page-max-width: 1600px;
  /* Page-specific spacing */
  --coming-soon-header-gap: 6rem;
  
  /* Shadows */
  --fam-shadow-header: 0px 4px 20px 0px #00000033;
  --fam-blur-countdown: 16px;
}

/* Global container - consistent page width aligned with header */
.container {
  max-width: var(--fam-page-max-width);
  margin: 0 auto;
  padding: 0 var(--fam-container-padding);
  box-sizing: border-box;
}

/* Reusable Section baseline height and vertical padding */
.section,
.page-section {
  min-height: 120vh;
  display: flex;
  align-items: center;
  padding-top: var(--fam-spacing-xl);
  padding-bottom: var(--fam-spacing-xl);
  box-sizing: border-box;
}

/* Global Typography Overrides */
body {
  font-family: var(--fam-font-body);
  font-weight: 300;
  line-height: 1.5;
  margin: 0;
  position: relative; /* ensures absolutely positioned header scrolls with page */
  background-color: var(--fam-bg-light);

}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  min-height: 100%;
  overflow-x: hidden; /* prevent horizontal scroll */
}

h1 {
  font-family: 'Aboreto', serif;
  font-weight: 400; /* Regular */
  font-style: normal; /* leading-trim: none */
  font-size: clamp(36px, 5vw, 80px);
  line-height: 1.2;
  letter-spacing: 0%;
  color: var(--fam-text-light);
  margin: 0;
  padding: 0;
}

h2 {
  font-family: var(--fam-font-heading);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 58.05px);
  line-height: 1.2;
  color: var(--fam-text-light);
  margin: 0;
}

p {
  font-family: 'Reddit Sans', sans-serif;
  font-weight: 300; /* Light */
  font-style: normal;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.5; /* leading-trim: none */
  letter-spacing: 0.02em; /* ≈2% */
  color: #F4F4F4;
  margin: 0 0 0 0; /* Paragraph spacing controlled via spacers where needed */
}

/* Global: spacing between title and following paragraph */
h1 + p,
h2 + p,
h3 + p {
  margin-top: 8px; /* Title→paragraph gap */
}

/* Global Button Styles */
.btn {
  display: inline-flex; /* Use flex to align content and control height */
  align-items: center;
  justify-content: center;
  font-family: 'Reddit Sans', sans-serif; /* Updated font family */
  font-weight: 400; /* Regular */
  font-size: 16px;
  line-height: 24px; /* Updated line-height */
  letter-spacing: 0%; /* Updated letter-spacing */
  text-transform: uppercase; /* All caps */
  text-align: center;
  text-decoration: none;
  height: 48px; /* Fixed height */
  padding: 8px 24px; /* Adjust padding to fit text within height */
  border-radius: 0;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Include padding in element's total width and height */
  gap: 8px; /* Gap between icon and text if any */
}

.btn-primary {
  background-color: var(--fam-text-light);
  color: #000;
  border: 1px solid var(--fam-text-light);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--fam-text-light);
  border-color: var(--fam-text-light);
}

.btn-secondary {
  background-color: transparent;
  color: var(--fam-text-light);
  border: 1px solid var(--fam-text-light);
}

.btn-secondary:hover {
  background-color: var(--fam-text-light);
  color: #000;
  border-color: var(--fam-text-light);
}

.btn-outlined {
  background-color: transparent;
  color: var(--fam-text-light);
  border: 1px solid currentColor; /* Outline matches text color */
  height: 48px;
  padding: 8px 24px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-outlined:hover {
  background-color: var(--fam-text-light);
  color: #000;
  border-color: var(--fam-text-light);
}

/* Outlined button variant for light surfaces using brand red */
.btn-outlined.btn-on-light-red {
  color: #4E0004;
  border-color: #4E0004;
}

.btn-outlined.btn-on-light-red:hover {
  background-color: #4E0004;
  color: #fff;
  border-color: #4E0004;
}

/* Our Projects section alignment with other section titles */
.our-projects-section .container {
  display: flex;
  flex-direction: column;
  gap: 19.2px; /* Reduced from 24px by 20% */
  width: 100%;
  padding: 24px var(--fam-container-padding) 96px var(--fam-container-padding); /* Reduced top padding from 48px to 24px by 50% */
  /* Halved gap between filters and grid to 24px */
}

/* Custom filter dropdowns - modern clean design */
.filter-dropdown {
  position: relative;
  cursor: pointer;
  background: transparent;
}

.filter-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(97, 98, 98, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
}

.filter-dropdown:hover .filter-label {
  border-color: rgba(97, 98, 98, 0.8);
}

.filter-dropdown.is-open .filter-label {
  border-color: #4E0004;
}

.filter-text {
  font-family: var(--fam-font-body);
  font-weight: 300;
  font-style: normal;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.02em;
  color: rgba(97, 98, 98, 1);
  transition: color 0.3s ease;
}

.filter-dropdown.is-open .filter-text {
  color: #4E0004;
}

.filter-arrow {
  width: 25px;
  height: 25px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.7;
}

.filter-dropdown:hover .filter-arrow {
  opacity: 1;
}

.filter-dropdown.is-open .filter-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.filter-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(97, 98, 98, 0.2);
  border-radius: 12px;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.05);
  z-index: 100;
  max-height: 240px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-dropdown.is-open .filter-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.filter-option {
  padding: 14px 20px;
  font-family: var(--fam-font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 22px;
  color: rgba(97, 98, 98, 1);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
  margin: 4px 8px;
  position: relative;
}

.filter-option:hover {
  background-color: rgba(78, 0, 4, 0.08);
  color: #4E0004;
  transform: translateX(2px);
}

.filter-option.is-selected {
  background-color: #4E0004;
  color: #fff;
  font-weight: 400;
}

.filter-option.is-selected:hover {
  background-color: #4E0004;
  transform: none;
}

.filter-option.is-clear {
  font-weight: 500;
  color: rgba(97, 98, 98, 0.9);
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(97, 98, 98, 0.1);
  border-radius: 8px 8px 0 0;
}

.filter-option.is-clear:hover {
  background-color: rgba(244, 244, 244, 0.5);
  color: rgba(97, 98, 98, 1);
}

.filter-option.is-clear.is-selected {
  background-color: #4E0004;
  color: #fff !important;
  font-weight: 500;
}

.filter-option.is-clear.is-selected:hover {
  background-color: #4E0004;
  color: #fff !important;
}

/* Dynamic project grid responsiveness */
@media (max-width: 980px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr !important;
  }
  
  .projects-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
  
  .our-projects-section .container {
    padding: 48px var(--fam-mobile-edge-padding) !important;
    gap: 20px !important;
  }
}

/* Coming Soon Page Specific Styles */
.coming-soon-page {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.coming-soon-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

.coming-soon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: -1;
}

/* Header Styles */
/* Global transparent header - works for both homepage and other pages */
.coming-soon-header {
  background-color: transparent;
  box-shadow: none;
  padding-top: calc(var(--fam-spacing-lg) * 1.1);
  padding-bottom: var(--fam-spacing-lg);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--fam-page-max-width);
  z-index: 999;
  color: #fff;
  padding-left: var(--fam-container-padding);
  padding-right: var(--fam-container-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

/* Fullscreen Overlay Navigation */
.site-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('https://fam-contracting.com/wp-content/uploads/2025/09/Menu.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 400ms ease, visibility 400ms ease;
}

.site-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

.overlay-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.overlay-menu {
  width: 100%;
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  transition: transform 400ms ease, opacity 400ms ease;
}

.site-overlay.is-open .overlay-menu {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.overlay-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 80px;
}

.overlay-list a {
  font-family: var(--fam-font-heading);
  font-weight: 400;
  font-size: 50px;
  line-height: 60px;
  letter-spacing: 0;
  text-transform: uppercase;
  text-align: center;
  color: #202126;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  display: inline-block;
}

.overlay-list a:hover,
.overlay-list a:focus { color: #4E0004; }

/* Underline grows from center on hover */
.overlay-list a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background: #4E0004;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1100ms ease;
}

.overlay-list a:hover::after,
.overlay-list a:focus::after {
  transform: scaleX(1);
}

/* Header inner wrapper (for pages using header.php) */
.coming-soon-header .header-inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.coming-soon-header .logo {
  max-height: 60px;
  width: auto;
}

/* Reusable hamburger button */
.hamburger-menu {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: block;
}

.hamburger-menu img {
  width: 60px;
  height: 20px;
  display: block;
}

/* Main Content */
.coming-soon-content {
  position: relative;
  z-index: 5;
  padding: var(--fam-spacing-xxl) var(--fam-container-padding);
  /* Desktop: no extra gap; mobile sets margin-top */
  margin-top: 0;
  text-align: left;
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-headline {
  margin-bottom: 0; /* Use global h1 + p spacing (16px) */
  font-size: 64px;
  line-height: 1.2;
}
/* Mobile styles for "Building Excellence" hero title */
@media (max-width: 768px) {
  .hero-headline {
    font-size: 44px !important; /* Change from default */
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 44px !important; /* Change from default */
  }
}

.hero-subhead {
  margin-bottom: 0; /* Spacer will control distance to countdown */
  font-size: 18px;
  max-width: 600px;
}

/* Spacers */
.spacer-48 { height: 48px; display: block; }

/* Countdown Box */
.countdown-container {
  background: var(--fam-overlay);
  backdrop-filter: blur(var(--fam-blur-countdown));
  border-radius: 0;
  padding: 18px 0px; /* Blur hugs content. Adjust padding below if needed. */
  /* Padding controls: set vertical and horizontal padding as desired */
  /* Example: padding: 52px 88px; */
  margin: 0;
  max-width: 600px;
  width: 100%;
  align-self: flex-start;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0px;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.countdown-number {
  font-family: var(--fam-font-heading);
  font-weight: 400;
  font-size: 76px;
  line-height: 0.8;
  min-width: 1.3em;
  display: inline-block;
  position: relative;
  overflow: hidden;
  height: 1.3em;
  margin: 0;
  transform: translateY(-8px);
  color: var(--fam-text-light);
}

.countdown-number .number-container {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease-out, color 0.5s ease-out;
}

/* Position classes for the 5 containers - middle one is visible */
.countdown-number .number-container.position-top {
  transform: translateY(-300%);
  z-index: 1;
  color: transparent;
  text-shadow: none;
}

.countdown-number .number-container.position-mid-top {
  transform: translateY(-150%);
  z-index: 2;
  color: transparent;
  text-shadow: none;
}

.countdown-number .number-container.position-visible {
  transform: translateY(0%);
  z-index: 5;
  color: var(--fam-text-light);
}

.countdown-number .number-container.position-mid-bottom {
  transform: translateY(150%);
  z-index: 4;
  color: transparent;
  text-shadow: none;
}

.countdown-number .number-container.position-bottom {
  transform: translateY(300%);
  z-index: 3;
  color: transparent;
  text-shadow: none;
}

.countdown-label {
  font-family: var(--fam-font-body);
  font-weight: 300;
  font-size: 14px;
  margin-top: 0;
  transform: translateY(10px);
  line-height: 1;
  text-transform: none; /* keep first letter capital only */
  letter-spacing: 1px;
  color: var(--fam-text-light);
}

.countdown-separator {
  font-family: 'Aboreto', serif;
  font-style: normal;
  font-weight: 400;
  font-size: 80px;
  height: 2em;
  margin: 0 5px;
  line-height: 100%;
  letter-spacing: 0%;
  align-self: flex-start;
  margin-top: 0;
  color: var(--fam-text-light);
  text-align: center;
  transform: translateY(12%); /* adjust this translateY to experiment */
}

/* Logo Carousel */
.full-bleed {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

.logo-carousel {
  background: transparent;
  padding: 0;
  margin-top: 0;
  overflow: hidden;
  position: relative;
}

/* Reference-based carousel */
.icon-track-container {
  position: relative;
  width: 100%;
  height: 120px;
  background: rgba(244, 244, 244, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}

.icon-track {
  display: flex;
  position: absolute;
  height: 100%;
  width: max-content;
  align-items: center;
}

.icon-container {
  display: flex;
  position: absolute;
  height: 100%;
  width: calc((200px + 120px) * 2);
  align-items: center;
  transition: transform 0.3s linear;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 0;
  will-change: transform, opacity;
}

.icon-container.repositioning {
  opacity: 0;
  visibility: hidden;
  z-index: -1;
  pointer-events: none;
  transition: none !important;
  display: none;
}

.track-icon {
  flex: 0 0 auto;
  margin: 0 60px;
  opacity: 0.8;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  pointer-events: none;
}

.track-icon img {
  height: 76px;
  width: auto;
  display: block;
  filter: brightness(1);
  max-width: 200px;
  object-fit: contain;
}

.logo-track:hover {
  animation-play-state: paused;
}

.logo-item {
  flex-shrink: 0;
  height: 40px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.logo-item:hover {
  opacity: 1;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Footer Styles - Global for all pages */
.coming-soon-footer,
.site-footer {
  background-color: var(--fam-bg-light);
  position: relative;
  z-index: 10;
  margin: 0;
  color: #333;
  border-top: 1px solid rgba(97, 98, 98, 0.4);
}

.coming-soon-footer {
    
  max-width: var(--fam-page-max-width);
  margin: 0 auto;
  padding-left: var(--fam-container-padding);
  padding-right: var(--fam-container-padding);
  background-color: var(--fam-bg-light);
}

/* New footer top row to match homepage spec */
.coming-soon-footer .footer-top {
  display: flex;
  justify-content: space-between; /* space between columns */
  align-items: flex-start; /* vertical alignment per current page */
  gap: var(--fam-spacing-xl);
  padding: var(--fam-spacing-lg) 0;
}

.coming-soon-footer .footer-logo-tagline {
  display: flex;
  flex-direction: column;
  gap: var(--fam-spacing-md);
}

.coming-soon-footer .footer-logo-img {
  max-width: 117px;
  height: auto;
}

.coming-soon-footer .footer-tagline {
  font-family: 'Reddit Sans', sans-serif;
  font-weight: 400; /* Regular */
  font-style: normal;
  font-size: 16px;
  line-height: 20px; /* leading-trim: NONE */
  letter-spacing: -0.01em; /* -1% */
  color: #616262;
  margin: 0;
}

.coming-soon-footer .footer-nav-contact {
  display: flex;
  flex-direction: column; /* stack nav row above contact info */
  align-items: flex-start;
  gap: 24px; /* 24px gap between nav row and contact block */
}

.coming-soon-footer .footer-navigation .footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 60px; /* 60px gap between nav items */
}

.coming-soon-footer .footer-navigation .footer-menu a {
  font-family: 'Reddit Sans', sans-serif;
  font-weight: 600; /* SemiBold */
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 0.02em; /* 2% */
  color: #000;
  text-decoration: none;
}

.coming-soon-footer .footer-contact-info {
  text-align: left;
}

.coming-soon-footer .footer-phone,
.coming-soon-footer .footer-address {
  font-family: 'Reddit Sans', sans-serif;
  font-weight: 300; /* Light */
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 0.02em; /* 2% */
  color: #202126;
  margin: 0; /* reset, we set spacing below */
}

/* 12px gap between phone and address lines */
.coming-soon-footer .footer-phone { margin-bottom: 12px; }

@media (max-width: 768px) {
  .coming-soon-footer .footer-top {
    flex-direction: column;
    gap: var(--fam-spacing-lg);
  }
  .coming-soon-footer .footer-nav-contact {
    flex-direction: column;
    gap: var(--fam-spacing-md);
  }
  .coming-soon-footer .footer-navigation .footer-menu {
    gap: 32px;
    flex-wrap: wrap;
  }  .hamburger-menu img {
    width: 40px !important; /* Default is 60px */
    height: auto !important; /* Default is 20px */
  }
    .hamburger-menu {
    transform: translateY(-150%); /* Move hamburger up by 20% */
  }
  
  .overlay-close img {
    width: 48px !important; /* Default is 64.64px */
    height: 36px !important; /* Default is 48px */
  }
  .coming-soon-footer .footer-contact-info { text-align: left; }
}

/* Alternative footer styling for homepage */
.site-footer {
  background-color: #fff;
  padding: var(--fam-spacing-xl) 0 var(--fam-spacing-lg);
  color: #000;
  font-family: var(--fam-font-body);
}

.site-footer .container {
  /* Removed max-width and margin: 0 auto to maintain consistent edge alignment */
  padding: 0 var(--fam-container-padding);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--fam-spacing-lg);
}

.footer-logo-tagline {
  display: flex;
  flex-direction: column;
  gap: var(--fam-spacing-md);
}

.footer-logo-img {
  max-width: 117px;
  height: auto;
}

.footer-tagline {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  max-width: 300px;
}

.footer-nav-contact {
  display: flex;
  gap: 100px;
}

.footer-navigation .footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 40px;
}

.footer-menu a {
  color: #000;
  text-decoration: none;
  font-family: var(--fam-font-body);
  font-size: 16px;
  font-weight: 400;
  transition: opacity 0.3s ease;
}

.footer-menu a:hover {
  opacity: 0.7;
}

.footer-contact-info {
  text-align: right;
}

.footer-phone {
  font-size: 16px;
  margin: 0 0 8px 0;
}

.footer-address {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.footer-divider {
  border: none;
  border-top: 1px solid #E5E5E5;
  margin: var(--fam-spacing-md) 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-family: var(--fam-font-body);
  font-weight: 300;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 0.02em;
  margin: 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: none;
  margin: 0;
  width: 100%;
  border-top: 1px solid rgba(97, 98, 98, 0.4);
  padding-top: var(--fam-spacing-md); /* Add some padding to separate from the border */
}

.social-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.social-label {
  font-family: 'Reddit Sans', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 0.02em; /* ≈2% */
  text-align: center;
  color: #333;
}

.footer-text {
  font-family: var(--fam-font-body);
  font-weight: 300;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 2%;
  text-align: left;
  color: #333 !important;
}

/* Footer copyright typography per spec */
.footer-text.copyright {
  font-family: 'Reddit Sans', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 0.02em; /* ≈2% */
  text-align: center;
}

/* Reusable Page Hero */
.page-hero {
  position: relative;
  min-height: 320px; /* ensures room for transparent header */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end; /* content at bottom area */
}

.page-hero .container {
  width: 100%;
  padding-top: 0;
  padding-bottom: var(--fam-spacing-xl);
}

/* Breadcrumbs */
.breadcrumbs {
  margin: 0 0 var(--fam-spacing-md) 0;
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  gap: 12px; /* 12px gap between text and separators */
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumbs-link {
  font-family: 'Reddit Sans', sans-serif;
  font-weight: 300; /* Light */
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  color: #F4F4F4;
  text-decoration: none;
  text-transform: uppercase;
}

.breadcrumbs-current {
  font-family: 'Reddit Sans', sans-serif;
  font-weight: 500; /* Medium */
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  color: #F4F4F4;
  text-transform: uppercase;
}

.breadcrumbs-separator img {
  display: block;
  width: 24px;
  height: 24px;
}

/* Page Title */
.page-title {
  font-family: 'Aboreto', serif;
  font-weight: 400; /* Regular */
  font-size: 50px;
  line-height: 60px;
  letter-spacing: 0px;
  text-transform: uppercase;
  color: #F4F4F4;
  margin: 0;
}

.social-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 36px;
}

/* Additional social links styling for homepage footer */
.footer-bottom .social-links {
  gap: 24px;
}

.footer-bottom .social-link {
  display: inline-flex;
  width: 20px;
  height: 20px;
  color: #000;
  transition: transform 0.3s ease;
}

.footer-bottom .social-link:hover {
  transform: scale(1.1);
}

.social-link {
  display: inline-block;
  width: 24px;
  height: 24px;
  opacity: 1;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.social-link:hover {
  transform: scale(1.1);
}

.social-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 48px;
    line-height: 56px;
  }
  
  h2 {
    font-size: 36px;
  }
  
  .coming-soon-content {
    padding: var(--fam-spacing-lg) 5rem;
    margin-top: var(--coming-soon-header-gap);
  }
  
  .countdown-container {
    padding: 16px 0; /* Increase vertical padding so numbers stay within blur box */
  }
  
  .countdown-number {
    font-size: 38px;
    transform: translateY(-8px);
  }
  
  .countdown-label {
    font-size: 12px;
    margin-top: 0;
    transform: translateY(10px);
  }
  
  .countdown-separator {
    font-size: 32px;
    transform: translateY(12%);
  }
  
  .footer-content {
    flex-direction: column;
    gap: var(--fam-spacing-sm);
    text-align: left;
    align-items: flex-start;
    justify-content: flex-start;
  }
  
  /* Homepage footer responsive styles */
  .footer-top {
    flex-direction: column;
    gap: var(--fam-spacing-lg);
  }
  
  .footer-nav-contact {
    flex-direction: column;
    gap: var(--fam-spacing-md);
    width: 100%;
  }
  
  .footer-navigation .footer-menu {
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .footer-contact-info {
    text-align: left;
  }
  
  .logo-item {
    height: 30px;
  }

  /* Halve icon gaps on mobile */
  .social-links {
    gap: 18px;
  }

  .track-icon {
    margin: 0 30px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 36px;
    line-height: 42px;
  }
  
  .coming-soon-header,
  .coming-soon-content,
  .coming-soon-footer {
    padding-left: var(--fam-mobile-edge-padding);
    padding-right: var(--fam-mobile-edge-padding);
  }
  
  .countdown-number {
    font-size: 28px;
  }
  
  .countdown-item {
    min-width: 60px;
  }
  
  .coming-soon-header {
    padding-top: calc(var(--fam-mobile-header-padding-y) * 1.1);
    padding-bottom: var(--fam-mobile-header-padding-y);
  }
  
  .coming-soon-header .logo {
    max-height: 56px; /* +20% then +15% */
  }
  
  /* Homepage footer mobile styles */
  .footer-bottom {
    flex-direction: column;
    gap: var(--fam-spacing-md);
  }
}

/* Global mobile container side padding to keep 24px edge alignment */
@media (max-width: 480px) {
  .container {
    padding-left: var(--fam-mobile-edge-padding);
    padding-right: var(--fam-mobile-edge-padding);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
  }
  
  .social-link {
    transition: none;
  }
  
  .logo-item {
    transition: none;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus States */
.social-link:focus,
.logo-item:focus {
  outline: 2px solid var(--fam-text-light);
  outline-offset: 2px;
}

/* Specific overrides for 'Explore our work' section title on Single Project page */
.single-project .work-headline {
  font-family: var(--fam-font-heading); /* Aboreto */
  font-weight: 400;
  font-style: normal;
  font-size: 36px;
  line-height: 44px;
  letter-spacing: 0px;
  vertical-align: middle; /* This property usually applies to inline elements, but added for completeness as requested */
  text-transform: uppercase;
}

/* Build With Us Section for Single Project Template */
.build-with-us-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: var(--fam-spacing-xl) 0; /* Consistent vertical padding (48px top/bottom), no horizontal on section itself */
  display: flex;
  flex-direction: column;
  align-items: center; /* Center the entire block of content (headline, desc, btn) horizontally */
  justify-content: flex-start; /* Align content to the top of the section */
  text-align: left; /* Text itself should be left-aligned within its block */
  color: var(--fam-text-light); /* White text */
  min-height: auto; /* Allow section to wrap its content */
  width: 100%; /* Ensure section takes full width */
}

/* Content layout without container wrapper - apply container-like styles directly to children */
.build-with-us-headline,
.build-with-us-description {
  max-width: var(--fam-page-max-width); /* Constrain content width to match other sections (1600px) */
  width: 100%; /* Ensure content blocks take full width within max-width */
  margin: 0 auto; /* Center content blocks horizontally */
  padding-left: var(--fam-container-padding); /* Add left padding (80px) for alignment with other sections */
  padding-right: var(--fam-container-padding); /* Add right padding (80px) for alignment with other sections */
}

.build-with-us-headline {
  font-family: var(--fam-font-heading); /* Aboreto */
  font-weight: 400;
  font-style: normal;
  font-size: 36px;
  line-height: 44px;
  letter-spacing: 0px;
  text-transform: uppercase;
  color: var(--fam-text-light);
  margin-top: 0; /* Override default margin */
  margin-bottom: 16px; /* Consistent gap after headline - now 16px */
}

.build-with-us-description {
  font-family: var(--fam-font-body); /* Reddit Sans */
  font-weight: 300;
  font-style: normal;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.02em;
  color: var(--fam-text-light);
  margin-top: 0; /* Override default margin */
  margin-bottom: 16px; /* Consistent gap after description - now 16px */
}

.build-with-us-section .btn {
  /* Revert to default button sizing to prevent full-width */
  margin: 0; /* Remove auto margins to left align */
  margin-top: 16px; /* Add 16px vertical gap to align with other text in section - now 16px */
  align-self: flex-start; /* Left align button within the flex column */
  margin-left: var(--fam-container-padding); /* Align button with content */
  /* Removed padding-left and padding-right to use default button padding */
}

/* New button style for dark backgrounds with white outline */
.btn-on-dark-white {
  border-color: var(--fam-text-light);
  color: var(--fam-text-light);
}

.btn-on-dark-white:hover {
  background-color: var(--fam-text-light);
  color: #4E0004; /* Red color on hover */
}

/* Responsive for build with us section */
@media (max-width: 768px) {
  .build-with-us-section {
    padding-top: var(--fam-spacing-xl); /* Consistent with desktop */
  }

  .build-with-us-headline,
  .build-with-us-description {
    padding-left: var(--fam-spacing-lg); /* Tablet padding (32px) */
    padding-right: var(--fam-spacing-lg);
  }

  .build-with-us-section .btn {
    margin-left: var(--fam-spacing-lg); /* Align button with content on tablet */
    /* Removed padding-left and padding-right */
  }
    .overlay-list a {
    font-size: 28px;
    line-height: 16px;
  }

  .build-with-us-headline {
    font-size: 32px;
    line-height: 40px;
  }
}

@media (max-width: 480px) {
  .build-with-us-section {
    padding-top: var(--fam-spacing-lg); /* Adjusted top padding for mobile (32px) */
  }
    .overlay-list a {
    font-size: 28px;
    line-height: 16px;
  }

  .build-with-us-headline,
  .build-with-us-description {
    padding-left: var(--fam-mobile-edge-padding); /* Mobile padding (24px) */
    padding-right: var(--fam-mobile-edge-padding);
  }

  .build-with-us-section .btn {
    margin-left: var(--fam-mobile-edge-padding); /* Align button with content on mobile */
    /* Removed padding-left and padding-right */
  }

  .build-with-us-headline {
    font-size: 28px;
    line-height: 36px;
  }
}
