/* ==========================================================================
   BLACK ROCK ART RANCH — SHARED STYLESHEET
   Every page on the site links to this one file.
   Change a value here and it changes everywhere.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. COLOR PALETTE  ← edit these to re-theme the whole site
   Each color is a variable. Pages use var(--name), so changing the
   value on the right side changes it site-wide.
   -------------------------------------------------------------------------- */
:root {
  --color-background:   #efe9dc;  /* page background — matches the logo's cream */
  --color-text:         #2f2a24;  /* main body text — near-black */
  --color-heading:      #0d3c31;  /* h1–h5 headings — deep green */
  --color-accent:       #006599;  /* links & highlights — the "ART RANCH" blue */
  --color-accent-dark:  #004d75;  /* hover state for links */
  --color-header-bg:    #211c17;  /* nav bar — rock black */
  --color-header-text:  #efe9dc;  /* text inside the nav bar */
  --color-footer-bg:    #2e2720;  /* footer bar (matches nav) */
  --color-footer-text:  #e8e4da;  /* text inside the footer */
  --color-card-bg:      #f7f3ea;  /* boxes/cards on the page */
  --color-border:       #d8cfbc;  /* subtle lines and borders */
  --color-menu:         #0d3c31;  /* menu text + the thin lines above/below the menu */

  /* Fonts — first choice, then fallbacks */
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --content-width: 1100px;        /* max width of page content */
}

/* --------------------------------------------------------------------------
   2. BASICS
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

/* Centers page content and keeps it from getting too wide */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------------------------------------------------
   3. HEADINGS  h1 through h5 — adjust sizes here
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.25;
  margin: 1.2em 0 0.5em;
}

h1 { font-size: 2.6rem; }   /* page title */
h2 { font-size: 2.0rem; }   /* major section */
h3 { font-size: 1.5rem; }   /* subsection */
h4 { font-size: 1.2rem; }   /* minor heading */
h5 { font-size: 1.0rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* --------------------------------------------------------------------------
   4. LINKS & BUTTONS
   -------------------------------------------------------------------------- */
a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover { color: var(--color-accent-dark); text-decoration: underline; }

.button {
  display: inline-block;
  background-color: var(--color-accent);
  color: #fff;
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: bold;
}
.button:hover {
  background-color: var(--color-accent-dark);
  color: #fff;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   5. HEADER: LOGO + NAVIGATION  (same on every page)
   Logo sits on the cream page background (its own background matches),
   centered, with the nav bar below it.
   -------------------------------------------------------------------------- */
.logo-header {
  text-align: center;
  padding: 10px 0 0;
}
.logo-header img {
  width: 100%;
  max-width: 560px;    /* how wide the logo gets on a computer — adjust to taste */
  height: auto;
}

/* Nav bar — same color as the page, thin lines above and below */
.site-nav {
  background-color: var(--color-background);
  border-top: 1px solid var(--color-menu);
  border-bottom: 1px solid var(--color-menu);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin-top: 10px;
}
.site-nav > .nav-item { position: relative; }

.site-nav a {
  display: block;
  color: var(--color-menu);
  padding: 14px 22px;
  font-size: 1rem;
  font-weight: 600;    /* menu boldness: 400 normal, 600 semi-bold, 700 bold */
}
.site-nav a:hover,
.site-nav a.current {       /* add class="current" to the current page's link */
  color: var(--color-menu);
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* --- Workshops dropdown --- */
.dropdown .drop-arrow { font-size: 0.7em; }   /* the little ▾ */

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: var(--color-background);
  border: 1px solid var(--color-menu);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
  z-index: 10;
}
.dropdown-menu a { padding: 12px 20px; font-size: 0.95rem; }

/* open on hover (mouse) or tap/keyboard focus */
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}

/* --------------------------------------------------------------------------
   6. FOOTER  (same on every page)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 30px 0;
  margin-top: 60px;
  text-align: center;
  font-size: 0.9rem;
}
.site-footer a { color: var(--color-footer-text); text-decoration: underline; }

/* --------------------------------------------------------------------------
   7. PHOTO CAROUSEL
   All carousel photos should be the SAME dimensions (e.g. 1200 x 675).
   The carousel scales to fit the page automatically.
   -------------------------------------------------------------------------- */
.carousel {
  position: relative;
  max-width: 900px;          /* how wide the carousel can get */
  margin: 30px auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.carousel img {
  width: 100%;
  display: none;             /* JavaScript shows one at a time */
}
.carousel img.active { display: block; }

/* previous / next arrow buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  font-size: 1.6rem;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 4px;
}
.carousel-btn:hover { background-color: rgba(0, 0, 0, 0.7); }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

/* Top (hero) carousel — same width as the logo used to be */
.carousel-home { max-width: 760px; }

/* Small carousel inside a column */
.carousel-small { margin: 0; }
.carousel-small .carousel-btn { font-size: 1.1rem; padding: 5px 10px; }

/* --------------------------------------------------------------------------
   7b. TWO-COLUMN SECTIONS  (photo/carousel beside text)
   -------------------------------------------------------------------------- */
.split {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin: 20px 0 40px;
}
.split .side-third { flex: 0 0 33%; }     /* left column, 1/3 of the page  */
.split .side-quarter { flex: 0 0 24%; }   /* right column, about 1/4       */
.split .split-text { flex: 1; min-width: 0; }
.split .split-text > :first-child { margin-top: 0; }

@media (max-width: 640px) {
  /* columns stack on phones */
  .split { flex-direction: column; }
  .split .side-third,
  .split .side-quarter { flex: none; width: 100%; }
  .split .side-quarter { max-width: 320px; margin: 0 auto; }
  .carousel-small { margin: 0 auto; }
}

/* --------------------------------------------------------------------------
   8. GENERAL PAGE ELEMENTS
   -------------------------------------------------------------------------- */
/* A white card/box for blocks of content */
.card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px;
  margin: 20px 0;
}

/* Ordinary photos in page content scale to fit */
main img { max-width: 100%; height: auto; border-radius: 6px; }

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 40px 0;
}

/* --------------------------------------------------------------------------
   9. PHONES & SMALL SCREENS
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  h1 { font-size: 2.0rem; }
  h2 { font-size: 1.6rem; }

  /* logo: full width edge-to-edge on phones */
  .logo-header { padding: 0; }
  .logo-header img { max-width: 100%; }

  .site-nav a { padding: 12px 14px; font-size: 0.95rem; }

  /* dropdown stays inside the screen on small phones */
  .dropdown-menu { left: auto; right: 0; }
}
