/* ============================================================
   College for Creative Change — Website V1
   Modern semantic HTML + CSS, no framework, no tables, no JS.
   ============================================================ */

:root {
  --ccc-gold: #d89a2b;
  --ccc-charcoal: #292724;
  --ccc-white: #ffffff;
  --ccc-warm-white: #f5eee2;
  --ccc-focus: #fff0a8;
  --ccc-footer: #242220;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  color: var(--ccc-charcoal);
  background: #d8c6a8;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.nowrap {
  white-space: nowrap;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 1rem;
  top: -6rem;
  padding: 0.75rem 1rem;
  color: #ffffff;
  background: #111111;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* ============================================================
   ENTRANCE PAGE
   ============================================================ */

.entrance-body {
  background: #1f1f1f;
}

.entrance-page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.entrance-image {
  width: 100%;
  height: 100vh;
  height: 100svh;
  object-fit: cover;
  object-position: center;
}

.entrance-page::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 24%;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.16));
}

.enter-link {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(1.5rem, 4vh, 3.25rem);
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 7rem;
  padding: 0.65rem 1.1rem;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.18em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.enter-text {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  font-weight: 600;
}

.enter-arrow {
  margin-top: 0.1rem;
  font-size: 1.35rem;
  line-height: 0.8;
}

.enter-link:hover .enter-text {
  text-decoration: underline;
  text-underline-offset: 0.35rem;
}

/* ============================================================
   SHARED HEADER
   ============================================================ */

.site-header {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.2rem 1.5rem;
  pointer-events: none;
}

.brand-link,
.menu-link {
  pointer-events: auto;
}

.site-logo {
  width: min(21rem, 31vw);
  min-width: 13rem;
  height: auto;
  filter: brightness(0) invert(1);
  filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0,0,0,0.35));
}

.menu-link {
  padding: 0.5rem 0.75rem;
  color: #ffffff;
  background: rgba(32, 29, 25, 0.56);
  border-radius: 0.25rem;
  font-size: 1rem;
  text-decoration: none;
}

.menu-link:hover {
  text-decoration: underline;
}

/* ============================================================
   INSIDE CCC — DESKTOP / LARGE TABLET
   The image is never freely cropped here. The clickable circles
   are tied to exact percentage coordinates on the 1672x941 image.
   ============================================================ */

.inside-ccc {
  background: #d8c6a8;
}

.scene-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1672 / 941;
  overflow: hidden;
  background: #d8c6a8;
}

.interior-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Welcome copy sits entirely in the clear wall area and ends
   before the first circular portal begins. */
.welcome-copy {
  position: absolute;
  z-index: 5;
  left: 24.3%;
  top: 15.2%;
  width: 20.5%;
  color: #312d27;
  text-shadow: 0 1px 0 rgba(255,255,255,0.15);
}

.welcome-small {
  margin: 0 0 0.15em;
  font-size: clamp(1rem, 1.05vw, 1.12rem);
}

.welcome-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.55vw, 3rem);
  font-weight: normal;
  line-height: 1.02;
}

.values {
  margin: 0.8em 0 0.7em;
  padding-top: 0.65em;
  border-top: 2px solid rgba(95, 72, 40, 0.38);
  font-size: clamp(0.875rem, 1.05vw, 1.125rem);
  line-height: 1.38;
}

.welcome-intro,
.curiosity-hook {
  margin: 0;
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.46;
}

.curiosity-hook {
  margin-top: 0.85em;
  padding-top: 0.78em;
  border-top: 1px solid rgba(95, 72, 40, 0.23);
}

/* The portal anchors match the actual circular openings.
   Coordinates were measured from the approved 1672 x 941 image. */

.portal-nav {
  position: absolute;
  z-index: 7;
  inset: 0;
  pointer-events: none;
}

.portal {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  text-align: center;
  pointer-events: auto;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.95),
    0 0 8px rgba(0,0,0,0.45);
}

/* Soft transparent disk improves legibility without hiding the view. */
.portal::before {
  content: "";
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  background: rgba(29, 27, 23, 0.26);
  transition: background-color 160ms ease, transform 160ms ease;
}

.portal:hover::before {
  background: rgba(29, 27, 23, 0.48);
  transform: scale(1.025);
}

