
/* ==========================================================================
   FOOTPRINTS MEDIA · FINAL TYPOGRAPHY / ALIGNMENT POLISH
   Loaded last. Visual-only corrections for the luxury redesign.
   ========================================================================== */
:root {
  --lux-content: 1320px;
  --lux-gutter: clamp(18px, 3vw, 42px);
  --lux-section-y: clamp(88px, 9vw, 132px);
}

html {
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', Arial, sans-serif !important;
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.hero-title, .section-title, .service-title, .project-title,
.blog-card h3, .cta-title, .step-title, .footer-logo,
.nav-link, .mobile-nav-link, .btn {
  font-family: 'Outfit', 'Inter', Arial, sans-serif !important;
  font-synthesis: none;
}

p, li, a, button, input, textarea, select {
  font-synthesis: none;
}

.container {
  width: min(var(--lux-content), calc(100% - (var(--lux-gutter) * 2))) !important;
  margin-inline: auto;
}

.section-padding {
  padding-block: var(--lux-section-y) !important;
}

/* Header alignment */
.site-header {
  width: min(var(--lux-content), calc(100% - 28px));
}
.header-container {
  min-height: 76px;
  padding-inline: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand-logo {
  width: 154px !important;
  flex: 0 0 auto;
}
.desktop-nav {
  margin-inline: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.1vw, 32px);
}
.nav-link {
  font-size: .78rem;
  line-height: 1;
  white-space: nowrap;
}
.header-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.header-actions .btn {
  white-space: nowrap;
  min-height: 48px;
}

/* Hero rhythm */
.hero-section {
  padding-top: 128px;
}
.hero-content {
  width: min(100%, 800px);
}
.hero-title {
  font-weight: 700 !important;
  font-size: clamp(3.65rem, 6.8vw, 7.5rem) !important;
  line-height: .91 !important;
  letter-spacing: -.055em !important;
  max-width: 820px;
  text-wrap: balance;
}
.hero-description {
  max-width: 650px;
  line-height: 1.72;
  text-wrap: pretty;
}
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Consistent section headings */
.section-header {
  width: min(100%, 900px);
  margin-inline: auto;
}
.section-title {
  font-weight: 650 !important;
  text-wrap: balance;
}
.section-text, .service-description, .project-desc, .footer-desc {
  text-wrap: pretty;
}

/* Cards: equal geometry and cleaner vertical rhythm */
.grid-2-cols, .grid-3-cols, .grid-4-cols {
  align-items: stretch;
}
.service-card, .project-card, .blog-card {
  min-width: 0;
}
.service-card {
  display: flex;
  flex-direction: column;
}
.service-card .service-link {
  margin-top: auto;
}
.project-image {
  aspect-ratio: 16 / 10;
}
.project-meta {
  min-height: 190px;
}
.blog-card {
  display: flex;
  flex-direction: column;
}
.blog-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.blog-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Stats */
.stats-grid {
  align-items: stretch;
}
.stat-item {
  min-width: 0;
  padding-inline: clamp(18px, 3vw, 42px);
}
.stat-number {
  font-family: 'Outfit', 'Inter', Arial, sans-serif !important;
  font-weight: 650 !important;
}

/* Process */
.process-timeline {
  align-items: stretch;
}
.process-step {
  min-width: 0;
  padding-inline: clamp(20px, 2.8vw, 40px);
}
.step-title {
  text-wrap: balance;
}

/* CTA */
.cta-title {
  max-width: 900px;
  margin-inline: auto;
  text-wrap: balance;
}

/* Footer */
.footer-top {
  column-gap: clamp(24px, 4vw, 72px);
  row-gap: 44px;
}
.footer-col {
  min-width: 0;
}
.footer-links a, .footer-contact-info a {
  overflow-wrap: anywhere;
}

/* Prevent accidental horizontal overflow from decorative layers */
.hero-section, .comparison-section, .services-section, .stats-section,
.process-section, .testimonials-section, .cta-section, .site-footer,
.about-hero-section, .services-hero-section, .team-hero-section,
.contact-hero-section, .blog-hero, .blog-section {
  max-width: 100%;
  overflow-x: clip;
}

/* Tablet */
@media (max-width: 980px) {
  .site-header {
    width: calc(100% - 24px);
  }
  .header-container {
    min-height: 68px;
    padding-inline: 18px;
  }
  .brand-logo { width: 145px !important; }
  .hero-section { padding-top: 112px; }
  .hero-title {
    max-width: 760px;
    font-size: clamp(3.45rem, 8.8vw, 6.2rem) !important;
  }
  .hero-description { max-width: 680px; }
  .section-header { width: min(100%, 760px); }
}

@media (max-width: 760px) {
  :root { --lux-gutter: 16px; }
  .container { width: min(100% - 32px, 680px) !important; }
  .header-container { padding-inline: 14px; }
  .brand-logo { width: 132px !important; }
  .hero-section {
    min-height: 92svh;
    padding-top: 108px;
    padding-bottom: 72px;
  }
  .hero-content { width: 100%; }
  .hero-title {
    max-width: 100%;
    font-size: clamp(2.9rem, 13.7vw, 5.2rem) !important;
    line-height: .93 !important;
    letter-spacing: -.05em !important;
  }
  .hero-description {
    max-width: 580px;
    font-size: .97rem;
    line-height: 1.65;
  }
  .hero-cta-group {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta-group .btn { width: 100%; }
  .section-header { width: 100%; }
  .section-title {
    font-size: clamp(2.45rem, 10.8vw, 4rem) !important;
    line-height: .98 !important;
  }
  .comparison-section .service-card { min-height: 320px; }
  .project-meta { min-height: 0; }
  .blog-card-image, .project-image { aspect-ratio: 16 / 10; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { padding-block: 26px; }
  .stat-number { font-size: clamp(2.8rem, 11vw, 4rem) !important; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 24px) !important; }
  .site-header { width: calc(100% - 16px); }
  .header-container { min-height: 62px; padding-inline: 10px; }
  .brand-logo { width: 126px !important; }
  .mobile-menu-toggle { width: 42px; height: 42px; }
  .hero-section { padding-top: 96px; }
  .hero-title { font-size: clamp(2.7rem, 14.6vw, 4.25rem) !important; }
  .hero-subtitle, .section-label, .section-eyebrow {
    font-size: .64rem;
    letter-spacing: .13em;
  }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-left: 0 !important; border-bottom: 1px solid var(--lux-line-dark); }
  .stat-item:last-child { border-bottom: 0; }
  .footer-top { padding-block: 62px 36px; }
}

/* ==========================================================================\n   STABILITY PASS · TYPOGRAPHY / HOVER / IMAGE FRAMES\n   ========================================================================== */

/* Use the bundled brand font as a deterministic fallback. External webfonts\n   should enhance the page, never determine whether the layout is stable. */
@font-face {
  font-family: 'Footprints Sans';
  src: url('../fonts/Uniform/Uniform.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Footprints Sans';
  src: url('../fonts/Uniform/Uniform Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Footprints Sans';
  src: url('../fonts/Uniform/Uniform Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Footprints Sans';
  src: url('../fonts/Uniform/Uniform Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: 'Footprints Sans', Inter, Arial, sans-serif !important;
}

h1, h2, h3, h4, h5, h6,
.hero-title, .section-title, .service-title, .project-title,
.blog-card h3, .cta-title, .step-title, .footer-logo,
.nav-link, .mobile-nav-link, .btn, .stat-number {
  font-family: 'Footprints Sans', Inter, Arial, sans-serif !important;
}

/* The old nav used a second text layer that made labels disappear/change\n   colour during hover. Luxury nav now uses one stable text layer + underline. */
.nav-link,
.nav-links a.nav-link {
  color: #242320 !important;
  overflow: visible !important;
  transition: color .25s ease !important;
}
.nav-link::before {
  content: none !important;
  display: none !important;
}
.nav-link::after {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  right: auto !important;
  bottom: -8px !important;
  width: 100% !important;
  height: 2px !important;
  background: var(--lux-orange) !important;
  transform: scaleX(0) !important;
  transform-origin: right center !important;
  transition: transform .3s cubic-bezier(.16,1,.3,1) !important;
}
.nav-link:hover,
.nav-link.active {
  color: var(--lux-orange) !important;
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1) !important;
  transform-origin: left center !important;
}

/* Keep normal text links from inheriting transform effects intended for cards. */
.text-link,
.footer-links a,
.footer-contact-info a,
.mobile-menu-email,
.mobile-menu-phone,
.service-link {
  transform: none !important;
}

/* Image frames: every media box owns the crop, while the image fills it. */
.image-reveal,
.service-visual,
.project-image,
.project-image-link,
.blog-card-image,
.team-img-wrapper,
.team-image-wrapper,
.image-wrapper {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.service-visual {
  min-height: 320px;
  background: #e8e1d7;
  border-radius: var(--lux-radius) !important;
}
.service-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center;
}

.project-image {
  background: #ddd6cc;
}
.project-image img,
.blog-card-image img,
.image-wrapper img,
.team-img-wrapper img,
.team-image-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}

/* Portraits need a stable crop. Do not combine the old parallax movement with\n   a tight portrait frame. */
.team-grid-section .project-image img,
.team-img-wrapper img,
.team-image-wrapper img {
  object-fit: cover;
  object-position: center 20%;
  transform: none !important;
}
.team-grid-section .project-card:hover .project-image img,
.team-card:hover .team-img-wrapper img {
  transform: scale(1.025) !important;
}

/* Controlled image hover, not the aggressive multi-layer transforms from the\n   original stylesheet. */
.service-visual img,
.project-image img,
.blog-card-image img,
.about-image img,
.image-wrapper img {
  transition: transform .55s cubic-bezier(.16,1,.3,1) !important;
}
.service-visual:hover img,
.project-card:hover .project-image img,
.blog-card:hover .blog-card-image img,
.about-image:hover img,
.image-wrapper:hover img {
  transform: scale(1.025) !important;
}

/* Cards should lift, text should not independently jump. */
.service-card,
.project-card,
.blog-card,
.team-card,
.process-step,
.glass-card {
  transform-origin: center center;
  backface-visibility: hidden;
}
.service-card:hover .service-title,
.service-card:hover .service-description,
.project-card:hover .project-title,
.project-card:hover .project-desc,
.blog-card:hover h3,
.blog-card:hover p {
  transform: none !important;
  color: inherit;
}

/* Prevent animated reveal state from leaving ghosting/blank image boxes. */
.image-reveal[style*="clip-path"] {
  clip-path: none !important;
}

/* Cleaner focus state for keyboard users. */
:where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--lux-orange) !important;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .service-visual,
  .service-visual img { min-height: 260px; }
  .project-image { min-height: 0; }
  .project-image img { object-position: center 18%; }
  .blog-card-image { aspect-ratio: 16 / 10 !important; }
}

@media (prefers-reduced-motion: reduce) {
  .service-visual img,
  .project-image img,
  .blog-card-image img,
  .about-image img,
  .image-wrapper img {
    transition: none !important;
  }
}

/* Social links in the global footer */
.footer-socials {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    color: rgba(255, 255, 255, .68) !important;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: .01em;
    text-decoration: none !important;
    transition: color .25s ease, transform .25s ease;
}

.footer-social-link svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-social-link svg .fill-dot {
    fill: currentColor;
    stroke: none;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
    color: var(--lux-orange) !important;
    transform: translateX(4px);
}

.footer-social-link:focus-visible {
    outline: 2px solid var(--lux-orange);
    outline-offset: 4px;
    border-radius: 4px;
}

@media (max-width: 700px) {
    .footer-socials {
        margin-top: 16px;
    }

    .footer-social-link {
        font-size: .75rem;
    }
}

/* ------------------------------------------------------------------
   Hover text stability fix
   ------------------------------------------------------------------
   Keep hover animations from changing text into the same colour as
   their background. Decorative/interactive transforms belong to the
   container, while the label itself keeps a readable contrast.
*/

/* Process timeline: the orange hover disc must keep its number white. */
.process-step:hover .step-number,
.process-step:focus-within .step-number {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* Never use the old text-swap trick anywhere outside the navigation. */
main .nav-link::before,
footer .nav-link::before {
    content: none !important;
    display: none !important;
}

/* Stable text for common hoverable content blocks. */
.service-card:hover .service-title,
.service-card:hover .service-description,
.project-card:hover .project-title,
.project-card:hover .project-desc,
.blog-card:hover h3,
.blog-card:hover p,
.process-step:hover .step-title,
.process-step:hover p,
.team-card:hover h3,
.team-card:hover p,
.trust-item:hover h4,
.stat-item:hover .stat-label {
    transform: none !important;
    opacity: 1 !important;
}

/* Explicitly prevent accidental transparent text during hover.
   Gradient headlines are intentionally excluded. */
.nav-links a:hover,
.mobile-nav-link:hover,
.service-link:hover,
.footer-links a:hover,
.footer-contact-info a:hover,
.footer-social-link:hover,
.product-card:hover a,
.product-back:hover {
    -webkit-text-fill-color: currentColor;
}
