/* ============================================================
   CSS 18.03 — Final project, step 3 of 9: Hero banner
   ============================================================
   We build ONE real page — the Salem College home page —
   one section at a time. Each step's files contain the WHOLE page
   so far; the part added in this step is marked  ★ NEW .

   This step uses ideas from lesson(s): 07, 15.
   Open the HTML in the browser, read the ★ NEW part here, then
   open the next step.
   ============================================================ */

/* ------------------------------------------------------------
   1. BASE — variables (lesson 16) + a mini reset (lessons 06, 15)
   ------------------------------------------------------------ */

/* All the colours and sizes of the site, in ONE place */
:root {
  --brand: #2D62EF;          /* college blue           */
  --brand-dark: #1A47C2;     /* blue for hover         */
  --accent: #FFAF04;         /* amber highlights       */
  --success: #1F9D55;        /* green                  */
  --navy: #0F1B3D;           /* header and footer      */
  --ink: #1A1A1A;            /* normal text            */
  --muted: #525252;          /* grey text              */
  --line: #E4E4E4;           /* borders                */
  --soft: #F4F6FB;           /* light section background */
  --radius: 12px;            /* corner roundness       */
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Mini reset */
* {
  box-sizing: border-box;    /* width includes padding and border (lesson 06) */
}

body {
  margin: 0;                 /* no white edge around the page */
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
}

img {
  max-width: 100%;           /* images never stick out (lesson 15) */
  height: auto;
}

/* A centred column for the content of every section */
.container {
  max-width: 1100px;
  margin: 0 auto;            /* centre (lesson 06) */
  padding: 0 20px;
}

.section {
  padding: 64px 0;           /* space above and below each section */
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);   /* lesson 15 */
  margin: 0 0 8px;
}

.section-sub {
  color: var(--muted);
  margin: 0 0 28px;
}

/* Try it: change --brand to #1F9D55 — later steps will turn green everywhere. */


/* ------------------------------------------------------------
   2. NAVBAR — flexbox (lesson 12) + mobile-first (lesson 15)
   ------------------------------------------------------------ */
.site-header {
  background-color: var(--navy);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  color: #FFFFFF;
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

/* Phone: the links take a full row under the logo */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  order: 3;                  /* after the button, on its own row (lesson 11) */
  width: 100%;
}

.nav-links a {
  color: #DDE3F0;
  text-decoration: none;
  font-weight: 600;
}

.nav-links a:hover {
  color: #FFFFFF;
}

/* Laptop: everything in one row, links pushed right */
@media (min-width: 800px) {
  .nav-links {
    order: 0;
    width: auto;
    margin-left: auto;       /* push to the right (lesson 12) */
  }
}

/* Buttons — used in the navbar and later sections */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;      /* pill (lesson 07) */
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;   /* lesson 16 */
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-accent  { background-color: var(--accent); color: var(--navy); }
.btn-primary { background-color: var(--brand);  color: #FFFFFF; }
.btn-primary:hover { background-color: var(--brand-dark); }


/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
   ★ NEW IN STEP 03 — everything below this line until the next
   ★ section is what this step adds.
   ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ------------------------------------------------------------
   3. HERO — picture + dark fade (lesson 07), fluid title (lesson 15)
   ------------------------------------------------------------ */
.hero {
  color: #FFFFFF;
  background-image:
    linear-gradient(to right, rgba(15, 27, 61, 0.92) 30%, rgba(15, 27, 61, 0.25)),
    url("../assets/campus.svg");
  background-size: cover;
  background-position: center;
  min-height: 70vh;          /* 70% of the window height (lesson 04) */
  display: flex;
  align-items: center;       /* text in the middle, top to bottom (lesson 11) */
}

.hero-inner {
  width: 100%;
}

.hero-tag {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
}

.hero-title {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1.1;
  margin: 10px 0;
}

.hero-text {
  font-size: 1.2rem;
  max-width: 480px;
  margin: 0 0 24px;
}

.btn-light {
  color: #FFFFFF;
  border-color: #FFFFFF;
  margin-left: 8px;
}
