/* --- Begin About Us Page Styles --- */

/* House styling shared with closet_systems.htm / 15inch_deep_shelving_and_closets.htm */
:root {
  --story-radius: 10px;
  --story-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  --story-gap: 28px;
  --story-ink: #333;
  --story-accent: #6b4226;
  --story-rule: #e4ded5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* ============================================================
   STORY SECTIONS  (How we make solid wood closets & shelving)
   ============================================================ */

.story {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--story-ink);
}

.story-lede {
  max-width: 820px;
  margin: 0 auto 10px;
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #444;
}

.story-section {
  padding: 46px 0;
  border-bottom: 1px solid var(--story-rule);
}

.story-section:last-of-type {
  border-bottom: 0;
}

.story-heading {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--story-accent);
  margin: 0 0 14px;
  line-height: 1.25;
}

.story-body p {
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 16px;
}

.story-body p:last-child {
  margin-bottom: 0;
}

/* Text centred above a media row */
.story-intro {
  max-width: 860px;
  margin: 0 auto 30px;
  text-align: center;
}

/* ---- Alternating text / single image rows ---- */
.story-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Image on the right by default; .reverse puts it on the left */
.story-split.reverse .story-split-media {
  order: -1;
}

/* ---- Media: rounded + shadowed, never distorted ---- */
.story-figure {
  margin: 0;
}

.story-figure img,
.story-figure video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--story-radius);
  box-shadow: var(--story-shadow);
  background: #f0ede6;
}

.story-caption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #777;
  text-align: center;
  font-style: italic;
}

/* ---- Media row that lines items up to EQUAL HEIGHT ----
   Each item carries --ar (its true width/height). Giving flex-grow the
   value of --ar against a 0 basis makes every item's width proportional
   to its own aspect ratio, so the rendered heights come out identical
   while each file keeps its native shape. Nothing is cropped or squashed
   — this is what lets the vertical sawmill clip (9:16) sit flush beside
   a landscape photo. */
.story-media-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--story-gap);
  align-items: flex-start;
  justify-content: center;
}

.story-media-row > .story-figure {
  flex: var(--ar, 1) 1 0;
  min-width: 0;
}

/* ---- Comparison callout (melamine vs. solid wood) ---- */
.story-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 26px auto 0;
  max-width: 860px;
}

.story-compare-cell {
  padding: 20px 22px;
  border-radius: var(--story-radius);
  box-shadow: var(--story-shadow);
  background: #f8f8f8;
  text-align: center;
}

.story-compare-cell.is-lundia {
  background: #f3efe8;
  border: 1px solid #ddd2c2;
}

.story-compare-label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a8a8a;
  margin-bottom: 8px;
}

.story-compare-cell.is-lundia .story-compare-label {
  color: var(--story-accent);
}

.story-compare-number {
  display: block;
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.1;
  color: #555;
}

.story-compare-cell.is-lundia .story-compare-number {
  color: var(--story-accent);
}

.story-compare-note {
  display: block;
  margin-top: 8px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #555;
}

/* ---- Pull quote / emphasis line ---- */
.story-pull {
  margin: 24px auto 0;
  max-width: 860px;
  padding: 18px 22px;
  border-left: 4px solid var(--story-accent);
  border-radius: var(--story-radius);
  box-shadow: var(--story-shadow);
  background: #f3efe8;
  font-size: 1.08rem;
  line-height: 1.6;
  color: #40301f;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .story-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Keep the image under its text on every alternating row */
  .story-split.reverse .story-split-media {
    order: 0;
  }

  .story-section {
    padding: 34px 0;
  }

  .story-heading {
    font-size: 1.4rem;
  }
}

@media (max-width: 760px) {
  /* Stack media pairs and centre them. The vertical video is capped so it
     cannot run away down a phone screen. */
  .story-media-row {
    flex-direction: column;
    align-items: center;
  }

  .story-media-row > .story-figure {
    flex: 1 1 auto;
    width: 100%;
    max-width: 520px;
  }

  .story-media-row > .story-figure.is-portrait {
    max-width: 320px;
  }

  .story-compare {
    grid-template-columns: 1fr;
  }

  .story-compare-number {
    font-size: 2rem;
  }

  .story-body p,
  .story-lede {
    font-size: 1rem;
  }
}

