/* Broward Film Program — theme matched to the original Wix site
   (browardfilm.wixsite.com/program). Colors and type sampled from the live
   site; edit the variables below to retheme. */
:root {
  --teal: #194056;                        /* headings, buttons, teal bands */
  --teal-header: rgba(16, 63, 84, 0.75);  /* the translucent header bar */
  --panel: #f5f5f5;                       /* light grey text panels */
  --ink: #2b2b2b;
  --muted: #4a4a4a;
  --line: #e2e2e2;
  --white: #ffffff;
  --heading: "Fraunces", Georgia, serif;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --content: 980px;                       /* Wix content column */
  --wide: 1240px;                         /* full-width image strips */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* The original sets headings in Fraunces at regular weight, in teal, with no
   letter-spacing and no text-transform — the copy itself carries the caps. */
h1, h2, h3, h4 {
  font-family: var(--heading);
  font-weight: 400;
  line-height: 1.25;
  color: var(--teal);
  letter-spacing: normal;
  text-transform: none;
}

h1 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 3.125rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.875rem); }
h4 { font-size: 1.4rem; }

p { color: var(--muted); }

strong, b { color: #000; font-weight: 700; }

a { color: var(--teal); }

a:hover { color: #0d2b3a; }

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

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--teal-header);
  backdrop-filter: blur(4px);
}

.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.6rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo img { width: 76px; height: 76px; }

.site-nav { margin-left: auto; }

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.9;
}

.site-nav a:hover { color: rgba(255, 255, 255, 0.65); }

/* current page reads as dimmed, the way the Wix menu marks it */
.site-nav a[aria-current="page"] { color: rgba(255, 255, 255, 0.55); }

.has-dropdown { position: relative; }

.has-dropdown > button {
  background: none;
  border: none;
  color: var(--white);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
}

.has-dropdown > button:hover { color: rgba(255, 255, 255, 0.65); }

.site-nav ul.dropdown {
  display: none;
  position: absolute;
  right: 0;
  /* flush against the button — a gap here creates a dead zone that closes
     the menu as soon as the pointer travels toward it */
  top: 100%;
  background: #103f54;
  min-width: 270px;
  padding: 0.5rem 0;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

/* opening is driven by JS (hover-intent + click), not bare :hover — a raw
   :hover drops the panel the instant a diagonal pointer path leaves both
   the button and the panel. :focus-within keeps keyboard access working. */
.has-dropdown:focus-within ul.dropdown,
.has-dropdown.open ul.dropdown { display: block; }

/* widen the hit area so the pointer cannot slip out between the two */
.has-dropdown > button { padding: 0.4rem 0; }

.dropdown li { display: block; }

.dropdown a { display: block; padding: 0.5rem 1.2rem; }

.dropdown a:hover { background: rgba(255, 255, 255, 0.09); color: var(--white); }

.social-icons { display: flex; gap: 0.85rem; align-items: center; }

/* white on the teal header bar (the original used dark glyphs) */
.social-icons a { color: var(--white); display: inline-flex; }

.social-icons svg { width: 19px; height: 19px; fill: currentColor; }

.social-icons a:hover { color: rgba(255, 255, 255, 0.7); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
  .site-nav li { width: 100%; }
  .site-nav a, .has-dropdown > button {
    display: block;
    padding: 0.55rem 0;
    font-size: 1rem;
    width: 100%;
    text-align: left;
  }
  .site-nav ul.dropdown {
    position: static;
    display: block;
    box-shadow: none;
    padding-left: 1rem;
    min-width: 0;
    background: none;
  }
  .header-inner { flex-wrap: wrap; padding: 1rem 1.25rem; }
  .logo img { width: 60px; height: 60px; }
}

/* ---------- Sections ---------- */
.section { max-width: var(--content); margin: 0 auto; padding: 4rem 1.5rem; }

.section--narrow { max-width: 780px; }

.section--center { text-align: center; }

/* full-bleed teal band with reversed-out text */
.band {
  background: var(--teal);
  color: var(--white);
}

.band h1, .band h2, .band h3, .band h4 { color: var(--white); }

.band p, .band li { color: rgba(255, 255, 255, 0.88); }

/* the original runs its teal bands out to the wider container, except where
   the band holds a single column of body copy (About Us) */
.band .section { max-width: var(--wide); }
.band .section--narrow { max-width: var(--content); }

.band a { color: var(--white); }

.eyebrow {
  color: var(--teal);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

.band .eyebrow { color: rgba(255, 255, 255, 0.85); }

.lead { font-size: 1.05rem; color: var(--ink); }

.band .lead { color: var(--white); }

.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6rem; }

.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; align-items: start; }