.portal-label {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 80%;
  font-size: clamp(0.78rem, 1.18vw, 1.25rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

/* ABOUT: centre 965.4,138.6 / radius 116.4 */
.portal-about {
  left: 57.739%;
  top: 14.729%;
  width: 13.923%;
}

/* PEOPLE: centre 1210.2,263.4 / radius 95.4 */
.portal-people {
  left: 72.380%;
  top: 27.991%;
  width: 11.411%;
}

/* WHAT'S DEVELOPING: same centre, click-circle diameter reduced by 30%. */
.portal-developing {
  left: 51.998%;
  top: 44.825%;
  width: 11.1629%;
}

/* KEEP IN TOUCH: centre 1008.6,564.6 / radius 86.04 */
.portal-keep {
  left: 60.323%;
  top: 60.000%;
  width: 10.292%;
}

/* CONTACT: centre 1241.4,540.6 / radius 88.44 */
.portal-contact {
  left: 74.246%;
  top: 57.450%;
  width: 10.579%;
}

/* ============================================================
   MOBILE / NARROW SCREEN FALLBACK
   At 75rem and below, the architectural image remains visible, but the
   navigation becomes ordinary readable links. This avoids making
   users decipher tiny portals on a portrait screen.
   ============================================================ */

.mobile-content {
  display: none;
}

@media (max-width: 900px) {
  .site-header {
    position: relative;
    padding: 0.9rem 1rem;
    background: #26231f;
  }

  .site-logo {
    width: min(17rem, 65vw);
    min-width: 0;
  }
}

/* Switch reception to the readable stacked layout before larger
   welcome text crowds the furniture or circular links. Other pages
   retain their existing 900px header breakpoint. */
@media (max-width: 75rem) {
  .home-body .site-header {
    position: relative;
    padding: 0.9rem 1rem;
    background: #26231f;
  }

  .home-body .site-logo {
    width: min(17rem, 65vw);
    min-width: 0;
  }

  .scene-wrap {
    aspect-ratio: auto;
    overflow: visible;
  }

  .interior-image {
    width: 100%;
    height: auto;
  }

  .welcome-copy,
  .portal-nav {
    display: none;
  }

  .mobile-content {
    display: block;
    padding: 2rem 1rem 2.4rem;
    background: var(--ccc-warm-white);
  }

  .mobile-content > * {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
  }

  .mobile-welcome-small {
    margin-bottom: 0.15rem;
  }

  .mobile-content h1 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 9vw, 3.5rem);
    font-weight: normal;
    line-height: 1.05;
  }

  .mobile-values {
    padding-top: 0.8rem;
    border-top: 2px solid rgba(95, 72, 40, 0.35);
    font-weight: 600;
  }

  .mobile-portal-nav {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.75rem;
  }

  .mobile-portal-nav a {
    display: block;
    padding: 1rem 1.1rem;
    background: #302c27;
    color: #ffffff;
    text-decoration: none;
    border-left: 4px solid var(--ccc-gold);
  }

  .mobile-portal-nav a:hover {
    text-decoration: underline;
  }

  .mobile-portal-nav span {
    display: block;
    margin-top: 0.15rem;
    color: #e8ddcb;
    font-size: 0.88rem;
  }
}

/* ============================================================
   FOOTER / ACCESSIBLE CONVENTIONAL NAVIGATION
   ============================================================ */

.site-footer {
  padding: 1rem 1.5rem 1.1rem;
  color: #ffffff;
  background: var(--ccc-footer);
  font-size: 0.92rem;
}

.footer-nav,
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 1.35rem;
}

.site-footer a {
  color: #ffffff;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2rem;
}

.legal-nav {
  margin-top: 0.85rem;
  font-size: 0.86rem;
}

.copyright {
  margin: 0.9rem 0 0;
  text-align: center;
  color: #dedbd4;
  font-size: 0.82rem;
}

/* ============================================================
   ACCESSIBILITY STATES
   ============================================================ */

.enter-link:focus-visible,
.portal:focus-visible,
.site-header a:focus-visible,
.site-footer a:focus-visible,
.mobile-portal-nav a:focus-visible {
  outline: 3px solid var(--ccc-focus);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
