/* =========================================================
   KRO CAFÉ — GLOBAL CSS
   Shared across every page
   ========================================================= */

:root {
  --ink: #0A0908;
  --espresso: #1C120D;
  --gold: #B18A4C;
  --beige: #D8C19A;
  --cream: #F2EBDD;
  --tobacco: #6A432B;

  --heading-font: "Playfair Display", serif;
  --body-font: "Montserrat", sans-serif;
  --nav-font: "Montserrat", sans-serif;
  --button-font: "Montserrat", sans-serif;
}


/* =========================================================
   BASE
   ========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  width: 100%;
  color: var(--cream);
  background: var(--ink);
  font-family: var(--body-font);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: .05;

  background-image:
    radial-gradient(
      rgba(242,235,221,.8) .55px,
      transparent .7px
    );

  background-size: 5px 5px;
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

.display {
  font-family: var(--heading-font);
}

.eyebrow {
  color: var(--gold);
  font-family: var(--body-font);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  width: 100%;

  background: rgba(10,9,8,.72);

  border-bottom: 1px solid rgba(177,138,76,.20);

  backdrop-filter: blur(14px);

  transition:
    background .3s ease,
    box-shadow .3s ease,
    border-color .3s ease;
}

.site-header.scrolled {
  background: rgba(10,9,8,.96);

  box-shadow:
    0 10px 35px rgba(0,0,0,.35);

  border-color: rgba(177,138,76,.30);
}


/* =========================================================
   HEADER BRAND
   ========================================================= */

.site-brand {
  display: flex;
  align-items: center;
  gap: 13px;

  color: var(--beige);
  text-decoration: none;
}

.site-brand-logo {
  display: block;

  width: 45px;
  height: 45px;

  object-fit: cover;
  border-radius: 50%;
}

.site-brand-name {
  color: var(--beige);

  font-family: var(--heading-font);

  font-size: 21px;
  line-height: 1;

  font-weight: 700;

  letter-spacing: .13em;

  white-space: nowrap;
}


/* =========================================================
   NAV
   ========================================================= */

.site-link {
  color: var(--cream) !important;

  border-bottom: 1px solid transparent;

  transition:
    color .2s ease,
    border-color .2s ease;
}

.site-link:hover,
.site-link.active {
  color: var(--gold) !important;
  border-color: var(--gold);
}

.nav-link {
  font-family: var(--nav-font);

  font-size: .62rem;

  font-weight: 700;

  letter-spacing: .15em;

  text-transform: uppercase;
}


/* =========================================================
   ACTIVE NAV
   SINGLE GOLD LINE
   ========================================================= */

.nav-link.active {
  position: relative;
}

/*
   IMPORTANT:
   No ::after here.

   The single underline comes from:
   .site-link.active { border-color: var(--gold); }
*/

.nav-link.active::after {
  display: none;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.gold-button {
  background: var(--gold);

  color: var(--ink);

  box-shadow:
    0 0 25px rgba(177,138,76,.22);

  transition:
    transform .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}

.gold-button:hover {
  background: var(--beige);

  transform: translateY(-1px);

  box-shadow:
    0 10px 25px rgba(177,138,76,.18);
}


/* =========================================================
   MOBILE MENU
   ========================================================= */

.mobile-menu {
  max-height: 0;

  overflow: hidden;

  opacity: 0;

  transition:
    max-height .35s ease,
    opacity .25s ease;
}

.mobile-menu.open {
  max-height: 28rem;

  opacity: 1;
}


/* =========================================================
   GENERAL LINKS / FOCUS
   ========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--beige);
  outline-offset: 4px;
}


/* =========================================================
   IMAGES
   ========================================================= */

.image-shade {
  position: relative;
}

.image-shade::after {
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      0deg,
      rgba(10,9,8,.86),
      rgba(10,9,8,.05) 72%
    );

  pointer-events: none;
}


/* =========================================================
   FORMS — SHARED
   ========================================================= */

input,
select,
textarea {
  width: 100%;

  border: 1px solid rgba(216,193,154,.36);

  background: #130e0b;

  color: var(--cream);

  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);

  box-shadow:
    0 0 0 3px rgba(177,138,76,.2);
}

.light-form input,
.light-form textarea {
  border-color: rgba(106,67,43,.36);

  background: #fffaf2;

  color: var(--espresso);
}


/* =========================================================
   KRO CAFÉ FOOTER
   ========================================================= */

.site-footer {
  width: 100%;

  background: #0A0908;

  color: var(--cream);

  padding:
    52px 5vw 0;

  box-sizing: border-box;
}


/* =========================================================
   MAIN FOOTER GRID
   Desktop = 3 equal sections
   ========================================================= */

.site-footer-inner {
  width: 100%;

  max-width: 1120px;

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    1fr
    1fr
    1fr;

  column-gap: 90px;

  padding-bottom: 52px;
}


/* =========================================================
   FOOTER COLUMNS
   ========================================================= */

.site-footer-column {
  min-width: 0;
}

.site-footer-heading {
  margin: 0 0 23px;

  color: var(--gold);

  font-family: var(--body-font);

  font-size: 10px;

  line-height: 1;

  font-weight: 700;

  letter-spacing: .22em;

  text-transform: uppercase;
}


/* =========================================================
   VISIT / CONTACT TEXT
   ========================================================= */