@media (max-width: 850px) { .cols-3, .cols-2 { grid-template-columns: 1fr; } }

.cols-3 h3, .cols-2 h3 { margin-bottom: 0.9rem; }

.cols-3 p, .cols-2 p { font-size: 0.95rem; }

/* ---------- Image strip (butted, no gaps — as on the original) ---------- */
.img-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: var(--wide);
  margin: 0 auto;
}

.img-strip img { width: 100%; height: 380px; object-fit: cover; }

@media (max-width: 800px) {
  .img-strip { grid-template-columns: 1fr; }
  .img-strip img { height: 220px; }
}

/* ---------- Alternating image / text tiles (Admissions) ----------
   The original lays these out as four full-bleed rows split exactly 50/50,
   700x680 at a 1400px viewport, with #f7f7f7 behind the copy. */
.tiles { display: grid; grid-template-columns: 1fr 1fr; }

.tiles > * { min-height: clamp(320px, 48.57vw, 680px); }

.tile-img { width: 100%; height: 100%; object-fit: cover; }

.tile-text {
  background: #f7f7f7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 3.25rem;
}

.tile-text > * { max-width: 430px; }

.tile-text h3 { font-size: clamp(1.5rem, 2.6vw, 2.1875rem); margin-bottom: 1.2rem; }

.tile-text p { font-size: 0.95rem; }

.tile-text .btn { margin-top: 1.8rem; }

