
/* Caryana static homepage prototype */

:root {
  --content-width: 1240px;
  --page-gutter: clamp(1rem, 3vw, 2.5rem);
  --card-gap: 1.1rem;
  --card-radius: 5px;
  --menu-background: #26352b;
  --menu-text: #ffffff;
  --page-background: #f7f6f1;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-background);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #252525;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
}

/* Fixed photograph: it stays stationary as the page scrolls. */
.fixed-banner {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    url("/wp-content/uploads/cropped-OLGrainbowEdit_Denoise-scaled-1.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 45%;
  background-color: #b9d8e8;
}

/* Transparent photographic header.
   The menu rests at the bottom of the initial viewport. */
.site-header {
  min-height: calc(100vh - 90px);
  min-height: calc(100svh - 90px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 2rem;
}

/* Logo sits over the darker lower portion of the photograph.
   Its left edge aligns with the first menu item. */
.brand-area {
  width: 100%;
  max-width: var(--content-width);
  margin: auto auto 0;
  padding: 1rem var(--page-gutter);
  background: transparent;
}

.brand-link {
  display: inline-block;
  line-height: 0;
}

.brand-logo {
  display: block;
  width: min(300px, 75vw);
  height: auto;
}

/* Solid menu bar */
.main-menu {
  width: 100%;
  background: var(--menu-background);
  color: var(--menu-text);
}

.menu-inner {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}

.menu-inner a {
  display: block;
  padding: 0.9rem 0.8rem;
  color: var(--menu-text);
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  line-height: 1.4;
}

.menu-inner a:first-child {
  padding-left: 0;
}

.menu-inner a:hover,
.menu-inner a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Solid scrolling content begins below the header. */
.page-content {
  position: relative;
  z-index: 1;
  min-height: 50vh;
  padding: 1.5rem var(--page-gutter) 0;
  background: var(--page-background);
}

/* Announcement panel: grows naturally with its contents. */
.intro {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 2.5rem;
  padding: 1.5rem clamp(1rem, 3vw, 2rem);
  background: #ffffff;
  border-radius: 4px;
}

.intro h1 {
  margin-top: 0;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

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

/* Five picture-buttons */
.picture-nav {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--card-gap);
}

.picture-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  background: #354a32;
  border-radius: var(--card-radius);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.picture-card:hover,
.picture-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.25);
}


/* Photograph area: clips zoomed images without affecting labels */
.picture-image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  flex-shrink: 0;
}

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

/* Label below each photograph */
.picture-label {
  display: flex;
  flex: 1;
  min-height: 3.4rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.45rem;
  background: rgba(33, 56, 35, 0.96);
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
  font-weight: 700;
}


.site-footer {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto 0;
  padding: 1.25rem 0;
  text-align: center;
  color: #555555;
  background: #fff;
}

/* Tablet */
@media (max-width: 900px) {
  .menu-inner a {
    padding: 0.75rem 0.6rem;
  }

  .picture-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Phone */
@media (max-width: 560px) {
  .site-header {
    min-height: calc(100vh - 70px);
    min-height: calc(100svh - 70px);
  }

  .fixed-banner {
    background-position: 34% 45%;
  }

  .brand-area {
    padding: 1rem 1.1rem;
  }

  .brand-logo {
    width: min(260px, 75vw);
  }

  .menu-inner {
    padding: 0 0.8rem;
  }

  .menu-inner a {
    padding: 0.65rem 0.55rem;
    font-size: 0.85rem;
  }

  .menu-inner a:first-child {
    padding-left: 0;
  }

  .page-content {
    padding: 1rem 0.8rem 0;
  }

  .intro {
    margin-bottom: 1.25rem;
    padding: 1.1rem;
  }

  .picture-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

  .picture-image {
    aspect-ratio: 4 / 5;
  }

  .picture-card span {
    min-height: 3.2rem;
    font-size: 0.95rem;
  }
}

/* Respect visitors who prefer less animation. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .picture-card {
    transition: none;
  }

  .picture-card:hover,
  .picture-card:focus-visible {
    transform: none;
  }
}

.main-menu {
  position: relative;
}

.menu-inner a.current-page {
  color: #e4c36a;
}

.menu-down {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #e4c36a;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem;
}

.menu-down:hover,
.menu-down:focus-visible {
  color: #f2d98f;
}

.menu-inner {
  padding-right: 3rem;
}

@media (max-width: 560px) {
  .menu-down {
    right: 0.2rem;
  }

  .menu-inner {
    padding-right: 2.2rem;
  }
}



/* Individual picture-button crops */

/* 1. Divine Office: close-up of crucifix, with tabernacle below */
.divine-office img {
  transform: translate(15px, 45px) scale(2.0);
  transform-origin: center center;
}

/* 2. Winnowing Fan: cross framed by a little tree foliage */
.winnowing-fan img {
  transform: translate(10px, -22px) scale(2.5);
  transform-origin: center center;
}

/* 3. Media Page: tabernacle centered, cherubim visible */
.media-page img {
  transform: translate(18px, 50px) scale(1.4);
  transform-origin: center center;
  object-position: 50% 20%;
}

/* 4. Blog: keep the crop you already like */
.blog-card img {
  transform: scale(1.35);
  transform-origin: center center;
  object-position: 40% 50%;
}

/* 5. Caryana.org: Our Lady, cropped from around the waist up */
.caryana-card img {
  transform: translate(5%, 34%) scale(1.7);
  transform-origin: center center;
  object-position: 50% 35%;
}

/* Improve logo contrast on mobile */
@media (max-width: 560px) {
  .brand-area {
    display: table;
    width: auto;
    margin-left: var(--page-gutter);
    padding: 0.75rem 1rem;
    background: rgba(20, 30, 24, 0.82);
    border-radius: 6px;
  }
}
