/* ==========================================================================
   INTERIOLYFX - LAYOUT STYLESHEET
   Container, Header, Nav, Breadcrumbs, Footer, and Grid Layouts
   ========================================================================== */

/* Main Container Constraint */
.w {
  width: min(1180px, 90%);
  margin-inline: auto;
}

.w-narrow {
  width: min(840px, 90%);
  margin-inline: auto;
}

.w-prose {
  width: min(720px, 90%);
  margin-inline: auto;
}

/* Sections */
section {
  padding: 5.5rem 0;
}

.section-sm {
  padding: 3.5rem 0;
}

.section-lg {
  padding: 7rem 0;
}

/* Skip-to-content Link for WCAG Accessibility */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--m);
  color: var(--ink);
  padding: 10px 18px;
  font-weight: 700;
  border-radius: 6px;
  z-index: 1000;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 15px;
}

/* Header & Main Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 80;
  background-color: var(--bone);
  border-bottom: 2px solid var(--g);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo {
  font-family: var(--se);
  font-size: 1.75rem;
  text-decoration: none;
  color: var(--g);
  letter-spacing: -0.02em;
}

.logo i {
  color: var(--m);
  font-style: normal;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background-color: var(--m);
  color: var(--ink);
}

.nav-links a.btn:hover {
  background-color: var(--g);
  color: var(--bone);
}

/* Mobile Hamburger Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--g);
  line-height: 1;
  padding: 0.5rem;
  cursor: pointer;
}

/* Breadcrumbs Component */
.breadcrumbs {
  padding: 1.2rem 0;
  font-size: 0.92rem;
  color: var(--mut);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  align-items: center;
}

.breadcrumbs li + li::before {
  content: "→";
  margin-right: 0.5rem;
  color: var(--mut);
}

.breadcrumbs a {
  color: var(--g);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* Page Intro Block */
.page-intro {
  padding: 4rem 0 2.5rem;
}

.page-intro h1 {
  margin-bottom: 1.2rem;
}

.lead-p {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 58ch;
  color: var(--mut);
}

/* Footer */
footer {
  background-color: var(--g);
  color: var(--bone);
  padding: 5rem 0 2.5rem;
  overflow: hidden;
  border-top: 3px solid var(--m);
}

.footer-wordmark {
  font-family: var(--se);
  font-size: clamp(3.5rem, 14vw, 11rem);
  line-height: 0.9;
  color: var(--m);
  letter-spacing: -0.04em;
  margin-bottom: 3rem;
  user-select: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.5rem 1.5rem;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid rgba(241, 239, 232, 0.2);
  padding-bottom: 3rem;
}

.footer-col h4 {
  font-family: var(--se);
  color: var(--m);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: #d9dccf;
  text-decoration: none;
  font-size: 0.96rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--m);
  text-decoration: underline;
}

.footer-col p {
  color: #d9dccf;
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.9rem;
  color: #b8bdab;
}

.footer-legal-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
}

.footer-legal-links a {
  color: inherit;
  text-decoration: none;
}

.footer-legal-links a:hover {
  color: var(--bone);
  text-decoration: underline;
}

/* Floating WhatsApp Button */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 85;
  background-color: #25d366;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  color: #ffffff;
}

.wa-float svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background-color: var(--bone);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 5%;
    display: none;
    border-bottom: 2px solid var(--g);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.6rem 0;
    font-size: 1.15rem;
  }

  .nav-links a.btn {
    display: inline-block;
    width: auto;
    margin-top: 0.6rem;
  }

  footer {
    padding: 3.5rem 0 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