@media (max-width: 850px) {
  .tiles { grid-template-columns: 1fr; }
  .tiles > * { min-height: 0; }
  .tile-img { height: 260px; }
  .tile-text { padding: 3rem 1.5rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--teal);
  color: var(--white) !important;
  text-decoration: none;
  font-family: var(--body);
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: none;
  padding: 0.95rem 2rem;
  min-width: 162px;
  text-align: center;
  border: 1px solid var(--teal);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn:hover { background: #0d2b3a; border-color: #0d2b3a; color: var(--white) !important; }

/* the outline variant the original uses for secondary downloads */
.btn-outline {
  background: var(--white);
  border: 1px solid #d5d5d5;
  color: var(--teal) !important;
}

.btn-outline:hover { background: var(--panel); border-color: #bdbdbd; color: var(--teal) !important; }

.band .btn {
  background: var(--white);
  border-color: var(--white);
  color: var(--teal) !important;
}

.band .btn:hover { background: rgba(255, 255, 255, 0.85); color: var(--teal) !important; }

/* ---------- Cards (programs) — the original uses no borders or shadows ---- */
.card { background: none; border: 0; display: flex; flex-direction: column; }

.card img { height: 300px; object-fit: cover; width: 100%; }

.card-body { padding: 1.6rem 0 0; }

.card-body h2, .card-body h3 { color: #000; font-size: 1.5rem; }

.card-body ul { margin: 0.5rem 0 0; list-style: none; }

.card-body li { color: var(--muted); }

/* ---------- Quote over a hero image (About Us) ---------- */
.hero-quote {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.hero-quote .quote { color: var(--white); text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45); }

.hero-quote .quote cite { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }

@media (max-width: 700px) { .hero-quote { min-height: 300px; } }

/* ---------- Quote ---------- */
.quote {
  font-family: var(--heading);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  color: inherit;
  text-align: center;
  line-height: 1.3;
}

.quote cite {
  display: block;
  font-family: var(--heading);
  font-style: normal;
  font-size: 1.15rem;
  letter-spacing: normal;
  text-transform: none;
  opacity: 0.9;
  margin-top: 1rem;
}

/* ---------- Hours tables ---------- */
.hours-table { border-collapse: collapse; width: 100%; max-width: 440px; }

.hours-table td, .hours-table th {
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.95rem;
  font-weight: 300;
}

.hours-table th {
  font-family: var(--heading);
  font-weight: 400;
  color: var(--teal);
  width: 5.5rem;
}

.hours-table td { color: var(--ink); }

.band .hours-table th { color: var(--white); }

.band .hours-table td { color: rgba(255, 255, 255, 0.9); }

.band .hours-table td, .band .hours-table th { border-bottom-color: rgba(255, 255, 255, 0.25); }

/* ---------- Forms ---------- */
form.stacked { display: grid; gap: 1.2rem; max-width: 560px; }

form.stacked label {
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: #000;
  display: block;
  margin-bottom: 0.35rem;
}

form.stacked input[type="text"],
form.stacked input[type="email"],
form.stacked input[type="tel"],
form.stacked select,
form.stacked textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  background: var(--white);
  border: 1px solid #d5d5d5;
  border-radius: 0;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

form.stacked input:focus, form.stacked textarea:focus, form.stacked select:focus {
  outline: none;
  border-color: var(--teal);
}

form.stacked textarea { min-height: 150px; resize: vertical; }

.checkbox-row { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.95rem; color: var(--ink); }

.checkbox-row input { margin-top: 0.4rem; accent-color: var(--teal); }

.checkbox-row input[type="checkbox"] { width: 1.05rem; height: 1.05rem; flex: none; }

form.stacked .checkbox-row label,
.checkbox-row label {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 300;
  margin-bottom: 0;
}

.note {
  background: var(--panel);
  border: 0;
  border-left: 3px solid var(--teal);
  padding: 1.1rem 1.4rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.band .note { background: rgba(255, 255, 255, 0.1); border-left-color: var(--white); color: rgba(255, 255, 255, 0.9); }

/* trim the stacked section padding where blocks should sit close together */
.section--tight-top { padding-top: 1rem; }
.section--tight-bottom { padding-bottom: 1.5rem; }

/* ---------- Embedded third-party form (Jotform) ---------- */
.form-embed { margin-top: 0; }

.form-embed iframe {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  min-height: 560px;
  border: none;
  display: block;
}

/* the AI assistant panel keeps a fixed frame — it scrolls internally */
.agent-embed iframe { height: 620px; min-height: 620px; }

/* ---------- Links page rows ---------- */
.link-list { display: grid; gap: 0; }

.link-item {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 1.8rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  justify-content: space-between;
}

.link-item h3 { margin-bottom: 0.15rem; font-size: 1.4rem; }

.link-item p { font-size: 0.95rem; }

/* ---------- Video embed ---------- */
.video-wrap { position: relative; padding-top: 56.25%; background: #000; }

.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Showcase program ---------- */
.program-block { border-left: 2px solid var(--teal); padding-left: 1.6rem; margin-bottom: 2.4rem; }

.program-block .time {
  font-family: var(--heading);
  color: var(--teal);
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: none;
}

.program-block h3 { margin-top: 0.2rem; color: #000; }

.program-block ul { list-style: none; margin-top: 0.5rem; }

.program-block li { padding: 0.15rem 0; color: var(--muted); }

/* ---------- Footer — the original is a single small centred line ---------- */
.site-footer { background: var(--white); margin-top: 3rem; }

.footer-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.875rem;
  color: #6f6f6f;
}

.footer-inner a { color: #6f6f6f; text-decoration: underline; }

.footer-inner a:hover { color: var(--teal); }

.site-footer .social-icons a { color: #6f6f6f; }

.site-footer .social-icons a:hover { color: var(--teal); }
