/**
 * Walters Construction FL — NSB Atlantic Avenue Feature Section
 *
 * Showcases the company's New Smyrna Beach Atlantic Avenue expertise.
 * Full-width section with deep navy background for clear visual separation
 * from the adjacent pillar cards section.
 *
 * Layout: image + content side-by-side on desktop, stacked on mobile.
 *
 * Depends on styles/variables.css for brand tokens.
 */

/* ─────────────────────────────────────────────────────────────────────────────
   SECTION WRAPPER
   Full-width with brand primary background (--color-primary: #02245e).
   ───────────────────────────────────────────────────────────────────────────── */
.nsb-section {
  background-color: var(--color-primary);
  color: var(--color-white);
  width: 100%;
}

/* ─────────────────────────────────────────────────────────────────────────────
   TWO-COLUMN LAYOUT
   Mobile: image above, content below.
   Desktop (768px+): image occupies 60% left, content 40% right.
   ───────────────────────────────────────────────────────────────────────────── */
.nsb-layout {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "image"
    "content";
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .nsb-layout {
    grid-template-columns: 3fr 2fr;
    grid-template-areas: "image content";
    min-height: 480px;
  }
}

@media (min-width: 1024px) {
  .nsb-layout {
    min-height: 560px;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   IMAGE PANEL
   Reserves space with aspect-ratio on mobile to prevent layout shift.
   On desktop, stretches to fill the grid row height.
   ───────────────────────────────────────────────────────────────────────────── */
.nsb-image-panel {
  grid-area: image;
  position: relative;
  overflow: hidden;
  /* Reserves space before the image loads — prevents cumulative layout shift */
  aspect-ratio: 16 / 9;
}

@media (min-width: 768px) {
  .nsb-image-panel {
    aspect-ratio: auto;
  }
}

.nsb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CONTENT PANEL
   ───────────────────────────────────────────────────────────────────────────── */
.nsb-content-panel {
  grid-area: content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-12) var(--content-padding);
}

@media (min-width: 768px) {
  .nsb-content-panel {
    padding: var(--space-12) var(--space-10);
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   TEXT CONTENT
   ───────────────────────────────────────────────────────────────────────────── */

/* Small label above the main heading — accent gold for warmth on dark bg */
.nsb-eyebrow {
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-widest);
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: var(--space-3);
}

.nsb-heading {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-3xl);
  color: var(--color-white);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-6);
}

@media (min-width: 1024px) {
  .nsb-heading {
    font-size: var(--font-size-4xl);
  }
}

.nsb-body {
  font-family: var(--font-family-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  /* Slightly reduced opacity to distinguish from heading on dark bg */
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-8);
}

/* ─────────────────────────────────────────────────────────────────────────────
   CTA BUTTON
   White outline style — visible on dark navy background.
   Fills white on hover for clear interactive feedback.
   ───────────────────────────────────────────────────────────────────────────── */
.nsb-cta {
  display: inline-block;
  padding: var(--space-3) var(--space-8);
  border: 2px solid var(--color-white);
  border-radius: 0.25rem;
  color: var(--color-white);
  font-family: var(--font-family-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease;
  white-space: nowrap;
}

.nsb-cta:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

.nsb-cta:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  background-color: var(--color-white);
  color: var(--color-primary);
}
