html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

*,
*::before,
*::after { box-sizing: border-box; }

img,
iframe { max-width: 100%; }

/* Layout helpers replicando globals.css */
.container-prose { max-width: 72rem; margin-left: auto; margin-right: auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.section { padding-top: 5rem; padding-bottom: 5rem; scroll-margin-top: 6rem; }
.section-title { font-family: 'Montserrat', sans-serif; font-size: 2rem; line-height: 1.2; font-weight: 800; color: #10243B; letter-spacing: -0.02em; text-transform: uppercase; }
@media (min-width: 768px) { .section-title { font-size: 2.75rem; line-height: 1.1; } }
.section-subtitle { color: #4b5563; margin-top: 1rem; font-size: 1.125rem; }

.card-premium { background: #ffffff; border: 1px solid rgba(15, 76, 151, 0.1); box-shadow: 0 4px 24px rgba(16, 36, 59, 0.04); border-radius: 0.25rem; }

.site-photo {
  aspect-ratio: 16 / 10;
  display: block;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.portfolio-image {
  display: block;
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
}

.contact-map iframe {
  display: block;
  min-height: 320px;
}

.footer-shell {
  background: #0A192F;
  color: #e2e8f0;
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}

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

.footer-heading {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #93c5fd;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a,
.footer-contact a,
.footer-contact span {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #94a3b8;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Reveal on scroll */
.animate-on-scroll { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.animate-on-scroll.in-view { opacity: 1; transform: translateY(0); }

/* Mobile menu helpers */
#mobile-menu.hidden { display: none; }

/* Blur utilities for hero shapes */
.blur-3xl { filter: blur(50px); }

/* Footer year placeholder handled via JS */

@media (max-width: 767px) {
  .section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .portfolio-image,
  .site-photo { aspect-ratio: 4 / 3; }
  .contact-map iframe { min-height: 280px; }
  .footer-shell { padding-top: 3.5rem; }
  #mobile-menu {
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
