/* CSC 648 Fall 2026
   Authors: Manisha Chand, Mobin Sami
   File: application/static/css/style.css
   Description: Shared baseCase styles for the site layout, navigation, and home page.
*/

/* —— Global design tokens (dark cosmic cyan) —— */
:root {
  --js-white: #e0f7fa;
  --js-charcoal: #e0f7fa;
  --js-ink: #e0f7fa;
  --js-neutral-50: #05070a;
  --js-neutral-100: #12161c;
  --js-neutral-500: #7eb8c4;
  --js-blue: #26c6da;
  --js-blue-hover: #4dd0e1;
  --js-blue-pale: rgba(38, 198, 218, 0.16);
  --js-teal: #5f9ea0;
  --js-teal-dark: #0a1218;
  --js-green: #4dd0e1;
  --js-green-hover: #80deea;
  --js-green-pale: rgba(77, 208, 225, 0.12);
  --js-orange: #4dd0e1;
  --js-orange-hover: #b2ebf2;
  --js-pink: #4dd0e1;
  --js-mint: #05070a;
  --js-black: #000000;
  --js-glow: 0 0 24px rgba(77, 208, 225, 0.35);

  --font-sans: Inter, "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-display: Goldman, Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --content-width: 1170px;
  --nav-height: 80px;
  --section-pad: 80px;
  --card-gap: 24px;
  --radius-pill: 999px;
  --radius-card: 16px;
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 28px rgba(38, 198, 218, 0.12);
}

* {
  box-sizing: border-box;
}



html {
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
  width: 0;
  height: 0;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  color: var(--js-ink);
  background: #0a0e14;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: var(--js-blue-pale);
  color: var(--js-ink);
}

a {
  color: var(--js-orange);
  text-decoration: none;
}

a:hover {
  color: var(--js-orange-hover);
}

a:focus-visible {
  outline: 2px solid var(--js-green);
  outline-offset: 3px;
}

/* —— Demo banner (required text unchanged in template) —— */

.demo-banner {
  margin: 0;
  padding: 0.55rem 1rem;
  background: #05070a;
  color: #b2ebf2;
  border-bottom: 1px solid rgba(77, 208, 225, 0.35);
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: 0 0 12px rgba(77, 208, 225, 0.35);
}

.preview-banner {
    margin: 0;
    padding: 0.35rem 1rem;
    background: #fff3cd;
    color: #664d03;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
}

/* —— Site chrome: dark nav (brand + centered About) —— */

.site-header {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(77, 208, 225, 0.28);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: var(--nav-height);
  padding: 0 0.65rem 0 0.65rem;
  max-width: none;
  width: 100%;
  margin: 0;
  position: relative;
}

.nav a {
  color: var(--js-ink);
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
  padding: 0.25rem 0;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav a:hover {
  color: var(--js-orange);
  border-bottom-color: var(--js-orange);
}


.nav .brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 2.4vw, 2.35rem);
  letter-spacing: 0.02em;
  color: var(--js-ink);
  margin-right: auto;
  margin-left: 0;
  padding-left: 0.35rem;
  border-bottom: none !important;
  line-height: 1;
}

.nav .brand:hover {
  color: var(--js-orange);
  border-bottom: none !important;
}

.nav > a:not(.brand) {
  flex-shrink: 0;
}

.nav a:focus-visible {
  outline: 2px solid var(--js-green);
  outline-offset: 4px;
  color: var(--js-green);
}


/* —— Layout —— */

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.home-page .container {
  padding: 0;
  max-width: none;
  width: 100%;
}



.section-heading {
  display: block;
  margin: 0 0 1.75rem;
  padding: 0;
  background: none;
  color: #e0f7fa;
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-heading::after { content: none; display: none; }

/* —— Home: Coming Soon —— */
.coming-soon {
  min-height: calc(100vh - var(--nav-height) - 3.25rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem 4rem;
  gap: 0.85rem;
}

.coming-soon-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(224, 247, 250, 0.72);
}

.coming-soon-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 4.75rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: #e0f7fa;
  text-shadow: 0 0 28px rgba(77, 208, 225, 0.35);
}


.nav .nav-about {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.25rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  letter-spacing: 0.04em;
  color: #e0f7fa;
  border-bottom: none !important;
  line-height: 1;
  text-shadow: 0 0 18px rgba(77, 208, 225, 0.25);
}

.nav .nav-about:hover {
  color: #4dd0e1;
  border-bottom: none !important;
}

/* Search link sits at the right edge, styled like the centered About link. */
.nav .nav-search {
  margin-right: 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  letter-spacing: 0.04em;
}


/* Phones: the centered About link overlaps the brand below ~560px, so let it
   flow after "Find a tutor" and shrink the brand a little. */
@media (max-width: 560px) {
    .nav .brand {
        font-size: 1.45rem;
    }

    .nav .nav-about {
        position: static;
        transform: none;
    }

    .nav .nav-search,
    .nav .nav-about {
        font-size: 0.95rem;
        letter-spacing: 0.02em;
    }
}

/* Very small phones (320px): tighten further so all three items fit. */
@media (max-width: 360px) {
    .nav {
        gap: 0.6rem;
    }

    .nav .brand {
        font-size: 1.25rem;
    }

    .nav .nav-search,
    .nav .nav-about {
        font-size: 0.85rem;
    }
}