.site-footer-text,
.site-footer-contact,
.site-footer-hours {
  margin: 0;

  color: var(--cream);

  font-family: var(--body-font);

  font-size: 13px;

  line-height: 1.8;
}

.site-footer-contact {
  margin-bottom: 2px;
}

.site-footer-contact a {
  color: inherit;

  text-decoration: none;

  transition: color .2s ease;
}

.site-footer-contact a:hover {
  color: var(--gold);
}

.site-footer-hours {
  margin-top: 22px;

  font-size: 11px;

  line-height: 1.8;

  letter-spacing: .04em;
}


/* =========================================================
   FOOTER LINKS
   ========================================================= */

.site-footer a {
  color: inherit;

  text-decoration: none;
}

.site-footer-action {
  display: inline-block;

  margin-top: 24px;

  padding-bottom: 9px;

  border-bottom: 1px solid rgba(177,138,76,.45);

  color: var(--cream) !important;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: .15em;

  transition:
    color .2s ease,
    border-color .2s ease;
}

.site-footer-action:hover {
  color: var(--gold) !important;

  border-color: var(--gold);
}


/* =========================================================
   EXPLORE NAV
   ========================================================= */

.site-footer-nav {
  display: flex;

  flex-direction: column;

  gap: 12px;
}

.site-footer-nav a {
  color: var(--cream);

  font-family: var(--body-font);

  font-size: 10px;

  line-height: 1;

  font-weight: 700;

  letter-spacing: .15em;

  text-transform: uppercase;

  transition: color .2s ease;
}

.site-footer-nav a:hover {
  color: var(--gold);
}


/* =========================================================
   FOOTER BOTTOM
   Desktop = copyright left / back to top right
   ========================================================= */

.site-footer-bottom {
  width: 100%;

  max-width: 1120px;

  margin: 0 auto;

  min-height: 58px;

  border-top:
    1px solid rgba(177,138,76,.25);

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;
}

.site-footer-bottom p {
  margin: 0;

  color: var(--gold);

  font-family: var(--body-font);

  font-size: 9px;

  line-height: 1;

  font-weight: 700;

  letter-spacing: .13em;

  text-transform: uppercase;
}

.back-to-top {
  border: 0;

  background: transparent;

  padding: 0;

  color: var(--gold);

  font-family: var(--body-font);

  font-size: 9px;

  line-height: 1;

  font-weight: 700;

  letter-spacing: .13em;

  cursor: pointer;

  transition: color .2s ease;
}

.back-to-top:hover {
  color: var(--cream);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .site-footer-inner {
    grid-template-columns:
      1fr
      1fr;

    column-gap: 40px;

    row-gap: 42px;

    max-width: 760px;
  }

  .site-footer-explore {
    grid-column: span 2;
  }

  .site-footer-nav {
    display: grid;

    grid-template-columns:
      1fr
      1fr
      1fr;

    column-gap: 30px;

    row-gap: 16px;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

  .site-brand-logo {
    width: 42px;
    height: 42px;
  }

  .site-brand-name {
    font-size: 18px;
    letter-spacing: .12em;
  }


  .site-footer {
    padding:
      42px 15px 0;
  }


  /* Visit + Contact side by side */

  .site-footer-inner {
    display: grid;

    grid-template-columns:
      1fr
      1fr;

    column-gap: 28px;

    row-gap: 0;

    max-width: none;

    padding-bottom: 30px;
  }


  .site-footer-column {
    min-width: 0;
  }


  .site-footer-heading {
    margin-bottom: 18px;

    font-size: 9px;

    letter-spacing: .20em;
  }


  .site-footer-text,
  .site-footer-contact {
    font-size: 10px;

    line-height: 1.75;
  }


  .site-footer-hours {
    margin-top: 18px;

    font-size: 9px;

    line-height: 1.7;
  }


  .site-footer-action {
    margin-top: 20px;

    padding-bottom: 7px;

    font-size: 8px;

    letter-spacing: .13em;
  }


  /* Explore goes underneath */

  .site-footer-explore {
    grid-column: span 2;

    margin-top: 30px;

    padding-top: 27px;

    border-top:
      1px solid rgba(177,138,76,.20);
  }


  /* Explore = 3 columns */

  .site-footer-nav {
    display: grid;

    grid-template-columns:
      1fr
      1fr
      1fr;

    column-gap: 18px;

    row-gap: 15px;
  }


  .site-footer-nav a {
    font-size: 8px;

    letter-spacing: .13em;
  }


  /* Bottom row:
     Copyright left
     Back to top right
     No Mogale City line
  */

  .site-footer-bottom {
    min-height: 58px;

    max-width: none;

    display: flex;

    flex-direction: row;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    border-top:
      1px solid rgba(177,138,76,.25);
  }


  .site-footer-bottom p {
    font-size: 7px;

    letter-spacing: .10em;

    white-space: nowrap;
  }


  .back-to-top {
    font-size: 7px;

    letter-spacing: .10em;

    white-space: nowrap;
  }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

  .site-footer {
    padding-left: 12px;
    padding-right: 12px;
  }

  .site-footer-inner {
    column-gap: 20px;
  }

  .site-footer-nav {
    column-gap: 12px;
  }

  .site-footer-text,
  .site-footer-contact {
    font-size: 9px;
  }

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

}