/* ============================================================
   EXISTING LOWER CONTENT — restyled to match the story above
   ============================================================ */

.text-block {
  flex: 1 1 100%;
  max-width: 820px;
  margin: 24px auto;
  text-align: center;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--story-ink);
}

.image-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 26px 0;
}

.image-row img {
  max-width: 100%;
  height: auto;
  flex: 0 1 auto;
  border-radius: var(--story-radius);
  box-shadow: var(--story-shadow);
}

/* The four vintage ads sit on one even row */
.image-row.is-ads img {
  flex: 1 1 200px;
  max-width: 245px;
}

.worldwide-links {
  text-align: center;
  margin-top: 30px;
}

.worldwide-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  text-align: center;
}

.worldwide-grid > div {
  padding: 14px 10px;
  border-radius: var(--story-radius);
  box-shadow: var(--story-shadow);
  background: #fff;
}

.worldwide-grid img {
  width: 100%;
  height: auto;
  max-height: 60px;
  object-fit: contain;
}

.worldwide-grid a {
  font-size: 12px;
  text-decoration: none;
  color: #2A5A6D;
  display: inline-block;
  margin-top: 8px;
}

.worldwide-grid a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .worldwide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .text-block {
    padding: 10px;
  }

  .image-row {
    flex-direction: column;
    align-items: center;
  }

  .worldwide-grid {
    grid-template-columns: 1fr;
  }
}
/* --- End About Us Page Styles --- */


/* ============================================================
   WOODCLOSETS.COM ADDITIONS
   ------------------------------------------------------------
   Everything above is copied unchanged from LundiaUSA. These
   rules cover what WoodClosets' own styles.css does not have.
   ============================================================ */

/* ---- Page title ----
   Same look as LundiaUSA's .page-header (defined in its styles.css),
   lined up with the 1200px story column below it. */
.page-header {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  color: #7a7a7a;
  max-width: 1200px;
  margin: 25px auto;
  padding: 0 20px;
  text-align: left;
}

/* ---- Original 1961 catalog (Flipsnack viewer) ----
   Styled to match the story sections: brown heading, rounded
   shadowed frame. The iframe height scales with screen width
   instead of the old fixed 480px. */
.catalog-section {
  max-width: 1000px;
  margin: 40px auto;
  padding-top: 36px;
  border-top: 1px solid var(--story-rule);
  text-align: center;
}

.catalog-heading {
  margin: 0 0 20px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--story-accent);
}

.catalog-frame {
  overflow: hidden;
  border-radius: var(--story-radius);
  box-shadow: var(--story-shadow);
  background: #f0ede6;
}

.catalog-frame iframe {
  display: block;
  width: 100%;
  height: clamp(300px, 56vw, 560px);
  border: 0;
}

/* ---- Responsive media safety net ----
   Nothing on this page can ever be wider than the screen. */
.story img,
.story video,
.container img,
.catalog-frame iframe {
  max-width: 100%;
}

.story img,
.story video,
.container img {
  height: auto;
}

/* ---- Tablets ---- */
@media (max-width: 900px) {
  .page-header {
    font-size: 1.7rem;
  }

  .catalog-heading {
    font-size: 1.4rem;
  }
}

/* ---- Phones ---- */
@media (max-width: 600px) {
  .page-header {
    font-size: 1.45rem;
    margin: 18px auto;
    padding: 0 16px;
    text-align: center;
  }

  .story {
    padding: 0 16px;
  }

  .container {
    padding: 16px;
  }

  .story-section {
    padding: 28px 0;
  }

  .story-heading,
  .catalog-heading {
    font-size: 1.25rem;
  }

  .story-compare-cell,
  .story-pull {
    padding: 16px;
  }

  .catalog-section {
    margin: 28px auto;
    padding-top: 26px;
  }

  .catalog-frame iframe {
    height: 340px;
  }

  /* Vintage ads two to a row instead of one huge ad per screen */
  .image-row.is-ads {
    flex-direction: row;
    gap: 12px;
  }

  .image-row.is-ads img {
    flex: 1 1 40%;
    max-width: 48%;
  }
}
