/* ============================================
   ESTUDIO JURÍDICO ARCAL — Layout & Structure
   ============================================ */

/* ---- Container ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ---- Top contact strip ---- */
.strip {
  background: var(--garnet);
  height: var(--strip-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
}

.strip-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.3px;
}

.strip-item a {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  font-weight: 400;
  transition: color var(--dur-fast);
}

.strip-item a:hover { color: #fff; }

.strip-separator {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.25);
}

/* ---- Header / Navigation ---- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

/* Logo */
.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--garnet);
  letter-spacing: -0.3px;
  line-height: 1;
}

.logo-divider {
  width: 1px;
  height: 16px;
  background: var(--border);
  align-self: center;
}

.logo-descriptor {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  line-height: 1;
  align-self: center;
}

/* Nav links */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-secondary);
  text-decoration: none;
  padding: 6px 14px;
  position: relative;
  transition: color var(--dur-fast) var(--ease);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--garnet);
  transform: scaleX(0);
  transition: transform var(--dur-mid) var(--ease);
}

.nav-link:hover {
  color: var(--garnet);
}

.nav-link.active {
  color: var(--garnet);
}

.nav-link.active::after {
  transform: scaleX(1);
}

/* ---- Page hero banner ---- */
.page-hero {
  background: var(--garnet);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.02) 0px,
      rgba(255,255,255,0.02) 1px,
      transparent 1px,
      transparent 80px
    );
  pointer-events: none;
}

.page-hero h1,
.page-hero h2 {
  font-family: var(--font-display);
  color: #fff;
  margin-bottom: var(--space-md);
  position: relative;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

/* ---- Main content area ---- */
.page-content {
  padding: var(--space-2xl) var(--space-xl);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--space-sm);
}

.footer-address {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.9;
  margin-bottom: var(--space-md);
}

.footer-address a {
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-body);
}

.footer-address a:hover { color: rgba(255,255,255,0.9); }

.footer-copy {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.5px;
}

/* ---- Two-column layout ---- */
.layout-2col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-2xl);
  align-items: start;
}

.layout-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* ---- Sticky sidebar card ---- */
.sidebar-sticky {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-xl));
}

/* ---- Mobile hamburger (hidden by default) ---- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--dur-mid) var(--ease), opacity var(--dur-mid);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .layout-2col {
    grid-template-columns: 1fr 300px;
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  .container,
  .page-content,
  .page-hero {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }

  .header-inner {
    padding: 0 var(--space-lg);
  }

  .strip { display: none; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: var(--space-md) 0;
    gap: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  }

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

  .nav-link {
    width: 100%;
    padding: 12px var(--space-xl);
  }

  .nav-link::after { display: none; }

  .nav-toggle { display: flex; }

  .layout-2col,
  .layout-3col {
    grid-template-columns: 1fr;
  }

  .sidebar-sticky {
    position: static;
  }
}
